Friday, February 15, 2013

Google Chrome can not be run as root



Chrome Error in Linux
Google Chrome can not be run as root




1. First, Remove all chrome(stable/unstable) from synaptic package manager, Ubuntu software center or command line.
   Make your system chrome free.

2. Now download new chrome from Here . 

3. If it is deb file it means you are using debian Linux, if it is RPM it means you are using RPM (Red hat package Manager) Linux

4. Install the file.
   If you want to install it using command line, follow this.
   For Debian
   $ dpkg -i chrome_file_name.deb
   For RPM
   $ rpm -ivh chrome_file_name.rpm

5. Open /opt/google/chrome/google-chrome and find following line
  exec -a "$0" "$HERE/chrome" "$@"

6. Now replace above line with following line
  exec -a "$0" "$HERE/chrome" "$@" --user-data-dir
  
Now try to open chrome. You will not face the error anymore.

7. If you replace the line with following line
  exec -a "$0" "$HERE/chrome" "$@" --user-data-dir $HOME
  it will open root directory structure in chrome while opening new window.


No comments:

Post a Comment