blob: c5f1186a0d430c1fc32dab7405dbe855f6b08d21 [file] [log] [blame]
Filip Pytloun60411d12015-06-25 21:14:41 +02001## Base packages and setup
2# Remove unwanted ubuntu security repository
3sed -i '/.*security\.ubuntu.com.*/d' /etc/apt/sources.list
4
jan kaufmana519d7b2015-03-04 00:51:47 +01005apt-get update
Filip Pytloune3181af2015-06-25 22:11:22 +02006
7# Cleanup old kernels, ensure latest is installed via virtual package
8apt-get purge -y linux-image-* linux-headers-*
9apt-get install -y linux-generic-lts-utopic
10
jan kaufmana519d7b2015-03-04 00:51:47 +010011apt-get -y upgrade
12apt-get -y dist-upgrade
jan kaufmandfc08f02015-04-29 20:17:55 +020013
Filip Pytloune3181af2015-06-25 22:11:22 +020014apt-get autoremove --purge
15
Filip Pytloundd27ad82015-06-18 11:12:08 +020016# Useful tools
Filip Pytloun39832362015-06-25 18:05:47 +020017apt-get -y install curl tmux vim-nox byobu iputils-ping traceroute htop
18
19# Tmux fixes
20cat << 'EOF' >> /etc/tmux.conf
21set -g default-terminal "screen-256color"
22set -g set-titles on
23set -g xterm-keys on
24EOF
Filip Pytloundd27ad82015-06-18 11:12:08 +020025
Filip Pytloundd27ad82015-06-18 11:12:08 +020026# Setup cloud-init
jan kaufman0fcf1a72015-05-06 10:16:12 +020027apt-get -y install cloud-init
28chown root:ubuntu /etc/cloud/cloud.cfg.d
29chmod g+w /etc/cloud/cloud.cfg.d
jan kaufmana519d7b2015-03-04 00:51:47 +010030
31# to be removed
32#sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=sudo' /etc/sudoers
33#sed -i -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
34