Skip to content

Instantly share code, notes, and snippets.

@edomora97
Last active October 20, 2015 12:39
Show Gist options
  • Save edomora97/5a0cf1afc76d8a637ae4 to your computer and use it in GitHub Desktop.
Save edomora97/5a0cf1afc76d8a637ae4 to your computer and use it in GitHub Desktop.
#!/bin/sh
UPGRADE_SYSTEM=yes
INSTALL_SOFTWARE=yes
INSTALL_MATE=yes
INSTALL_KEEPASS2=yes
INSTALL_CHROME=yes
INSTALL_DROPBOX=yes
INSTALL_SPOTIFY=yes
INSTALL_OH_MY_ZSH=yes
INSTALL_RBENV=yes
INSTALL_RUBY=yes
# Update the system
if [ $UPGRADE_SYSTEM = yes ]; then
sudo apt-get -y update
sudo apt-get -y upgrade
fi
# install useful software
if [ $INSTALL_SOFTWARE = yes ]; then
sudo apt-get -y --force-yes install build-essential htop curl gparted gedit-plugins geany default-jdk aria2 wget vlc browser-plugin-vlc openssh-server vim traceroute zsh git libffi-dev autoconf bison libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libgdbm3 libgdbm-dev
fi
# install gedit ~ mate
if [ $INSTALL_MATE = yes ]; then
sudo apt-add-repository -y ppa:ubuntu-on-rails/ppa
sudo apt-get -y update
sudo apt-get -y install gedit-gmate
fi
# install keepass2
if [ $INSTALL_KEEPASS2 = yes ]; then
sudo apt-add-repository -y ppa:jtaylor/keepass
sudo apt-get -y update
sudo apt-get -y install keepass2
fi
# install chrome
if [ $INSTALL_CHROME = yes ]; then
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb
sudo dpkg -i /tmp/chrome.deb
sudo apt-get -y -f install
fi
# install dropbox
if [ $INSTALL_DROPBOX = yes ]; then
sudo apt-get -y update
sudo apt-get -y install nautilus-dropbox
fi
# install spotify
if [ $INSTALL_SPOTIFY = yes ]; then
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 -y update
sudo apt-get -y install spotify-client
fi
############ END SUDO SESSION ############
# install oh-my-zsh
if [ $INSTALL_OH_MY_ZSH = yes ]; then
chsh -s /bin/zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
wget 'https://gist.githubusercontent.com/edomora97/61476af5b83e1dae5d0a/raw' -O ~/.zshrc
fi
# install rbenv
if [ $INSTALL_RBENV = yes ]; then
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
fi
# install ruby
if [ $INSTALL_RUBY = yes ]; then
rbenv install 2.2.0
rbenv global 2.2.0
rbenv rehash
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment