Booting from a cdrom in a kvm guest using libvirt

There are a few different reasons you might want to boot from a cdrom, however in my case I wanted to run a livecd so I could resize some partitions in the guest. For reference, the one I used is from http://www.sysresccd.org/ First put the iso for the cdrom somewhere on the host, in my example the file is called systemresucecd-x86-2.2.0.iso and is in the /isos/ directory. Next edit the guest definition to tell it about this image being mounted as the cdrom.
Read more →

Configuring mail on a developers machine to only send email to you

Why would you want to only send all outgoing mail to a single email address ? Imagine that you have been given a web application from a client. You set it up to run in your local LAMP (or MAMP) stack and start poking the application to try and get your head around it so you can try and make the changes that your client or boss have asked you to make.
Read more →

Generating a Certificate Signing Request On A Debian Server

What is a Certificate Signing Request ? A CSR or certificate signing request is a cryptographically signed request for an SSL certificate that can be submitted to a Certificate Authority like Thawte, Verisign, Digicert etc. to allow you to provide SSL, usually for HTTPS but it can also be used for things like POP3 and IMAP over SSL. Creating a CSR for Apache2 cd /etc/apache2/ssl mkdir example.com cd example.com openssl req -new -newkey rsa:2048 -nodes -keyout server.
Read more →

Post MAMP install setup to add SSL

First install the basic MAMP package from www.mamp.info (not MAMP Pro). Once the MAMP package has finished installing, edit the /Applications/MAMP/bin/startApache.sh file and change the first argument from start to startssl and save the file. This tells Apache to enable SSL when it tries to start. Next we are going to add some virtual hosts so that we can run a few different sites at once from our MAMP install. Edit the /Applications/MAMP/conf/apache/httpd.
Read more →

Random start times for cron jobs with puppet

Randomizing the run times of cron jobs defined from Puppet
Read more →

Setting up Confluence on Debian 5.0.3 (Lenny)

I just spent 2 hours trying to figure out how to fix the error message Configuring the database failed. Couldn’t create the database schema. Invalid bean definition with name ‘luceneConnection’ defined in class path resource [indexingSubsystemContext.xml]: Could not resolve placeholder ‘lucene.index.dir’ while installing Confluence so I thought I would share the solution to the problem. Add non-free to the /etc/apt/sources.list. As an example, your sources file might look like deb http://ftp.
Read more →

Unlocking the gnome keyring on login in i3 and sway

Setup This is how I got it working on my Ubuntu (19.10) desktop. First of all, login to your desktop under gnome and add your ssh key with ssh-add You should get a popup asking you for your password rather than the one in the terminal. Enter your ssh key passphrase and it should save it to your keyring. To view your keyrings contents, you can use a program called seahorse which you can install on Debian/Ubuntu with
Read more →