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 [2019/03/26 12:32] – external edit 127.0.0.1 | 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 85: | Line 85: | ||
</ | </ | ||
- | The openSSL libraries are required | + | 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 | ||
< | < | ||
sudo apt-get install libssl-dev | sudo apt-get install libssl-dev | ||
Line 92: | Line 107: | ||
Generate a new certificate (only if TLS/SSH is enabled): | Generate a new certificate (only if TLS/SSH is enabled): | ||
< | < | ||
- | mkdir /etc/uftp | + | mkdir /etc/uFTP |
- | cd /etc/uftp | + | cd /etc/uFTP |
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 | openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 | ||
Line 102: | Line 117: | ||
mv newkey.pem key.pem | mv newkey.pem key.pem | ||
- | chown root:root /etc/uftp/ | + | chown root:root /etc/uFTP/key.pem |
- | + | ||
- | chmod -rwx /etc/uftp/key.pem | + | |
- | chmod u+rwx /etc/uftp/key.pem | + | chmod -rwx /etc/uFTP/key.pem |
</ | </ | ||
Line 127: | Line 140: | ||
chown root:root / | chown root:root / | ||
chmod -rwx / | chmod -rwx / | ||
- | chmod u+rwx / | ||
</ | </ | ||
Line 142: | Line 154: | ||
< | < | ||
# sudo cd /sbin | # sudo cd /sbin | ||
- | # sudo wget http:// | + | # for x64 |
+ | # sudo wget https:// | ||
+ | # for arm | ||
+ | # sudo wget https:// | ||
</ | </ | ||
Line 149: | Line 164: | ||
< | < | ||
# sudo cd /etc | # sudo cd /etc | ||
- | # sudo wget http:// | + | # sudo wget https:// |
</ | </ | ||
Line 157: | Line 172: | ||
chown root:root / | chown root:root / | ||
chmod -rwx / | chmod -rwx / | ||
- | chmod u+rwx / | ||
</ | </ | ||
Line 165: | 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.1553599941.txt.gz · Last modified: 2019/03/26 12:32 by 127.0.0.1