login script mount network shares SOLVED

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
epineda

login script mount network shares SOLVED

Post 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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11460
Joined: Tue Feb 03, 2009 10:27 am

Re: login script mount network shares

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
epineda

Re: login script mount network shares

Post 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.
jjaythomas

Re: login script mount network shares

Post 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).
epineda

Re: login script mount network shares

Post by epineda »

Thanks.
The home drive issue is fixed.

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

Return to “Xfce”