Created
January 31, 2020 11:37
-
-
Save 5nb/ebbe3e9889e27b37cd738470bc2df2c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt update -y && apt install aptitude sudo iperf3 vim unzip nano wget curl git screen software-properties-common build-essential libssl-dev libffi-dev python3-dev python3-pip python-pip python-dev -y | |
| sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable | |
| sudo apt-get update | |
| sudo apt-get install qbittorrent-nox | |
| echo " | |
| [Unit] | |
| Description=qBittorrent Daemon Service | |
| After=network.target | |
| [Service] | |
| LimitNOFILE=infinity | |
| User=root | |
| UMask=000 | |
| ExecStart=/usr/bin/qbittorrent-nox -d | |
| ExecStop=/bin/kill -9 $MAINPID | |
| Restart=on-failure | |
| [Install] | |
| WantedBy=multi-user.target | |
| "> /etc/systemd/system/qbittorrent.service | |
| mkdir -p /root/Downloads/ | |
| sudo chown -R root:root /root/Downloads | |
| systemctl enable qbittorrent.service | |
| systemctl start qbittorrent.service | |
| systemctl restart qbittorrent.service | |
| systemctl stop qbittorrent.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment