apt update
apt install vim htop wget curl -y
apt install nfs-common
showmount -e 10.10.1.8
mkdir /pt
mount -t nfs -onoexec,nosuid,nodev,noatime 10.10.1.8:/volume2/PT /pt
vim /etc/fstab
10.10.1.8:/volume2/PT /pt nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
wget --no-check-certificate https://raw.githubusercontent.com/Lazycat2017/transmission/master/transmission.sh
chmod +x transmission.sh
sh transmission.sh
chmod 777 /pt/ && mkdir -p /pt/torrent && chmod 777 /pt/torrent
wget --no-check-certificate https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh
sh install-tr-control-cn.sh
apt-get install python-pip python-setuptools -y
pip install --upgrade pip
pip2 install flexget
pip2 install transmissionrpc
mkdir /root/.flexget
vim /root/.flexget/config.yml
:set paste
tasks:
whsir:
rss: http://bt.3dmgame.com/rss.php
template: default
accept_all: yes
download: /pt/torrent
transmission:
path: /pt/
templates:
default:
transmission:
host: localhost
port: 8888
username: admin
password: "admin"
clean_transmission:
host: localhost
port: 8888
username: admin
password: "admin"
finished_for: 24 hours
web_server: 8889
flexget web passwd
flexget daemon start --daemonize
which flexget
which flexget
/usr/local/bin/flexget
crontab -e
*/5 * * * * /usr/local/bin/flexget -c /root/.flexget/config.yml execute
apt install python-pip python-m2crypto supervisor
vim /etc/supervisor/conf.d/flexgetweb.conf
[program:flexget-web]
command=python /usr/local/bin/flexget daemon start
user=root
autostart=true
autorestart=true
[program:transmission-daemon]
command=/usr/bin/transmission-daemon --foreground --config-dir /etc/transmission-daemon
user=root
autostart=true
autorestart=true
/etc/init.d/supervisor restart
supervisorctl status
vim /etc/profile
ulimit -n 51200
ulimit -Sn 4096
ulimit -Hn 8192
vim /etc/default/supervisor
ulimit -n 51200
ulimit -Sn 4096
ulimit -Hn 8192