User login

jacob's blog

Updating grub and automagic in Ubuntu

Working with grub used to be somewhat of a pain. The biggest complaint being that if you, say, disabled apic using the noapic boot option, and updated the kernel without updating the grub file, you could be stuck with a kernel panic. This was happening to me tonight when working with jeos and VirtualBox.

Automagic has made this a whole lot easier. There are automagic options in /boot/grub/menu.lst that are used when any kernel is installed into the system.

Fixing a squeaky floor

Our floor used to squeak very badly in several spots. Fixing a squeaky floor can be a challenge.

Floors squeak for a variety of reasons. The most common is the nails that hold the sub-floor down coming loose from the joist and squeaking.

Fixing them means getting under the house, unless we're talking about a floor that isn't a ground floor, or getting under the house isn't an option. If that's the case, good luck.

The kit that's sold in stores that uses break away screws through the carpet did not work for me. It made the problem worse in our situation.

Curly brace expansion in the Bash shell

A very handy trick using the Bash shell in Linux involves the curly braces. The Bash manual at defines brace expansion as "a mechanism by which arbitrary strings may be generated."

I use this mostly when working with files, especially making back ups of configuration files. For example, to copy /etc/X11/xorg.conf to /etc/X11/xorg.conf.backup, you could do this:

$ cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

or you could use brace expansion