#!/bin/bash # https://github.com/qbittorrent/qBittorrent/wiki/Setting-up-qBittorrent-on-Ubuntu-server-as-daemon-with-Web-interface-(15.04-and-newer) # https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu#Required_dependencies cd ~/ sudo apt-get install libboost-dev libboost-system-dev build-essential -y sudo apt-get install libqt4-dev -y sudo apt-get install qtbase5-dev qttools5-dev-tools -y sudo apt-get install geoip-database -y sudo apt-get install libboost-system-dev libboost-chrono-dev libboost-random-dev libssl-dev libgeoip-dev pkg-config -y wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_6/libtorrent-rasterbar-1.0.6.tar.gz tar -zxvf libtorrent-rasterbar-1.0.6.tar.gz cd libtorrent-rasterbar-1.0.6 ./configure --disable-debug --prefix=/usr --with-libgeoip=system --with-boost-libdir=/usr/lib/arm-linux-gnueabihf && make clean && make sudo make uninstall sudo make install-strip cd .. git clone https://github.com/qbittorrent/qBittorrent --branch v3_3_x --single-branch cd qBittorrent ./configure --prefix=/usr --disable-gui --with-boost-libdir=/usr/lib/arm-linux-gnueabihf make sudo make install cd .. rm libtorrent-rasterbar-1.0.6.tar.gz rm -R libtorrent-rasterbar-1.0.6 sudo rm -R qBittorrent