Raspberry Pi¶
uFTP runs on every Raspberry Pi: it is small, it has no dependencies except OpenSSL for TLS, and it builds on the board in a few seconds.
sudo apt-get install git gcc make libssl-dev
git clone https://github.com/kingk85/uFTP.git
cd uFTP
make ENABLE_OPENSSL_SUPPORT="-D OPENSSL_ENABLED" LIBS="-lpthread -lssl -lcrypto"
Install it and the configuration:
sudo cp build/uFTP /sbin/uFTP
sudo cp uftpd.cfg /etc/uftpd.cfg
sudo nano /etc/uftpd.cfg
sudo chown root:root /sbin/uFTP /etc/uftpd.cfg
sudo chmod 600 /etc/uftpd.cfg
For FTPS create a certificate as described in TLS and certificates, then run:
sudo uFTP
On a small board lower the number of slots, because their memory is reserved at start:
MAXIMUM_ALLOWED_FTP_CONNECTION = 20
To start uFTP at boot, use the systemd unit in Installation.
The users of the configuration file can see a USB disk if you set HOME_n to its mount point, for example /media/usb.