Armed with a few RPMs I need to install on multiple machines and sick of SCP’ing files around machines I decided to set up a Yum repository. Here’s how: On a machine that already has Apache running and serving content: yum install createrepo cd /var/www/html/centos/5/qub/x86_64 createrepo /var/www/html/centos/5/qub/x86_64 Then on each client machine aiming to use… Read more »
Posts By: jonny
PHP Web Scraping for Munin
There is a web page created by someone else containing figures I would like to use to draw some graphs in Munin. The HTML in that page is a bit ugly and looks like: <TR ALIGN = “Center”> <TD ALIGN = “Left” WIDTH = “49%” BGCOLOR = “#ECECEC”> <B>Building</B> </TD> <TD ALIGN = “Center” WIDTH… Read more »
Squid Problems
Todays installment in the Adventures of Squid Sandwich: Forwarding loop detected WARNING: Forwarding loop detected for: in /var/log/squid/cache.log Since I am using a DansGuardian sandwich with Squid for bread I set the unique_hostname host.domain.com in the first Squid conf then in the second Squid conf used a CNAME for the same machine of: unique_hostname proxy1.domain.com… Read more »
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 »
Uptime 4 years
Since I like posting screeshots of uptime figures here is one of an anti-spam machine up for 1496 days (just over 4 years). The machine is running Red Hat 4.
The Cost of Microsoft Windows 7
It’s free – it came with my computer Love them or hate them Microsoft are effective in business. One of their methods of peddling their product is to ensure that all dealers supply their product by default and bully the dealer if they try to supply a competitors product. When Dell hinted that they would… Read more »
Gimp and Pareto’s Principal
Pareto’s Principal, also known as the 80/20 rule, this principle holds that for any given event, 80% of the results come from 20% of the activity. For example, if you subscribe to Pareto’s Principle, then you probably believe that 8o% of the work in any organisation is performed by about 20% of the employees. This… Read more »
LAMP on Ubuntu
There are several different commands that can be used to install Apache and MySQL services with PHP support: sudo apt-get install tasksel && sudo tasksel sudo apt-get install lamp-server^ sudo apt-get install apache2 libapache2-mod-php5 php5 php5-cli php5-mysql php5-gd php5-mcrypt php5-curl mysql-client mysql-server libmysqlclient15-dev phpmyadmin For number two the carat at the end is important.
Visualising Social Networks like Facebook
I was asked to check out Gephi with the aim of visualizing Twitter and Facebook social networks. I installed Gephi on Ubuntu using the following (PPA): sudo apt-add-repository ppa:rockclimb/gephi-daily sudo apt-get update sudo apt-get install gephi After installation visit the Tools > Plugins > Settings and enable the repositories. Then reload the catalog and install… Read more »
cPanel: Adding Apache and PHP Modules
I needed to add mysqli support to cPanel and did so by logging in to the WHM on port 2087 scrolling down the left menu to Software and clicking EasyApache (Apache Update) then followed the steps to recompile with my chosen options. Continuing with the default options were necessary and ticking MySQL Improved Extension This… Read more »