Skip to content

Instantly share code, notes, and snippets.

@brandonroberts
Last active November 27, 2019 02:50
Show Gist options
  • Save brandonroberts/38e267b1c17d719e68c7558fb9226693 to your computer and use it in GitHub Desktop.
Save brandonroberts/38e267b1c17d719e68c7558fb9226693 to your computer and use it in GitHub Desktop.
Chromebook Scripts
# deps
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install nano git-core build-essential chromium
# git config
git config --global user.name "Brandon"
git config --global user.email "robertsbt@gmail.com"
# ssh
ssh-keygen -t rsa -b 4096 -C "robertsbt@gmail.com"
# pub key
cat ~/.ssh/id_rsa.pub
# GitHub SSH keys
https://github.com/settings/keys
# nvm install
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
source ~/.bashrc
nvm install 12
# yarnpkg
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install --no-install-recommends yarn=1.19.0-1
# vscode
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install code # or code-insiders
# Backup container files in case crostini is broken
# Remember SSH keys!
https://www.reddit.com/r/Crostini/comments/b6ogmj/740372938_rolling_out_to_beta_channel_march_28/ejvs8f1/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment