Skip to content

Instantly share code, notes, and snippets.

@egel
Created August 16, 2014 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egel/f63f392f2de7f25bc71b to your computer and use it in GitHub Desktop.
Save egel/f63f392f2de7f25bc71b to your computer and use it in GitHub Desktop.
# Update System
sudo apt-get update && sudo apt-get dist-upgrade
# Install prerequisites
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev libncurses5-dev zlib1g zlib1g-dev sqlite3 libxslt-dev libxml2-dev libsqlite3-dev python-software-properties postfix curl libcurl3 libcurl3-gnutls libcurl4-openssl-dev
# Misc Utilities
sudo apt-get install ssh tmux vim git-core wget zip unzip mcrypt imagemagick libmagickwand-dev htop whois dnsutils powertop gparted zenmap terminator
# Set up git config
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
git config --global credential.helper cache
# Cache credentials for 24 hours
git config --global credential.helper 'cache --timeout=86400'
# Install nodejs
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update && sudo apt-get install nodejs
# install ruby, bundler, and rails
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.1.2
rbenv global 2.1.2
rbenv rehash
gem install bundler --no-ri --no-rdoc
rbenv rehash
gem install rails --no-ri --no-rdoc
# Install apache2 and setup userdir
sudo apt-get install apache2
sudo a2enmod userdir
sudo a2enmod rewrite
sudo service apache2 restart
mkdir ~/public_html && chmod 0755 ~/public_html
# Install MySQL
sudo apt-get install mysql-server libmysqlclient-dev
# Install newer PostgreSQL from their repo
sudo vim /etc/apt/sources.list.d/pgdg.list
# add this line to file and save
deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
# import key, update, and install
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update && sudo apt-get install postgresql-9.3 postgresql-9.3-postgis-2.1 postgresql-9.3-postgis-scripts libpq-dev postgresql-contrib pgadmin3
# Install PHP
sudo apt-get install php5 php5-mcrypt php5-curl php5-json php5-gd php5-imagick php5-mysql
# Allow PHP in userdir
sudo vim /etc/apache2/mods-available/php5.conf
# Comment out this line as such and save: (add the # to line)
# php_admin_flag engine Off
# Then restart apache
sudo service apache2 restart
# NGINX
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update && sudo apt-get install nginx
# Sublime Text 3 Editor PPA
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update && sudo apt-get install sublime-text-installer
# VirtualBox and Vagrant for Development VMs
# (get latest vagrant here: http://www.vagrantup.com/downloads.html)
sudo apt-get install virtualbox
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.5.0_x86_64.deb
sudo dpkg -i ~/Downloads/vagrant_1.5.0_x86_64.deb
# Newer Evolution Mail Client with Exchange Support
# It can be a little glitchy when adding exchange accounts, add one and then reboot
sudo apt-add-repository ppa:fta/gnome3
sudo apt-get update && sudo apt-get install evolution evolution-ews
# Pidgin with OTR Encryption Plugin for IM and Hexchat for IRC
sudo apt-get install pidigin pidgin-otr hexchat
# OpenVPN, FTP, and Remote Desktop (RDP) Connections
sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome filezilla remmina remmina-plugin-gnome remmina-plugin-rdp
# TeamViewer (Needs to be 32-bit version because 64-bit has conflicts)
wget http://download.teamviewer.com/download/teamviewer_linux.deb
sudo dpkg -i ~/Downloads/teamviewer_linux.deb
# Dropbox (Find latest deb here: https://www.dropbox.com/install?os=lnx)
wget https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_1.6.0_amd64.deb
sudo dpkg -i ~/Downloads/dropbox_1.6.0_amd64.deb
# Better Icon Theme
sudo add-apt-repository ppa:tiheum/equinox
# Source needs adjusted since not built for 14.04 yet
sudo vim /etc/apt/sources.list.d/tiheum-equinox-trusty.list
# Replace existing line with this and save:
deb http://ppa.launchpad.net/tiheum/equinox/ubuntu raring main
# Update and install
sudo apt-get update && sudo apt-get install faience-theme faience-icon-theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment