Thursday, 25 April 2013

How to install Google Chrome in Kali Linux?

OS: Kali Linux 1.0.4

Note: Before you proceed make sure to keep your kali linux up-to date. Please run apt-get update and then apt-get upgrade from the terminal.

1. Open IceWeasel Browser and goto www.google.com and click on Install Google Chrome on the above right panel of the box. You can also goto www.google.com/chrome to download Google Chrome.


2. Click on Download Chrome


3. Select the option to download package. As Kali is built on Debian package so you can select 32 bit .deb or 64 bit .deb(depending upon the type of platform Kali Linux install). I have 32 bit Kali Linux installed in my laptop, so I chose 32 bit .deb (For Debian/Ubuntu).


4. Choose the location to save google chrome package.



5. Open Terminal window (make sure you have a privilege of a root user) and goto the directory of the downloaded file "google-chrome-stable_current_i386.deb".


6. Run dpkg -i google-chrome-stable_current_i386.deb from the root terminal window.



7. Once setup, you need to add it to Menu. Go to ;
Applications -> Accessories -> Main Menu


8. Click on the Internet icon on the left hand panel, and click the ‘New Item’ button on the right.


9. On the next pop-up window, add the information as
 Name: Google Chrome
 Command: google-chrome

and click OK


10. When you are trying to run Chrome from the menu, you will get an error message pops up advising unable to run as root. So, to run as root you must specify an alternate --user-data-dir for storage of profile information.



11. To do that, navigate the file

Computer -> File System -> opt -> google -> chrome

Open the file google-chrome in a text editor and goto the last line;

add --user-data-dir, next to exec -a “$0″ “$HERE/chrome”  “$@”
Save the file and exit from text editor


12. Now open Applications -> Internet -> Google Chrome and you are good to go.