Page 1 of 1

login script mount network shares SOLVED

Posted: Tue Nov 20, 2012 4:56 pm
by epineda
I'm new to Linux and have been searching this forum and google for a solution without out luck.

Objective: I have several users using this computer and need a login script to mount network shares.

Background (other approach): I've tried Gigolo and creating shortcuts in Thunar. This approach has two issues: 1. VLC doesn't see the shortcuts when opening files or directories and 2. Thunar gives and error when opening the home folder. (Error stating file 'Home/user/.gvfs'. Transport endpoint is not connected). And I have to umount ~/.gvfs.

OS/apps: I'm running Mint 13 Xfce I did updates yesterday. I've installed smbfs. As noted above, I've also installed Gigolo.

Summary: I'd like to create login / logout scripts to mount the network shares. I need a create a script that is user independant as each user has different shares and different rights on "common" network shares.

Thanks in advance for your help.

Re: login script mount network shares

Posted: Tue Nov 20, 2012 7:06 pm
by altair4
I haven't experienced either one of those symptoms but you might try the following:
2. Thunar gives and error when opening the home folder. (Error stating file 'Home/user/.gvfs'. Transport endpoint is not connected). And I have to umount ~/.gvfs.
Edit a file as root:

Code: Select all

gksu gedit /usr/share/gvfs/mounts/network.mount
Change this:
[Mount]
Type=network
Exec=/usr/lib/gvfs/gvfsd-network
AutoMount=true
To this:
[Mount]
Type=network
Exec=/usr/lib/gvfs/gvfsd-network
AutoMount=false
You may have to logout and login again.
1. VLC doesn't see the shortcuts when opening files or directories
Not sure how you are doing the shortcut but what I usually do is open Thunar and drag and drop the .gvfs folder to the left side panel. Then when you open VLC ( or any other application ) and search for a file the .gvfs folder and it's remote share mounts ends up on it's left side panel as well.

Re: login script mount network shares

Posted: Wed Dec 05, 2012 8:41 pm
by epineda
OK, sorry for the delay in my response.

I changed the file to AutoMount=false and logged out and back in. This didn't have any impact on the (Error stating file 'Home/user/.gvfs'. Transport endpoint is not connected) error. I still get the error when opening or clicking on the home directory,

Regarding your feedback on the shortcuts, yes, I drag and drop them to the left side and they live there happly. When I Open Directory... from the media menu item in VLC the shortcuts are not on the left side of the browser. The same is true when I select Open File... from the media menu item.

Re: login script mount network shares

Posted: Fri Dec 07, 2012 1:59 am
by jjaythomas
hello
I changed the file to AutoMount=false and logged out and back in
I believe this is one off the instances you need to reboot (full shutdown restart) not just a logout. :wink:

Maybe
J.Jay

P.S. this still (a bug) that thunar won't show shorcuts unless (till) the share is mounted. The share saves in thunar but not show till actual (I use gigolo, also mount plugin for panel availlable).

Re: login script mount network shares

Posted: Sun Dec 09, 2012 12:08 am
by epineda
Thanks.
The home drive issue is fixed.

The VLC still will not show the shortcuts...odd as Banshee does show the shortcuts.