Last active
December 15, 2015 08:39
-
-
Save drola/5232091 to your computer and use it in GitHub Desktop.
(K)Ubuntu setup The script installs the LAMP stack, Composer, Oracle Java 7 JDK, Qt development tools, Zsh (and sets it as the default shell), Google Chrome, Opera, Clementine, XChat, Filezilla, Sublime Text 2 and Virtualbox.
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
#!/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-java7-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 | |
#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 | |
#Qt4 & KDE dev | |
sudo apt-get --yes --force-yes install qtcreator libqt4-dev libqt4-dev-bin cmake | |
sudo apt-get build-dep libqt4-core libqt4-dev libqt4-gui libqt4-opengl libqt4-script libqt4-sql libqt4-svg libqt4-webkit libqt4-xml | |
sudo apt-get --yes --force-yes install build-essential | |
sudo apt-get build-dep digikam | |
sudo apt-get build-dep kipi-plugins | |
#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 | |
#Set KDE specific GIT aliases | |
echo "[url \"git://anongit.kde.org/\"]" >> ~/.gitconfig | |
echo " insteadOf = kde:" >> ~/.gitconfig | |
echo "[url \"git@git.kde.org:\"]" >> ~/.gitconfig | |
echo " pushInsteadOf = kde:" >> ~/.gitconfig | |
#Kubuntu specific | |
sudo add-apt-repository ppa:blue-shell/firefox-kde | |
sudo apt-get update | |
sudo apt-get --yes --force-yes remove kubuntu-firefox-installer | |
sudo apt-get --yes --force-yes install firefox firefox-kde-support | |
sudo apt-get --yes --force-yes install kubuntu-restricted-extras kubuntu-restricted-addons |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment