Skip to content

Instantly share code, notes, and snippets.

@kaedroho
Last active August 29, 2015 14:01
Show Gist options
  • Save kaedroho/43f0d1894c7c4a150343 to your computer and use it in GitHub Desktop.
Save kaedroho/43f0d1894c7c4a150343 to your computer and use it in GitHub Desktop.
# Update apt
sudo apt-get update -y
# Install base packages
sudo apt-get install vim git build-essential sqlite3 screen -y
# Git config
git config --global user.name "Karl Hobley"
git config --global user.email karlhobley10@gmail.com
# Python
sudo apt-get install python-dev python-setuptools -y
sudo easy_install pip
# Virtualenv
sudo pip install virtualenv
# Python 3
sudo apt-get install libncurses-dev liblzma-dev libgdbm-dev libsqlite3-dev libbz2-dev tk-dev libreadline6-dev -y
wget https://www.python.org/ftp/python/3.4.0/Python-3.4.0.tgz
tar -xvf Python-3.4.0.tgz
cd Python-3.4.0
./configure
make
sudo make install
cd ..
# NodeJS
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
tar -xvf node-v0.10.28.tar.gz
cd node-v0.10.28
./configure
make
sudo make install
cd ..
# Vagrant
sudo apt-get install virtualbox -y
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.1_x86_64.deb
sudo dpkg -i vagrant_1.6.1_x86_64.deb
# Sublime text
wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2
tar -xvf Sublime\ Text\ 2.0.2\ x64.tar.bz2
sudo mv Sublime\ Text\ 2/ /opt/sublime-text-2/
sudo ln -s /opt/sublime-text-2 /usr/local/sublime-text-2
sudo ln -s /usr/local/sublime-text-2/sublime_text /usr/local/bin/sublime_text
# Sublime text config
mkdir -p ~/.config/sublime-text-2/Packages/User
cd ~/.config/sublime-text-2/Packages/User
cat << EOF > Preferences.sublime-settings
{
"ensure_newline_at_eof_on_save": true,
"translate_tabs_to_spaces": true
}
EOF
# Sublime text plugins
cd ~/.config/sublime-text-2/Packages
git clone git://github.com/danro/LESS-sublime.git LESS
git clone https://github.com/Xavura/CoffeeScript-Sublime-Plugin.git CoffeeScript
# Replace Geany with Sublime text
sudo apt-get remove geany -y
sudo ln -s /usr/local/bin/sublime_text /usr/local/bin/geany
# Set Vim as default command line editor
cat << EOF >> ~/.bashrc
VISUAL=vim; export VISUAL
EDITOR=vim; export EDITOR
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment