From 3874b8f9459e814a7bbca24f9694c136981da278 Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 18 Jan 2016 09:09:46 +0100 Subject: install build essential and kernel headers only for vbox --- scripts/base.sh | 1 - scripts/custom.sh | 2 +- scripts/virtualbox.sh | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/base.sh b/scripts/base.sh index d09645d..ee3835b 100644 --- a/scripts/base.sh +++ b/scripts/base.sh @@ -4,7 +4,6 @@ perl -p -i -e 's#http://us.archive.ubuntu.com/ubuntu#http://mirror.rackspace.com # Update the box apt-get -y update >/dev/null -apt-get -y install facter linux-headers-$(uname -r) build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev curl unzip >/dev/null # Tweak sshd to prevent DNS resolution (speed up logins) echo 'UseDNS no' >> /etc/ssh/sshd_config diff --git a/scripts/custom.sh b/scripts/custom.sh index f178362..3f05ad4 100644 --- a/scripts/custom.sh +++ b/scripts/custom.sh @@ -7,4 +7,4 @@ sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_c usermod -p "$(echo vagrant | openssl passwd -1 -stdin)" root # install additional packages -apt-get install puppet lsb-release facter +apt-get -y install puppet lsb-release facter rsync curl diff --git a/scripts/virtualbox.sh b/scripts/virtualbox.sh index 1404aa7..a791dc5 100644 --- a/scripts/virtualbox.sh +++ b/scripts/virtualbox.sh @@ -5,6 +5,10 @@ if [[ `facter virtual` != "virtualbox" ]]; then exit 0 fi +apt-get -y install linux-headers-$(uname -r) build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev unzip >/dev/null + + + mkdir -p /mnt/virtualbox mount -o loop /home/vagrant/VBoxGuest*.iso /mnt/virtualbox sh /mnt/virtualbox/VBoxLinuxAdditions.run -- cgit v1.2.3