Installing a torrent client on OSMC

Compile & Install Deluge on OSMC

Depending on the version available in the repository, you can always compile it yourself, it takes just a few minutes:

sudo apt-get install python python-twisted python-twisted-web python-openssl \
python-simplejson python-setuptools intltool python-xdg python-chardet \
geoip-database python-libtorrent python-notify python-pygame python-glade2 \
librsvg2-common xdg-utils python-mako bzip2 -y

cd ~/
mkdir deluge
cd deluge
wget http://download.deluge-torrent.org/source/deluge-1.3.11.tar.bz2
tar xvf deluge-1.3.11.tar.bz2
cd deluge-1.3.11
python setup.py clean -a #may look like error message, is not, nothing to worry$
python setup.py build
sudo python setup.py install
sudo python setup.py install_data
cd ~/
sudo rm -rf deluge/

after it finishes, start deluge with

deluged

give it a few seconds, stop it:

sudo pkill deluged

the above is needed to generate the initial config file, which we will modify to grant access to the osmc user:

cp ~/.config/deluge/auth ~/.config/deluge/auth.old
nano ~/.config/deluge/auth

add the line:

osmc:osmc:10

at the end of the file and save with ctrl+x

to allow remote access, run also these commands:

deluged
deluge-console
config -s allow_remote True
config allow_remote
exit

with deluge already runing, to start the web interface in the background run:

deluge-web --fork

at any point you can kill all with

sudo pkill deluge

The instructions above were 99% inspired from the onepitwopi.com website, I only added bzip2 in the initial install, bumped the version to 1.3.11 and changed the user from pi to osmc.

Thanks to @cocomic for putting together this guide!

1 Like