Last active
October 17, 2015 01:20
-
-
Save lordkebab/9297fa72bb74573d14fb to your computer and use it in GitHub Desktop.
Install software that I need on a new Linux box
This file contains 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
#!/bin/bash | |
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
# unbox.sh | |
# | |
# Bootstrap a new Linux machine, fresh out of the box. | |
# | |
# Usage: | |
# Run as your user. You will be prompted for your password so it can sudo, | |
# and then the script will continue as normal. | |
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
THIS_USER=$(whoami) | |
# google chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
# set up docker source | |
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" >> /etc/apt/sources.list.d/docker.list' | |
# update sources and get the software I want | |
# (build-essential will be installed as a dependency somewhere in this chain) | |
sudo apt-get update | |
sudo apt-cache policy docker-engine # for docker | |
sudo apt-get install -y curl git python-pip wvdial google-chrome-stable docker-engine | |
# add our user to the docker group | |
sudo usermod -aG docker $THIS_USER | |
# virtualenv | |
sudo pip install virtualenv | |
# clone some of my repos and setup git | |
cd $HOME/Documents && \ | |
git clone https://github.com/mattselph/pywot.git && git clone https://github.com/mattselph/Dockerfiles | |
git config --global user.email "matt.selph@gmail.com" | |
git config --global user.name "Matt Selph" | |
# setup wvdial | |
cd /tmp ; git clone https://gist.github.com/5614cf733858cc022961.git | |
sudo mv 5614cf733858cc022961/wvdial.conf /etc | |
# node.js (latest LTS release) | |
sudo curl https://nodejs.org/dist/v4.2.1/node-v4.2.1-linux-x64.tar.gz > /tmp/node.tar.gz | |
cd /tmp ; sudo tar -xvzf node.tar.gz | |
sudo mv /tmp/node-v4.2.1-linux-x64 /opt | |
sudo ln -s /opt/node-v4.2.1-linux-x64/bin/node /usr/bin/node | |
sudo ln -s /opt/node-v4.2.1-linux-x64/bin/npm /usr/bin/npm | |
# sublime text 3 | |
sudo curl http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3083_amd64.deb > /tmp/sublime-text.deb && sudo dpkg -i /tmp/sublime-text.deb | |
# this saves me some typing | |
cd ; ln -s Documents/ docs | |
echo | |
echo | |
echo ++++++++++++++++++++++++++++++++++++++++++++++ | |
echo Enjoy! | |
echo ++++++++++++++++++++++++++++++++++++++++++++++ | |
echo | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment