





As you can see from the screenshot, everything is simple. But what is important: after adding new users or deleting old ones, it is highly desirable to restart FTP, if he didn’t do it himself. Also, if you have a NAS stuck in a router, do not forget to forward ports to the outside! (if you need access to FTP from the server). On my D-Link DIR-615, for example, the settings look like this: 
Turn on, select folders ... Supports all file types I have encountered. Cons: Reindexing will have to run hands. Unpleasant. What to watch video? I have an android on my tablet and phone, so I use the free UPnPlay .
usermod -s /ffp/bin/sh root mkdir -p /ffp/home/root/ sed -ie 's#:/home/root:#:/ffp/home/root:#g' /etc/passwd pwconv If “usermod” errors appear: “usermod: no changes” or “pwconv”: “pwconv: failed to change the mode of / etc / passwd- to 0600” '- just ignore them. passwd Enter the new password. login We enter the root username and your password - we receive in reply the message “no mail”. The following steps are required to save a password: wget http://wolf-u.li/u/172/ -O /ffp/sbin/store-passwd.sh store-passwd.sh Activate SSH chmod a+x /ffp/start/sshd.sh sh /ffp/start/sshd.sh start And now - we connect in another window via SSH, we answer in the affirmative to the question about saving the key, and if everything went smoothly - we disable the autostart of the telnet service in the first window: chmod -x /ffp/start/telnetd.sh Preparation is complete - now you have full access and full control over the system. If, all of a sudden, you need to delete fun_plug, then echo "mijzelf http://downloads.zyxel.nas-central.org/Users/Mijzelf/FFP-Stick/packages/0.7/arm" >> /ffp/etc/funpkg/sites echo "memiks http://ffp.memiks.fr/pkg" >> /ffp/etc/funpkg/sites echo "kylek http://kylek.is-a-geek.org:31337/files/ffp/0.7-arm" >> /ffp/etc/funpkg/sites wget http://wolf-u.li/u/233 -O /ffp/start/optware.sh chmod a+x /ffp/start/optware.sh /ffp/start/optware.sh start slacker -U update information about available programs slacker -i install the program (select the desired one in the visual interface) slacker -r remove the program (select the desired one in the visual interface) ipkg update update information about available programs ipkg upgrade update installed programs ipkg install [ ] to install the program ipkg info [ ] get information about the program. Templates can be used in the title, for example, “scree *” ipkg remove [ ] remove the program. ipkg install pcre glib e2fsprogs slang libpng mc #!/ffp/bin/sh export TERM="xterm" export TERMINFO="/ffp/share/terminfo" export LANG="en_US.utf8" chmod a+x /ffp/etc/profile.d/mc.sh After that, let's pause. mc And you will have support for Russian file names, and normal key management. If there is a problem with Russian names, then go to this menu and everything will be fine: 


ipkg install screen #!/ffp/bin/sh alias screen="screen -U" This is necessary to automatically start the screen in UTF8 mode. Dislodge. slacker -i choose transmission and curl , then click "ok". chown -R nobody /mnt/HD/HD_a2/torrent mkdir /ffp/var/transmission mkdir /ffp/var/transmission/incomplete chown -R nobody /ffp/var/transmission TRANSMISSION_HOME=/ffp/var/transmission su nobody -c "transmission-daemon -f -g /ffp/var/transmission -w /mnt/HD/HD_a2/torrent -t -u admin -v password -a 127.0.0.1,192.168.*.*" Where admin is your username for working with the web interface, password is the password for it, 127.0.0.1,192.168. *. * Is the list of IPs from which you can enter the web interface Wait for the launch, then shut down the system by pressing CTRL + C. "incomplete-dir": "/ffp/var/transmission/incomplete", Directory for under-downloaded files "incomplete-dir-enabled": true, Store under-downloaded files in this directory "peer-port": 11000, "peer-port-random-high": 11999, "peer-port-random-low": 11001, Ports for download and return. "rpc-port": 9091, The port on which the web interface will be available. For example, in this case it will work at the address http://192.168.0.200:9091 from within the network "rpc-whitelist": "127.0.0.1,192.168.*.* " Make the web interface available only from these IPs. "rpc-whitelist-enabled": true, Enable access control panel access by IP. chown -R nobody /ffp/var/transmission chmod a+x /ffp/start/transmission.sh /ffp/start/transmission.sh start 
EDITOR=mcedit crontab -e Now add to the end a command of this type (re-indexing the database every hour, at the 5th minute of the hour) 5 * * * * /usr/local/modules/sbin/upnpdbmgr --mode=add [ ] Example of a real command: 5 * * * * /usr/local/modules/sbin/upnpdbmgr --mode=add /mnt/HD/HD_a2/torrent /mnt/HD/HD_a2/series /mnt/HD/HD_a2/movie To clear the database of already deleted files, use the command /usr/local/modules/sbin/upnpdbmgr --mode=remove-all More information about the crown - in Wikipedia . The idea (obvious, but not for a deliberate eye!) “To search for a program and put it in cron” suggested Diam0n .Source: https://habr.com/ru/post/155557/
All Articles