Tuesday, January 7, 2014

Install Kali Linux on a Chromebook using crouton (now with Sana & Kali-Rolling)!

Please read update 4 for Kali-Rolling Instructions!!

I recently purchased a Chromebook Pixel.  I was looking at different methods of installing Kali Linux, and realized the best way would be to fork David Schneider's project Crouton, and add Kali as a distro option.

The fork has been merged, and here is how you can install Kali in a chroot on a Chromebook using crouton.

1.  Download or compile the crouton executable to your chromebook.

Download crouton here.

2. Open a shell (CTL/ALT/T and type shell) and run the executable specifying Kali as the release.

sudo sh -e ~/Downloads/kalicrouton -r kali-rolling -t xfce

3. Enter some info at the prompts.

4. Type the following in a shell to enter Kali.

sudo enter-chroot startxfce4

Many other options are available, and it is well documented on the github page.

https://github.com/dnschneid/crouton


Update:  I've noticed some comments crouton's version of Kali not having tools installed.  This is by design, because most chromebooks only have 16GB hard drives.  To install any tools, just use apt-get install.

Example (to install metasploit):

sudo apt-get install metasploit-framework

Update 2: Wiki available now:  https://github.com/dnschneid/crouton/wiki/Kali


BitCoin Donations:  
13X2aQrRLJ4pxfK64bVgY1qv3sjoQ93h4s


Update 3:  I have a merge request in for Kali Sana.  A compiled version of my fork is available here:

Download crouton here.

Update 4: I've added a fix for the kali-rolling issue, but it will remain in my fork.  I don't think the crouton branch will ever merge it.  They want to keep netsurf as part of the package.

https://github.com/nromsdahl/crouton

Download here

To install, the command is:  sudo sh -e ~/Downloads/kalicrouton -r kali-rolling -t xfce

24 comments:

  1. Awesome thank you soo much. I hope you realize how much you helped me here. YOU ARE AWESOME!!!

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hello thanks for sharing.
    this is what I get
    sudo sh ~/Downloads/crouton -r kali -t kde -n kali
    Installing kali-amd64 chroot to /usr/local/chroots/kali
    Downloading latest debootstrap...
    Download from Debian gitweb failed. Trying latest release...
    2014-06-23 04:26:40 URL:http://ftp.debian.org/debian/pool/main/d/debootstrap/ [4417/4417] -> "-" [1]
    Downloading debootstrap version 1.0.60...
    2014-06-23 04:26:41 URL:http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.60.tar.xz [49612/49612] -> "-" [1]
    Downloading bootstrap files...
    W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
    I: Retrieving Release
    E: Failed getting release file http://http.kali.org/dists/stable/Release

    ReplyDelete
    Replies
    1. Are you using the most updated version of crouton?

      I don't think its the issue, but you should use xfce, like I state in the instructions.

      Delete
  4. I got it to work.
    the problem was I was behind a proxy
    but my next problem is I got a:
    AWUS036NHA ( AR9721 )
    but I am unable to get it work
    any suggestions?

    Thank you !

    ReplyDelete
    Replies
    1. I'm not sure, I haven't worked with USB and crouton very much. If I have a chance I will test a bit. It you get it to work, let me know how.

      Delete
  5. This comment has been removed by the author.

    ReplyDelete
  6. i am having the same problem that enjoy life had following what is happening:


    sudo sh ~/Downloads/crouton -r kali -t xfce -n kali
    Installing kali-amd64 chroot to /usr/local/chroots/kali
    Downloading latest debootstrap...
    2015-06-18 16:57:16 URL:http://anonscm.debian.org/gitweb/?p=d-i/debootstrap.git;a=snapshot;h=HEAD;sf=tgz [61841] -> "-" [1]
    Patching debootstrap...
    Downloading bootstrap files...
    W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
    I: Retrieving Release
    W: Retrying failed download of http://http.kali.org/dists/stable/Release
    I: Retrieving Release

    ReplyDelete
    Replies
    1. The ( STABLE ) Folder is missing on *http://http.kali.org/dists/stable/Release

      thats why it cant download.

      go to this site and see its missing http://http.kali.org/dists/
      once someone points us into the right folder then we can

      Delete
  7. I keep getting a "sh can't open /root/Downloads/crouton" error. I'm in localhost / #. Had anybody seen this or have any ideas? I've tried everything I can think of.

    ReplyDelete
  8. Is it possible to do on an Acer Chromebook? Just wondering.

    ReplyDelete
    Replies
    1. It should work on an acer chromebook just fine.

      Delete
  9. This comment has been removed by the author.

    ReplyDelete
  10. Hello, thanks for this guide! Have you tried using this to run Kali off a thumb drive or SD card on a chromebook? I was wondering because installing and running Kali on an SD card would allow you plenty of extra space to do a full install while not using any of the chromebook's traditionally limited 16GB hard drive.

    ReplyDelete
  11. Hey, thanks a ton for the tutorial. But how do I log in a root?

    ReplyDelete
    Replies
    1. Yeah... "sudo -s" in a terminal is what I use...

      Delete
    2. Yes, but when I open a tool, it doesn't automatically start in root. It will ask me if I am root.

      Delete
  12. Was wondering if this guide is still valid I am getting this error - any ideas how to fix?:

    EE)
    Fatal server error:
    (EE)
    Invalid argument for -logfile - "/tmp/Xorg.crouton.1.log"
    With elevated privileges -logfile must specify a relative path
    without any ".." elements.

    (EE)
    (EE)
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    (EE)
    /usr/bin/xinit: giving up
    /usr/bin/xinit: unable to connect to X server: Connection refused
    /usr/bin/xinit: server error
    Unmounting /mnt/stateful_partition/crouton/chroots/kali-rolling...

    ReplyDelete
    Replies
    1. I haven't tried for awhile, but think X server doesn't work anymore. You could try running without a GUI or via KIWI.

      On the crouton Wiki, kiwi is discussed.
      https://github.com/dnschneid/crouton/wiki/crouton-in-a-Chromium-OS-window-(xiwi)

      Delete
    2. I guess its XIWI not KIWI.... but check it out...cool way to run crouton with a GUI.

      Delete
  13. Pardon my overwhelming ignorance if this is indeed a stuid question(If it's brilliant, tho, I'd also like credit for that as well)
    Are we not to install the full metasploit framework via term with,
    curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall

    Thoughts?

    ReplyDelete