Filip Pytloun | 60411d1 | 2015-06-25 21:14:41 +0200 | [diff] [blame^] | 1 | ## Base packages and setup |
| 2 | # Remove unwanted ubuntu security repository |
| 3 | sed -i '/.*security\.ubuntu.com.*/d' /etc/apt/sources.list |
| 4 | |
jan kaufman | a519d7b | 2015-03-04 00:51:47 +0100 | [diff] [blame] | 5 | apt-get update |
| 6 | apt-get -y upgrade |
| 7 | apt-get -y dist-upgrade |
jan kaufman | dfc08f0 | 2015-04-29 20:17:55 +0200 | [diff] [blame] | 8 | |
Filip Pytloun | dd27ad8 | 2015-06-18 11:12:08 +0200 | [diff] [blame] | 9 | # Useful tools |
Filip Pytloun | 3983236 | 2015-06-25 18:05:47 +0200 | [diff] [blame] | 10 | apt-get -y install curl tmux vim-nox byobu iputils-ping traceroute htop |
| 11 | |
| 12 | # Tmux fixes |
| 13 | cat << 'EOF' >> /etc/tmux.conf |
| 14 | set -g default-terminal "screen-256color" |
| 15 | set -g set-titles on |
| 16 | set -g xterm-keys on |
| 17 | EOF |
Filip Pytloun | dd27ad8 | 2015-06-18 11:12:08 +0200 | [diff] [blame] | 18 | |
| 19 | # Cleanup old kernels, ensure latest is installed via virtual package |
| 20 | apt-get purge -y linux-image-* linux-headers-* |
| 21 | apt-get install -y linux-generic-lts-utopic |
| 22 | |
Filip Pytloun | 077322e | 2015-06-25 19:18:33 +0200 | [diff] [blame] | 23 | apt-get autoremove --purge |
Filip Pytloun | dd27ad8 | 2015-06-18 11:12:08 +0200 | [diff] [blame] | 24 | |
| 25 | # Setup cloud-init |
jan kaufman | 0fcf1a7 | 2015-05-06 10:16:12 +0200 | [diff] [blame] | 26 | apt-get -y install cloud-init |
| 27 | chown root:ubuntu /etc/cloud/cloud.cfg.d |
| 28 | chmod g+w /etc/cloud/cloud.cfg.d |
jan kaufman | a519d7b | 2015-03-04 00:51:47 +0100 | [diff] [blame] | 29 | |
| 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 | |