sudo apt-get update
sudo apt-get upgrade
# Less memory swapped / write-operations to the SSD
echo "vm.swappiness = 1" | sudo tee -a /etc/sysctl.conf
# Faster update of new/changed files
echo "fs.inotify.max_user_watches = 524288" | sudo tee -a /etc/sysctl.conf
# Boot faster
sudo sed -i 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=3/g' /etc/default/grub
# update
sudo update-grub2
# don't nag me with errors
sudo sed -i 's/enabled=1/enabled=0/g' /etc/default/apport
# Show everything in startup
sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop
sudo apt-get install -y thunar-archive-plugin # Open archives in thunar \
thunar-vcs-plugin # GIT
# VPN
sudo apt-get install -y openvpn network-manager-openvpn
# for backups without leaving the shell open
sudo apt-get install -y screen
# like a time machine on osx
sudo apt-get install -y backintime-gnome
# if you want to backup your sql too
sudo apt-get install -y automysqlbackup
sudo apt-get install -y gimp
sudo apt-get install -y inkscape
sudo apt-get install -y freemind
sudo apt-get install -y easystroke
# AutoKey for text shortcuts
sudo apt-get install -y autokey-gtk
# Fast better editor
sudo apt-get install -y geany
# glipper
sudo apt-get install -y glipper
# Kupfer - Best launcher ever!
sudo apt-get install -y kupfer python-wnck python-gnomekeyring python-appindicator python-nautilus python-cjson python-gnome2
# Repair VI
echo "set nocompatible" > ~/.vimrc
sudo apt-get install -y ekiga
sudo apt-get install -y libreoffice
# sudo apt-get install -y cheese
sudo apt-get install -y kazam
sudo apt-get install -y ruby-dev
sudo apt-get install -y nodejs-dev
sudo apt-get install -y php-dev php5-curl php5-gd php5-intl php5-mcrypt php5-xdebug php-xsl
sudo php5enmod mcrypt
sudo php5enmod xsl
# Change default php.ini values so that no error occur
sudo sed -i "s/^;date.timezone =$/date.timezone = \"Europe\/Berlin\"/" /etc/php5/cli/php.ini
# But those we do will nag us
sudo sed -i 's/display_errors = Off/display_errors = On/g' /etc/php5/cli/php.ini
sudo apt-get install -y python3-dev
sudo apt-get install -y libsqlite3-dev
sudo apt-get install -y mysql-server php5-mysql
sudo apt-get install -y git
# And some helpful repo check tool (needs ruby)
sudo gem install git-up
sudo gem install mailcatcher
wget https://getcomposer.org/composer.phar
sudo mv composer.phar /usr/local/bin/composer
sudo chmod 755 /usr/local/bin/composer
# Install crontab for updates (todo: make it a daily cron)
#crontab -l > mycron
#echo "0 */6 * * * /usr/local/bin/composer self-update" >> mycron
#crontab mycron
#rm mycron
curl -LsS http://symfony.com/installer > symfony.phar
sudo mv symfony.phar /usr/local/bin/symfony
sudo chmod a+x /usr/local/bin/symfony
wget http://selenium-release.storage.googleapis.com/2.48.2/selenium-server-standalone-2.48.2.jar
mkdir ~/opt
mv selenium-server-standalone-2.48.2.jar ~/opt/
sudo apt-get install -y mysql-workbench
# Get the latest
wget -qO- https://get.docker.com/ | sh
sudo usermod -a -G docker `whoami`
sudo apt-get install -y apache2-dev
# PHP Module
sudo apt-get install -y libapache2-mod-php5
# Change config for less error messages
sudo sed -i "s/^;date.timezone =$/date.timezone = \"Europe\/Berlin\"/" /etc/php5/apache2/php.ini
sudo sed -i "s/^expose_php = On$/expose_php = Off/" /etc/php5/apache2/php.ini
sudo sed -i "s/^;upload_tmp_dir =$/upload_tmp_dir=\"\/tmp\"/" /etc/php5/apache2/php.ini
# But those we do will nag us
sudo sed -i 's/display_errors = Off/display_errors = On/g' /etc/php5/cli/php.ini
# Some modules and restart
sudo a2enmod expires
sudo a2enmod headers
sudo a2enmod rewrite
sudo a2enmod status
sudo service apache2 restart
# Settings for more security
sudo sed -i "s/^ServerTokens OS$/ServerTokens Prod/" /etc/apache2/conf-available/security.conf
sudo sed -i "s/^ServerSignature On$/ServerSignature Off/" /etc/apache2/conf-available/security.conf
echo "UseCanonicalName On" | sudo tee -a /etc/apache2/conf-available/security.conf
sudo apt-get install -y apache2-utils
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove