1/4/2016, updated 1/17/2016
#Configuring Chromebook for Development
After a full Sunday of trial and error, and stepping through many semi-complete or dated blog posts explaining how to do this, I was able to get the Chromebook into developer mode, install NodeJs, and install NPM.
Here's what I did...
- Enable Developer Mode
- Press
Esc-Refresh-Powerkeys which will reboot the Chromebook - When the warning screen comes up, press the
Ctrl-Dkeys - Confirm you want to turn "OS Verification off" by pressing the
Enterkey - Confirm you want to transition to dev mode by again pressing the
Ctrl-Dkeys - The system will reboot and you'll see the "Preparing system for Developer Mode" screen for 3-5 minutes.
- You'll be greeted with an "OS Verification is OFF" warning screen. This is the warning screen you'll see each time going forward after a reboot. Either wait 10 or so seconds for it to pass and goes into dev mode, or click
Ctrl-Dto bypass the message and go into dev mode. Pressing the space bar will result in OS verification being turned back on, which means all your dev customizations will be lost and the system will be powerwashed (aka - regressing to the factory reset). - Pick your WIFI and login using your Google account
- Open a terminal ("crosh")
- Open CROSH by pressing the
Ctrl-Alt-Tkeys - Launch GNU BASH by typing
shell
- Make the file system writable:
sudo /usr/share/vboot/bin/make_dev_ssd.sh --force --remove_rootfs_verification- Reboot the Chromebook (hold down the power key until it turns off, then turn press the power key to turn it on)
- Login as normal
- Make rootfs writeable
- Open CROSH (
Ctrl-Alt-T) then BASH (shell) sudo mount -o remount,rw /sudo mount -o remount,exec /mnt/stateful_partitionsudo mount -i -o remount,exec /home/chronos/user
- Open CROSH (
- Install Chromebrew (which also installs Ruby and Git)
wget -q -O - https://raw.github.com/skycocker/chromebrew/master/install.sh | bash.
- Download NodeJs
- Navigate to nodejs.org
- Download the latest stable version (for Linux x64)
- In the Files app, double click the zip (
.tar.gz) file to extract it
- Move the files out of the download folder and rename the folder
rm ~/Downloads/node-v4.2.4-linux-x64 ~/nodejs(change source directory name as needed)
- Make Node executable
cd ~/nodejs/binsudo chmod +x node
- Install NPM (it doesn't come with the Linux distro of Node)
curl -L https://npmjs.org/install.sh | sh
- Link the binaries
sudo ln -sf /home/chronos/user/nodejs/bin/node /usr/bin/nodesudo ln -sf /home/chronos/user/nodejs/bin/npm /usr/bin/npm
- Confirm all is good
- Type
node --versionto confirm NodeJs is installed properly - Type
npm --versionto confirm NPM is installed properly
###Sources Listed in order of primary sources first...
Not all heroes wear capes
but few extra things to add to make it slightly better
~/.bashrcand at the bottom add/sbin/rwso it runs the read/write permission automaticallysudo ln -sfin the bottom of the~/.bashrcjust addPATH=$PATH:/home/chronos/user/nodejs/binnodeandnpmfor younpm install -g. ~/.bashrcto have this take effect on the same terminal that you set this up