Skip to content

Instantly share code, notes, and snippets.

@camme
Last active October 24, 2018 21:03
Show Gist options
  • Save camme/0f14d71895f031120b48d3d7f3acc3a2 to your computer and use it in GitHub Desktop.
Save camme/0f14d71895f031120b48d3d7f3acc3a2 to your computer and use it in GitHub Desktop.
First installs for a new raspberry pi
sudo apt-get update
sudo apt-get install vim tmux -y
# DOCKER
sudo apt install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
# Get the Docker signing key for packages
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
# Add the Docker official repos
echo "deb [arch=armhf] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list
sudo groupadd docker
sudo gpasswd -a $USER docker
newgrp docker
sudo systemctl enable docker
sudo systemctl start docker
sudo apt install -y python python-pip
# Install Docker Compose from pip
sudo pip install docker-compose
# FIX LOCALS
sudo apt-get install locales
sudo dpkg-reconfigure locales # remember to add en_US UTF_8 locales!
# VIM VUNDLE
sudo apt install -y git
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment