Page 1 of 1

Mint xfce, Marlin, and Connecting to server password memory

Posted: Thu Apr 04, 2013 12:01 pm
by steve.sansumwright
Hi Guys I have been a happy user of Mint Xfce for a few months now. However I have had just one small niggle since installing it. When I connect to my home server I am asked for the password every time even though I have ticked remember forever in the GUI. Its nothing major but after googling the issue I am not sure if It is something I have done, maybe because I installed nautilus and then Marlin. I have read elsewhere that this can cause conflicts and Im hoping this isnt the case.

So I must ask you gurus out there if there is anyway I can sort this out, if not I will just muddle on as its only a minor thing so far.

All the best, Minty Fresh

Steve

Re: Mint xfce, Marlin, and Connecting to server password mem

Posted: Thu Apr 04, 2013 3:09 pm
by altair4
The package that controls the keeping of this password ( seahorse ) seems to be broken in Mint. I have a work around but it ain't pretty:

The command that actually connects to and mounts the share in Thunar ( or Nautilus/Nemo/Whatever ) can be passed parameters:

Code: Select all

gvfs-mount smb://server/share < /home/your-user-name/creds 
/home/your-user-name/creds has the user name, workgroup, and password - one per line - for the share that you are connecting to. You can create a launcher with that command or point it to a script that will launch the mount command and open thunar.

So the procedure is something like this:

** Create the /home/your-user-name/creds file.

Code: Select all

gedit /home/your-user-name/creds
** Add the credentials, for example:

Code: Select all

altair
workgroup
altair-password
** Create the script, let's say something like this:

Code: Select all

gedit /home/your-user-name/server-mount
** Add the following:

Code: Select all

#! /bin/bash
gvfs-mount smb://server/share < /home/your-user-name/creds
thunar /run/user/your-user-name/gvfs
EDIT: If you are using an earlier version on mint the mount point is in another location so the script would look like this:

Code: Select all

#! /bin/bash
gvfs-mount smb://server/share < /home/your-user-name/creds
thunar /home/your-user-name/.gvfs
** Make the script executable:

Code: Select all

chmod +x /home/your-user-name/server-mount
Then create a launcher on your desktop and point it to that script.

Re: Mint xfce, Marlin, and Connecting to server password mem

Posted: Thu Apr 04, 2013 8:15 pm
by steve.sansumwright
Thanks for your help, I really do appriciate it. Looking at what you have to go through to fix it I think I will just leave it as it is. Especially as Im not using thunar anyway. Maybe we will get it fixed in the near future :)

Thanks Again

Steve

Re: Mint xfce, Marlin, and Connecting to server password mem

Posted: Fri Apr 05, 2013 7:34 am
by altair4
Understood, but the solution I offered has nothing to do with Thunar since the same script will work ( substituting the file manager to the appropriate app ) for Cinnamon ( nemo ), MATE ( caja ), or Gnome3 itself ( nautilus ).