Make your openSUSE Raspberry Pi a seedbox

by 3:00 μ.μ. 1 σχόλια
Raspberry Pi is a quite slow ARM board, compared to other boards. Even if you compare Raspberry Pi B+ against Raspberry Pi 2. So maybe one of the best use of RasPi is to make it seedbox. Let's say you're at the office and a friend tells you to test a distro. You can login to your home Raspberry Pi seedbox and add the torrent file there.

Here I will show you how to setup Transmission, vftpd and suggestions for Android programs.
First of all, download and create the openSUSE SD card (resize your SD card to full size or you can mount the extra size as extra partition. Since it's not something important, then you can use full size of your SD card).
Then setup the dynamic dns service (see previous posts).
Finally set a static IP (to use it with port forward of your router).


First install transmission:
$ zypper in transmission transmission-daemon

Create 2 folders for incomplete torrents and completed torrents:
$ mkdir -p /torrents/incomplete && mkdir /torrents/complete

Configure proper permissions for transmission:
$ chgrp transmission /torrents/incomplete
$ chgrp transmission /torrents/complete
$ chmod 770 /torrents/incomplete
$ chmod 777 /torrents/complete

Now edit transmission settings.json file using:
$ cp /var/lib/transmission/.config/transmission/settings.json /var/lib/transmission/.config/transmission/settings.json.old
$ rm /var/lib/transmission/.config/transmission/settings.json


$ nano /var/lib/transmission/.config/transmission/settings.json

Here is the content of your file:
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "",
"cache-size-mb": 4,
"dht-enabled": false,
"download-dir": "/torrents/complete",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/torrents/incomplete",
"incomplete-dir-enabled": true,
"lpd-enabled": false,
"max-peers-global": 200,
"message-level": 2,
"peer-congestion-algorithm": "",
"peer-limit-global": 91,
"peer-limit-per-torrent": 150,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": false,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": 1,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "",
"rpc-enabled": true,
"rpc-password": "{2dc2c41724aab07ccc301e97f56360cb35f8ba1fGVVrdHDX",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "transmission",
"rpc-whitelist": "*.*.*.*",
"rpc-whitelist-enabled": false,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"speed-limit-down": 250,
"speed-limit-down-enabled": true,
"speed-limit-up": 0,
"speed-limit-up-enabled": true,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 18,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14,
"utp-enabled": true

Username: transmission
Password: transmission
Port: 9091

Start and enable the service.

$ systemctl start transmission-daemon
$ systemctl enable transmission-daemon

You're done. All you have to do is to open your browser to http://RASPI.IP.ADDRESS:9091/ and use the login/password (default for above config transmission/transmission)


Let's say that the file is i your pi disk. You're not at home. How can you check it? Maybe the easiest way is to setup an FTP server. Maybe the best program is vsftpd. You can install it:

zypper in ftp vsftpd

Create a folder for ftp users (if it's not there).

mkdir /srv/ftp

Create a group called ftp-users.

groupadd ftp-users

Create a sample user called seedbox with home directory /srv/ftp/, and assign the user to ftp-users group.

useradd -g ftp-users -d /srv/ftp/ seedbox

Set password for the new user.

passwd seedbox

Now you should change few things:
nano /etc/vsftpd.conf

And uncomment:

Start the service and you're done:
$ systemctl start vsftpd

$ systemctl enable vsftpd

Personally I use the program filezilla but you can also use the Firefox addon FireFTP.


OK, you installed torrent server. How can you access the downloaded files from your computer? Well it's easy. Just install SAMBA. For that reason, I followed the tutorial here.

First of all, install SAMBA.
zypper in samba

Then all you have to do is to change SAMBA configuration file.
$ cp /etc/samba/smb.conf /etc/samba/smb.cnf
$ nano /etc/samba/smb.cnf

Just add the following lines:
comment = Public Shares
path = /torrents/complete
writeable = Yes
only guest = Yes
create mask = 0777
directory mask = 0777
browseable = Yes
public = yes

You should restart SAMBA or you can reboot your Pi.
$ systemctl start smb nmb

$ systemctl enable smb nmb

Now you can access your Pi from Nautilus (check here how to do that).


If you want to use it via android phone/tablet, you can use the program Remote Transmission

Android's Remote Transmission

More applications are Transdrone and TorrentToise.

Efstathios Iosifidis

openSUSE and GNOME foundation member

I'm Farm Animal Manager and dairy products technician looking for new opportunities.

1 σχόλιο: