|
安装ftp服务器:
1、1、CoreELEC已经集成了安装脚本,SSH登录你的CoreELEC,键入如下神秘代码,即可完成安装
installentware
2、vsftpd (service)
By default, LibreELEC has no ftp support but ftp could be useful for some iOS/Android apps with bad samba support, VLC, for example.
Here we could setup guest read-only ftp with a few commands:
Install vsftpd: opkg install vsftpd-ext
Run: nano -w /opt/etc/vsftpd/vsftpd.conf
# defaults - everything else could be disabled
anonymous_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
listen=YES
# overrides
anonymous_enable=YES
local_enable=NO
anon_root=/media
no_anon_password=YES
hide_ids=YES
pasv_min_port=40000
pasv_max_port=50000
ftp_username=nobody
This config will make vsftpd share all mounted devices.
Wrap service into systemd config: nano -w /storage/.config/system.d/vsftpd.service
[Unit]
Requires=network-online.service
After=network-online.service
[Service]
Type=oneshot
ExecStart=/opt/etc/init.d/S49vsftpd start
ExecStop=/opt/etc/init.d/S49vsftpd stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Auto start service on reboot: systemctl enable vsftpd.service
Start service now: systemctl start vsftpd.service |
|