Skip to content

Instantly share code, notes, and snippets.

@h4cc
Last active Jul 4, 2017
Embed
What would you like to do?
Ubuntu 14.04 LTS Trusty Tahr - Basic packages i usually install
#
# Ubuntu 14.04 LTS (Trusty Tahr)
#
# Basic packages i usually install
#
# Author: Julius Beckmann <github@h4cc.de>
#
# For 16.04 Xenial Xerus: https://gist.github.com/h4cc/fe48ed9d85bfff3008704919062f5c9b
#
.PHONY: all preparations libs update upgrade apt-fast ruby virtualbox vagrant graphics darktable networking mailcatcher google_chrome dropbox archives media pandoc system harddisk docker ansible filesystem nodejs apache2 php mysql mysql-workbench memcached mongodb tools encfs_manager nautilus httpie erlang elixir openoffice owncloud x230_fingerprint couchdb google-cloud-print-install google-cloud-print-setup teamviewer xmind presentation
all:
@echo "Installation of ALL targets"
make preparations libs
make upgrade
make graphics darktable
make networking google_chrome dropbox httpie
make mailcatcher
make media pandoc
make presentation
make archives system harddisk filesystem tools encfs_manager nautilus
make docker ansible virtualbox vagrant
make nodejs
make apache2 php mysql mysql-workbench memcached mongodb
make openoffice owncloud
make erlang elixir
make couchdb
make google-cloud-print-install
make teamviewer
make xmind
preparations:
make update
sudo apt-get -y install software-properties-common build-essential checkinstall wget curl git libssl-dev
make apt-fast
libs:
sudo apt-fast -y install libavahi-compat-libdnssd-dev
update:
sudo apt-get update
upgrade:
sudo apt-get -y upgrade
apt-fast:
sudo apt-add-repository -y ppa:saiarcot895/myppa
make update
sudo apt-fast -y install apt-fast
ruby:
sudo apt-fast -y install ruby ruby-dev
graphics:
sudo apt-fast -y install gimp gimp-data gimp-plugin-registry gimp-data-extras geeqie graphviz libav-tools jpegoptim
darktable:
sudo apt-add-repository -y ppa:pmjdebruijn/darktable-release
make update
sudo apt-fast -y install darktable
networking:
sudo apt-fast -y install pidgin filezilla vinagre remmina chromium-browser pepperflashplugin-nonfree
mailcatcher:
sudo apt-fast -y install libsqlite3-dev; sudo gem install mailcatcher
google_chrome:
rm -f google-chrome-stable_current_amd64.deb
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-fast -y install libappindicator1 libindicator7
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm -f google-chrome-stable_current_amd64.deb
dropbox:
echo 'deb http://linux.dropbox.com/ubuntu trusty main' | sudo tee /etc/apt/sources.list.d/dropbox.list
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E
sudo apt-fast update
sudo apt-fast -y install dropbox
# Broken package somehow ?
#nautilus-dropbox
archives:
sudo apt-fast -y install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller
media:
sudo apt-fast -y install openshot openshot-doc vlc ubuntu-restricted-extras libavformat-extra-54 libavcodec-extra-54 libdvdread4 blender gstreamer0.10-plugins-bad gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly totem libxine1-ffmpeg okular okular-extra-backends
sudo /usr/share/doc/libdvdread4/install-css.sh
pandoc:
sudo apt-fast -y install pandoc pandoc-citeproc texlive texlive-latex-extra texlive-latex-base texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra texlive-lang-german texlive-xetex preview-latex-style dvipng nbibtex
presentation:
sudo apt-fast -y install pdf-presenter-console
system:
sudo apt-fast -y install icedtea-7-plugin openjdk-7-jre subversion rabbitvcs-nautilus git curl vim network-manager-openvpn gparted gnome-disk-utility traceroute cloc whois mssh inotify-tools openssh-server sqlite3 etckeeper stress gksu
#--- Fixing psyhon keyring problems
sudo apt-fast -y install python-keyring python-gnomekeyring
#--- Raise inotify limit
echo "fs.inotify.max_user_watches = 524288" | sudo tee /etc/sysctl.d/60-inotify.conf
sudo service procps restart
harddisk:
sudo apt-fast -y install smartmontools gsmartcontrol smart-notifier
docker:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
make update
sudo apt-fast -y install lxc-docker
virtualbox:
[ -f vagrant_1.7.4_x86_64.deb ] || wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.4_x86_64.deb
sudo dpkg -i vagrant_1.7.4_x86_64.deb
vagrant: virtualbox
echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.org.list
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
make update
sudo apt-fast install virtualbox-5.0
ansible:
sudo apt-add-repository -y ppa:ansible/ansible
make update
sudo apt-fast -y install ansible
filesystem:
sudo apt-fast -y install exfat-fuse exfat-utils e2fsprogs mtools dosfstools hfsutils hfsprogs jfsutils util-linux lvm2 nilfs-tools ntfs-3g reiser4progs reiserfsprogs xfsprogs attr quota f2fs-tools sshfs mtpfs
nodejs:
# NVM per user:
# git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
echo 'deb https://deb.nodesource.com/node_0.12 trusty main' | sudo tee /etc/apt/sources.list.d/nodesource.list
echo 'deb-src https://deb.nodesource.com/node_0.12 trusty main' | sudo tee --append /etc/apt/sources.list.d/nodesource.list
make update
sudo apt-fast -y install nodejs
apache2:
sudo apt-fast -y install apache2-mpm-prefork apache2-utils
sudo a2enmod rewrite
php:
sudo apt-fast -y install libapache2-mod-php5 php5-apcu php5-mongo php5-json php5-imagick php5-xdebug php5-memcached php5-memcache php5-mcrypt php5-intl php5-geoip php5-gearman php5-cli php5-sqlite php5-mysql php5-ldap php5-gmp php5-gd php5-curl php-pear php5-dev
# mcrypt needs to be enabled, whatever...
sudo php5enmod mcrypt
# - Set php timezone to berlin in all php.ini files.
sudo sed -i 's@;date.timezone =@date.timezone = "Europe/Berlin"@g' /etc/php5/*/php.ini
# - Active writing of PHAR files for cli.
sudo sed -i 's@;phar.readonly = On@phar.readonly = Off@g' /etc/php5/cli/php.ini
# Activate mongo extension
sudo php5enmod mongo
#- PhpMyAdmin with 24 hours session lifetime.
sudo apt-fast -y install phpmyadmin
#sudo sh -c "echo \"<?php $cfg['LoginCookieValidity'] = 3600 * 24; // 24 hours.\" > /etc/phpmyadmin/conf.d/LoginTimeout.php"
php56:
sudo add-apt-repository -y ppa:ondrej/php5-5.6
make update
sudo apt-fast -y install php5
hhvm:
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list
make update
sudo apt-fast -y install hhvm libgmp-dev libmemcached-dev
mysql:
sudo apt-fast -y install mysql-server
mysql-workbench:
sudo apt-fast install -y libctemplate2 libpcrecpp0
[ -f mysql-workbench-community-6.3.4-1ubu1404-amd64.deb ] || wget http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-6.3.4-1ubu1404-amd64.deb
sudo dpkg -i mysql-workbench-community-6.3.4-1ubu1404-amd64.deb
memcached:
sudo apt-fast -y install memcached
mongodb:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
make update
sudo apt-fast -y install mongodb-10gen
tools:
sudo add-apt-repository -y ppa:tualatrix/ppa
make update
sudo apt-fast -y install ubuntu-tweak htop meld guake password-gorilla retext terminator vim geany ghex myrepos
# Fix for nautilus not starting my preferred terminal on right click.
sudo apt-fast -y remove gnome-terminal
sudo ln -fs /usr/bin/terminator /usr/bin/gnome-terminal
httpie: ruby
sudo apt-fast -y install python-pip
sudo pip install --upgrade httpie
encfs_manager:
sudo add-apt-repository -y ppa:gencfsm/ppa
make update
sudo apt-fast -y install gnome-encfs-manager
nautilus:
sudo apt-fast -y install nautilus-open-terminal nautilus-image-converter nautilus-compare nautilus-wipe
sudo add-apt-repository -y ppa:nilarimogard/webupd8 && sudo apt-fast update && sudo apt-fast -y install nautilus-columns
erlang:
rm -f erlang-solutions_1.0_all.deb
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
rm -f erlang-solutions_1.0_all.deb
make update
sudo apt-fast -y install erlang
elixir:
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
make update
sudo apt-fast -y install elixir
openoffice:
[ ! -f Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_de.tar.gz ] && wget http://downloads.sourceforge.net/project/openofficeorg.mirror/4.1.1/binaries/de/Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_de.tar.gz
mkdir -p apache-open-office
tar xfvz Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_de.tar.gz -C apache-open-office
sudo dpkg -i apache-open-office/de/DEBS/*.deb
sudo dpkg -i apache-open-office/de/DEBS/desktop-integration/*.deb
owncloud:
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud-client.list"
wget -O - http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key | sudo apt-key add -
make update
sudo apt-fast -y install owncloud-client
# System specific
x230_fingerprint:
# From: http://knud.aquarius.uberspace.de/wordpress/fingerprint-reader-unter-ubuntu-linux-mit-lenovo-x230/
sudo add-apt-repository -y ppa:fingerprint/fprint
make update
sudo apt-fast install -y libfprint0 fprint-demo libpam-fprintd gksu-polkit
couchdb:
sudo add-apt-repository ppa:couchdb/stable -y
make update
sudo apt-fast install -V couchdb
google-cloud-print-install:
sudo add-apt-repository ppa:simon-cadman/cups-cloud-print -y
make update
sudo apt-fast install -y cupscloudprint
google-cloud-print-setup:
sudo /usr/share/cloudprint-cups/setupcloudprint.py
teamviewer:
[ ! -f teamviewer_i386.deb ] && wget http://download.teamviewer.com/download/teamviewer_i386.deb
sudo apt-fast install -y libjpeg62 libxinerama1 libxrandr2 libxtst6
sudo dpkg -i teamviewer_i386.deb
xmind:
[ ! -f xmind-linux-3.5.3.201506180105_amd64.deb ] && wget --user-agent="Mozilla/5.0" http://www.xmind.net/xmind/downloads/xmind-linux-3.5.3.201506180105_amd64.deb
sudo apt-fast install -y lame
sudo dpkg -i xmind-linux-3.5.3.201506180105_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment