Skip to content

Instantly share code, notes, and snippets.

@drola
Last active August 29, 2015 13:58
Show Gist options
  • Save drola/10254262 to your computer and use it in GitHub Desktop.
Save drola/10254262 to your computer and use it in GitHub Desktop.
Ubuntu Trusty Tahr dev bootstrap
#!/bin/bash
#Repositiories
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo add-apt-repository ppa:webupd8team/java
sudo add-apt-repository ppa:chris-lea/node.js
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list'
ppa:ondrej/php5
sudo apt-get update
sudo apt-get --yes --force-yes install oracle-java8-installer sublime-text-installer zsh git wget curl
#Zsh and Oh My Zsh
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
chsh -s $(which zsh)
#LAMP stack
sudo apt-get --yes --force-yes install phpmyadmin mysql-server php5-cli php-pear php5-dev
#Build essentials
sudo apt-get --yes --force-yes install build-essentials cmake
#Octave, TexLive, Gnuplot
sudo apt-get --yes --force-yes install octave octave-miscellaneous octave-statistics texlive texlive-lang-european texlive-latex-recommended texlive-science python-pygments gnuplot gnuplot-qt
#Composer (global)
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
#PHP_CodeSniffer, PHPMD, #pfff, php-cs-fixer
sudo apt-get --yes --force-yes install libmagickcore-dev
#sudo apt-get --yes --force-yes libpcre3-dev libgtk2.0-dev libcairo2-dev libpango1.0-dev binutils-gold ocaml
sudo pear install PHP_CodeSniffer
sudo pear channel-discover pear.phpmd.org
sudo pear channel-discover pear.pdepend.org
sudo pear install --alldeps phpmd/PHP_PMD
#cd /tmp
#git clone git://github.com/facebook/pfff.git
#cd pfff
#./configure
#make depend
#make
#make opt
#cd ../
#rm -rf pfff
sudo curl http://cs.sensiolabs.org/get/php-cs-fixer.phar -o /usr/local/bin/php-cs-fixer
sudo chmod a+x /usr/local/bin/php-cs-fixer
#Clementine
sudo apt-get --yes --force-yes install clementine
#Virtualbox
sudo apt-get --yes --force-yes install virtualbox
#Google Chrome (stable)
sudo apt-get --yes --force-yes install google-chrome-stable
#Opera
sudo apt-get --yes --force-yes install opera
#XChat
sudo apt-get --yes --force-yes install xchat
#Filezilla
sudo apt-get --yes --force-yes install filezilla
#Set git user and email
git config --global user.email "email@example.com"
git config --global user.name "Firstname Lastname"
#Install Node.js and NPM
sudo apt-get --yes --force-yes install nodejs
sudo apt-get --yes --force-yes install ubuntu-restricted-extras ubuntu-restricted-addons
#Enable hibernate
cat << '_EOF_' |sudo tee /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
_EOF_
clear
echo
echo 'Hibernate enabled.'
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment