Posts Categorized: linux

Keeping Services Alive with Monit

On CentOS install monit as follows:

Make sure it starts automatically:

The main configuration file is at /etc/monit.conf but this file loads in any files under /etc/monit.d which is where we will place our files. First comment out the following sections in /etc/monit.conf as we will be defining this in the next step:… Read more »

Monitoring Child Internet Use on Ubuntu

So I wanted to keep an eye on what my daughter was up to on facebook etc. In addition to using OpenDNS and the Nanny parental control software in the Ubuntu Software Center I would like to use DansGuardian but that might take a little more time. One of the things I have done quite… Read more »

Skipfish on CentOS

I’m using CentOS 6.2 and needed to install the following dependencies before Skipfish would ‘make’: yum install pcre-devel openssl-devel libidn-devel libidn2-devel Some of the errors listed before this included the following:

 

Photoshop CS5 on Linux

Great instructions for installing and running Photoshop CS5 via Wine: http://www.makeuseof.com/tag/idiots-guide-installing-photoshop-cs5-ubuntu-1004/    

My Raspberry Pi has Landed

So my Raspberry Pi arrived a few days ago and I have now managed to get it out of the wrapper. After realising that I should have been using an SD card in the dedicated SD Card slot rather than trying to boot from one of the USB ports I was up and running. On… Read more »

Web Screenshots with Xvfb and Khtml2Png2

To get that headless Linux server capturing screenshots of web pages we need: Xvfb e.g. apt-get install xvfb Khtml2png2 (and dependencies) After installation of the above the steps are below and I wrapped it up into a PHP script which also did some database tasks to keep records of the screenshots. 1.Check if the Xvfb… Read more »

Remove Line Breaks with tr

I had a text file with multiple lines of input that I was manipulating using awk and sed but I found the following ‘tr’ command easiest to remove the line breaks: cat input.txt | tr -d ‘\n’

BIND on CentOS 5

The version of Bind in the normal Red Hat / CentOS repositories is a little out of date. To get more up-to-date versions (9.7.4 at the time of writing) use the Centalt and EPEL repositories. Create the following file: vi /etc/yum.repos.d/centalt.repo And add the following to it: [CentALT] name=CentALT Packages for Enterprise Linux 5 –… Read more »

USB Multiboot Drive

This tool from pendrivelinux.com is a useful utility to help create a bootable USB pen drive with a menu system for booting into multiple operating systems. It works from within Linux/Ubuntu although there is a Windows tool available too. Useful for creating Live CDs for partitioning, virus checking, installing and includes persistent storage.

Linux: What is using all the Swap?

On Linux to discover which processes are using all the swap run top press ‘O’ (capital letter o) then ‘p’ then ‘enter’ Processes should be sorted by their swap usage.As shown in the screen below the minilogd process is using all the swap space on this machine. Looks like minilogd was gradually using up swap… Read more »