You are not logged in.

#1 2013-09-07 20:45:12

fengshaun
Member
Registered: 2013-07-12
Posts: 26

Can't browse samba networks using Thunar

I have been trying to get Thunar to browse network (on openbox) to no avail.  When I click on "Browse network", I get this error message:

Failed to open "/ on".
Operation not supported.

So far, I have installed gvfs, gvfs-smb, fuse, samba, smbclient, and smbnetfs.
Per wiki's instruction, I have uncommented the following line in /etc/fuse.conf:

user_allow_other

and enabled the fuse module (modprobe fuse).

and per another forum post, changed my .xinitrc's exec line to read:

exec dbus-launch openbox-session

So far, I can view all the shares with smbtree and connect to them with smbclient //SERVER/share, but Thunar still refuses to browse the shares.
Is there any way I can get Thunar to browse the local network shares?

Last edited by fengshaun (2013-09-07 20:45:38)

Offline

#2 2013-09-07 21:24:26

rufus
Banned
From: san francisco
Registered: 2013-04-20
Posts: 153

Re: Can't browse samba networks using Thunar

there are a variety of plugins try https://aur.archlinux.org/packages/thun … es-plugin/
                             good luck!

Last edited by rufus (2013-09-07 21:26:47)


end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest  decision and effort
        evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'.         -me

Offline

#3 2013-09-08 03:44:31

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: Can't browse samba networks using Thunar

You could try in Thunar: go to View-->Location Selector and change to Toolbar Style.
Then type in the networkaddress: smb://192.168.xxx.xxx
I presume you did set smb.conf, and enabled smbd.service?

Offline

#4 2013-09-08 17:47:38

fengshaun
Member
Registered: 2013-07-12
Posts: 26

Re: Can't browse samba networks using Thunar

@rufus: my problem is browsing the shares, not sharing folders.

@henk: I tried that, but as soon as I enter smb:// in the location bar, the icon turns red and pressing enter won't do anything.

Offline

#5 2013-09-08 20:08:04

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: Can't browse samba networks using Thunar

Do you clear the addres bar completely before you enter it?  If it looks like '/home/<username>/smb://' or '/smb://' then yes , it wil not work.
If this is not the problem, you should check your smb.conf.

B.T.W we have the same packages installed apart from fuse and smbnetfs which I don't use.

Offline

#6 2013-09-08 20:24:05

fengshaun
Member
Registered: 2013-07-12
Posts: 26

Re: Can't browse samba networks using Thunar

Yea, I made sure the location bar reads only "smb://".  As soon as I enter the first slash, the icon turns red.

Offline

#7 2013-09-09 05:29:32

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: Can't browse samba networks using Thunar

Make sure smbclient is installed for the following.

I've found that gvfs-smb is terrible.  It hangs all the time when copying files when it even works.  What I now do, after fighting that piece of love, is just put some cifs mount points in my fstab.

See: Here.

If you want to omit the "ip=" parameter then edit "/etc/nsswitch.conf" and on the "hosts:" line put "wins" AFTER "dns" so it looks like this:

hosts: files dns wins myhostname

Adding "wins" enables NETBIOS name lookups so you don't need ip addresses.  You want wins after dns because if you put that lookup before dns you'll slow down your web-browsing.

Edit: then just mount and unmount the fstab shares as you need them. wink

Last edited by headkase (2013-09-09 05:31:17)

Offline

#8 2013-09-10 00:21:27

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: Can't browse samba networks using Thunar

Here is something that might be an issue as well:

http://www.dummies.com/how-to/content/c … Num-5.html

When using Samba with Microsoft Windows networks on the Windows side of things you should really put the encryption down to 40 or 56 bit if you expect it to work with Linux.

Last edited by headkase (2013-09-10 00:34:13)

Offline

#9 2013-09-10 01:27:06

fengshaun
Member
Registered: 2013-07-12
Posts: 26

Re: Can't browse samba networks using Thunar

Thanks a lot headkase!  I'm thinking I should just set aside Thunar and stick to the fuzzy and comfortable terminal given it's not the first time I'm reading about gvfs performance problems.  I'm just wondering, is the cifs/fstab reliable when the shares connect and disconnect randomly throughout the day? (the systems might shutdown or leave the network briefly).

Offline

#10 2013-09-10 01:37:16

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: Can't browse samba networks using Thunar

You're welcome.  I've not tested when a share goes down.  However, transferring files when a share is up: gvfs-smb locks within 1GB, cifs/fstab share: happily transfer 100GB without a hiccup.

Offline

#11 2013-09-10 01:47:59

fengshaun
Member
Registered: 2013-07-12
Posts: 26

Re: Can't browse samba networks using Thunar

just as a reference for later viewing.  It seems the 'nofail' option in /etc/fstab solves the problem of "what if it's not there to be mounted"?

Thanks!

Offline

#12 2013-09-10 01:56:56

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: Can't browse samba networks using Thunar

Right on, you're welcome again! wink

Edit: Also, put in noauto as a parameter if you don't want them mounted at boot..  uid=xxx, and gid=xxx are also some parameters to use with rw if you want write support for the shares.

Last edited by headkase (2013-09-10 02:00:44)

Offline

#13 2013-09-10 03:37:28

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: Can't browse samba networks using Thunar

headkase wrote:

transferring files when a share is up: gvfs-smb locks within 1GB

Having the same problem, although the 1GB mark is somewhat fuzzy. Thanks for this information.
Will try your suggestions when I have more time to deal with it.

Offline

#14 2013-09-10 03:39:38

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: Can't browse samba networks using Thunar

henk wrote:
headkase wrote:

transferring files when a share is up: gvfs-smb locks within 1GB

Having the same problem, although the 1GB mark is somewhat fuzzy. Thanks for this information.
Will try your suggestions when I have more time to deal with it.

Yes, the value is always different before it locks.  Could be as low as tens of kilobytes and might make it up to a few hundred megabytes.  However, for myself, gvfs-smb will always hang within a gigabyte of transfer.

Offline

Board footer

Powered by FluxBB