sudo NOPASSWD in ubuntu

In Ubuntu, do

1. sudo visudo
2. Go to the last line and add
username  ALL=(ALL) NOPASSWD: ALL


I could not change the default editor to use vim by exporting the EDITOR variable. I had to use nano only, which has some quirks like it asks you the save in DOS Format or Mac Format ( I choose Mac). Btw, while using uxterm, you cannot use nano editor, because the Meta key is  bound by uxterm and you wont be able to save it. I had to xfce4-terminal to do the first step. Phew!

Installing VirtualBox Guest additions on Ubuntu Guest

1. Mount the cdrom from within the Guest OS, so that the guest additions will be available.

sudo mount /dev/cdrom /mount/cdrom

2. There is a VBoxGuestAdditions.bin script which you will have to execute.


Accessing the Shared Folder. From the VirtualBox Interface, a select folder in your Host Operating System as the folder which you would like to share on the Guest OS.

Remember the name of the shared folder and access it from within the Ubuntu Guest OS like this.

sudo mount -t vboxsf  sharedfoldername mountpoint


Twice I made a mistake of typing vboxfs instead of vboxsf , so be careful with the spelling.