Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't access FTP/SFTP locations using Thunar, PCManFS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
MF_Luder
n00b
n00b


Joined: 20 Jul 2014
Posts: 6

PostPosted: Tue Jun 09, 2015 7:45 pm    Post subject: Can't access FTP/SFTP locations using Thunar, PCManFS Reply with quote

According to all of the up to date information that I can find on the subject, Thunar, PCManFM, and Nautilus are supposed to be able to browse to network locations using SSH, SFTP, FTP, or Samba using URIs like sftp://example.com/ and public key authentication. I have an SFTP server on my network, I have public key authentication set up, and I can access it this way from Nautilus in a CentOS VM. I would like to be able to do this from Thunar running on Gentoo, but I can't figure it out. As soon as I type the first slash in the URI into Thunar the icon in the location bar goes red as if to tell me that the location doesn't exist, and completing the URI and attempting to browse to it does nothing. In PCManFM I get an error message that says "Operation not supported". I have all of the Thunar plugins installed except for the VCS one. I've tried every combination of USE flags for Thunar and GVFS that makes any kind of sense.

I don't know exactly what GVFS does or how it works, but I understand that in one way or another it is supposed to be responsible for providing the functionality that I'm looking for. I've been trying to use gvfs-mount on the command line, but I can't make it do anything except return the error "Error mounting location: volume doesn't implement mount".

If it matters, I'm not using a DE. I use startx and ~/.xinitrc to launch openbox, conky, and a dock. Consolekit and polkit were installed as dependencies when I enabled the udisks USE flag for Thunar, but I had previously not been using them. I installed LXDE and XFCE4 to see if their file managers would work properly from within them, but neither one will launch. I'm lost. Any help is appreciated.
Back to top
View user's profile Send private message
snkmoorthy
Guru
Guru


Joined: 19 Nov 2002
Posts: 376

PostPosted: Wed Jun 10, 2015 8:39 am    Post subject: Reply with quote

Please install gvfs
Quote:

[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for gnome-base/gvfs-1.22.3:
U I
- - afp : Enables support for accessing AFP (Apple Filing Protocol) network shares
- - archive : Enables support for accessing files in archives transparently via app-arch/libarchive
- - bluray : Enable playback of Blu-ray filesystems using media-libs/libbluray
+ + cdda : Add Compact Disk Digital Audio (Standard Audio CD) support
- - fuse : Enables fuse mount points in $HOME/.gvfs for legacy application access
- - gnome-online-accounts : Enable configuration panel for net-libs/gnome-online-accounts accounts
- - gphoto2 : Add digital camera support
+ + gtk : Add support for x11-libs/gtk+ (The GIMP Toolkit)
+ - http : Enable the HTTP/DAV backend using net-libs/libsoup-gnome
- - ios : Enable support for Apple's iDevice with iOS operating system (iPad, iPhone, iPod, etc)
- - libsecret : Enable app-crypt/libsecret support to store login credentials.
- - mtp : Enable support for Media Transfer Protocol
- - samba : Add support for SAMBA (Windows File and Printer sharing)
- - systemd : Enable use of systemd-specific libraries and features like socket activation or session
tracking
- - test : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles
this internally, so don't set it in make.conf/package.use anymore
+ + udev : Enable udev base replacement code for cdda feature
+ + udisks : Enable storage management support (automounting, volume monitoring, etc)
- - zeroconf : Support for DNS Service Discovery (DNS-SD)


in PcmanFM gvfs(/usr/libexec/gvfsd-sftp) is used to mount sftp folders
Back to top
View user's profile Send private message
MF_Luder
n00b
n00b


Joined: 20 Jul 2014
Posts: 6

PostPosted: Wed Jun 10, 2015 4:10 pm    Post subject: Reply with quote

snkmoorthy wrote:
Please install gvfs

in PcmanFM gvfs(/usr/libexec/gvfsd-sftp) is used to mount sftp folders


This is also supposed to be true for Thunar and Nautilus, as far as I can tell, but it is not working for me. GVFS is installed. I have all of those USE flags enabled plus some others, and I've tried many different combinations of USE flags for it and its dependencies. Mounting SFTP folders still doesn't work.
Back to top
View user's profile Send private message
snkmoorthy
Guru
Guru


Joined: 19 Nov 2002
Posts: 376

PostPosted: Wed Jun 10, 2015 4:42 pm    Post subject: Reply with quote

If you can mount external drives(USB pendrives..) ignore this.

this is a policy kit rule to allow normal users to mount stuff
Quote:

cat /etc/polkit-1/rules.d/99-udisk.rules

Code:

polkit.addRule(function(action, subject) {
  if (action.id.indexOf("org.freedesktop.udisks") == 0) {
     return polkit.Result.YES;
   }
});
Back to top
View user's profile Send private message
MF_Luder
n00b
n00b


Joined: 20 Jul 2014
Posts: 6

PostPosted: Wed Jun 10, 2015 5:15 pm    Post subject: Reply with quote

snkmoorthy wrote:
If you can mount external drives(USB pendrives..) ignore this.

this is a policy kit rule to allow normal users to mount stuff


I had been using "uam", which is just a set of udev rules, to auto-mount external drives without consolekit or polkit. I uninstalled it to see if things would be auto-mounted without it now that consolekit and polkit are installed. They are not, with or without your polkit rule.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6193

PostPosted: Wed Jun 10, 2015 5:35 pm    Post subject: Reply with quote

Is pcmanfm/Thunar running as a daemon ?
Cause, you know, something has to call for mounting...
Back to top
View user's profile Send private message
MF_Luder
n00b
n00b


Joined: 20 Jul 2014
Posts: 6

PostPosted: Wed Jun 10, 2015 5:40 pm    Post subject: Reply with quote

VoidMage wrote:
Is pcmanfm/Thunar running as a daemon ?
Cause, you know, something has to call for mounting...

I was using Thunar to test auto-mounting a little while ago, but I've now confirmed that it doesn't work in PCManFM either, whether or not it is running as a daemon.

UPDATE:
I just noticed that I get some output in the terminal when I run "thunar --daemon" and insert a flash drive:
Quote:
thunar-volman: Unsupported USB device type "usb".
thunar-volman: Unsupported USB device type "usb-storage".
thunar-volman: Unknown block device type "disk".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum