Created
February 22, 2015 15:39
-
-
Save jleo3/2ead167ee82ece117975 to your computer and use it in GitHub Desktop.
Fresh development config for Ubuntu 14.04 LTS
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
#! /usr/bin/env bash | |
set -o errexit | |
sudo apt-get update && sudo apt-get upgrade | |
install="sudo apt-get install -y -q" | |
update="sudo apt-get update -q" | |
# setup install directory | |
mkdir -p /tmp/install | |
INSTALL_DIR=/tmp/install | |
# basics for usability | |
${install} \ | |
gnome-do gnome-do-plugins \ | |
gnome-tweak-tool \ | |
gcolor2 \ | |
keepassx \ | |
msttcorefonts \ | |
istanbul | |
# chromium | |
if [[ `which google-chrome` == "" ]] ; then | |
gnome-open https://www.google.com/intl/en/chrome/browser/beta.html | |
fi | |
# basics for development | |
${install} \ | |
git-core gitk subversion \ | |
build-essential valgrind \ | |
vim autocutsel puppet-el \ | |
postgresql postgresql-client postgresql-contrib libpq-dev \ | |
sqlite3 libsqlite3-dev \ | |
openjdk-7-jdk \ | |
silversearcher-ag \ | |
ack-grep \ | |
curl wget \ | |
libcurl4-gnutls-dev \ | |
cmake autoconf libtool \ | |
python-dev \ | |
imagemagick \ | |
libmagickwand-dev \ | |
libpcre++0 libpcre++-dev libevent-dev \ | |
libssl-dev libcrypto++-dev \ | |
libreadline-dev \ | |
libxml2 libxml2-dev libxslt1.1 libxslt-dev \ | |
libyajl-dev libyaml-dev \ | |
vim-gnome \ | |
qt5-default \ | |
node npm \ | |
shutter \ | |
libqt5webkit5-dev \ | |
colordiff \ | |
zip | |
mkdir -p $HOME/dev | |
mkdir -p $HOME/dev/go | |
# HEROKU TOOLBELT | |
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh | |
# PHANTOMJS | |
${install} \ | |
g++ flex bison gperf perl \ | |
libfontconfig1-dev libicu-dev libfreetype6 \ | |
libpng-dev libjpeg-dev | |
cd $INSTALL_DIR && git clone git://github.com/ariya/phantomjs.git | |
cd $INSTALL_DIR/phantomjs && git checkout 2.0 | |
$INSTALL_DIR/phantomjs/build.sh | |
# BASH IT | |
git clone https://github.com/revans/bash-it.git ~/.bash_it | |
~/.bash_it/install.sh | |
# RUBY | |
# install ruby-install: | |
wget -O $INSTALL_DIR/ruby-install-0.4.3.tar.gz https://github.com/postmodern/ruby-install/archive/v0.4.3.tar.gz | |
cd $INSTALL_DIR && tar -xzvf ruby-install-0.4.3.tar.gz | |
cd $INSTALL_DIR/ruby-install-0.4.3/ && sudo make install | |
rm -rf $INSTALL_DIR/ruby-install* | |
# install chruby: | |
wget -O $INSTALL_DIR/chruby-0.3.8.tar.gz https://github.com/postmodern/chruby/archive/v0.3.8.tar.gz | |
cd $INSTALL_DIR && tar -xzvf chruby-0.3.8.tar.gz | |
cd $INSTALL_DIR/chruby-0.3.8/ && sudo make install | |
rm -rf $INSTALL_DIR/chruby* | |
# install ruby | |
ruby-install ruby 2.1.5 | |
source /usr/local/share/chruby/chruby.sh | |
chruby 2.1.2 | |
gem install bundler | |
# GOLANG | |
cd $INSTALL_DIR && wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf $INSTALL_DIR/go1.4.2.linux-amd64.tar.gz | |
# REDIS | |
# install redis | |
wget -O $INSTALL_DIR/redis-stable.tar.gz http://download.redis.io/redis-stable.tar.gz | |
cd $INSTALL_DIR && tar xvzf redis-stable.tar.gz | |
cd $INSTALL_DIR/redis-stable && make | |
cd $INSTALL_DIR/redis-stable && sudo make install | |
# configure redis and run on init.d | |
sudo mkdir /etc/redis | |
sudo mkdir /var/redis | |
sudo cp $INSTALL_DIR/redis-stable/utils/redis_init_script /etc/init.d/redis_6379 | |
sudo mkdir /var/redis/6379 | |
# FINISH REDIS CONFIG MANUALLY | |
# cp $DOTFILES_DIR/6379.conf /etc/redis/6379.conf | |
# sudo update-rc.d redis_6379 defaults | |
# sudo /etc/init.d/redis_6379 start | |
# virtualbox | |
${install} \ | |
virtualbox \ | |
virtualbox-dkms \ | |
vagrant \ | |
nfs-common \ | |
nfs-kernel-server | |
# spotify | |
sudo sh -c 'echo "deb http://repository.spotify.com/ stable non-free" > /etc/apt/sources.list.d/spotify.list' | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 | |
sudo apt-get update && sudo apt-get install -y spotify-client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment