Setting up a chromebook for development

Documenting my steps

Published March 30, 2019 #howto #chromebook #docker

I just switch my pixelbook back to the stable channel, and this is what I did to get back to developing on it.


  1. Open up settings
  2. Linux (Beta)
  3. Turn on
  4. Wait for it to download
  5. Startup the terminal app

Everything from here happens in the terminal app.

Configure git

git config --global ""
git config --global "Your Name"

Install Docker

Install docker the normal way

# Update debian
sudo apt-get update
sudo apt-get upgrade

sudo apt-get install \
     apt-transport-https \
     ca-certificates \
     curl \
     gnupg2 \

# Add the gpg key if it;s not there
curl -fsSL | sudo apt-key add -

# Add the docker repository
sudo add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \

# Update and add docker-ce
sudo apt-get update
sudo apt-get install docker-ce

# Install docker-compose
sudo curl -L "$(uname -s)-$(uname -m)" \
  -o /usr/local/bin/docker-compose

# Add yourself to the docker group if you aren't already
sudo groupadd docker
sudo usermod -aG docker $USER

Now you may need to shutdown the linux installation to make sure that your user is in the docker group.

  1. Alt-click on the terminal icon in the dock
  2. Select “Shutdown Linux (Beta)”
  3. Restart terminal
  4. Run docker run hello-world to test out the installation

Installing atom

cd /tmp
sudo apt-get install wget
mv deb atom.deb
sudo apt install ./atom.deb

Test out the installation using atom.

Installing SublimeText

sudo apt-get install wget
wget -qO - | sudo apt-key add -
echo "deb apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text

Test out the installation using subl

Installing nvm and node

curl -o- | bash
source ~/.profile
nvm install 10

Test out using node -v

Installing rbenv and ruby

sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev

curl -fsSL | bash
echo 'export PATH=$PATH:$HOME/.rbenv/bin' >> $HOME/.profile
echo 'eval "$(rbenv init -)"' >> $HOME/.profile
source ~/.profile
rbenv install 2.5.5
rbenv global 2.5.5

Test out using ruby --version

Installing go

cd /tmp
sudo tar -C /usr/local -xzf go1.12.1.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.profile
source ~/.profile

Test out using go version

Installing hugo

cd /tmp
git clone
cd hugo
go install

Installing Heroku Toolbelt

curl | sh

Test out using heroku login

Installing Google Cloud CLI

# Create environment variable for correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"

# Add the Cloud SDK distribution URI as a package source
echo "deb $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

# Import the Google Cloud Platform public key
curl | sudo apt-key add -

# Update the package list and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk

Test out using gcloud auth login

Installing Android Studio

  1. Visit
  2. Accept the terms in order to download
  3. Open up the Files app
  4. Drag into linux files
  5. In the terminal, unzip the file. (In my case unzip
  6. cd android-studio/bin
  7. ./

Installing ipfs

tar xzvf go-ipfs_v0.4.15_linux-amd64.tar.gz
cd go-ipfs
sudo ./

Test out using ipfs

Actually it’s all standard stuff

There’s nothing specifically Chromebook about this, but its easier for me to keep this all written down in one place.

Read next

See also

Setting up IPFS on a chromebook

Connecting to the world

Lets look at how to run an ipfs node on a chromebook. We are using the linux container for this, and in order to get the experience right we’ll need to install some chrome extensions to make it work seamlessly.

Read more

Getting firebase and grpc working under termux

firebase depends on grpc, which isn’t set to build right on the Chromebook. This is because node-pre-gyp, which is used to download precompiled binaries, is not setup correctly. In then uses node-gyp to compile the C++ bindings directly, which is also not setup correctly. We are going to adjust the settings of node-gyp to make it compile things right under termux, and then we are going to tweak the grpc package itself in our local cache to make it build correctly.

Read more

Image Manipulation in Firebase

its all javascript

We can manipulate images using JavaScript directly, which can be run both on the server or browser environment. Lets take a look at how we’d do this using create-react-app and firebase. We will deploy a function on firebase that will download the user’s avatar, manipulate the image and overlay it with a mask, and then spit out an image. Project Setup First make sure that you have nvm installed. We’ll need a different version of node for create-react-app then we will for firebase functions.

Read more