Monday, June 13, 2011

Access shared host folders in a VirtualBox Ubuntu guest

  • Install VirtualBox Guest Additions.
  • Set up a shared host folder using VirtualBox.



Make sure Auto-Mount is off otherwise when mounting the shared folder after restarting the guest next time, we'll get this error:-
mount.vboxsf: mounting failed with the error: Invalid argument.
It seems it's caused by the shared folder has already been mounted to "/media/sf_mydata" which only allows "admin" to access.
  • In the Ubuntu guest, use Terminal to run the following commands:-
sudo mkdir /mnt/mydata
sudo mount -t vboxsf mydata /mnt/mydata
ln -s /mnt/mydata $HOME/Desktop/mydata
  • To auto-mount the shared folder,
gksudo gedit /etc/fstab
Then add the following line:-
mydata /mnt/mydata vboxsf defaults 0 0

Saturday, June 11, 2011

Missing Main Menu Bar in Eclipse based Applications

Some Ecipse based applications like XMind (Mind Mapping and Brainstorming program) show the menu neither in the main program window nor in the new global main menu panel introduced in Ubuntu 11.04. The workaround for now is to set the APPMENU_DISPLAY_BOTH to 1 like this:-
APPMENU_DISPLAY_BOTH=1 /usr/local/xmind/xmind
This allows the menu to display within the application like it did in the earlier version of Ubuntu.

Refs:
http://groups.google.com/group/xmind/browse_thread/thread/bd2badc7f785c254?pli=1
https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/688136