Thursday, 29 December 2011

Run Chrome as root in BackTrack 5

Download Chrome from the Google Chome site for the version you need.

In my case

Install the Chrome version you downloaded which should be a .deb file using the command.
Substitute for the version you downloaded
dpkg -i google-chrome-stable_current_i386.deb
However when I launched Chrome I got the following error.

Google Chrome can not be run as root 
I edited the following file /usr/bin/google-chrome using your favourite text editor in my case I typed the following  from a terminal.

gedit /usr/bin/google-chrome
Go to the very bottom of the text and add   --user-data-dir

Make sure you put a space between the "$@"  and the --user-data-dir

Last step is to Save and Quit the text editor