Archive for the ‘Linux’ Category

Routing to virtual localhost sites on LAN devices with Squid in Ubuntu

Wednesday, November 21st, 2012

I just got an 4th gen iPad to test mobile sites with. Unfortunately there is no proper jailbreak for it yet so editing the hosts file on the machine itself was out of the question.... Read More

Xmodmap for quick PHP programming in Linux

Tuesday, September 25th, 2012

When I program Clojure and PicoLisp I use Emacs and it’s the way things are done in Emacs which inspired me to looking into making myself more productive doing PHP in Eclipse.... Read More

Moving the MySQL database directory to different drive on Ubuntu

Thursday, May 24th, 2012

I have a server where there are two RAID1 disks where the second disk is mounted on /mnt/data, having the MySQL database there would be great as it then would have a whole disk all by itself without having to share with other processes that read and write to the same disk. I/O is often the bottleneck and now we make sure it gets as good as it can be with the hardware we have.... Read More

From Win/Linux dual boot to Linux RAID

Monday, May 21st, 2012

I’ve just had a shit of a time going from a dual boot setup with Windows on sda and Ubuntu on sdb to a Ubuntu only software RAID1 setup using both drives without having to erase or otherwise screw up the existing Ubuntu install on sdb (I’m using Lucid Lynx). ... Read More

RAM Cache and Redirecting to it in Apache

Sunday, February 26th, 2012

I’ve just had to cache all images on a site in RAM in order to limit the amount of disc scratching going on.... Read More

Server monitoring with SYSSTAT and kSAR

Sunday, December 11th, 2011

It’s hard to beat the SYSSTAT / kSAR combo for easy and quick setup of monitoring servers and in this tutorial you will see how it’s done.... Read More

Automating Gnome Terminal with xdotool + some Terminator short cuts

Sunday, August 28th, 2011

I’m currently debugging stuff which requires me to begin every session with opening up 3 gnome terminal tabs and executing a different command in each just to get started.... Read More

Mail server setup on Ubuntu Lucid

Tuesday, June 14th, 2011

Update: I keep having to redo this setup and get tripped up on what to install all the time so here is the complete install line: apt-get install postfix dovecot opendkim postfix-mysql dovecot-pop3d dovecot-imapd which already assumes you’ve got mysql server installed.... Read More

How to format and mount a second harddrive in the Ubuntu shell

Thursday, May 12th, 2011

I just had to format and mount a second HD in a Ubuntu system.... Read More

Crontab Example

Sunday, March 20th, 2011

Above is probably one of the most complicated crontabs I’ve ended up with.... Read More