Skip to content

Instantly share code, notes, and snippets.

@5nb
Created January 31, 2020 11:37
Show Gist options
  • Select an option

  • Save 5nb/ebbe3e9889e27b37cd738470bc2df2c7 to your computer and use it in GitHub Desktop.

Select an option

Save 5nb/ebbe3e9889e27b37cd738470bc2df2c7 to your computer and use it in GitHub Desktop.
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