Skip to content

Instantly share code, notes, and snippets.

@pricejt
Forked from jDmacD/qbBuild.sh
Last active August 7, 2020 02:10
Show Gist options
  • Save pricejt/d370461617f6dd720e9cdb68bc9c070f to your computer and use it in GitHub Desktop.
Save pricejt/d370461617f6dd720e9cdb68bc9c070f to your computer and use it in GitHub Desktop.
qbittorrent from scratch for pi
#!/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 install libqt5svg5-dev
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
sudo wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_6/libtorrent-rasterbar-1.0.6.tar.gz
sudo tar -zxvf libtorrent-rasterbar-1.0.6.tar.gz
cd libtorrent-rasterbar-1.0.6
sudo ./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 v4_0_x --single-branch
cd qBittorrent
#./configure --prefix=/usr --disable-gui --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
sudo ./configure --prefix=/usr --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
sudo make
sudo make install
cd ..
rm libtorrent-rasterbar-1.0.6.tar.gz
rm -R libtorrent-rasterbar-1.0.6
sudo rm -R qBittorrent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment