free web builder

Share what you want, it's all yours - Icons from https://www.flaticon.com

DietPi Server for your Raspberry Pi

Using a super cheap Raspberry Pi to host all your stuff. From Plex to hosting your own website, it is easier than you might think

Mobirise

Lightweight, Easy to configure & Robust Just what you need for your own server. No longer the sole single board computer (SBC) the RPi may not be the fastest machine around but it is perfectly capable of tending to your server needs with a handy distribution called DietPi.

What do you need a server for? Well, its a good question but I want one rather than need one. Partly to help me understand stuff and partly to not need to rely on loads of other services. I want it for a few things

1. To host my Cloudlog instance

2. To host this here website

3. To host a Nextcloud instance (Its kind of like a personal Dropbox)

4. Be part of the home backup

So I don't really need one as all these could be done elsewhere. I just want one. There isn't much to do really. Just the usual kind of stuff one might need to do when installing a distro. But for completeness I'll go through the steps. There is a link to the DietPi site which does the detail so I'm not going to repeat that.

1. Download the distro

2. Burn it to the micro SD card

3. Set up SSH and log in via PuTTY (I've switched to mRemoteNG)

4. Install the software

5. Set everything up

6. Backup like you've always said you were going to

7. Seriously back it all up

My Setup

I don't need much space, but I need more that what is on a micro SD card. so I bought an SSD and used a case and PSU that makes it pretty neat. You don't have to use the same one but It worked for me. The key thing is if your are going fo rthe same set up you need both the case and the expansion board. They look a bit like this.


All sorted? The case sets it off for me.

So we're all ready, its powered on and we're doing the SSH thing. Now you are in you can install the software of your choice. It is all done through the 1980's looking menu system that must have a name. It's actually really good so ignore the comment about how it looks.

The next 3 images show what happend when you log in. Note I've got something for the to do list under MOTD

Lower down you've een given the options. For now we're looking at dietpi-software

DietPi screen

Here's where it all gets awesome

I've got an old WD NAS that is part of my backup. I can backup to that from the server which is really useful. But the biggest use for me is the webserver. All of the available software is here. It is littered with stuff you always needed that was just a few clicks away.

For example, want a Wordpress install, well just select it, install it and follow the instructions. You'll find the Wordpress folder in the /var/www folder if you look (which you can do with ftp software like Filezilla)

Just remember that if you want to go external (on the interwebs) then you'll need a domain name and No-Ip account and point the nameservers to No-Ip(which DietPi will be able to handle) or just the No-Ip account if you want a free .dns.net type account (there are some conditions assocated with that but lets face it if its free and you have to renew the domain every month thats not a big deal). 

If all of this is too much for now then just make sure it is all ok by typing the ip address in your browser, e.g 192.168.1.1/wordpress and check it is all working. Any problems give me a shout and I'll help if I can