Wednesday, February 8, 2012

How to run Google chrome as root in Debian based system (Ubuntu, BOSS, etc.)

1. Open /usr/bin/google-chrome in you favourite editor.

vim /usr/bin/google-chrome

2. Add this in last line "--user-data-dir" after this exec -a "$0" "$HERE/chrome" "$@"

eg: exec -a "$0" "$HERE/chrome" "$@" --user-data-dir

3. Restart your google-chrome and enjoy.