Skip to content

Author: halfgaar

http://www.halfgaar.net/

Halfgaar is Wiebe. Wiebe is a contributing author on this weblog. He also has a lot of stuff (such as long, in-depth articles) on his personal website.

Making my USB webcam not the first sound card

When I booted my system with the webcam plugged in, it was sound device 0, instead of 1. This is annoying, so I added this to /etc/modprobe.d/alsa.conf: Read More »

Creating a Xen bridge with bonding on Debian

Like this, but then with bonding: Read More »

A new Archlinux upgrade, a new unbootable system

It's that time again... First my grub broke. So I had to type my config manually: root (hd0,0) kernel /vmlinux26 root=/dev/mapper/lvmopraid-root initrd /kernel26.img boot Read More »

Making a bash script terminate when a command returns an error

#!/bin/bash -e trap "echo ERROR HANDLING HERE." ERR echo "Starting" asdfasdf echo "End" Read More »

Chemical tin for circuit boards

For the record, about chemical tin PCB treatment: Seno Glans Tin Read More »

Making Linux less dumb about failed DNS servers

Whenever one of the servers in /etc/resolv.conf is unreachable, Linux/glibc/whatever isn't smart enough not to retry it for a while. This results in a lot of services becoming unavailable, because a lot of them do reverse lookups on all incoming connections (like SSH), which will hang for the time-out of the first DNS server query. Read More »

Some links about Macbook sleep problems

My wife's macbook sometimes keeps waking up when you close it; it gets stuck in an endless sleep-wakeup loop. Here are some links about it that I've had in my e-mail forever: Read More »

Getting munin to run every 10 minutes

Munin is kind of inefficient and on my P4 2Ghz, it running every 5 minutes is too often, and the munin processes keep dying because locks already exist. You can't increase the munin-cron script to 10 minute intervals, because then rrdtool will generate gaps. Read More »

Adding a clock in screen to avoid your ssh’s from being killed

The world is filled with stupid routers, which kill all connections that have no activity for a while (even a very short while). I keep loosing my SSH sessions because of this. To fix it, I added a clock in my GNU screen bar: Read More »

Converting all tables in MySQL DB to InnoDB

#!/bin/bash exit 1 dbname="eorder" echo 'SHOW TABLES;' | mysql $dbname | awk '!/^Tables_in_/ {print "ALTER TABLE `"$0"` ENGINE = InnoDB;"}' | column -t echo 'SHOW TABLES;' | mysql $dbname | awk '!/^Tables_in_/ {print "ALTER TABLE `"$0"` ENGINE = InnoDB;"}' | column -t | mysql $dbname Read More »