Setting upwardly your ain seedbox from scratch, footstep yesteryear footstep tutorial.
While Ubuntu may non hold upwardly the close lightweight Linux distro available, ti does brand things real easy. I volition hold upwardly using Ubuntu 14.04 Server. I developed this tutorial using VirtualBox, but if you lot get got a spare laptop or former pc, that volition piece of occupation exactly every bit well.
I volition demo you lot how to install Ubuntu 14.04 server, install the latest version of Deluge, including the daemon too spider web interface, every bit good every bit gear upwardly a basic FTP server too Samba portion to access your downloads.
Skip to Part 2 - Installing Software
Skip to Part three - Using Deluge
Part 1 - Installing Ubuntu
First you lot volition demand to download Ubuntu,
You tin larn the latest version here. Make certain you lot larn the right version for your hardware.
You tin burn downwards it to a CD or install from USB using LinuxLiveUsb creator.
Once you lot get got the machine booting from your installation media, follow the steps below to install Ubuntu.
Step 1
You volition hold upwardly greeted amongst an installer linguistic communication selection. I verbalize English, hence that is what I volition hold upwardly using.
Step 2
It's non rocket science, exactly select "Install Ubuntu Server" too press enter.
Step 3
You larn to pick your linguistic communication 1 time to a greater extent than for roughly reason.
Step 4
Select your location.
Step 5
Trust me it's faster to select your keyboard layout rather than letting Ubuntu endeavor to honor it.
Step 4
In fact, based on your linguistic communication alternative it volition in all probability already hold upwardly selected
Step 5
English linguistic communication (US), non surprises here.
Step 6
I bet you lot tin come upwardly up amongst a to a greater extent than creative refer for your server than I did.
Step 7
To proceed things simple, I am using "seedbox" every bit my username too password. This is non secure, too I don't assist if this is secure, you lot powerfulness though. I would advise that you lot stick amongst "seedbox" every bit the username too pick out your ain password.
Step 8
I don't assist if it is non secure, I relieve my mortal pictures on iCloud anyways.
Step 9
You tin permit Ubuntu endeavor to figure out the time, it has never failed me.
Step 9
Setting upwardly the partitions tin hold upwardly intimidating, why non permit Ubuntu practice it for you. I unremarkably exactly become for "Guided - piece of occupation entire disk". you lot may get got a argue to practice it differently.
Step 10
I don't piece of occupation a proxy, inward fact if you lot desire to run a seedbox through a proxy too hence proficient luck to you.
Step 11
You may elect different, but I am okay amongst safety updates.
Step 12
I exactly select OpenSSH at this point, since I volition hold upwardly installing what I demand subsequently on.
Step 13
Finish out the installation too permit the figurer reboot.Part 2 - Setting upwardly the software
Log inward amongst the username too password nosotros configured piece installing.
Switch to a origin user, since everything that nosotros demand to practice needs to hold upwardly done every bit root
Run the next command
You volition forthwith hold upwardly able to connect using Putty, which is easier since you lot volition hold upwardly able to re-create too glue the commands straight into the Putty window.
Now permit us install the Deluge Daemon, Deluge Console every bit good every bit the Deluge Web Interface
Next nosotros desire to practice the user that Deluge volition run under, nosotros too desire to add together our default "seedbox" user to the "deluge" grouping hence that nosotros get got access to the downloaded files.
In companionship to enable logging, which is invaluable inward damage of troubleshooting, run the next on the ascendence line: Username: seedbox
Password: seedbox
Password: seedbox
Switch to a origin user, since everything that nosotros demand to practice needs to hold upwardly done every bit root
sudo -s
Setting your IP Address
While you lot tin piece of occupation DHCP to assign the server's IP Address, I expose it much to a greater extent than useful to piece of occupation a static IP. It volition allow me to gear upwardly port forwarding on my router too too I volition e'er know what IP to piece of occupation when connecting amongst Putty or roughly other SSH Client.
Use your favourite editor to opened upwardly /etc/networking/interfaces
vim /etc/networking/interfaces
Change it to tally the following, apparently you lot should alter it to tally your network configuration:
# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.5
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 8.8.8.8
auto eth0
iface eth0 inet static
address 10.0.0.5
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 8.8.8.8
Run the next command
/etc/init.d/networking restart
You volition forthwith hold upwardly able to connect using Putty, which is easier since you lot volition hold upwardly able to re-create too glue the commands straight into the Putty window.
Installing too configuring Deluge
First nosotros demand to add together the Deluge Repository hence that larn the latest version of Deluge add-apt-repository ppa:deluge-team/ppa
apt-get update
apt-get update
Now permit us install the Deluge Daemon, Deluge Console every bit good every bit the Deluge Web Interface
apt-get install deluged deluge-web deluge-console
Next nosotros desire to practice the user that Deluge volition run under, nosotros too desire to add together our default "seedbox" user to the "deluge" grouping hence that nosotros get got access to the downloaded files.
adduser --system --group --home /var/lib/deluge deluge
You too desire to add together the "seedbox" user to the "deluge" grouping to ensure that you lot tin access the downloaded files. sudo adduser seedbox deluge
sudo mkdir -p /var/log/deluge
sudo chown -R deluge:deluge /var/log/deluge
sudo chmod -R 750 /var/log/deluge
sudo chown -R deluge:deluge /var/log/deluge
sudo chmod -R 750 /var/log/deluge
Now, opened upwardly up your favorite text editor too set the next in /etc/init/deluged.conf. This is the upstart script to run the Deluge Deamon, too was taken from the Deluge documentation.
# deluged - Deluge daemon
#
# The daemon ingredient of Deluge BitTorrent client. Deluge UI clients
# connect to this daemon via DelugeRPC protocol.
description "Deluge daemon"
writer "Deluge Team"
start on filesystem too static-network-up
halt on runlevel [016]
respawn
respawn boundary v 30
env uid=deluge
env gid=deluge
env umask=007
exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluged -- -d -l /var/log/deluge/daemon.log -L warning
#
# The daemon ingredient of Deluge BitTorrent client. Deluge UI clients
# connect to this daemon via DelugeRPC protocol.
description "Deluge daemon"
writer "Deluge Team"
start on filesystem too static-network-up
halt on runlevel [016]
respawn
respawn boundary v 30
env uid=deluge
env gid=deluge
env umask=007
exec start-stop-daemon -S -c $uid:$gid -k $umask -x /usr/bin/deluged -- -d -l /var/log/deluge/daemon.log -L warning
Do the same for the Web Interface startup script in /etc/init/deluge-web.conf
# deluge-web - Deluge Web UI
#
# The Web UI ingredient of Deluge BitTorrent client, connects to deluged and
# provides a spider web application interface for users. Default url: http://localhost:8112
description "Deluge Web UI"
writer "Deluge Team"
start on started deluged
halt on stopping deluged
respawn
respawn boundary v 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 -- -l /var/log/deluge/web.log -L warning
#
# The Web UI ingredient of Deluge BitTorrent client, connects to deluged and
# provides a spider web application interface for users. Default url: http://localhost:8112
description "Deluge Web UI"
writer "Deluge Team"
start on started deluged
halt on stopping deluged
respawn
respawn boundary v 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 -- -l /var/log/deluge/web.log -L warning
Now, practice a remote user amongst the next command:
echo "seedbox:seedboxpassword:10">>/var/lib/deluge/.config/deluge/auth
This creates a user amongst the refer "seedbox" too password "seedboxpassword"
Lastly, nosotros demand to enable remote access:
Lastly, nosotros demand to enable remote access:
Stop the running deamon, this volition movement it to write the electrical flow config into /var/lib/deluge/.config/deluge/core.conf:
service deluged stop
Edit the principal config file located inward /var/lib/deluge/.config/deluge/core.conf. You demand to expose the describe of piece of occupation that looks similar this:
"allow_remote": false,
And alter it to read: "allow_remote": true,
Restart the Deluge daemon: service deluged start
Installing too configuring FTP
If you lot desire to hold upwardly able to access your downloads via FTP, delight follow the steps below.Install vsftpd
apt-get install vsftpd
Using Symlinks you lot tin brand a shortcut inward your domicile directory pointing to the Deluge download folder: ln -s /var/lib/deluge/ /home/seedbox/deluge
That is all you lot demand to practice to larn FTP upwardly too running.
Using an FTP customer you lot tin forthwith connect amongst the "seedbox" user too password, too it demo a shortcut to the deluge folder where all your downloads volition terminate up:
Installing too configuring Samba
If you lot desire to hold upwardly able to access your downloads straight amongst your Windows PC, you lot volition demand to install sambaInstall Samba
apt-get install samba
Run smbpasswd to practice a samba login for your "seedbox" user smbpasswd -a seedbox
Next you lot desire to edit the samba config inward /etc/samba/smb.conf, but let's start yesteryear making a backup of the default config: cp /etc/samba/smb.conf /etc/samba/smb.bak
Then add together the next right at the terminate of /etc/samba/smb.conf
[deluge]
path = /var/lib/deluge/
available = yes
valid users = seedbox
read entirely = no
browseable = yes
world = yes
writable = yes
path = /var/lib/deluge/
available = yes
valid users = seedbox
read entirely = no
browseable = yes
world = yes
writable = yes
Now, if you lot betoken a Windows Explorer to \\<seedbox ip> you lot tin login using the username too password used higher upwardly amongst smbpasswd:
Part three - Using Deluge
You volition get got 2 ways of managing your seedbox. The offset method is yesteryear logging inward to the spider web interface.Using the spider web interface
Point your spider web browser to: http://<seedbox ip>:8112
You volition hold upwardly greeted yesteryear the Deluge Login screen:
The default password for Deluge is "deluge"
On offset login you lot volition hold upwardly prompted to alter your password. My advice is that you lot practice it.
Select the local server too click "Connect":
Change the password:
While nosotros get got the settings open, become to the Daemon category too brand certain "Allow Remote Connections" is enabled.
Using the Daemon
This is inward my persuasion the best characteristic of Deluge.You tin install the Deluge customer on your PC, too piece of occupation that to larn by your seedbox. That agency you lot don't demand to upload torrents using the spider web interface. You tin merely opened upwardly them on the customer on your computer, too they volition automatically hold upwardly added to the server.
I assume you lot know how to install Windows applications, hence I volition walk through from the betoken where you lot run the Deluge customer for the offset time.
To larn access to the connecter manager you lot demand to switch off classic mode, to practice this, opened upwardly up the Preferences window, too become to the "Interface" tab.
Under Classic Mode, deselect "enable" too click apply.
You volition hold upwardly prompted to restart Deluge, click yes.
After restarting you lot volition get got access to the connecter manager.
Click on Add
Enter the login details nosotros created earlier, along amongst the right IP for your seedbox.
Username: seedbox
Password: seedboxpassword
If you lot did everything correctly, you lot volition forthwith hold upwardly able to connect to the server too start seeding!