Search the web with Google

Android install

Android installation weblog

Enter your email address:

Jeroen´s weblog

Ubuntu install

Ubuntu installation weblog

Monday, July 27, 2009

mount a networkdrive in a save way

Arrow Map Windows Shares Permanently with GVFS

This tutorial is written bij NTolerance at

I copied the text for the case that that forum will be removed.


The file manager in MS Windows has a nice feature called "Map Network Drive". This allows you to permanently assign Samba shares to a drive letter which any program can access. It can be made persistent across reboots. This feature is tremendous when you have a Samba server on your network that has files you need to continuously access.

Applicable Systems

This guide will explain how to do the same using an up-to-date Ubuntu Intrepid or Jaunty. This guide will not work on Hardy unless this bugfix is backported to Hardy.

Comparison to Other Methods

There is an ages-old method which produces a similar result and involves editing /etc/fstab. I don't like this method for a number of reasons, such as the fact that it's difficult, it involves storing your Samba password in plain text, and it exposes a nasty bug that can cause your system to hang on shutdown.


1. Select the "Network" option from the "Places" menu.

2. Select the "Windows Network" icon.

3. Select the workgroup that your share resides in.

4. Select the PC on your network that contains the share you want to access. You will now see an authentication prompt. Enter the correct username and password. IMPORTANT: Make sure to select the radio button that is labled "Remember forever". This will permanently save your password in the GNOME keyring.

6. Select the "Connect" option. You will now see a folder for each share that is available on the selected PC.

8. Select the folder you want to access. You will now see a prompt regarding the keyring. Select the "Always Allow" option. The share is now temporarily mounted (will not survive a reboot) and your password is permanently saved and accessible in the GNOME keyring.

9. The share should be visible in the "Places" menu on the left of the Nautilus file manager. Select the eject icon to the right of the share to unmount it.

10. Now we will test out a command which will go into a script. Open the Terminal from the "Accessories" submenu in the "Applications" menu.

11. Run this command in the Terminal while filling in the appropriate information within the <> symbols.
gvfs-mount smb:///
gvfs-mount smb://desktop/sharedfolder
The share should now be mounted again and will appear in the "Places" menu on the left side of the Nautilus file manager. Select the eject icon to the right of the share to unmount it.

12. Now we will put that command in a script to be executed during startup. In the Terminal, run this command to create the script:
gedit ~/
If you'd like to change the path or the filename of the script, feel free to do so.

13. Paste this into the GEdit window while filling in the appropriate information into the <> symbols.
gvfs-mount smb:///
gvfs-mount smb://desktop/sharedfolder
14. Make the script executable by running this command in the Terminal:
chmod +x ~/
15. Now let's add the script to GNOME startup. Choose the "Startup Applications" option from the "Preferences" submenu located in the "System" menu.

16. Select the "Add" option. Type a name of your choice in the "Name" field, browse to the path of the script in the "Command" field, and optionally add a comment to the "Comment" field. Press the "Add" button to save your settings.

17. Now log out and log back in or restart your PC. Check the "Places" menu and the shares should be automatically mounted.

Usage Notes

The shares are mounted using GVFS. From the GNOME GUI, shares are accessible via the "Places" menu in Nautilus and the smb:// path in the address bar. Command-line programs can access these shares via the ~/.gvfs path.


If you'd like to remove these changes, follow the these two simple steps:

1. Choose the "Startup Applications" option from the "Preferences" submenu located in the "System" menu. Select the script and press the "Remove" button.

2. Delete the script with the Terminal:
rm ~/

I have a lot of links to my previous fstab mounts in various applications, so I decided to ease the transition by deleting the mount point folders (mine were in /mnt) and creating symbolic links to the hidden gvfs share directories:

sudo ln -s ~/.gvfs/'sharename on server' /mnt/sharename
Of course you could do the same thing in your home directory:

ln -s ~/.gvfs/'mp3s on server' ~/Music/shared
The next thing that I really need to verify is that files that I create on these shares are accessible to other users (I had to force 777 permissions on my NAS drives in fstab before).

Friday, July 3, 2009

Install Firefox 3.5 in Jaunty or Linux Mint 7

Installing outside of a package manager

Complete instructions for installing Firefox outside of package management may be available at your distribution's support website.

Before you install Firefox, make sure that your computer has the required libraries installed. Missing libraries will cause Firefox to be inoperable.

The following instructions will install Firefox into your home directory, and only the current user will be able to run it.

  1. Download Firefox from the Firefox download page to your home directory.
  2. Open a Terminal and extract the contents of the downloaded file.
    cd ~
    tar xjf firefox-*.tar.bz2
  3. Close Firefox if it's open.
  4. To start Firefox, run the firefox script in the firefox folder.

Firefox should now start. You can then create an icon on your desktop to run this command.

In dutch:

De volgende instructies zullen Firefox in uw thuismap installeren, en alleen de huidige gebruiker zal het kunnen uitvoeren.
  1. Download Firefox van de Firefox-downloadpagina naar uw thuismap.
  2. Open een Terminal en pak de inhoud van het gedownloade bestand uit.
    cd ~
    tar xjf firefox-*.tar.bz2
  3. Sluit Firefox af als het is geopend.
  4. Voer het script firefox in de map firefox uit om Firefox te starten.

Firefox zou nu moeten starten. Daarna kunt u een pictogram op uw bureaublad aanmaken om dit commando uit te voeren.

bericht “firefox niet geïnstalleerd” of verkeerde versie van Firefox start op

U moet Firefox starten met het commando

Als u Firefox probeert te starten met het commando
zal dit de versie starten die door de pakketbeheerder is geïnstalleerd, of u vertellen dat het programma niet is geïnstalleerd.