# BT下載器 ## Transmission on Ubuntu Server 由於直接用 apt install 只能獲取舊版的 transmission ~~sudo apt install transmission~~ 因此我們需要新增 PPA repository ```bash= sudo add-apt-repository ppa:transmissionbt/ppa ``` Update Apt-Cache ```bash= sudo apt update ``` Install Transmission ```bash= sudo apt-get install transmission-cli transmission-common transmission-daemon ``` Enable transmission-daemon service ```bash= sudo service transmission-daemon start sudo service transmission-daemon stop sudo service transmission-daemon restart sudo service transmission-daemon reload ``` Configure transmission setting 設定時務必關閉 Transmission ```bash= sudo nano /var/lib/transmission-daemon/info/settings.json ``` Web Interface ``` http://server-ip:9091 ``` Add a Torrent ```bash= transmission-remote -n 'username:password' -a "torrent_file or magent_link" ``` Transmission --help https://help.ubuntu.com/community/TransmissionHowTo https://linuxhint.com/transmission-bittorrent-client-linux/ https://ubuntuhandbook.org/index.php/2020/05/transmission-3-00-released-how-to-install-in-ubuntu-20-04/ ## qBittorrent in Ubuntu Server Install qBittorrent on Ubuntu 18.04 Desktop via PPA ```bash= sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable sudo apt install qbittorrent-nox ``` Add User ```bash= sudo adduser --system --group qbittorrent-nox sudo adduser "your-username" qbittorrent-nox ``` Create a systemd service file ```bash= sudo nano /etc/systemd/system/qbittorrent-nox.service ``` ```bash= [Unit] Description=qBittorrent Command Line Client After=network.target [Service] #Do not change to "simple" Type=forking User=qbittorrent-nox Group=qbittorrent-nox UMask=007 ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080 Restart=on-failure [Install] WantedBy=multi-user.target ``` ```bash= sudo systemctl start qbittorrent-nox sudo systemctl daemon-reload sudo systemctl enable qbittorrent-nox ``` Accessing qBittorrent Web UI Username is "admin". Default password is “adminadmin”. ``` http://server-ip:8080 ``` disable iptable ```bash= sudo systemctl stop iptables.service sudo systemctl disable iptables.service sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT sudo iptables -F ``` https://www.linuxbabe.com/ubuntu/install-qbittorrent-ubuntu-18-04-desktop-server