Skip to content

Instantly share code, notes, and snippets.

@DrDougPhD
Last active October 5, 2017 18:45
Show Gist options
  • Save DrDougPhD/26254966a9e28130814491c78480baed to your computer and use it in GitHub Desktop.
Save DrDougPhD/26254966a9e28130814491c78480baed to your computer and use it in GitHub Desktop.
Install ruTorrent and rtorrent on OpenMediaVault 3 (Debian 8) using PHP7 and Nginx

This is incomplete. Don't follow these directions.

  1. Install rtorrent

    root@omv:~# apt-get install rtorrent -y

  2. Install PHP7 and other ruTorrent dependencies

    root@omv:# echo "deb http://packages.dotdeb.org jessie all" >>/etc/apt/sources.list.d/dotdeb-org.list root@omv:# echo "deb-src http://packages.dotdeb.org jessie all" >>/etc/apt/sources.list.d/dotdeb-org.list root@omv:# wget --output-document=/tmp/dotdeb.gpg https://www.dotdeb.org/dotdeb.gpg root@omv:# sudo apt-key add /tmp/dotdeb.gpg root@omv:# apt-get update root@omv:# apt-get install php7.0-geoip php7.0-cli php7.0-json php7.0-curl php7.0-cgi php7.0-mbstring unrar-free unzip mediainfo curl

#. Download ruTorrent and drop it in the appropriate directory

root@omv:~# apt-get install git
root@omv:~# pushd /var/www/
root@omv:/var/www# git clone https://github.com/Novik/ruTorrent.git
root@omv:/var/www# cd ruTorrent
root@omv:/var/www/ruTorrent# git checkout tags/v3.8
root@omv:/var/www/ruTorrent# popd
root@omv:~# chown -R www-data:www-data /var/www/ruTorrent

#. Secure login using a username and password

root@omv:~# apt-get install apache2-utils
root@omv:~# htpasswd -c /var/www/ruTorrent/.htpasswd rutorrent
root@omv:~# chown www-data:www-data /var/www/ruTorrent/.htpasswd

#. Configure nginx to use ruTorrent on a non-default port

pushd /etc/nginx/

Adapted from Tech and Me's and Juan Chong's tutorials. Also https://shiji.info/blog/2016/en/99.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment