Skip to content

Instantly share code, notes, and snippets.

@denolfe
Last active August 19, 2022 21:19
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save denolfe/e458c7c1ce47a4db63ff190665089e6d to your computer and use it in GitHub Desktop.
Save denolfe/e458c7c1ce47a4db63ff190665089e6d to your computer and use it in GitHub Desktop.
Notes on setting up Pixelbook with Linux apps

Pixelbook Linux Setup

Chromebook Configuration

  • Enable Linux Apps
    • Open drawer in bottom right and click gear icon
    • Scroll down to find Linux Apps or Linux (Beta) and select TURN ON
    • After the install runs, you should have an application in ChromeOS called Terminal

Initial setup of container

sudo apt-get update

Generate new SSH Key

ssh-keygen -t rsa -b 4096 -C pixelbook
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
cat .ssh/id_rsa.pub
# Paste in GitHub/GitLab

Clone dotfiles

git clone git@github.com:denolfe/dotfiles.git ~/.dotfiles --recursive

Clone pixelbook-provision ansible repo

git clone git@gitlab.com:denolfe/pixelbook-provision.git
sudo apt-get install ansible -y
sudo ansible-playbook main.yml

Set Password

sudo passwd root

Change shell

sudo chsh -s $(which zsh)
sudo usermod -s `which zsh` `whoami`

Fix Timezone

sudo dpkg-reconfigure tzdata and select correct timezone

Nerd Font

Liberation Mono Nerd Font

  • Copy .ttf file to ~/.local/share/fonts
fc-cache -vf ~/.local/share/fonts
fc-list | grep Nerd # To verify
  • Add LiterationMono Nerd Font to VS Code

Applications

Konsole

sudo apt-get install konsole -y

VS Code

curl -L https://go.microsoft.com/fwlink/?LinkID=760868 > code.deb
sudo apt-get install libxss1 libasound2 ./code.deb

Slack

  • Download latest .deb from https://slack.com/downloads
  • sudo dpkg -i slack-desktop-*-amd64.deb
    • This step will fail
  • sudo apt-get install -f will succeed in installing slack
  • Slack icon will now be in drawer
  • Slack timezone still not showing correctly despite the timezone being set in the app. Must investigate if this needs to be changed in debian to fix.

Docker

curl -L https://gist.githubusercontent.com/upbeta01/3b968320b3a579c326ab6cd2a195b10d/raw/196eb33a6e4b5ef9abae98d9e221ebd62a61fd65/install-docker-deb9.sh | bash

.NET Core

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/debian/9/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list

sudo apt-get update
sudo apt-get install dotnet-sdk-2.1

Node.js

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
nvm install node    # Installs latest
nvm install --lts
node -v # Ensure intended version

MongoDB

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment