blob: fc9b77e8e9496ad64fe19e68007f0dd5aaf19586 [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
6apt-get -y upgrade
7apt-get -y dist-upgrade
jan kaufmandfc08f02015-04-29 20:17:55 +02008
Filip Pytloundd27ad82015-06-18 11:12:08 +02009# Useful tools
Filip Pytloun39832362015-06-25 18:05:47 +020010apt-get -y install curl tmux vim-nox byobu iputils-ping traceroute htop
11
12# Tmux fixes
13cat << 'EOF' >> /etc/tmux.conf
14set -g default-terminal "screen-256color"
15set -g set-titles on
16set -g xterm-keys on
17EOF
Filip Pytloundd27ad82015-06-18 11:12:08 +020018
19# Cleanup old kernels, ensure latest is installed via virtual package
20apt-get purge -y linux-image-* linux-headers-*
21apt-get install -y linux-generic-lts-utopic
22
Filip Pytloun077322e2015-06-25 19:18:33 +020023apt-get autoremove --purge
Filip Pytloundd27ad82015-06-18 11:12:08 +020024
25# Setup cloud-init
jan kaufman0fcf1a72015-05-06 10:16:12 +020026apt-get -y install cloud-init
27chown root:ubuntu /etc/cloud/cloud.cfg.d
28chmod g+w /etc/cloud/cloud.cfg.d
jan kaufmana519d7b2015-03-04 00:51:47 +010029
30# to be removed
31#sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=sudo' /etc/sudoers
32#sed -i -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
33