login script mount network shares SOLVED

Forum rules
Before you post please read how to get help

login script mount network shares SOLVED

Postby epineda on Tue Nov 20, 2012 4:56 pm

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 epineda on Fri Dec 14, 2012 9:31 pm, edited 1 time in total.
epineda
Level 1
Level 1
 
Posts: 3
Joined: Sun Nov 11, 2012 9:08 pm

Linux Mint is funded by ads and donations.
 

Re: login script mount network shares

Postby altair4 on Tue Nov 20, 2012 7:06 pm

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.
altair4
Level 16
Level 16
 
Posts: 6211
Joined: Tue Feb 03, 2009 10:27 am

Re: login script mount network shares

Postby epineda on Wed Dec 05, 2012 8:41 pm

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.
epineda
Level 1
Level 1
 
Posts: 3
Joined: Sun Nov 11, 2012 9:08 pm

Re: login script mount network shares

Postby jjaythomas on Fri Dec 07, 2012 1:59 am

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).
jjaythomas
Level 5
Level 5
 
Posts: 597
Joined: Sun Mar 07, 2010 12:52 pm

Re: login script mount network shares

Postby epineda on Sun Dec 09, 2012 12:08 am

Thanks.
The home drive issue is fixed.

The VLC still will not show the shortcuts...odd as Banshee does show the shortcuts.
epineda
Level 1
Level 1
 
Posts: 3
Joined: Sun Nov 11, 2012 9:08 pm


Return to XFCE

Who is online

Users browsing this forum: No registered users and 2 guests