- BT 動物機 - Headless Transmission
- DLNA Server - minidlna
廢話不多說, 直接來裝吧。
Headless Transmission
安裝 transmission-daemon + 設定防火牆 ufwsudo apt-get install transmission-daemon設定 /etc/transmission-daemon/settings.json
cd /home
sudo mkdir -p ./torrents/download
sudo mkdir ./torrents/upload
sudo mkdir ./torrents/incomplete
sudo chown -R debian-transmission:debian-transmission ./torrents
sudo chmod g+w -R ./torrents/
sudo ufw allow 9091
sudo ufw allow proto tcp to any port 49152:65535
sudo /etc/init.d/transmission-daemon stop
sudo vim /etc/transmission-daemon/settings.json
"download-dir": "/home/torrents/download",把你的帳戶加入 transmission 所屬 group
"incomplete-dir": "/home/torrents/incomplete",
"incomplete-dir-enabled": true,
"rpc-authentication-required": true, // 需要驗證
"rpc-whitelist": "127.0.0.1,192.168.*.*", // 可以連線的 ip
"rpc-username": "你的帳戶",
"rpc-password": "你的密碼",
"umask": 2, // 讓下載的檔案 user & group 擁有相同權限
"port-forwarding-enabled": false,
"peer-port-random-on-start": true,
"upload-limit": 100, // 上傳限制 100 K
"upload-limit-enabled": 1, // 啟用上傳限制
sudo usermod -a -G debian-transmission讓 transmission-daemon 重新讀取設定 (當他關閉時會自動複寫 settings.json)
invoke-rc.d transmission-daemon reload啟動 transmission-daemon
sudo service transmission-daemon start打開瀏覽器, 輸入網址
http://就可以開始用網頁操作了。:9091/transmission/web/
minidlna
安裝sudo apt-get install minidlna建立 DLNA server 檔案目錄
sudo mkdir -p /d/music設定防火牆 ufw (我的區網是 192.168.1.*)
sudo mkdir -p /d/photo
sudo mkdir -p /d/video
sudo chown -R minidlna:minidlna /d/
sudo mkdir -p /var/{cache,log}/minidlna
sudo chown -R minidlna:minidlna /var/{cache,log}/
sudo ufw allow from 192.168.1.0/24 to any port 1900 proto udp設定 /etc/minidlna.conf
sudo ufw allow from 192.168.1.0/24 to any port 8200 proto tcp
把下面設定註解取消,並改成設定的值
friendly_name=Ubuntu DLNA Server # 要顯示的名稱重建 media db & restart
network_interface=eth1 # 如果不是 eth0, 請指定
media_dir=A,/d/music
media_dir=P,/d/photo
media_dir=V,/d/video
db_dir=/var/cache/minidlna
log_dir=/var/log
inotify=yes # (default)
enable_tivo=no # (default)
strict_dlna=no # (default)
notify_interval=900 # (default)
serial=12345678 # (default)
model_number=1 # (default)
sudo service minidlna stop
sudo service minidlna force-reload
sudo service minidlna start
沒有留言:
張貼留言