How to open FTP as a directory with nautilus-connect-server instead of a web page

Asked by Vaclav Petras

The older versions of nautilus-connect-server connected the FTP server as a directory to

  /run/user/1000/gvfs/

But the version which is in Ubuntu 15.10 open a page in a web browser instead. This is not usable for writing, only for reading. Is there a way I can use it to connect FTP as a directory as before, so I can use any tools to read and write there?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Mount the FTP using nautilus using the File menu. Once it is mounted, you can add it as a bookmark and it will appear in the left panel of the file browser. You can then treat the FTP files just as you would the local ones.

Revision history for this message
Vaclav Petras (wenzeslaus) said :
#2

This works just inside Nautilus or Gnome Files but it does not connect the FTP as a directory. It just looks like directory in the file manager. As a consequence most programs cannot work with FTP connected like this. Opening an image actually works (in Eye) but Geany or Terminal does not work, Gimp in the context menu and can open it but it can't save it. Copying the file path gives:

ftp://example.com/file.txt

So I assume all programs would have to implement FTP protocol. For example Firefox opens an HTML from the context menu but requires authentication.

The previous versions of nautilus-connect-server were mounting a directory and this worked universally with all programs. Is there a way to get this behavior?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

This is how Linux manages file systems (remote or local). When a file system is mounted, it is mounted to a folder in the tree structure of the system.

When you access a folder which is a mount point, the kernel knows to access the data in a different way and the data is presented to you.

If you add the mount point folder, rather than the location as you access it, it may work OK.

With the FTP mounted, what is the output of:

lsb_release -a; uname -a; mount

Thanks

Revision history for this message
Vaclav Petras (wenzeslaus) said :
#4

Yes. This is the behavior I want and how it worked before. But that's not what I'm getting. It seems to me that nautilus-connect-server now redirects you to a browser and Gnome Files uses some internal functions to work with FTP. For example. I can create file using right click > New Document > Empty File but when I try to open it, it opens in a web browser which asks me for login (the FTP is with login). While with a normal directory, it open in Gedit.

Here is the output (I can see the FTP directory in file browser):

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily

Linux lemur 4.2.0-36-generic #42-Ubuntu SMP Thu May 12 22:05:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8157412k,nr_inodes=2039353,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1635292k,mode=755)
/dev/nvme0n1p2 on / type ext4 (rw,noatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (rw,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-release-agent.hugetlb)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
cgmfs on /run/cgmanager/fs type tmpfs (rw,relatime,size=100k,mode=755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1635292k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Vaclav Petras (wenzeslaus) said :
#6

I still need an answer. Please, let me know if you need more info from me.

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.