Introduction: DIY Raspberry Private investigator Downloadbox

Do you frequently detect yourself downloading large files such A movies, torrents, courses, TV series, etc then you touch on the right set down. In that Instructable, we would be turning our Bronx cheer Pi zero into a downloading machine. Which can download anything ranging from one click hosters, Youtube videos, games, torrents, anything that is available on the internet.

The best depart is that we derriere run the Razzing Pi zero 24/7 and even schedule downloads as requisite. Since the Pi runs entirely 5v we can even power it on a power rely thereby ensuring that our downloads never stop.

Altogether this magic is viable because of this all-powerful software called Pyload , and yea, you guessed it conservative it's based on Python. Pyload supports two-fold protocols such as HTTP, FTP and so on. It has a gracious clean vane interface. Pyload also has its own mobile clients for Android and iOS. This allows to well monitor and manage your downloads.

Supplies

Soh for the hardware we need a Raspberry Pi(obviously), I am using the Pi zero w, since it is the cheapest, but this method can be done using any raspberry pi. We also demand a 5v MicroUSB Office supply, normal phone charger will do the job and for the storage, we need a micro SD card. Hither I am using a 8 Gi SDcard, you might want to choose a higher capacity card if you intend to store the downloaded files along the SDcard or You can also attach a USB flash drive to store the downloaded media. It's all a personal choice.

Step 1: Installing Raspbian

Now download the latest Raspbian lite and flashy it to the micro SDcard, I like to use a free tool called Etcher for this purpose.

Since we are active for a headless setup we take to do some additional settings. For this, we need to add two files to the boot partition of the SDcard. They are wpa_supplicant.conf and ssh, I have attached these files for you only simulate-paste them in your boot partition. Too don't forget to update the wpa_supplicant.conf file with your Wireless fidelity username and password.

Eject the card from Your PC and slip in it into the Raspberry Pi , Plug in the powersupply and wait for it to connect to your WiFi mesh. Directly to accession the PI victimization SSH we need to regain the IP address of your device. The Informatics dea can be found using a tool such as Angry-ip-scanner or you could just lookup for the DNS clients of your router.

Finally, SSH into your device, Here I am exploitation Putty.

The default login is pi and parole is raspberry. I highly propose you change the default option password

Tread 2: Installing Pyload for Raspberry Pi

Now let's instal Pyload. Which simply a matter of copying and pasting the following commands.

First let's create a new scheme substance abuser for functional Pyload

sudo adduser -system pyload

Add u the following two lines to your /etc/apt/sources.inclination:

deb  hypertext transfer protocol://mirrordirector.raspbian.org/raspbian/   jessie main contrib not-free rpi deb-src  http://mirrordirector.raspbian.org/raspbian/  jessie main contrib non-free rpi

Update the package list and install dependencies that are needed by PyLoad:

sudo apt-aim update sudo apt-have -y install skunk liblept4 python Python-crypto python-pycurl python-imagery tesseract-ocr zip unzip python-openssl libmozjs-24-bin sudo clever-get -y build-dep rar unrar-nonfree sudo inclined-get source -b unrar-nonfree sudo dpkg -i unrar_*_armhf.debutante sudo rm -rf unrar-*
standard candle /usr/bin ln -s js24 js

Download the incumbent adaptation of PyLoad:

cd /prefer  sudo rat clone  https://github.com/pyload/pyload.git   compact disk pyload

Now you can run PyLoad, information technology will start with a basic conformation menu first.

sudo -u pyload python pyLoadCore.py

If everything is working as expected, You give the axe create a systemd table service file in society to start PyLoad when the raspberry private investigator boots up.

[Unit] Description=Python Downloader Subsequently=mesh.aim  [Inspection and repair] Substance abuser=pyload ExecStart=/usr/bin/python /prefer/pyload/pyLoadCore.py  [Install] WantedBy=multi-user.target

Then activate this service

sudo systemctl enable pyload.service

Now you can open the network interface and mark if information technology is working equally expected

Ill-trea 3: Setting Awake Samba Server to Access Our Files

Obechi is combined of the easiest to set sprouted and configure file servers, which makes it one of the best solutions for setting up a NAS. By using Samba on our Raspberry Pi, we rear easy partake directories in some respects that they can be accessed by any device on the same meshwork.

Download and install the required samba packages

sudo given-get set up samba samba-common-ABA transit number

Lets Create a folder where we testament store each our downloads

mkdir /home/sherloc/downloads

Now we have to setup the "smb.conf" configuration file out to contribution this leaflet exploitation the samba host.

sudo nano /etc/samba/smb.conf

Go to the rump of this filing cabinet using the arrow keys and copy and paste this

[downloads] course = /home/pi/downloads writeable=Yes create mask=0777 directory mask=0777 open=nary

And then run the following command to set the password for the samba server

sudo smbpasswd -a pi

Finally restart the samba server,

sudo systemctl restart smbd

Whole tone 4: Adding an OLED Display

What we have got through so far is pretty some a very available setup, simply I took an redundant tone and added an OLED exhibit.

I put on't about you, but I have this weird habit to ofttimes checkout my download work up. Hence I added this video display.

The screen displays the pursuit parameters.

  • WiFi meshwork name the Pi is connected
  • Download speed
  • Download Progress status
  • Disk Usage
  • Information processing address

I used an SSD1306 OLED display which uses i2c protocol for communication with the Pi. I plant this instructor which explains how to set ahead up this screen.

Once you are done with the setup, download and run this Python code

git clone https://github.com/Gas giant-Dsouza/downloadBox.git  cd downloadBox/ sudo chmod +x downloadStats.py  sudo python3 downloadStats.py

Make sure to qualify the Pyload username and watchword in the downloadStats.py file in case you changed the default.

The Display should at present display the current stats of the Raspberry Pi. If things are functioning as expected we can make over a service to automatically discharge this python script when the Pi boots upwardly.

First make over the inspection and repair file

sudo nano /etc/systemd/system/downloadStats.service

Then tally these following lines

[Unit of measurement] Description=Python Downloader Display After=network.target  [Service] User=pi ExecStart=/usr/ABA transit number/python3 /habitation/pi/downloadBox/downloadStats.py  [Install] WantedBy=multi-user.target

Activate the service using following command:

sudo systemctl enable downloadStats.service

Be the World-class to Share

Recommendations

  • Anything Goes Contest 2022

    Anything Goes Contest 2022