Skip to content

Instantly share code, notes, and snippets.

@zackdever
Created June 4, 2012 22:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackdever/2871361 to your computer and use it in GitHub Desktop.
Save zackdever/2871361 to your computer and use it in GitHub Desktop.
Rough setup script to install my development tools for Ubuntu 12.04
#!/bin/sh
###
# A dirty script to roughly set up a development
# environment on a fresh Ubuntu install.
#
# This was built targeting Ubuntu 12.04 x64.
###
#TODO: fix root ownership issue on ~/.vim/ and others
#TODO: postgresql
#TODO: sqlite
#TODO: global gitignore
#TODO: guake terminal
### BUGS
# mongoDB is busted, see note there
# do that first big update and upgrade
echo "updating and upgrading before we start ..."
apt-get update
apt-get upgrade
# restricted extras
echo "installing rescrited extras"
apt-get install ubuntu-restricted-extras
# some basic tools
echo "basic tools - vim, ssh, vlc, build-essentials, curl, unzip"
apt-get install vim
apt-get install ssh
apt-get install vlc
apt-get install build-essentials
apt-get install curl
apt-get install unzip
# chromium with extras
echo "installing chromium codecs"
apt-get install chromium-codecs-ffmpeg-extra
# git
echo "installing git tools"
apt-get install git-core git-gui git-doc
# install hub for github
#TODO: https://github.com/defunkt/hub
# python - pip, virtualenv, virtualenvwrapper
echo "python tools, setup virtualenv, etc."
apt-get install python-pip
pip install ipython
pip install virtualenv
pip install virtualenvwrapper
echo '' >> ~/.bashrc
echo '# virtualenv' >> ~/.bashrc
echo 'export WORKON_HOME=$HOME/.virtualenvs' >> ~/.bashrc
echo 'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.bashrc
echo 'export PIP_VIRTUALENV_BASE=$WORKON_HOME' >> ~/.bashrc
echo 'export PIP_RESPECT_VIRTUALENV=true' >> ~/.bashrc
source ~/.bashrc
# node
echo "installing node, npm"
apt-get install python-software-properties
apt-add-repository ppa:chris-lea/node.js
apt-get update
apt-get install nodejs npm
apt-get install nodejs-dev
# java
echo "installing oracle java7"
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java7-installer
# dropbox
echo "installing dropbox"
apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E
add-apt-repository "deb http://linux.dropbox.com/ubuntu $(lsb_release -sc) main"
apt-get update && apt-get install nautilus-dropbox
apt-get install python-gpgme
# eyecandy
echo "eye candy - compiz, gloobus preview, sushi, ubuntu-tweak, myunity"
add-apt-repository ppa:tualatrix/ppa
add-apt-repository ppa:gloobus-dev/gloobus-preview
apt-get update
apt-get install ubuntu-tweak myunity
apt-get install gloobus-preview gloobus-sushi
apt-get install compiz
apt-get install compizconfig-settings-manager
# Processing
echo "installing Processing, installing icons, play nice"
cd /opt/
wget http://processing.googlecode.com/files/processing-1.5.1-linux.tgz
tar xvf processing-1.5.1-linux.tgz
rm processing-1.5.1-linux.tgz
mkdir ~/sketchbook/
mkdir ~/sketchbook/libraries/
cd processing-1.5.1/
ln -s processing /usr/bin/p5
wget https://raw.github.com/gist/2870954/185c1add3d1e7501a7061dff3f736a9e3281a965/p5.desktop
mv p5.desktop /usr/share/applications/processing.desktop
wget http://blog.boreal-kiss.net/wp/wp-content/uploads/2008/11/p_icon_01.png
mv p_icon_01.png /opt/processing-1.5.1/icon.png
# OpenNI
echo "installing x64 OpenNI, NITE, and Kinect Sensor"
cd ~/Downloads/
wget http://simple-openni.googlecode.com/files/OpenNI_NITE_Installer-Linux64-0.27.zip
unzip OpenNI_NITE_Installer-Linux64-0.27.zip
cd OpenNI_NITE_Installer-Linux64-0.27/
cd OpenNI-Bin-Dev-Linux-x64-v1.5.4.0/
./install.sh
cd ../NITE-Bin-Dev-Linux-x64-v1.5.2.21/
./install.sh
cd ../kinect/Sensor-Bin-Linux-x64-v5.1.2.1/
./install.sh
cd ~/
# SimpleOpenNI
echo "installing SimpleOpenNI"
cd ~/Downloads/
wget http://simple-openni.googlecode.com/files/SimpleOpenNI-0.27.zip
unzip SimpleOpenNI-0.27.zip
cp SimpleOpenNI ~/sketchbook/libraries/. -r
# ruby, at least enough to get vim support
echo "installing enough ruby to get vim support"
apt-get install vim-nox
apt-get install vim-rails
# mongoDB
echo "installing and starting mongoDB"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
#TODO: BUG: the below gives a permission denied error even when running sudo
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" > /etc/apt/sources.list.d/10gen.list
sudo apt-get update
sudo apt-get install mongodb-10gen
sudo service mongodb start
# vundle for vim
echo "configuring vim with vundle and zever's .vimrc gist"
apt-get install ack-grep
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
cd ~/
wget https://raw.github.com/gist/1236659/d4fc0e39fd3c453b5bace7f93c9cd4453558b463/.vimrc
vim +BundleInstall +qall
# setup git
echo "Configure git..."
echo "Please enter your first and last name"
read name
git config --global user.name "$name"
echo "Please enter your email"
read email
git config --global user.email "$email"
echo "You'll probably want to set up SSH so you don't type your password..."
echo "see http://help.github.com/articles/generating-ssh-keys"
echo "DONE!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment