Posts Categorized: linux

LPIC in practice: init=/bin/bash


Today I had a problem booting my Ubuntu desktop – with booting stuck on the purple screen. An Alt-1 showed me that there were problems with the disk and a manual fsck should be run. So at the Grub screen I pressed ‘e’ to edit the current entry and on the linux (kernel) line I… Read more »

Simple File Share with Samba

Just making a copy of a /etc/samba/smb.conf file that works for sharing a single directory within a private network. There is no security / privacy just a public share.

proftpd Unable to open config file: /etc/security/pam_env.conf

Although it wasn’t causing any problems I wanted to stop proftpd logging these lines:

Many other people also appear to have the same problem. The solution appears to be to edit the file /etc/pam.d/proftpd and change the contents from:


Hope this helps someone else.

Improving the Munin Layout

Munin Alternative Template

Following on from Fran Diéguez’s post about Munin Layout I found that the layout didn’t work for me – there appeared to be a few broken links – or maybe I hadn’t deleted the style.css file. In any case I decided to fiddle with the template styles from Fran’s download and I have uploaded the… Read more »

DriveReady SeekComplete Error

On some CentOS VMs running on VMWare I was seeing the following errors in the syslog:

Looks like while installing munin-node a plugin was configured to check the SMART hard disk temperature and this check was failing so to stop the error messages


Fabric: Getting Started Tutorial

Hopefully this may help someone else out there who is looking for a good excuse to use Fabric in anger. I install Fabric on my local Ubuntu desktop using:

With Fabric installed I created a new directory for playing around and inside that folder created a file named as follows:

With the… Read more »

Top of the Tops 2013

A revised list of my favourite ‘tops’ htop htop can provide a little more info than the traditional ‘top’ – I like how it shows the amount of memory usage minus the cache. iftop To check network connectivity use iftop: iptraf Like iftop but with more options and even the ability to show traffic by… Read more »

Some Linux LPI 102 Exam Questions

I just passed my Linux LPI 102 exam today and thought I would try to remember a few of the 60 questions in case I ever have to take a refresher – here is about half of them. I can’t remember the wording exactly for these questions so take with a pinch of salt: 1…. Read more »

Command Line Wireless Trouble-shooting

I wanted to compare the command line output of a working Wifi connection versus a connection at a location that was giving us trouble. To do so I used Ubuntu (12.10) on a laptop and used the following commands – in a script if necessary. First a configuration file to use with the wpa-supplicant –… Read more »

Fail2Ban Custom Action

I decided to experiment with creating a central database to hold the IP addresses banned by various servers / honeypots running Fail2Ban – so that the information could be used as a source for IPtables or TCPWrappers to protect other servers. I created the file /etc/fail2ban/action.d/qshield.conf and in it placed the following:

Then editied… Read more »