[How to] Create a Seedbox with deluge


#1

NOTE : i am php developer not a linux expert just leaving this here

  • create 2 volumes (max 250 GB)
    1. 150 GB
    2. 100 GB

  • create a server Ubuntu Trusty (14.04 LTS)

  • attach them to server . you can only do it when server is off.
    in my example as you see they are attached as

1-/dev/nbd1
2-/dev/nbd2

here we go .

sudo su -

apt-get update
apt-get upgrade

lets install deluge

creating deluge user

sudo adduser --disabled-password --system --home /var/lib/deluge --gecos "SamRo Deluge server" --group deluge

sudo touch /var/log/deluged.log

sudo touch /var/log/deluge-web.log

sudo chown deluge:deluge /var/log/deluge*

sudo apt-get install deluged -y

sudo apt-get install deluge-webui -y

to run deluge on startup also make these

sudo nano /media/deluged.conf

paste codes below

# deluged - Deluge daemon
#
# The daemon component of Deluge BitTorrent client. Deluge UI clients
# connect to this daemon via DelugeRPC protocol.

description "Deluge daemon"
author "Deluge Team"

start on filesystem and static-network-up
stop on runlevel [016]

respawn
respawn limit 5 30

env uid=deluge
env gid=deluge
env umask=000

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluged -- -d

we are using nano editor. exit nano command = ctrl + X

sudo cp  /media/deluged.conf /etc/init/deluged.conf

sudo nano /media/deluge-web.conf

paste codes below

# deluge-web - Deluge Web UI
#
# The Web UI component of Deluge BitTorrent client, connects to deluged and
# provides a web application interface for users. Default url: http://localhost:8112

description "Deluge Web UI"
author "Deluge Team"

start on started deluged
stop on stopping deluged

respawn
respawn limit 5 30

env uid=deluge
env gid=deluge
env umask=027

exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluge-web

now copy edited file

sudo cp /media/deluge-web.conf /etc/init/deluge-web.conf

we will use LVM volume manager for volume operations.
special thanks to XeonCore
install LVM

apt-get install -y lvm2

these are mounting volume operations

pvcreate /dev/{nbd1,nbd2}

vgcreate lvm /dev/nbd1 /dev/nbd2

lvcreate -l 100%FREE -n deluge lvm

mkfs -t ext4 /dev/lvm/deluge

mount /dev/lvm/deluge /var/lib/deluge

now we have a volume 250 gb

go to http://yourip:8112

start deluge

sudo stop deluged
sudo start deluged

start web ui

sudo stop deluge-web
sudo start deluge-web

#2

Thanks for the great tutorial.Could you also add ftp to it?