Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to create a bookmark that when I right click the Files icon in the Launcher and select the bookmark it will open the desire network shared folder.

Right now it only opens if I have previously opened the shared folder by going through the Browse Network option. What I want is to simply click the bookmark and this will open the network shared folder without the need for having it opened manually.

The shared folder is through Samba: smb://client/stuff/

Here is a screenshot of the Bookmark to Stuff:

enter image description here

It will only work if I have previously opened the shared folder by going through the Browse Network option in the Files app.

share|improve this question
    
possible duplicate of Proper fstab entry to mount a samba share on boot? –  MrVaykadji Mar 4 at 20:44
    

1 Answer 1

up vote 5 down vote accepted

A link to a network folder will only work immediately if it is mounted automatically at startup; you need to edit fstab, create a folder to mount the network folder in and set credentials.

I am trying to find a good manual, will post it back...

OK, couldn't find it, but it is not that complicated:

  1. Install cifs-utils.
  2. create a folder to mount the network share into (can be in your personal folder)
  3. create the credentials file: gksu gedit /root/.cifscredentials, add the following:

    user=your_username
    password=your_password
    
  4. add a line to fstab, to give you an impression, this is mine: the first section is the network share, the second is the folder you created to mount the share into

    //192.168.0.104/werkmap_documenten/documenten_Jacob /home/jacob/Netwerkmap cifs auto,iocharset=utf8,uid=jacob,gid=users,credentials=/root/.cifscredentials,file_mode=0775,dir_mode=0775 0 0
    

I hope I did not forget anything, but I think not. Good luck!

share|improve this answer
    
Pretty logical. Will wait for the manual then. Thanks jacob. –  Luis Alvarado Mar 4 at 20:42
    
@LuisAlvarado thanks for the edit! –  Jacob Vlijm Mar 4 at 21:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.