diff options
author | varac <varacanero@zeromail.org> | 2016-01-18 09:09:46 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-01-18 09:09:46 +0100 |
commit | 3874b8f9459e814a7bbca24f9694c136981da278 (patch) | |
tree | eed693a5e362e8193029cdb572b0361f93b8832a | |
parent | e6e6930638fc08b8c3d469dfc8bfd23e9b6304c7 (diff) |
install build essential and kernel headers only for vbox
-rw-r--r-- | scripts/base.sh | 1 | ||||
-rw-r--r-- | scripts/custom.sh | 2 | ||||
-rw-r--r-- | scripts/virtualbox.sh | 4 |
3 files changed, 5 insertions, 2 deletions
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 |