apt-get install transmission-daemon
/etc/init.d/transmission-daemon stop
Тут можно попасть на тот вариант, когда демон устойчив. Тогда читаем это:
Остановка демона
/etc/transmission-daemon/settings.json
"download-dir": "/home/user/sata/_download_"
# Удаляем все, что в кавычках, пишем вместо этого желаемый пароль. Пароль потом при запуске демона зашифруется
"rpc-password": "xxx"
# Оставляем, если хотим, чтобы к веб интерфейсу был доступ только с локальной машины, иначе меняем
"rpc-whitelist-enabled": true
/etc/init.d/transmission-daemon start
Имя пользователя можно поменять, тогда файлы будут создаваться от него.
Transmission не захотел забирать торрент-файлы из watchdir (ну не имеет он функциональности WATCHDIR) в
дропбоксе.
Пришлось вписать ему
скрипт
/etc/transmission-daemon/watchdog.sh
#!/bin/bash
# Watch dir, may contain spaces:
watchdir="/home/user/sata/_dropbox_/_torrent_/_new_/"
# move file to a subdirectory? if Commented out, it'll removed remove
# the torrent file.
# Note: Don't put a '/' before the path!
movesubdir="added/"
# Authentication "username:password":
tr_auth="transmission:pass"
# Transmission host "ip:port":
tr_host="127.0.0.1:9091"
# Verbose?
verbose=1
#############################################
time=$(date "+%Y-%m-%d (%H:%M:%S)")
if [ -n "$tr_auth" ]; then
tr_auth="--auth=$tr_auth"
fi
for file in "$watchdir"*.torrent
do
if [ -f "$file" ]; then
if [ -n "$verbose" ]; then echo "$time: $file added to queue."; fi
/usr/bin/transmission-remote "$tr_host" "$tr_auth" -a "$file" > /dev/null
# give the remote some time to process
sleep 5
if [ $movesubdir ]; then
if [ -d "$watchdir$movesubdir" ]; then
mv "$file" "$watchdir$movesubdir"
else
mkdir "$watchdir$movesubdir"
mv "$file" "$watchdir$movesubdir"
fi
else
rm "$file"
fi
else
if [ -n "$verbose" ]; then echo "$time: No torrent in $watchdir."; fi
fi
done
exit 0
И занести в крон каждые 5 минут:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /etc/transmission-daemon/watchdog.sh > /etc/transmission-daemon/watch.log
Transmission blocklist
Забэкапиться можно по этому пути:
/var/lib/transmission-daemon/info
Ещё почитать:
CubieBoard Forum
И для Ubuntu:
Transmission-daemon