#!/bin/bash

sudo apt-get update

# NOTE: If kernel is upgraded, you need to upgrade VirtualBox Guest Additions as well
#sudo apt-get dist-upgrade

# Example: Install Apache
#apt-get install -y apache2
#rm -rf /var/www
#ln -fs /vagrant /var/www

# Upgrading from Ubuntu server to desktop
#
# See http://askubuntu.com/questions/322122/switching-from-server-to-desktop
sudo apt-get -y install ubuntu-desktop 

# Install git and related tools
sudo apt-get -y install git git-svn tig

# Other things I will never live without...
sudo apt-get -y install mc

# TODO

# === EOF ===

#!/bin/bash

# Quick fix to enable vbguest on VirtualBox 4.3.10
# See https://github.com/mitchellh/vagrant/issues/3341
if [ ! -e /usr/lib/VBoxGuestAdditions ]; then
    sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions \
	/usr/lib/VBoxGuestAdditions || true
fi

sudo apt-get update

# NOTE: If kernel is upgraded, you need to upgrade VirtualBox Guest Additions as well
#sudo apt-get dist-upgrade

# Example: Install Apache
#apt-get install -y apache2
#rm -rf /var/www
#ln -fs /vagrant /var/www

# Upgrading from Ubuntu server to desktop
#
# See http://askubuntu.com/questions/322122/switching-from-server-to-desktop
sudo apt-get -y install ubuntu-desktop 

# Install git and related tools
sudo apt-get -y install git git-svn tig

# Other things I will never live without...
sudo apt-get -y install mc

# TODO

# === EOF ===

Add workaround for mount folders in Linux guest
Add workaround for mount folders in Linux guest

See https://github.com/mitchellh/vagrant/issues/3341

This should fix a known issue of VirtualBox 4.3.10

Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` /vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` /vagrant /vagrant
