ftp-server-raspberry
Differences
This shows you the differences between two versions of the page.
| — | ftp-server-raspberry [2025/08/17 16:12] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | **How to install uFTP - FTP server on a Raspberry PI ** | ||
| + | |||
| + | uFTP server is a Full FTP SERVER ideal for small projects and in ARM devices such as Raspberry PI, it's lightweight it's portable and straightforward to use and configure. | ||
| + | It can be installed in any version of Raspberry PI. | ||
| + | |||
| + | In this tutorial we are going to install a full FTP server in just 2 minutes in your **raspberry PI**. | ||
| + | |||
| + | < | ||
| + | #Clone the repository | ||
| + | git clone https:// | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # Compile uFTP server | ||
| + | cd uFTP | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # To compile with TLS/SSL support edit the makefile and uncomment the following 2 lines | ||
| + | # | ||
| + | # | ||
| + | #compile the software | ||
| + | make | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | #Copy the files to the linux path. | ||
| + | sudo cp build/uFTP /sbin/uFTP | ||
| + | sudo cp uftpd.cfg / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # Configure the server | ||
| + | sudo nano / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | #Set permissions and root restriction of the configuration file. | ||
| + | sudo chown root:root /sbin/uFTP | ||
| + | sudo chown root:root / | ||
| + | sudo chmod -rwx / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | sudo mkdir /etc/uFTP | ||
| + | cd /etc/uFTP | ||
| + | sudo openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 | ||
| + | sudo openssl rsa -in key.pem -out newkey.pem | ||
| + | sudo mv newkey.pem key.pem | ||
| + | sudo chown root:root / | ||
| + | sudo chmod -rwx / | ||
| + | </ | ||
| + | |||
| + | Now configure the uFTP server, check the configuration page for more details [[uftp-server-configuration|uFTP server configuration]]. | ||
| + | |||
| + | < | ||
| + | #Run uFTP, note: root permissions are required to execute the uFTP server. | ||
| + | sudo uFTP | ||
| + | </ | ||
| + | |||
| + | Add uFTP to rc.local script for the automatic FTP server start at boot. | ||
| + | < | ||
| + | #sudo nano / | ||
| + | |||
| + | #add this line before exit 0 | ||
| + | uFTP | ||
| + | </ | ||
| + | |||
| + | |||
