How can I create an ftp server?

I gave the pyftpdlib a try and it works very nicely. Here are the steps to reproduce:

  1. download the python script for running the ftp server (for example in /home/nemo/scripts):
    https://raw.githubusercontent.com/giampaolo/pyftpdlib/master/demo/unix_ftpd.py
  2. set the SSH access password in developer tools
  3. run terminal commands:

devel-su
pckon install python3-pip
pip3 install pyftpdlib
python3 /home/nemo/scripts/unix_ftpd.py

  1. now it should say something like:
    starting FTP server on 0.0.0.0:21, pid=12345
    You can stop the server by hitting ctrl+c.

At this point I could only access the ftp server from the Sailfish device itself (through browser), but not from any LAN device. I fixed this by editing the python script to use port 2121 instead of 21. Now it works with the camera using external wlan and hotspot as well. To check the ip address to access the ftp server you can use “ifconfig -a” and check the “inet addr” of “wlan0” or “tether” (for hotspot use).

That ZeroTierOne would surely be useful for certain scenarios, thanks for the tip. But for now I’ll just use the hotspot if I need to transfer on the go.

1 Like