Setup Raspberry pi as a dhcp server

This post is going to show you the basic steps of creating a DHCP server using a Raspberry pi running the latest version of Raspbian, configure the Raspberry (Linux) to use a fixed IP Address and configure clients to get a static IP address using their MAC address. The software used is isc-dhcp-server available from the Ubuntu software repository. I was fed-up of my router giving random IP addresses to servers when it was meant to hand out the same address.

Install Software

The first step is to install the server software.

Read more…

Please share 🙂

Scanner Server Ubuntu 14.04

I recently decided to attach my scanner to my server so all machines could use the scanner without having to fiddle with cables etc. The scanner is a small Canon Lide 35 which is powered by the USB cable. The scanner also works perfectly with Linux.

First install sane-utils and xinetd.

Read more…

Please share 🙂

Fail2ban Horde Webmail

This will show you how to setup horde to log failed logins and use fail2ban to detect these. A useful tool to check if any fail2ban filters are working as expected is the fail2ban-regex tool, more details here Fail2ban-regex help.

Login to horde webmail using an admin account. Navigate to the configuration page -> horde -> logging tab. You should see something similar to this.

Horde Logging Configuration Page
Horde Logging Configuration Page

Read more…

Please share 🙂

Ubuntu/Linux WIll not sleep when MythTV Backend is running

This has been very frustrating as I initially thought Ubuntu would not sleep because of the graphics drivers. I figured out it would not sleep when the mythtv backend service was running. It would just sit there with a blinking cursor and totally unresponsive.
To have Ubuntu disable mythtv backend service before sleep and start it again after waking up we need to add a file to /etc/pm/sleep.d/*file name*

Please share 🙂