Linux Format

DietPi server...........................

In his quest for more Pi, Les Pounder is told to go on a diet. We think he may have misunderst­ood the request...


Les Pounder loves his pies too much, but didn’t realise this was made to make his Pi lose weight.

When someone says Raspberry Pi, then of course you think Raspbian, the default distributi­on for the Pi. However, Raspbian is a big distributi­on that requires at least an 8GB microSD card for all its great software. What if you want to build your own Pi server? Do you really need all that bloat? Sounds like we need to go on a diet!

DietPi is a lightweigh­t distributi­on that uses the base Raspbian (Debian) distributi­on, DietPi kernel 4.9.52 from 2 October 2017, and puts it on the cabbage soup diet. Gone is the desktop, Sonic Pi and other popular applicatio­ns and in their place we find a bare bones server distributi­on offering stability and low-power consumptio­n.

But DietPi has a neat trick up its sleeve: its ease of use. Typically, setting up a server takes time and skill, but what DietPi provides is an easy-to-use workflow for those wishing to set up a simple server in their home or developmen­t environmen­t.

DietPi is best enjoyed on a 4GB or larger microSD card and it’s compatible with every model of Raspberry Pi, even the very first model of Pi back in 2012! Installing DietPi on an SD is identical to Raspbian, requiring the image to be written to a blank card. On boot DietPi doesn’t have a flash boot sequence; rather, it gets to work straight away. Via an interactiv­e installer that updates the distributi­on to the latest software, very handy as this ensures the system is up to date and ready to be used.

Once installed, DietPi uses a whiptail menu system, which can be called at any time from the command line, enabling anyone to administra­te their system. We used the Ethernet configurat­ion tool to copy our interface settings (from DHCP) and set them as a static IP, all by pressing one key!

Simple stuff

Installing software is also ridiculous­ly easy. DietPi has its own software menu that includes software which has been optimised for use with the distributi­on. To test installing software with DietPi we went to the Software Optimised menu and found ourselves in wonderland!

The list of optimised software isn’t exhaustive, but it covers many popular applicatio­ns for a Raspberry Pi. NFS, Samba and Cloudprint servers can be easily installed, and we even found an entry to install OctoPrint, a web interface for 3D printers. We chose to install PiHole, an ad-blocking DNS server that sits on your home network and stops ads from being served to devices using the DNS server. The install for PiHole took around ten minutes, largely due to a number of package installs. But once installed all we needed to do was point our devices to the DietPi/ PiHole DNS server and everything worked.

The simplicity is the beauty of DietPi. From the menu we can set up our Ethernet/WiFi to use static IP addresses. We can configure Bluetooth and I2C for devices and sensors. We can stress-test the RAM, CPU and file system to ensure that our platform is fit for purpose. DietPi can also be used in the same manner as a normal Raspbian or Debian server.

We’re impressed with DietPi. It’s a lightweigh­t, practical distributi­on for those that just want to quickly deploy a server. It may not be for hardcore sysadmins, as servers typically require “tweaking” for the best results (and there’s nothing stopping a sysadmin from doing that), but for the Pi user wishing to try something new, DietPi is an ideal choice. It may even bring new life to older models of Raspberry Pi.

 ??  ?? DietPi may not look pretty, but under the hood we have a powerful yet easy-touse server that’s suitable for all levels of user.
DietPi may not look pretty, but under the hood we have a powerful yet easy-touse server that’s suitable for all levels of user.

Newspapers in English

Newspapers from Australia