Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix install order for guest additions. They can't be installed withou…

…t development essentials
  • Loading branch information...
commit 5cdd9472fd443cad22e5a921f40bd355897d1577 1 parent 2f86263
@rb2k authored
View
12 templates/ubuntu-8.04.4-server-amd64/postinstall.sh
@@ -2,6 +2,12 @@
date > /etc/vagrant_box_build_time
+#Updating the box
+apt-get -y update
+apt-get -y install linux-headers-$(uname -r) build-essential
+apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
+apt-get clean
+
#Installing the virtualbox guest additions
apt-get -y install dkms
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
@@ -13,12 +19,6 @@ umount /mnt
rm VBoxGuestAdditions_$VBOX_VERSION.iso
-#Updating the box
-apt-get -y update
-apt-get -y install linux-headers-$(uname -r) build-essential
-apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
-apt-get clean
-
#Setting up sudo
cp /etc/sudoers /etc/sudoers.orig
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
View
12 templates/ubuntu-8.04.4-server-i386/postinstall.sh
@@ -2,6 +2,12 @@
date > /etc/vagrant_box_build_time
+#Updating the box
+apt-get -y update
+apt-get -y install linux-headers-$(uname -r) build-essential
+apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
+apt-get clean
+
#Installing the virtualbox guest additions
apt-get -y install dkms
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
@@ -13,12 +19,6 @@ umount /mnt
rm VBoxGuestAdditions_$VBOX_VERSION.iso
-#Updating the box
-apt-get -y update
-apt-get -y install linux-headers-$(uname -r) build-essential
-apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
-apt-get clean
-
#Setting up sudo
cp /etc/sudoers /etc/sudoers.orig
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
Please sign in to comment.
Something went wrong with that request. Please try again.