Remote Torrent Server with Deluge Web & Systemd

The Deluge torrent client can be run headless which is useful for downloading on a remote media server.

Install deluge & deluge-web

sudo apt install deluge deluged deluge-web

Systemd Services

/etc/systemd/system/deluged.service

[Unit]
Description=Deluge Torrent Server

[Service]
Type=simple
User=austin
Environment=
WorkingDirectory=/home/austin/
ExecStart=/usr/bin/deluged --do-not-daemonize
Restart=always

[Install]
WantedBy=multi-user.target

/etc/systemd/system/delugeweb.service

[Unit]
Description=Deluge Torrent Server

[Service]
Type=simple
User=austin
Environment=
WorkingDirectory=/home/austin/
ExecStart=/usr/bin/deluge-web
Restart=always

[Install]
WantedBy=multi-user.target

Starting the Services

sudo systemctl enable deluged.service
sudo systemctl start deluged.service
sudo systemctl enable delugeweb.service
sudo systemctl start delugeweb.service

Using Deluge Web UI

Open the web client:

http://MY_SERVER_IP:8112

The default password is ‘deluge’

Auto-connect of Web UI to Daemon

Modify ~/.config/deluge/web.conf and set “default_daemon” to the hash found in ~/.config/deluge/hostlist.conf.1.2

I assume you need to manually connect once to populate hostlist.

 

Advertisements

Media Server for Chromecast Streaming

I have now switched to using a Chromecast for all our TV needs. I have an old Android phone (Moto G) that has been re-purposed as the remote. For local pre-downloaded content, I have a Media Server running Ubuntu 17.10. The best setup I have found for streaming this local content to the Chromecast is VideoStream.

 

VideoStream Install

The Android App can be found here: https://getvideostream.com/
On Linux, there is no native install so you need to use Chrome and install VideoStream as an extension: https://chrome.google.com/webstore/detail/videostream-for-google-ch/cnciopoikihiagdjbjpnocolokfelagl?hl=en

As my server is headless, the install of Chrome and the VideoStream extension are done using ssh -X.

When you Pair your device, you also need to have Chrome open over SSH to receive the popup and accept the pairing.

Running VideoStream Headless on Boot

Create the following systemd service file: /etc/systemd/system/videostream.service

[Unit]
Description=VideoStream Server

[Service]
User=austin
Environment=
WorkingDirectory=/home/austin/
ExecStart=/bin/bash xvfb-run google-chrome --app-id=cnciopoikihiagdjbjpnocolokfelagl
Restart=always

[Install]
WantedBy=multi-user.target

Streaming Apps

Netflix, TVNZ and TV3.