Thursday, August 4, 2011

Install google chrome with wine in Ubuntu

Google Chrome is an open source web browser developed by Google. The name is derived from the graphical user interface frame, or “chrome”, of web browsers.Chromium is the name of the open source project behind Google Chrome,released under the BSD license.


Note:- Wine 1.1.4 has been released, and includes fixes for running Chrome.You need to make sure you have the wine version 1.1.4 installed

Install latest wine in Ubuntu

New WINE releases arrive every two weeks; the version in Ubuntu 8.04’s repository is already out-of-date. To be able to run Windows applications as well as possible, you should stay with the latest WINE releases.

Using GUI

Open System->Administration->Software Sources, and select the Third Party Software tab. Click Add and paste in the official WINE Ubuntu repository

deb http://wine.budgetdedicated.com/apt hardy main

When prompted, reload the repositories. Install the package wine from your package manager. Whenever a new version of WINE is released, you should see it in your Ubuntu updates.

Using Command line

First you need to edit the /etc/apt/sources.list

sudo gedit /etc/apt/sources.list

add the following line save and exit

deb http://wine.budgetdedicated.com/apt hardy main

Update the source list file using the following command

sudo aptitude update

Install wine using the following command

sudo aptitude install wine

After installing you can check the wine version using the following command

wine --version

You need to make sure wine version is 1.1.4

Google’s net-installer for Chrome doesn’t work in Wine. Instead, use the standalone installer.Download it from here http://gpdl.google.com/chrome/install/149.27/chrome_installer.exe

Now you need to Open a terminal to and change to the directory you downloaded the installer to. Run the installer with Wine using the following command

wine chrome_installer.exe

The installation should complete.Now you need to Start Google Chrome and the Chrome window should open, but will appear to be broken. Close Chrome for now.

Run Chome with the–-new-http and –-in-process-plugins options to make it work (the command below is all one line):

wine ~/.wine/drive_c/windows/profiles/$USER/Local\ Settings/Application\ Data/Google/Chrome/Application/chrome.exe --new-http --in-process-plugins

Use the previous command whenever you want to start Chrome. At this point Chrome is working fine, but the fonts are not good looking. The fonts can be improved by using winetricks

Install winetricks using the following commands

wget http://www.kegel.com/wine/winetricks

chmod +x winetricks

./winetricks corefonts tahoma

No comments:

Post a Comment