Skip to content

Instantly share code, notes, and snippets.

@tonyhb
Last active February 23, 2018 00:29
Show Gist options
  • Save tonyhb/c78c953b900f3a9eb63ddb4fc8686a0b to your computer and use it in GitHub Desktop.
Save tonyhb/c78c953b900f3a9eb63ddb4fc8686a0b to your computer and use it in GitHub Desktop.
Debian machine setup
# Install kernel 4.14
echo 'deb http://http.debian.net/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
sudo apt-get update
sudo apt-get -t stretch-backports install linux-image-amd64
# Install Docker
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
build-essential
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get -y install docker-ce
sudo usermod -aG docker vagrant
curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
# Install ZSH
sudo apt-get install zsh
wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
# Keychain for ssh-agent
sudo apt-get install keychain
echo 'eval `keychain --eval --agents ssh id_rsa`' >> ~/.zshrc
# Tmux
wget -O ~/.tmux.conf https://raw.githubusercontent.com/tonyhb/dotfiles/master/.tmux.conf
sudo apt-get install tmux
# Go
wget https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.10.linux-amd64.tar.gz
mkdir -p ~/.go/{src,bin,pkg}
echo 'export GOPATH=~/.go' >> ~/.zshrc
echo 'export PATH=$PATH:/usr/local/go/bin:~/.go/bin' >> ~/.zshrc
# Nvim (not dockerized)
sudo apt-get update && sudo apt-get install cmake pkg-config libtool libtool-bin automake unzip python3
git clone [email protected]:neovim/neovim.git ~/neovim
cd ~/neovim && make && sudo make install
# FZF
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
(edit /etc/passwd default login shell to /usr/bin/zsh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment