uftp-server-installation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
uftp-server-installation [2018/06/17 14:04] – kingk | uftp-server-installation [2024/05/08 09:01] (current) – kingk | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | **uFTP server installation** | + | **uFTP |
**Option 1 install from sources (recommended)** | **Option 1 install from sources (recommended)** | ||
Line 18: | Line 18: | ||
**Compile uFTP server** | **Compile uFTP server** | ||
- | **Note:** To enable the large file support, | + | < |
+ | # cd uFTP | ||
+ | </ | ||
+ | |||
+ | **Note:** To enable the large file support, the Makefile | ||
< | < | ||
DEFINITIONS= | DEFINITIONS= | ||
Line 33: | Line 37: | ||
#TO ENABLE THE LARGE FILE SUPPORT UNCOMMENT THE NEXT LINE | #TO ENABLE THE LARGE FILE SUPPORT UNCOMMENT THE NEXT LINE | ||
DEFINITIONS=-D_LARGEFILE64_SOURCE | DEFINITIONS=-D_LARGEFILE64_SOURCE | ||
+ | </ | ||
+ | |||
+ | **Note:** To enable TLS/SSL find the following lines in the Makefile file. | ||
+ | < | ||
+ | ENABLE_OPENSSL_SUPPORT= | ||
+ | #TO ENABLE OPENSSL SUPPORT UNCOMMENT NEXT 2 LINES | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | Remove the comments at the lines: | ||
+ | < | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | The final result would be: | ||
+ | < | ||
+ | ENABLE_OPENSSL_SUPPORT= | ||
+ | #TO ENABLE OPENSSL SUPPORT UNCOMMENT NEXT 2 LINES | ||
+ | ENABLE_OPENSSL_SUPPORT=-D OPENSSL_ENABLED | ||
+ | LIBS=-lpthread -lssl -lcrypto | ||
+ | </ | ||
+ | |||
+ | **Note:** To enable the PAM Authentication module for the standard / | ||
+ | < | ||
+ | ENABLE_PAM_SUPPORT= | ||
+ | PAM_AUTH_LIB= | ||
+ | #TO ENABLE PAM AUTH UNCOMMENT NEXT TWO LINES | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | Remove the comments at the lines: | ||
+ | < | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | The final result would be: | ||
+ | < | ||
+ | ENABLE_PAM_SUPPORT= | ||
+ | PAM_AUTH_LIB= | ||
+ | #TO ENABLE PAM AUTH UNCOMMENT NEXT TWO LINES | ||
+ | ENABLE_PAM_SUPPORT= -D PAM_SUPPORT_ENABLED | ||
+ | PAM_AUTH_LIB= -lpam | ||
+ | </ | ||
+ | |||
+ | To disable IPV6 support, for legacy device modify the makefile by disabling the IPV6_ENABLED define | ||
+ | From | ||
+ | < | ||
+ | ENABLE_IPV6_SUPPORT= | ||
+ | #TO ENABLE IPV6 support uncomment next line | ||
+ | ENABLE_IPV6_SUPPORT=-D IPV6_ENABLED | ||
+ | </ | ||
+ | |||
+ | to this | ||
+ | |||
+ | < | ||
+ | ENABLE_IPV6_SUPPORT= | ||
+ | #TO ENABLE IPV6 support uncomment next line | ||
+ | # | ||
+ | </ | ||
+ | openSSL libraries are required if uFTP is compiled with TLS support, under Ubuntu use the following command: | ||
+ | < | ||
+ | sudo apt-get install libssl-dev | ||
+ | </ | ||
+ | |||
+ | Generate a new certificate (only if TLS/SSH is enabled): | ||
+ | < | ||
+ | mkdir /etc/uFTP | ||
+ | |||
+ | cd /etc/uFTP | ||
+ | |||
+ | openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 | ||
+ | |||
+ | openssl rsa -in key.pem -out newkey.pem | ||
+ | |||
+ | mv newkey.pem key.pem | ||
+ | |||
+ | chown root:root / | ||
+ | |||
+ | chmod -rwx / | ||
+ | |||
</ | </ | ||
Line 38: | Line 126: | ||
< | < | ||
- | # cd uFTP | + | # make |
- | # make -f MakeFileGeneric | + | |
</ | </ | ||
Line 53: | Line 140: | ||
chown root:root / | chown root:root / | ||
chmod -rwx / | chmod -rwx / | ||
- | chmod u+rwx / | ||
</ | </ | ||
Line 68: | Line 154: | ||
< | < | ||
# sudo cd /sbin | # sudo cd /sbin | ||
- | # sudo wget http:// | + | # for x64 |
+ | # sudo wget https:// | ||
+ | # for arm | ||
+ | # sudo wget https:// | ||
</ | </ | ||
Line 75: | Line 164: | ||
< | < | ||
# sudo cd /etc | # sudo cd /etc | ||
- | # sudo wget http:// | + | # sudo wget https:// |
</ | </ | ||
Line 83: | Line 172: | ||
chown root:root / | chown root:root / | ||
chmod -rwx / | chmod -rwx / | ||
- | chmod u+rwx / | ||
</ | </ | ||
Line 91: | Line 179: | ||
</ | </ | ||
- | All binary downloads and examples can be found at: http:// | + | All binary downloads and examples can be found at: https:// |
uftp-server-installation.1529237067.txt.gz · Last modified: 2019/03/26 12:32 (external edit)