Skip to content

Instantly share code, notes, and snippets.

@don-smith
Last active August 24, 2016 05:11
Show Gist options
  • Save don-smith/d9052c6104f826ba518ffa22f431895f to your computer and use it in GitHub Desktop.
Save don-smith/d9052c6104f826ba518ffa22f431895f to your computer and use it in GitHub Desktop.
How I treat each new Linux box I appropriate

My Debian Setup Guide

Config

  • su
  • adduser sudo don
  • Log out and back in

Install

  • Lastpass Firefox extension
  • Development and utility packages
    • sudo apt-get install libtool libtool-bin autoconf automake cmake g++ pkg-config unzip git-core build-essential xclip
  • GitHub
  • Dotfiles
    • mkdir ~/projects && cd ~/projects && git clone [email protected]:locksmithdon/dotfiles.git
    • cd dotfiles && ./link
  • Zsh
    • sudo apt-get install zsh curl
    • Log out and back in
    • chsh -s $(which zsh)
  • Oh-My-Zsh
    • curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
  • Tmux
    • gcl https://github.com/libevent/libevent.git ~/repos/libevent && cd ~/repos/libevent
    • Make sure we're on the 2.0 branch of libevent
    • ./autogen.sh && ./configure && make && sudo make install
    • gcl https://github.com/tmux/tmux.git ~/repos/tmux && cd ~/repos/tmux
    • ./autogen.sh && ./configure && make && sudo make install
    • mkdir -p ~/.tmux/plugins
    • gcl https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
    • Restart the terminal
    • tmux source-file ~/.tmux.conf
    • Ctrl-b I to install the tmux plugins
  • NeoVim
    • gcl https://github.com/neovim/neovim.git ~/repos/neovim
    • make && sudo make install
    • curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    • nvim +PluginInstall +qall
    • nvim +UpdateRemotePlugins +qall
  • Python
    • sudo apt-get install python-pip python-dev python3-pip python3-dev
    • sudo pip install --upgrade setuptools
    • sudo pip3 install --upgrade setuptools
  • Powerline
    • pip install powerline-status
    • gcl https://github.com/powerline/fonts.git ~/repos/powerline-fonts
    • ~/repos/powerline-fonts/install.sh
  • Node.js
    • curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.6/install.sh | bash
    • Restart the terminal
    • nvm install 6
    • nvm alias default 6
  • Ruby
    • wget -O ruby-install-0.6.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.6.0.tar.gz
    • tar -xzvf ruby-install-0.6.0.tar.gz
    • cd ruby-install-0.6.0/
    • sudo make install
    • wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz
    • tar -xzvf chruby-0.3.9.tar.gz
    • cd chruby-0.3.9/
    • sudo make install
    • ruby-install to see a list of versions
    • ruby-install ruby 2.x.x
    • chruby ruby-2.x.x
  • Docker
    • apt-get update
    • apt-get install apt-transport-https ca-certificates
    • apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    • sudo bash -c echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list
    • sudo apt-get update
    • sudo apt-get install docker-engine
    • sudo service docker start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment