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):
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
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!