Created
December 15, 2013 23:21
-
-
Save taylor/7979765 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo dpkg --purge nano | |
| sudo apt-get -y install software-properties-common python-software-properties | |
| sudo add-apt-repository -y ppa:nviennot/tmate | |
| sudo add-apt-repository -y ppa:pi-rho/dev # tmux 1.8 | |
| sudo add-apt-repository -y ppa:keithw/mosh | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential checkinstall | |
| sudo apt-get install -y vim unzip git ctags pwgen tmate tmux mosh | |
| # Docker | |
| # - http://docs.docker.io/en/latest/installation/ubuntulinux/#ubuntu-raring | |
| sudo apt-get -y install linux-image-extra-`uname -r` | |
| wget -qO- https://get.docker.io/gpg | sudo apt-key add - | |
| echo "deb http://get.docker.io/ubuntu docker main" |tee sudo /etc/apt/sources.list.d/docker.list | |
| sudo apt-get update | |
| sudo apt-get install -y lxc-docker | |
| ## Pair user | |
| echo -n "Adding pair user... here is a password: " | |
| pwgen -sB 16 1 | |
| sudo adduser pair | |
| sudo usermod -aG sudo pair | |
| echo "Allow pair user to run sudo w/o a password by adding the follwing in sudoers" | |
| echo "%sudo ALL=(ALL) NOPASSWD: ALL" | |
| sleep 3 | |
| sudo visudo | |
| ## Taylor's vim setup | |
| echo "Run the following in the pair account to setup Taylor's vim" | |
| cat <<EOM | |
| mkdir -p ~/.vim/backup | |
| wget -O ~/.vim/vimrc https://raw.github.com/taylor/vimconfig/master/vimrc | |
| ln -s ~/.vim/vimrc ~/.vimrc | |
| wget -O ~/.vim/vimrc-statusline https://raw.github.com/taylor/vimconfig/master/vimrc-statusline | |
| vim -c :quit | |
| EOM | |
| echo "Run the following in the pair account to setup Taylor's tmux conf" | |
| cat <EOM | |
| curl -qs https://raw.github.com/taylor/dotfiles/master/.tmux.conf | tee -a .tmux.conf | |
| EOM | |
| ## Common dev libs | |
| sudo apt-get install -y libssl-dev | |
| sudo apt-get install -y libncurses5-dev | |
| ## Erlang | |
| # Needs libssl and libncurses | |
| # Kerl erlang builder | |
| # - https://github.com/spawngrid/kerl | |
| curl -o /usr/local/bin/kerl https://raw.github.com/spawngrid/kerl/master/kerl | |
| chmod +x /usr/local/bin/kerl | |
| kerl build R16B02 R16B02 | |
| kerl install R16B02 /opt/depot/erlang-r16b02 | |
| echo . /opt/depot/erlang-r16b02/activate | sudo tee -a /etc/profile.d/erlang.sh | |
| source /etc/profile.d/erlang.sh | |
| # https://github.com/rebar/rebar | |
| git clone git://github.com/rebar/rebar.git | |
| cd rebar | |
| ./bootstrap | |
| cp rebar /usr/local/bin | |
| ## Elixir | |
| # From https://github.com/elixir-lang/elixir/tags | |
| ver="v0.11.2" | |
| curl -Lko "elixir-${ver}.tar.gz" "https://github.com/elixir-lang/elixir/archive/${ver}.tar.gz" | |
| tar zxvf elixir-*.tar.gz | |
| cd elixir-* | |
| make | |
| make PREFIX=/opt/depot/elixir-${ver} install | |
| cd /opt/depot | |
| ln -s elixir-${ver} elixir | |
| echo 'export PATH=/opt/depot/elixir/bin:$PATH' | tee -a /etc/profile.d/elixirer.sh | |
| ## Dynamo | |
| cd /opt/depot | |
| git clone https://github.com/dynamo/dynamo.git dynamo-git | |
| mix do deps.get | |
| echo 'export MIX_PATH="$MIX_PATH:/opt/depot/dynamo-git/ebin"' | tee -a /etc/profile.d/dynamo.sh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment