How to run google chrome on kali linux

How to run google chrome on Kali Linux

  1. cd /opt/google/chrome
  2. Launching chrome simply will not work because in Kali linux we are the root user, chrome wants us to be another user. So launch it like this First make a directory for the chrome user storage mkdir /root/chrome
    Then start it like this: ./chrome --user-data-dir /root/chrome &
    The & so that we can continue using the shell while chrome is open.
  3. Anyhow close chrome and lets setup the shortcuts and alias. By now /opt/google/chrome is not on your PATH so just typing chrome from anywhere wont launch it. Easy fix set an alias or a symlink.
    First though lets make a start script for step 8 to always happen
    cd /opt/google/chrome touch startchrome.sh chmod +x startchrome.sh vim startchrome.sh
  4. In the script just put this:
    /opt/google/chrome --user-data-dir /root/chrome &
  5. Now make the alias - but we wont go that way because we will also need to make that permanent in /root/.bashrc and thats a bigger hassle then the next symlink method:
    alias chrome=/opt/google/chrome/startchrome.sh
    Or make the symlink:
    ln -s /opt/google/chrome/startchrome.sh /usr/local/bin/chrome
  6. Now to make the desktop shortcut, this app comes with Kali linux but double check
    apt-get install gnome-panel gnome-desktop-item-edit /root/Desktop/ --create-new
  7. Now Leave the type as Application and set the Name to "Chrome" and the Command type out or browse to /opt/google/chrome/startchrome.sh and hit OK

 

Comments