#!/bin/bash
apt-get update ## This checks for available updates.
apt-get -y upgrade ## This downloads and installs all updates, auto-answering Yes for you.
apt-get install -y ubuntu-restricted-extras compizconfig-settings-manager wine libqt4-core libqt4-gui ## Installs Ubuntu Restricted Extras, Compiz Config Settings Manager, Wine and other dependencies for Skype
wget -N boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb; sudo dpkg -i getlibs-all.deb; sudo getlibs -p bluez-alsa ## Installs additional dependices for the hacked 64-bit install of skype (which is downloaded via apt-get using the medibuntu sources)
wget http://www.medibuntu.org/sources.list.d/intrepid.list --output-document=/etc/apt/sources.list.d/medibuntu.list ## Adds the Medibuntu source to your Software Sources
apt-get update  ##  Checks for updates again
apt-get -y --force-yes install medibuntu-keyring  ## Installs your medibunut keyring, necessary for downloading software and updates from Medibuntu's servers
apt-get update ## Checks for updates again.
apt-get install -y libdvdcss2 skype ## Installs the libdvdcss2 package for decoding commercial DVDs and Skype
apt-get update ## Checks for updates again
apt-get upgrade ## Installs available updates
wget http://dl.google.com/earth/client/GE4/release_4_2/GoogleEarthLinux.bin ## Downloads Google Earth Installer
sh GoogleEarthLinux.bin ## Installs Google Earth
wget http://download.virtualbox.org/virtualbox/2.0.4/virtualbox-2.0_2.0.4-38406_Ubuntu_intrepid_amd64.deb ## Downloads the Virtualbox installer for 64-bit
dpkg -i virtualbox-2.0_2.0.4-38406_Ubuntu_intrepid_amd64.deb* ## Installs Virtualbox from the deb file
sudo adduser $USER vboxusers ## Adds your username to the vboxusers group
echo "none /proc/bus/usb usbfs devgid=46,devmode=666 0 0" | tee -a /etc/fstab ## Appends the fstab file, giving Virtualbox access to your USB ports
echo "All software has been installed.  The system will reboot in 10 seconds" ## Displays the quoted message on screen
sleep 1; ##pauses the script for 1 second
echo "Restarting in 9 seconds.  Press CTRL-C to cancel"
sleep 1;
echo "Rebooting in 8 seconds.  Press CTRL-C to cancel"
sleep 1;
echo "Rebooting in 7 seconds.  Press CTRL-C to cancel"
sleep 1;
echo "Rebooting in 6 seconds.  Press CTRL-C to cancel"
sleep 1;
echo "Rebooting in 5 seconds.  Press CTRL-C to cancel"
sleep 1;
echo "Rebooting in 4 seconds.  Press CTRL-C to cancel"
sleep 1;
echo "Rebooting in 3 seconds.  Press CTRL-C to cancel"
sleep 1;
echo "Rebooting in 2 seconds.  Press CTRL-C to cancel"
sleep 1;
echo "Rebooting in 1 second..  Press CTRL-C to cancel"
sleep 1;
init 6 ## reboots the computer

