So my laptop graphics card is legacy! And on a Windows 7 install the graphics were poor – not sure whether to blame AMD or Microsoft because it was all very smooth under Ubuntu 12.04. Anyway to allow the install of Vista drivers the Mobility Modder needs to be used on the drivers first. After… Read more »
Posts By: jonny
BIND Convert Slave Raw Format
In Bind v9.9.0 the default option for zone file format on a slave is a raw binary format. For troubleshooting these can be converted back to text using named-compilezone. An example is shown below: /usr/sbin/named-compilezone -f raw -F text -o /tmp/zone.domainname.co.uk domainname.co.uk /var/named/data/zone.domainname.co.uk Then the contents of the tmp file can be viewed: cat /tmp/zone.domainname.co.uk… Read more »
ProFTPd CentOS 6: PAM unable to dlopen /lib64/security/pam_stack.so
Installed ProFTPd on CentOS 6 and found that users could not log in. The proftpd logs showed: USER jonny (Login failed): Incorrect password. The /var/log/secure log showed: proftpd: PAM unable to dlopen(/lib64/security/pam_stack.so): /lib64/security/pam_stack.so: cannot open shared object file: No such file or directory The solution is to replace the /etc/pam.d/proftpd file with the following (as… Read more »
WordPress Galleries
The quick way to add Galleries to WordPress is illustrated below: First create a new Page (with the Gallery page as a parent if necessary) Click the Upload/Insert icon above the WYSIWYG editor Click the ‘Select Files’ button and locate the images on your computer Once the images have uploaded you may click the ‘Show’… 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 »
Beginning PostgreSQL
As a MySQL user for a number of years I needed a translation tutorial from MySQL to PostgreSQL. So to get started on CentOS: Installation yum install postgresql-server If you also want the phpPgAdmin WUI: yum install phpPgAdmin php-pgsql httpd Create the configuration file and initialise the database: cp /usr/share/pgsql/postgresql.conf.sample /var/lib/pgsql/data/postgresql.conf /etc/init.d/postgresql initdb Make changes… Read more »
Crossover Cable
My first crossover cable. I used the following diagram from Tournas Dimitrios’ Blog: So the normal ends of the cable is wired as T-568B as shown above on the right. So I cut one end and manipulated the wires as shown on T-568A above: Cut the wires to the same length then slide into the… Read more »
Image data does not exist. Please re-upload the image
I had this error message when uploading images in WordPress. Image dimensions were set to 0x0 and the thumbnails did not appear. A quick scan of the Apache logs PHP Warning: copy(/var/www/vhosts/thedomain.com/httpdocs/wp-content/uploads/thephoto.jpg): failed to open stream: Permission denied in showed me that I needed to correct the permissions on the /wp-content/uploads directory to allow Apache… Read more »
LAMP Performance
The following scripts can help in determining good values for Apache and MySQL configurations based on the amount of memory available: MySQL Tuner Apache Tuner Apache Buddy The following will give a list of Apache Modules loaded: apachectl -t -D DUMP_MODULES The following will give the memory usage of Apache: #!/bin/sh # apache_mem.sh # Calculate… 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’