Code: Select all
#!/bin/sh
su
mount /dev/sr0 /mnt/cdrom && cd /mnt/cdrom || echo Please attach Guest Additions first.&& exit 1
slapt-get -u && slapt-get -i kernel-source
TMPDIR=/dev/shm ./VBoxLinuxAdditions-`uname -m | sed -e s,i6,x, -e s,x86_,amd,`.run