□ Transmission 설치
apt install transmission-daemon
□ Transmission 중지
service transmission-daemon stop
□ Transmission Daemon의 저장 폴더에 쓰기 권한 설정
chgrp debian-transmission /home/저장폴더 이름
□ 실행 및 중지
sudo /etc/init.d/transmission-daemon stop
sudo /etc/init.d/transmission-daemon start
sudo /etc/init.d/transmission-daemon restart
sudo service transmission-daemon start
sudo service transmission-daemon stop
□ json 파일 수정
sudo nano /etc/transmission-daemon/settings.json
------------------------------ settings.json 설정
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/home/exHDD",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/home/저장폴더 이름",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"max-peers-global": 20,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 200,
"peer-limit-per-torrent": 50,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": 1,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 0.05,
"ratio-limit-enabled": true,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "사용자 PW입력",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "사용자id 넣기",
"rpc-whitelist": "*.*.*.*",
"rpc-whitelist-enabled": false,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/etc/transmission-daemon/done.sh",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 10,
"speed-limit-up-enabled": true,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 2,
"upload-limit": 10,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 1,
"utp-enabled": true,
"watch-dir": "/home/exHDD/watch",
"watch-dir-enabled": true
}
------------------------------
□ 실행여부 확인
웹브라우저 주소창 : IP주소:9091 입력
□ 부팅시 자동실행
sudo nano /etc/rc.local
------------------------------ rc.local 설정
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0” on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ “$_IP” ]; then
printf “My IP address is %sn” “$_IP”
fi
# ADD line :
sleep 20
sudo service transmission-daemon reload
exit 0
------------------------------
□ 문자발송
nano /etc/transmission-daemon/done.sh
------------------------------ done.sh 설정
#!/bin/sh
#Access Token setting
token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ← Pushbullet 토큰 id
#Transmission URL settings
transmission_url="http://xxxx.duckdns.org:0000/" ← Transmission 주소
#Pushbullet Push function
pushbullet() {
curl -u $token: https://api.pushbullet.com/v2/pushes -d type=note -d title="Transmission Download Completed!" -d url="$transmission_url" -d body="$TR_TORRENT_NAME($TR_TIME_LOCALTIME)" --insecure
}
#Push to Pushbullet
pushbullet
------------------------------
□ done.sh 권한설정
chmod a+x /etc/transmission-daemon/done.sh
□ Test
sh /etc/transmission-daemon/done.sh
'Single Board Computer' 카테고리의 다른 글
| Raspberry Pi 보드 LED 의미 (0) | 2023.01.11 |
|---|---|
| Single Board Computer setting 6. miniDLNA (0) | 2023.01.11 |
| Single Board Computer setting 4. MC, 외장HDD 연결 (0) | 2023.01.11 |
| Single Board Computer setting 3. FTP (0) | 2023.01.11 |
| Single Board Computer setting 2. SAMBA (0) | 2023.01.11 |