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

Install chromium browser For ubuntu

We have already discussed how to install google chrome using wine .Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. The Chromium codebase is the basis for Google’s Chrome browser.
First you can use this tutorial to install chromium in Ubuntu using PPAs and after that you can try any one of the following methods.

First you need to download .deb package from here using the following command

wget http://media.codeweavers.com/pub/crossover/chromium/cxchromium_0.9.0-1_i386.deb

Now you have cxchromium_0.9.0-1_i386.deb package install this package using the following command

sudo dpkg -i cxchromium_0.9.0-1_i386.deb

Using Ubuntu PPA

First you need edit /etc/apt/sources.list file

gksudo gedit /etc/apt/sources.list

Add the following two lines for Ubuntu 9.04 (Jaunty) Users

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main

For ubuntu 9.10 (Karmic) Users add the following two lines

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main

For ubuntu 10.04 (Lucid) Users add the following two lines

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu lucid main

save and exit the file

Now add the GPG key using the following command

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5

or For karmic users use the following command

sudo add-apt-key ppa:chromium-daily/ppa

Update source list

sudo apt-get update

Install chromium browser using the following command

sudo apt-get install chromium-browser

#
This will complete the installation

If you want to open chromium go to Applications->CrossOver Chromium->Chromium