Continued from How to Install Google Chrome inward Kali Linux? – Part 2 – Installation
Running Google Chrome inward Kali Linux
You convey follow choices to run Google Chrome inward Kali Linux:
- Run Google Chrome equally a Standard user inward Kali Linux
- Create a Standard non-root user together with run Google Chrome – See How to add together take user (standard user/non-root) inward Kali Linux?
- Run Google Chrome equally Root user inward Kali Linux
- By modifying /opt/google/chrome/google-chrome file
- Run Google Chrome equally Standard User (while Logged inward equally root) in Kali Linux
- Run Google Chrome using gksu
- Run Google Chrome using sux
Of these three options, 1 is the secure most, but somewhat beats the role of using Kali Linux inward the offset place. Option 2 is somewhat a safety risk, but together with thus again, you’re likely running IceWeasel/Firefox/Opera together with who knows what browser already spell signed into your Google account.
Option three is likely the best manner to larn near it.
So let’s larn on alongside it:
Run Google Chrome equally a Standard user inward Kali Linux
This is self explanatory.
- Install Google Chrome inward Kali Linux yesteryear next either of the choices from this previous post: How to Install Google Chrome inward Kali Linux? – Part 2 – Installation
- Create a Standard user yesteryear next this previous post: How to add together take user (standard user/non-root) inward Kali Linux?
- Login equally your measure user together with run Google Chrome inward Kali Linux
Pros:
- Secured, your measure user (as long it doesn’t convey sudo access) wont live able to mess upward your system.
- You tin allow a minute user to Google Chrome alongside with arrangements.
Cons:
- Beats the role of using Kali Linux, Kali was meant to live run equally root user.
- Quite annoying switching betwixt users.
- We convey improve options available.
Now yous tin run Google Chrome inward Kali Linux equally Standard user.
Run Google Chrome equally Root user inward Kali Linux
This is the minute manner of running Google Chrome inward Kali Linux. Many volition convey dissimilar views whether it’s a skilful thought to run equally root, but you’re likely running IceWeasel/Firefox/Opera together with who knows what browser already spell signed into your Google account. So I’ll leave of absence the judgment upto yous whether this is what yous desire to exercise or not!
Edit required file
leafpad /opt/google/chrome/google-chrome
Go to the cease of the file together with uncovering this next line:
exec -a "$0" "$HERE/chrome" "$@"
Add -user-data-dir string
Add –user-data-dir at the cease of that line. So the novel business would await similar this:
Save together with unopen the file.
Now yous tin run Google Chrome from Application > Internet > Google Chrome in Kali Linux equally root user.
Run Google Chrome equally Standard User (while Logged inward equally root) in Kali Linux
We tin run Google Chrome equally Standard User (while Logged inward equally root) in Kali Linux inward 2 dissimilar ways:
- Run Google Chrome using gksu
- Run Google Chrome using sux
For both options nosotros require to exercise a measure user.
Add a non-root measure user:
useradd -m chromeuser
Note: It is really of import that yous utilization the -m flag. It creates habitation directory for the novel user which is required to run Google Chrome inward Kali Linux. You tin follow this guide for a amount explanation on how to add/delete a measure user inward Kali Linux: How to add together take user (standard user/non-root) inward Kali Linux?
Run Google Chrome using gksu
gksu is a frontend to su together with gksudo is a frontend to sudo. Their principal role is to run graphical commands that require source without the require to run an X lastly emulator together with using su directly.
To run Google Chrome inward Kali Linux equally a Standard non-root user (while logged inward equally root) using gksu, type inward the next ascendancy inward lastly window:
gksu -u chromeuser google-chrome
and Voila! yous convey Google Chrome running inward Kali Linux (while logged inward equally root).
Note: gksudo doesn’t operate spell logged inward equally root.
You’ll larn this error: (gksudo:19376): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed
Run Google Chrome using sux
sux is a wrapper but about the measure su ascendancy which volition transfer your X credentials to the target user. This is a much improve together with cleaner choice to run a computer programme equally a dissimilar user inward X spell logged inward equally another. To run Google Chrome inward Kali Linux type inward the next inward lastly window:
sux chromeuser google-chrome
and yous convey Google Chrome running inward root X alongside non-root user (chromeuser) permission.
Question: How exercise yous know Google Chrome is running equally non-root when using gksu or sux?
Excellento! Nice question!
This is how yous know Google Chrome inward Kali Linux is non running equally source user when using gksu or sux.
Type inward the next inward terminal:
ps ef | grep google-chrome
See Google Chrome is running equally UID thou inward my machine, which is the novel non-root user (chromeuser).
Here’s some other manner yous tin check
ps aux | grep google-chrome
As yous tin run across nosotros convey similar outputs.
That ends this three serial guide on How to Install Google Chrome inward Kali Linux, discussion, installation together with running Chrome. Hope you’ve enjoyed reading this guide equally much I’ve enjoyed writing it. Please comment alongside feedback together with cheers ane time again for visiting us.
From comments section: Thanks to Nabil Lion.
Second solution:
Edit the next file
leafpad /opt/google/chrome/google-chrome
Find exec -a “$0″ “$HERE/chrome” “$@”
change equally exec -a “$0″ “$HERE/chrome” “$@” –user-data-dir ”/root/.config/google-chrome”
Save together with move out file.
Thanks for reading. Please share.






