Sunday 17 March 2013

How to install Chrome in OpenSUSE 11.4

Now this is something I think of achievement in itself..
Installing Google Chrome on OpenSuSe..
Here is how it goes..
Before downloading, see whether your processor is 32-bit or 64-bit..
Open terminal and enter

linux-3y8t:~ # uname -i

If you get output as i386, download the 32-bit version, otherwise 64-bit version.




After completing the download, in the terminal, go to the directory where the repo is downloaded and enter

linux-3y8t:~/Downloads # rpm -ivh google-chrome-stable_current_i386.rpm

If after entering this command, you come across error message like this,


warning: google-chrome-stable_current_i386.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
error: Failed dependencies:
        lsb >= 4.0 is needed by google-chrome-stable-25.0.1364.172-187217.i386

Enter

linux-3y8t:~/Downloads # zypper install lsb

This command will install the lsb package required.
Having done that, enter this command again


linux-3y8t:~/Downloads # rpm -ivh google-chrome-stable_current_i386.rpm 

It'll show you output like this:

warning: google-chrome-stable_current_i386.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
Preparing...                ########################################### [100%]
   1:google-chrome-stable   ########################################### [100%]
Starting service at daemon                                            done

Now enter the following commands one by one if you want to be able to watch Youtube videos in Chrome

linux-3y8t:~/Downloads # mkdir /opt/google/chrome/plugins

linux-3y8t:~ # ln -s /usr/lib6/browser-plugins/* /opt/google/chrome/plugins/

To run Google Chrome, enter:

linux-3y8t:~ # google-chrome &



If you are logged in as root, then you'll get error message:

linux-3y8t:~ # [5993:5993:0317/223156:ERROR:chrome_browser_main_extra_parts_gtk.cc(51)] Startup refusing to run as root.
google-chrome &
[2] 6030
[1]   Exit 1                  google-chrome

For that, do the following:

linux-3y8t:~ # vim /usr/bin/google-chrome

Enter --user-data-dir in the last line like shown in the image below.



Now go to Application Launcher>>Internet>>Web Browser and you'll see short-cut for Google Chrome there. If you want to run using terminal command, enter aforementioned
linux-3y8t:~ # google-chrome &

and you are done!! :D

After installing Google Chrome, i added my favourite Web Apps from Chrome Web Store..and now i feel at home on Linux. :P

:D
Adios!!