VirtualBox full screen problem for ubuntu

start ubuntu on Virtualbox. go to terminal and type
cd /media/
sudo sh ./VBOXADDITIONS_3.2.6_63112/VBoxLinuxAdditions-x86.run

wait for the process to complete.
shutdown ubuntu and restart VirtualBox.
when ubuntu is started press command+F to full screen and command+L to get it back.