blob: b3995d28894e5b8fd802273dd15d8b0059775223 [file] [log] [blame]
Filip Pytlounac2be792016-01-08 12:09:49 +01001## Base packages and setup
Filip Pytlouncb52dd52016-02-01 10:42:54 +01002echo "exit 101" > /usr/sbin/policy-rc.d
3chmod +x /usr/sbin/policy-rc.d
Filip Pytlounac2be792016-01-08 12:09:49 +01004apt-get update
5
6# Cleanup old kernels, ensure latest is installed via virtual package
7if [ ! -f /tmp/no_install_kernel ]; then
8 # Update grub cmdline
9 sed -i 's|GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8"|g' /etc/default/grub
10 sed -i 's|GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"|g' /etc/default/grub
11 update-grub
12fi
13
14apt-get -y upgrade
15apt-get -y dist-upgrade
16
17apt-get autoremove --purge
18
19# Useful tools
Filip Pytloun7588e372016-02-10 17:38:47 +010020apt-get -y install curl wget tmux vim-nox byobu iputils-ping traceroute htop tree
Filip Pytlounac2be792016-01-08 12:09:49 +010021
22# Tmux fixes
23cat << 'EOF' >> /etc/tmux.conf
24set -g default-terminal "screen-256color"
25set -g set-titles on
26set -g xterm-keys on
27EOF
28
29# Setup cloud-init
30apt-get -y install cloud-init