NoMachine NX is a perfect solution to connect to your remote Ubuntu desktop. But ever since Canonical introduced Unity, NoMachine doesn’t seem so perfect anymore: client successfully connects to the NX server, but the menus never show up, and there’s no Unity side bar.
Here’s what works in 12.04 Precise Pangolin:
On the remote machine open up this file: /usr/NX/etc/node.cfg and edit it as a superuser:
sudo vim /usr/NX/etc/node.cfg
Towards the end of the file, look for CommandStartGnome and change it to
CommandStartGnome = "/usr/bin/gnome-session --session=ubuntu-2d"
Save the file, and Unity should now work in 2D mode the next time you connect and the menus and the sidebar will show up.