Yet Another Raspberry Pi Project

Kodi builds, weird fucking robots and classic gaming always seems to be the theme of RPi projects. But a stat I would like to know is how many are just sat in a drawer somewhere. Anyway I am part of that number, until now. I manage to find a 4TB drive and managed to blag a caddy, so with this triangle of 'crap hanging around' I thought I'd build a downloader.









Open Directories

So I first had the idea from the sub-reddit open directories , here storage devices are opened up to the internet without a morsel of authentication. Google comes along and indexes them and you can go and find them. Decent ones find themselves on this sub of which I assume stays up until the user realises that there broadband is getting absolutely raped.





So I wanted to be able to get a URL from a server and just throw it in a WebUI and get it to auto download and ping me when all is finished.









First Steps

So to start off I downloaded Raspbian Jessie Lite from 2017-07-05, then formatted my 4TB drive. Not gonna go through that process as enough cunts on the internet have done already. I have given my Pi a static address by binding the Mac Address in the router. Now you don't have to do this but makes life a bit easier when you need to refer to it.





Got my it all stuff plugged in and power and ready to rock and roll.





Oh wait, my first bit of fuckery already. I need to connect to the Pi and I am doing that using the terminal, so I need to SSH (remote connect for the command line). Seems that this distro hasn't started the SSH server by default. Thanks cunts.





(So at this point I angrily find an old TV and keyboard to plug into my PI, of course I then find out I run out of plug sockets so then spend half an hour digging out an extension lead. From doing that I then find another Raspberry Pi).





Log in with the username 'pi' and the password 'raspberry'. Then the easiest way is to run the config tool.





pi@raspberrypi:~ $ sudo raspi-config





Go to Interfacing Options then SSH . Select 'enable'









Now on you computer open Terminal or Putty and SSH with the details from before. On Terminal it's





dom$ ssh pi@192.168.28.3





The enter the password 'raspberry'





Ok now is time to rock and roll. First 2 commands to run is to update and upgrade all packages. Think of this like going into the app store and clicking 'Update All'. (I am gonna omit the return text here). When prompted hit 'y' then Enter to install. (about 10mins)

pi@raspberrypi : ~ $ sudo apt-get update

pi@raspberrypi : ~ $ sudo apt-get upgrade





Mount your Drive

So, normally plug in a drive and job done, not here my little cherubs. In Unix world when you plug in a drive it has to exist inside a folder/directory (ok I am one of those pricks that swap between saying folder and directory so just think of them as the same). To attach the drive to the system in a specified directory is called 'mounting'. The following command will show you what is mounted where:



