Gnome Nautilus bookmarks/favorites backup (in Ubuntu)

Nautilus (default file manager in Ubuntu) saves bookmarks/favorites in the following file in the home folder:
~/.gtk-bookmarks or home/YOUR_USERNAME/.gtk-bookmarks

You might need to make hidden files (those that starts with a .) visible by pressing CTRL+H in Nautilus in order to find the file.

Just copy the file to another location to make a backup of it 🙂

Mount files in Ubuntu

UPDATE: Save yourself a lot of trouble and get the convenience of a GUI for mounting images – use the FREE program “Furius ISO Mount”, which you can find in Synaptic or the Ubuntu Software Center.. If you really want to mess with low level stuff and scripts, then you can use the following guide…

Instructions
sudo chmod +x mount.sh
sudo chmod +r mount.sh
sudo chmod +r unmount.sh
sudo chmod +x unmount.sh

Now you need to copy them nautilus scripts:

sudo cp mount.sh ~/.gnome2/nautilus-scripts/mount.sh
sudo cp unmount.sh ~/.gnome2/nautilus-scripts/unmount.sh

How to use
Rightclick on the image file (e.g. .iso) -> script -> mount/unmount
use the command wine path/to/file.exe to execute files on cd’s
Use IAT to convert weird formats to .iso (sudo apt-get install iat)

Installation
sudo chmod +x mount.sh
sudo chmod +r mount.sh
sudo chmod +r unmount.sh
sudo chmod +x unmount.sh

Mount-file
#!/bin/bash
#
# nautilus-mount-iso

gksudo -k /bin/echo "got r00t?"
BASENAME=`basename "${1%.*}"`
sudo mkdir /media/"$BASENAME"
echo $BASENAME

if sudo mount -o loop -t iso9660 "$*" /media/"$BASENAME"
then
if zenity --question --title "ISO Mounter" --text "$BASENAME Successfully Mounted.

Open Volume?"
then
nautilus /media/"$BASENAME" --no-desktop
fi
exit 0
else
sudo rmdir /media/"$BASENAME"
zenity --error --title "ISO Mounter" --text "Cannot mount $BASENAME!"
exit 1
fi

Unmount-file
#!/bin/bash
#
gksudo -k /bin/echo "got r00t?"
BASENAME=`basename "${1%.*}"`
sudo umount /media/"$BASENAME" && zenity --info --text "Successfully unmounted /media/$BASENAME/" && sudo rmdir "/media/$BASENAME/"