Leak Society
/
General Discussion
/
Technology and Devices
/
How to set your RPi up as a BitTorrent Server





How to set your RPi up as a BitTorrent Server
Thead Owner : Slash1644926389,
Category : Technology and Devices,
6 Comment,
52 Read
Viewers:
1 Guest(s)
03-14-2014, 07:49 AM
To see how to set your RPi up as a CCTV Circuit check here
For the small size that the RPi is it is surprisingly powerful, I found a little script and merged some things together in order to make your RPi into a BitTorrent Server
You need :
- Raspberry Pi Model B (512Mb RAM)
- Internet Router
I will be writing the tutorial with reference to the Raspbian image OS, to download that and use that look here
Instructions:
Step 1 - Find the IP Of the RPi
To do this get the command line up and enter
Take note of the wlan0 Entry and look at inet addr and write that down, for the purpose of this tutorial I will use
Step 2 - The setup
In your command line type
Then in that file copy and paste (or write up) the following script I used (Press I on the file to go into editing mode):
Now in the command line type
Doing this will run the file that you just wrote/copied - Leave it to set up and install the packages.
Providing this is all installed and all has gone well, you should now be able to access the web transmission interface :
Once you can access the transmission interface you can use it now to manage all your downloads (torrents). Though you may have a large SD card it is suggested you delete some torrents from time to time to clean up space.
To get to your downloads on your pi mount it through either CIFS or SMB (IF you don't know them, google them). On a Mac go to your finder hold CMD + K. It will bring a prompt up, type
Connect as a guest, then you are in!
For windows you can enter
And shazzam, you now have a basic BitTorrent server.
If the server doesnt work, just start over with a new image and do the steps found in the setup script one by one. If your downloads work OK, but you can’t access them there might be a permissions issue. This is easily correctable by logging in doing a chmod -R 777 /srv/media.
Any questions? Reply here!
For the small size that the RPi is it is surprisingly powerful, I found a little script and merged some things together in order to make your RPi into a BitTorrent Server
You need :
- Raspberry Pi Model B (512Mb RAM)
- Internet Router
I will be writing the tutorial with reference to the Raspbian image OS, to download that and use that look here
Instructions:
Step 1 - Find the IP Of the RPi
To do this get the command line up and enter
Code:
ifconfig
Take note of the wlan0 Entry and look at inet addr and write that down, for the purpose of this tutorial I will use
Code:
198.162.0.1
Step 2 - The setup
In your command line type
Code:
vi setup.sh
Code:
#!/usr/bin/env bash
echo "[+] Updating packages"
apt-get update ; apt-get -y upgrade
echo "[+] Installing Samba and Transmission packages"
apt-get -y install transmission-daemon samba avahi-daemon
echo "[+] Configuring Transmission"
service transmission-daemon stop
sed -i -re 's/(rpc-authentication-required\":\ )([a-z]+)*/\1false/g' /etc/transmission-daemon/settings.json
sed -i -re 's/(rpc-whitelist-enabled\":\ )([a-z]+)*/\1false/g' /etc/transmission-daemon/settings.json
sed -i -re 's/(download-dir\":\ )([a-z]+)*(.*)/\1\"\/srv\/media\",/g' /etc/transmission-daemon/settings.json
service transmission-daemon start
echo "[+] Setting up public Samba share"
mkdir /srv/media
chown debian-transmission /srv/media
echo "[public]
comment = Public Shares
browsable = yes
path = /srv/media
public = yes
writable = yes
guest ok = yes" >> /etc/samba/smb.conf
service samba restart
Now in the command line type
Code:
sudo sh setup.sh
Doing this will run the file that you just wrote/copied - Leave it to set up and install the packages.
Providing this is all installed and all has gone well, you should now be able to access the web transmission interface :
Code:
Mac OSX Use - http://raspberry-pi.local:9091
Windows Use - http://raspberry-pi:9091
If this doesnt work for either use - http://<raspberry pi IP>:9091.
Once you can access the transmission interface you can use it now to manage all your downloads (torrents). Though you may have a large SD card it is suggested you delete some torrents from time to time to clean up space.
To get to your downloads on your pi mount it through either CIFS or SMB (IF you don't know them, google them). On a Mac go to your finder hold CMD + K. It will bring a prompt up, type
Code:
smb://raspberry-pi.local
Connect as a guest, then you are in!
For windows you can enter
Code:
<RaspberryPi IP>\public in Windows Explorer
And shazzam, you now have a basic BitTorrent server.
If the server doesnt work, just start over with a new image and do the steps found in the setup script one by one. If your downloads work OK, but you can’t access them there might be a permissions issue. This is easily correctable by logging in doing a chmod -R 777 /srv/media.
Any questions? Reply here!
03-14-2014, 08:04 AM
Ok this is just to interesting, I WILL be doing this tomorrow when I wake. I well complete the instructions then report back thank you for this.
03-14-2014, 03:59 PM
This is a great tutorial, thanks for the share!
Forum Owner
03-15-2014, 12:13 AM
Nice tutorial! I just bought one, and I'm either going to start BitTorrent Server, or load Kali onto it. I haven't decided yet. Probably going to go with the BitTorrent Server because I can always just boot Kali in a VM.
Guest
Unregistered
4 Years of Service
03-15-2014, 06:41 AM
I need to get myself a rasberry. Played around with one in class and there so fun :)
Guest
Unregistered
4 Years of Service
03-16-2014, 11:55 AM
(03-15-2014, 12:13 AM)Wacko Wrote: Nice tutorial! I just bought one, and I'm either going to start BitTorrent Server, or load Kali onto it. I haven't decided yet. Probably going to go with the BitTorrent Server because I can always just boot Kali in a VM.
Start a BitTorrent server, I highly recommend it.
(03-15-2014, 06:41 AM)yugurt Wrote: I need to get myself a rasberry. Played around with one in class and there so fun :)
They are so awesome, so much you can do - the amount of tutorials I will be posting on just an RPi is uncanny.
(03-15-2014, 06:42 AM)Seduction Wrote: Awesome toot! thanks slash :D
You are most welcome Seduction!