Gnome 'Applications' menu suddenly empty

By robrt on Sunday 19 July 2009 14:32 - Comments (2)
Categories: Linux, Ubuntu, Views: 3.574

Just had a strange bug using the "Main menu" tool in Gnome; after some fiddling around it removed all items from my "Applications" menu.
For some reason this tool removed all contents of the file, rendering my gnome panel useless.

Luckily, there's a pretty straight-forward fix for this.

• Open a terminal window (Alt+F2 -> gnome-terminal)
• Verify the file is empty: cat ~/.config/menus/
• If it is, edit the file: nano ~/.config/menus/
• Paste the following in the file:

PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
<MergeFile type="parent">/etc/xdg/menus/</MergeFile>

• Save & exit
• Restart the Gnome panel using "killall gnome-panel"

That's all. :)

Mounting a remote filesystem over SSH

By robrt on Sunday 21 June 2009 03:45 - Comments are closed
Categories: Linux, Tricks, Ubuntu, Views: 960

Mainly applies to Ubuntu 9.04, but if you can get your hands on the package for another distribution / find the source package it'll probably work there too.

SSHFS is the package that'll work its magic for us. It's in the main repository nowadays so shouldn't be hard to find.
Else you can download it from here.

• Fire up the terminal and run "sudo apt-get install sshfs"
• Ensure you have a valid mount point available; I'd suggest something in your own userdir but it can be anywhere really. As long as your particular user has the appropriate rights.
• Run: sshfs remote_username@remote_host:/remote_path /local_path
(i.e.; " /home/robert/mnt/ssh" will log on to as user 'robert', and mount the remote folder "/home/robert" to local folder "/home/robert/mnt/ssh")
• Accept any fingerprint warnings if you get them
• Done! The remote host is now mounted over SSH on your local box.