Ubuntu / Linux news and application reviews.

This article will explain how to add a script to Nautilus so that you can easly mount and unmount ISO files in most linux distros running Gnome (it needs Nautilus to show the desktop). After a ISO file has been mounted, a shortcut icon will appear on your desktop which you can right click to unmount. Also, the script will automatically remove the desktop icon after you have unmounted the image (ISO). Look here for installation instructions for KDE.

Let's get started:

Installing required packages:

You need to install fuseiso, nautilus-actions and zenity:
sudo apt-get install fuseiso nautilus-actions zenity
Then you have to add yourself as a member of the "FUSE" group:
sudo gpasswd -a <span style="font-weight:bold;">yourusername</span> fuse
change yourusername well, with your username.
For this to take effect you need to logout and log back in.

Installation instructions for the nautilus iso mount script:

1. Create directory called "bin/nautilus-actions" (that exact name because of hard-coding) in your home directory:
mkdir -p /home/`whoami`/bin/nautilus-actions

2. Download this file and extract it to the previously created bin/nautilus-actions (so the files will be in bin/nautilus-actions/fusemounter)

3. Go to System -> Preferences -> Nautilus Actions Configuration

Add the "Mount ISO" action
Press "Add" and enter the values like in this image to the Menu Item & Action Tab and the Conditions Tab respectively.



Note: Change "tanto" (in the left picture, on the "Path:" field) to your user name.Add the "Unmount ISO" action (For .iso files)
Press "Add" and enter the values like in this image to the Menu Item & Action Tab and the Conditions Tab respectively.



Note: Change "tanto" (in the left picture, on the "Path:" field) to your user name.Add the "Unmount ISO" action (For desktop shortcuts files)
Press "Add" and enter the values like in this image to the Menu Item & Action Tab and the Conditions Tab respectively.



Note: Change "tanto" (in the left picture, on the "Path:" field) to your user name.


4. Go to System -> Preferences -> Sessions

Press "Add" and enter the values like in this image to the Startup Programs Tab.



Note: Change "tanto" (on the "Command:" field) to your user name.

That's it, now right click an iso file and click Mount.

[credits: Milk & Toast & Honey @ ubuntuforums.org]