teh fear

Archive for October, 2007

22 Oct

xen, mysql and tls

when first booting xen most people like me (who like to ignore most ot the manual reading until later) will find a xen warning about the thread local storage libraries and how they access memory in a way that xen makes slow. The warning offers the following advice on how to disable it: mv /lib/tls [...]

13 Oct

is grub complicated?

Everytime I need to change something on a co-located server (ours are only about 2 miles from the main office, but it is still a pain if one has to go to the site because a server is not booting up) that requires restarting in a new configuration, I’m always worried that something might not [...]

10 Oct

lomount – easy mounting of partitioned loop images

Mounting a loop file that is a filesystem is no problem losetup /dev/loop0 my_loop_image mount /dev/loop my_mount_point or mount -o loop my_loop_image my_mount_point BUT, what if my loop image has partitions?

09 Oct

apache ssl certificates

Creating SSL certificates fo use in https with apache is a two stage process First one makes a private key openssl genrsa -des3 -out <name of your certificate>.key 1024 You will be asked for a passphrase (password) for this key NOTE: Make sure you keep this key safe, and don’t forget the password

08 Oct

initrd

A file, key to the successful boot of many a linux system is the initrd image. It used to be a simple gzipped loop filesystem, unpacked and mounted by commands similar to gzip -dc initrd.img > initrd_unzipped.img mount -o loop initrd_unzipped.img temp_dir Then files can be tweaked inside ‘temp_dir’, the image is then updated by [...]

08 Oct

apache virtual host

People often get confused as to how Virtual hosts in apache work, here’s an explanation from my understanding… Firstly each <VirtualHost XXX> entry requires (unless there is only one virtual host) a corresponding NameVirtualHost XXX entry. The XXX is effectively what IP address and port apache should be listening on for this set of virtual [...]

08 Oct

resize loop disk image

Having started to play with xen on linux, I have begun to use loop filesystems (a filesystem embedded in a file) rather a lot. Xen virtual servers are, fairly often, run from within a loop filesystem and generally start with a fairly small file (1GB is big for a normal file, but not when it [...]

© 2012 teh fear | Entries (RSS) and Comments (RSS)

Powered by Wordpress