Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-05-13 07:12:42

UnMamouth
Member
Registered: 2014-05-13
Posts: 7

How to spy what command is Thunar using for connection to a network ?

Hello to all.

I am using Linux Mint 16 (Petra) XFCE (version 4.10 if I am correct).

I am having trouble trying to set connections to a windows server using fstab or command line (mount).
But when I manually set the connection using Thunar's 'Browse network' , it works fine.
I only need to be able to set these connections automatically.

Here is a thread in French discussing in details the problem : http://forum.ubuntu-fr.org/viewtopic.ph … #p16904371

Since it works fine in Thunar but I cannot find neither the right command-line nor the right mount command, I was wondering if there is a way to spy what command is Thunar using (in logs for example) ?

Offline

#2 2014-05-13 11:22:21

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 2,989

Re: How to spy what command is Thunar using for connection to a network ?

Thunar uses gvfs to do its mounting. In a terminal window, enter:

gvfs-mount -o -i

...and then mount through thunar and you will see some detail about the mounting.

You can also use the gvfs tool directly. For example:

gvfs-mount smb://toz@192.168.1.254/familypics

...to do the mounting or use the application gigolo (which also uses gvfs).

"gvfs-mount --help" for more options.

However, this doesn't help you solve your cifs mounting problem. You might want to try creating a thread at ubuntuforums.org, there are a number of people there who know samba really well.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Online

#3 2014-05-13 15:24:32

UnMamouth
Member
Registered: 2014-05-13
Posts: 7

Re: How to spy what command is Thunar using for connection to a network ?

Hello.

Thanks for helping.

I did the "gvfs -o -i":

manfred@Portable-TRE-Manfred ~ $ gvfs-mount -o -i
Monitoring events. Press Ctrl+C to quit.
Mount added: 'mamoureux$ sur srvtransenergie'
  Mount(0): mamoureux$ sur srvtransenergie -> smb://srvtransenergie/mamoureux$/
    Type: GDaemonMount
    default_location=smb://srvtransenergie/mamoureux$/
    themed icons:  [folder-remote]  [folder]
    symbolic themed icons:  [folder-remote-symbolic]  [folder-symbolic]
    can_unmount=1
    can_eject=0
    is_shadowed=0

When I try to mount manually , I get

Erreur lors du montage de l'emplacement : le volume n'implémente pas le montage

, i.e. "Error : the volume does not implement mounting".

Do you understand what that means ?

Offline

#4 2014-05-13 17:13:37

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 2,989

Re: How to spy what command is Thunar using for connection to a network ?

What command did you use to mount it manually?

When you mount from thunar, do you enter username, domain, and password?


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Online

#5 2014-05-14 08:46:14

UnMamouth
Member
Registered: 2014-05-13
Posts: 7

Re: How to spy what command is Thunar using for connection to a network ?

Hello.
I used : gvfs-mount smb://mamoureux@192.168.1.201/mamoureux$/ /home/manfred/ReseauTRE/Test5/

When I mount in Thunar, a pop-up window asks me for login, domain and password, and after I enter them it works fine (except that, despite that I tick the box for 'remember for ever' , I have to enter these identifiers every time I boot the laptop again).

Offline

#6 2014-05-14 10:17:36

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 2,989

Re: How to spy what command is Thunar using for connection to a network ?

UnMamouth wrote:

I used : gvfs-mount smb://mamoureux@192.168.1.201/mamoureux$/ /home/manfred/ReseauTRE/Test5/

Don't specify a mount location (destination). I believe that in ubuntu, gvfs will create the mount location in /run/user/<uid>/gvfs where <uid> is your current user uid. So:

gvfs-mount smb://mamoureux@192.168.1.201/mamoureux$/

...should work.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Online

#7 2014-05-14 14:07:21

UnMamouth
Member
Registered: 2014-05-13
Posts: 7

Re: How to spy what command is Thunar using for connection to a network ?

Hello.

Indeed it does work ! Thanks.
The mount location is actuallt /run/user/<uid>/gvfs .

Is there any way to specify a/ the domain and password so I don't have to enter them manually , b/ the mount location ?

Offline

#8 2014-05-14 15:51:46

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 2,989

Re: How to spy what command is Thunar using for connection to a network ?

a) This link shows how to use an expect script to do this. You can also use gigolo. Plus with gigolo, you can set it to automount the shares. Just place gigolo in your startup applications and they get automounted on login.

b) One way would be to use links. There must be some way to change the default gvfs file location and share names but I don't know off the top of my head. I'll have a look to see if I can find something.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Online

Board footer

Powered by FluxBB