How to install Deluge on a Ubuntu Server

来源:互联网 发布:苹果手机数据缓存在哪 编辑:程序博客网 时间:2024/06/09 21:38

http://yaui.me/how-to-install-deluge-on-a-ubuntu-server/

Today I will show you how you can install Deluge in a Ubuntu Server. It takes a little bit of tinkering around but it is quite worth it.

If you don’t know deluge, read the description below or visit Deluge’s homepage (link at the bottom of the page).

 

Deluge is a full-featured  BitTorrent client for Linux, OS X, Unix and Windows. It uses libtorrent in its backend and features multiple user-interfaces including: GTK+, web and console. It has been designed using the client server model with a daemon process that handles all the bittorrent activity.

The Deluge daemon is able to run on headless machines with the user-interfaces being able to connect remotely from any platform.

Deluge features a rich plugin collection; in fact, most of Deluge’s functionality is available in the form of plugins.

It was created with the intention of being lightweight and unobtrusive.
It is our belief that downloading shouldn’t be the primary task on your computer and therefore shouldn’t monopolize system resources.

Deluge

 

Install Deluge on a Ubuntu Headless Server

 

1 – First we need to add Deluge PPA repository.

sudo add-apt-repository ppa:deluge-team/ppa

 

2 – Install Deluge web interface

sudo apt-get update
sudo apt-get install deluged deluge-webui

 

3 – Create the init script for Deluge

sudo nano /etc/init/deluge.conf

 

and add:

start on (filesystem and networking) or runlevel [2345]stop on runlevel [016]env uid=<user>env gid=<group>env umask=022exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluged -- -d

 

Note: replace <user> and <group> with the user you want to run deluge on and the group the user it’s in.

 

4 – Create the init script for Deluge’s web interface

sudo nano /etc/init/deluge-web.conf

 

and add:

start on started delugestop on stopping delugeenv uid=<user>env gid=<group>env umask=027exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluge-web
 

Note: remember to change the <user> and <group> as before.

 

5 – Finally we just need to start Deluge.

sudo start deluge

 

If the webui does not start automatically  you can issue the command:

sudo start deluge-web

 

 

Deluge Homepage