More UDEV information
June 21st, 2006As I shift to UDEV, it is helpful to know how to get information about a particular device in order to set up a UDEV rule. Here's how to get that information:
udevinfo -a -p `udevinfo -q path -n /dev/sda1`
And here is the command to reload the rules:
udevcontrol reload_rules
Cyrus index rebuild
May 31st, 2006Here's how to rebuild the indexes for Cyrus IMAP. It uses the program squatter for the indexing. This needs to be run as user 'cyrus'
for i in strav sportchk derv; do /usr/sbin/squatter -r -v user.$i; done
PowerDVD black screen resolved
May 29th, 2006For some time now I've had issues with PowerDVD for playback. The screen would be black except for the borders where you coould actually see the movie playing. I've done search after search and never found a resolution until now. Apparently there is a conflict with ObjectDock. Simply unload ObjectDock and PowerDVD works like a champ.
The elusive -
May 19th, 2006OK - here is one of those situations that make administering a system so frustrating. I've been moving (too slowly for my taste) my wireless network from a MAC filtered based system (way too easy to spoof) to a WPA2 encrypted network (currently the most secure publicly available wireless security). This is a breeze in windows - just get a card that has WPA2 drivers. Under Linux, however, it isn't quite so straightforward. I chose to go with wpasupplicant as it seemed to be the easiest to set up. I've replaced the internal mini-pci cards in my laptops with an intel 2200bg which supports wpa2 via the ipw2200 module. I initially began setting this up with one of my omnibook 6100's and was patently unsuccessful. So, I decided it might be easier for something a little more standard and settled on a Cisco AIR-CB21AG pcmcia card. This is supported by the madwifi drivers and didn't take too long to set up. Once I had a working WPA2 config with the pcmcia setup, I was able to leverage on that to set up one of my 6100's. The real fun began when I tried to set up the second 6100. I could not get the driver to automatically load at boot. If I checked with iwconfig, the card was always defaulting to the unsecured SSID. Wpasupplicant worked, and I could manually switch it to the WPA2 network, but something obviously wasn't quite right. In any case, after a couple of weeks of changing config files, searching for differences between the two 6100's and lots of package management (comparing between the two systems), I finally found the problem. There is a line in /etc/network/interfaces that allows for hot plugging (fairly important for pcmcia, somewhat less so for the internal network). The wireless stanza I had on the troublesome system was:
allow hotplug wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
test-missing-cable please
but what it should have been is:
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
test-missing-cable please
Note the - in the allow-hotplug line. This was the little bugger that had me stopped in my tracks for weeks. Grrrrr.....
Now that the system is finally bringing up the wireless automatically, it's time to get cracking on the ifplugd scripts....
SNORT mail 'from' change
May 4th, 2006The debian default setup for SNORT has the daily summary mail sent out from 'root'. While accurate, this is not ideal when it comes time to file (for some reason, it's easier for my brain to locate the 'snort' folder when I'm looking at mail from 'snort' instead of mail from 'root'). In any case, modify the /etc/cron.daily/5snort file and add 'echo "From: Snort <root>";' after the 'echo "To: $DEBIAN_SNORT_STATS_RCPT";' section.
