Install uTorrent Server on Ubuntu 14.04

utorrent-logo

uTorrent is a well known bit torrent application that’s now available as a server application with a web GUI. It has features similar to those of the desktop version, thought not quite as many. When compared to other bit torrent applications like Transmission, uTorrent has far more advanced features. It is currently in alpha so bugs are likely to be encountered, it is still worth a try so lets install it!

 

Install the required dependencies if needed.

sudo apt-get install libssl0.9.8:i386

 

Download uTorrent Server for Linux and place it in the final installation directory.

mv utserver.tar.gz /opt

 

Unpack the archive.

tar -zvxf utserver.tar.gz

 

Optionally you can rename extracted directory to something more manageable.

mv utorrent-server-alpha-v3_3 utorrent

 

The archive is no longer needed so it can be deleted.

rm utserver.tar.gz

 

Run uTorrent to test if it is functioning correctly.

/opt/utorrent/./utserver

 

You should now be able to access uTorrent at the IP address of the system where uTorrent was installed and it’s default port. If you get “invalid request” printed on a blank screen that’s probably because you forgot to add “/gui” to the url.

http://192.168.0.12:8080/gui

 

If you are having other issues try running uTorrent as a daemon.

/opt/utorrent/./utserver -daemon

 

In the case where you are unable to reach the correct url at all it may be the an issue with conflicting ports on the system. Make sure you do not have any other applications using uTorrent default port – 8080. XBMC / Kodi uses port 8080 by default which will prevent one of the services from working correctly depending on the order they start in. To solve this you can either change the port the other service is using or change the port uTorrent is using. To do that open an existing file or create a new configuration file.

nano /opt/utorrent/utserver.conf

 

Edit or add the following line with your preferred port number.

ut_webui_port:8090

 

Start uTorrent at boot time

Create a new upstart configuration file for uTorrent.

nano /etc/init/utorrent.conf

 

You can use the same script I use.

description "uTorrent upstart script"
author "DominicM @ Dominicm.com"

# Run as user
setuid utorrent

# Run as group
setgid apps

# When to start the service
start on runlevel [2345]

# When to stop the service
stop on runlevel [016]

# Automatically restart process if crashed
respawn

# Start the process
script
exec /opt/utorrent/./utserver -daemon
end script

 

You can now start uTorrent with upstart.

start utorrent

 

Reboot to make sure uTorrent starts automatically.

reboot

 

All command together for quick reference:

apt-get install libssl0.9.8:i386
mv utserver.tar.gz /opt
tar -zvxf utserver.tar.gz
mv utorrent-server-alpha-v3_3 utorrent
rm utserver.tar.gz
nano /opt/utorrent/utserver.conf
start utorrent
reboot

dom