summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-01-18 09:09:46 +0100
committervarac <varacanero@zeromail.org>2016-01-18 09:09:46 +0100
commit3874b8f9459e814a7bbca24f9694c136981da278 (patch)
treeeed693a5e362e8193029cdb572b0361f93b8832a /scripts
parente6e6930638fc08b8c3d469dfc8bfd23e9b6304c7 (diff)
install build essential and kernel headers only for vbox
Diffstat (limited to 'scripts')
-rw-r--r--scripts/base.sh1
-rw-r--r--scripts/custom.sh2
-rw-r--r--scripts/virtualbox.sh4
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