Tuesday, March 6, 2012

How to install Google Chrome without root / admin access in Linux or Windows.

If you have to install in windows there is nothing much I have to say. Because you can just download and run it will not ask for the administrative access. (having seen windows audience visiting the blog I have added this information if it does not work do comment here.)

______________________
I have installed google chrome without root access in fedora environment, I have a 64 bit computer and so I have used 64 bit version check your computer for 32 or 64 bit, based on which the folder which is lib64 will be changed.

following are the instructions:

mkdir ~/chrome; cd ~/chrome
rpm2cpio ~/Downloads/google-chrome-stable_current_x86_64.rpm | cpio -id
cd opt/google/chrome
ln -s /usr/lib64/libnss3.so libnss3.so.1d
ln -s /usr/lib64/libnssutil3.so libnssutil3.so.1d
ln -s /usr/lib64/libsmime3.so libsmime3.so.1d
ln -s /lib64/libplc4.so libplc4.so.0d
ln -s /lib64/libnspr4.so libnspr4.so.0d
ln -s /lib64/libbz2.so.1.0.6 libbz2.so.1.0
ln -s ~/chrome/opt/google/chrome/google-chrome ~/bin/google-chrome

The last line which is in green is to include as a command line command. 

To start google chrome you will have to use some in secured options i.e as follows:

google-chrome --no-sandbox %U

You can make a link to desktop depending on your environment with above options in the command. 

If you open first time after logging into your user in terminal you will see that it does not version information errors but google-chrome works fine.

Would appreciate if any  one have better solution.

___________________________________________________________

Updating new chrome version 

While updating existing local version of chrome you can use the existing contents. Keep the following files(under the chrome directory which we created above) and delete all other files


./opt/google/chrome/libbz2.so.1.0 -> /lib64/libbz2.so.1.0.4
./opt/google/chrome/libbz2.so.1.0d -> /lib64/libbz2.so.1.0.4
./opt/google/chrome/libnspr4.so.0d -> /lib64/libnspr4.so
./opt/google/chrome/libnss3.so.1d -> /usr/lib64/libnss3.so
./opt/google/chrome/libnssutil3.so.1d -> /usr/lib64/libnssutil3.so
./opt/google/chrome/libplc4.so.0d -> /lib64/libplc4.so
./opt/google/chrome/libsmime3.so.1d -> /usr/lib64/libsmime3.so
./opt/google/chrome/libz.so.1.0d -> /lib64/libz.so.1
./opt/google/chrome/libz.so.1.2.3.0d -> /lib64/libz.so.1.2.3
./opt/google/chrome/plugins/libnpjp2.so -> /usr/java/jre1.6.0_26/lib/amd64/libnpjp2.so

and delete other files.

After that run same as above i.e

rpm2cpio ~/Downloads/google-chrome-stable_current_x86_64.rpm | cpio -id

If it does not work do comment here.