Skip to content

Instantly share code, notes, and snippets.

@gsf
Last active July 31, 2017 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsf/5377654 to your computer and use it in GitHub Desktop.
Save gsf/5377654 to your computer and use it in GitHub Desktop.
Dev Chromebook
  1. Switch the Chromebook to developer mode.

  2. Download crouton.

  3. Create a chroot for a CLI environment.

crosh> shell
chronos@localhost /$ sudo sh -e ~/Downloads/crouton -t cli-extra
  1. Answer at the prompts and finish the Ubuntu install.

  2. Enter the chroot and set up ssh.

chronos@localhost /$ sudo enter-chroot
gsf@localhost:~$ sudo apt-get install ssh
Reading package lists... Done
...
gsf@localhost:~$ ssh-keygen -f ~/Downloads/id_rsa
Generating public/private rsa key pair.
...
gsf@localhost:~$ cat ~/Downloads/id_rsa.pub > ~/.ssh/authorized_keys
gsf@localhost:~$ sudo /etc/init.d/ssh start
 * Starting OpenBSD Secure Shell server sshd
  1. Add Secure Shell (hterm) and Crosh Window to Chrome. Create a connection for localhost, importing id_rsa and id_rsa.pub from Downloads for the identity.

  2. Log in and apt-get away! See dnschneid/crouton#115 for setting up Screen and https://github.com/dnschneid/crouton/wiki#backups for making a backup once it's set up nice like you like it. You can also add /etc/init.d/ssh start to /etc/rc.local so it starts on enter-chroot.

  3. For compiling Node.js, install libssl-dev and use ./configure --shared-openssl --without-snapshot. See nodejs/node-v0.x-archive#5180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment