Thursday, August 30, 2012

how to run google chrome as root in ubuntu and redhat



How to run google chrome as root in ubuntu and rhel

Here given below shows you how to download install google chrome in ubuntu as well as in redhat

How to download and install google chrome in rhel
# vim /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome - 32-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386
enabled=1
gpgcheck=1
then save the file
# yum install google-chrome-stable
Then go to application>>internet>>google chrome
if you are opening as root then edit the configuration file
#vim /opt/google/chrome/google-chrome
at the end of the file you will found something like this in colour
exec-a “$0” “$HERE/chrome” “$@” --user-data-dir$Home
then save the file
go and open the google chrome

How to download and install google chrome in ubuntu
install google chrome from ubuntu software center
if you would like to open as root then edit the configuration file
#vim /usr/bin/chromium-browser
at the end of the config file add this coloured lines

exec $LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@" --user-data-dir
else
# we can't exec here as we need to clean-up the temporary profile
$LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@" --user-data-dir
rm -rf $TEMP_PROFILE
fi
fi

then save the file
then run the google chrome as root

No comments:

Post a Comment