Skip to content

Instantly share code, notes, and snippets.

@dudewheresmycode
Last active October 23, 2020 17:07
Show Gist options
  • Save dudewheresmycode/cf7d5ec07d6f493e01933b5909b03865 to your computer and use it in GitHub Desktop.
Save dudewheresmycode/cf7d5ec07d6f493e01933b5909b03865 to your computer and use it in GitHub Desktop.

Enable Developer Mode

  1. Turn on holding reset button with paperclip.
  2. Press Ctl-D at recovery screen.
  3. Press reset button again with paperclip. (Should reboot)
  4. ... Wait for 2 beeps (It will take a min.) After beeps. Wait for developer mode to install. (~5-10 min)

http://www.itea.dk/index.php/2017/01/06/wipe-clear-reset-a-chromebit/

Open Terminal

Ctl-Alt-T

shell

Install chromebrew

wget -q -O - https://raw.github.com/skycocker/chromebrew/master/install.sh | bash

or

curl -Ls git.io/vddgY -o install.sh && yes | bash install.sh

https://medium.com/@dihuta/chromebrew-crew-chromeos-package-manager-a91e56a3d898

Install nodejs

crew install node

https://medium.com/@dihuta/install-nodejs-on-chromebook-c17677874d81

Unlock Read-Only Filesystem

sudo crossystem dev_boot_signed_only=0
sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 4

http://www.chromium.org/chromium-os/poking-around-your-chrome-os-device

Setup SSH

  1. Run ssh setup script from ChromeOS
/usr/libexec/debugd/helpers/dev_features_ssh
  1. Add your public keys to ~chronos/.ssh/authorized_keys file.

  2. You should now be able to log in via ssh.

ssh chronos@yourmachine

https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/master/chromeos-base/chromeos-sshd-init/files/openssh-server.conf.README https://www.dereckson.be/blog/2015/01/15/chromebook-run-a-ssh-server-on-chrome-os/

Setup Remote Chrome Debugging

sudo /usr/libexec/debugd/helpers/dev_features_chrome_remote_debugging

To get binaries to execute:

Run:

sudo mount -o remount,rw -io exec /home/chronos/user/

or change the directory to where you're trying to execute the file.

Note: If you get an error like mount: /home/chronos/user/Downloads not mounted or bad option, remove the last directory from the command (in this case /Downloads) and try again. Keep removing until it works.

Note: If you get an error like When remounting eCryptfs, you need to pass the mount utility the -i parameter to avoid calling the mount helper, change the -o exec to -io exec. (I had to use the latter, hence the io in the command above.)

https://superuser.com/questions/1264615/permission-denied-on-chromebook-even-with-sudo/1264616

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