Home

 

Blogs

Foxconn busted breaking Linux --- Boycott Foxconn

Nxdomain due to partial tinydns data file published to secondary

I publish my domains from a central server via http and grab the file via wget. Well, that turned out to be a problem when the vps host for one of my off network dns's had a network hick-up during the transfer, and wget happily wrote the partial file and the script happily regenerated the data.cdb.

To fix this I reworked the script and added a checksum to verify the that the file was the same. If the checksum doesn't match, the tinydns cdb file is not regenerated.


#!/bin/sh

DATAFILE="data"
DATAFILE_TEMP="data.temp"
FILENAME_MD5="datacheck.md5"
HOST="example.com"
HOST_DIR="" #I have my data file on a completely different server than tinydns
USER=""

#Make temp backup copy
cp data data.backup
cp data.cdb data.cdb.backup

#scp data file
scp $USER@$HOST:/$HOST_DIR/$DATAFILE $DATAFILE_TEMP

#verify checksum
#datacheck.php is a simple script to display a md5sum of the data file
curl http://$HOST/$HOSTDIR/datacheck.php -o $FILENAME_MD5

LOCAL_MD5=`md5sum $DATAFILE_TEMP | cut -d" " -f1`
REMOTE_MD5=`cat $FILENAME_MD5`

#if matches then transfer is ok so we can mv the file and make to rebuild the cdb
if [ $LOCAL_MD5 = $REMOTE_MD5 ]; then
mv -f $DATAFILE_TEMP $DATAFILE
make
else
echo "Failed md5 sum (L:R) $LOCAL_MD5:$REMOTE_MD5 on " `date +%Y%m%d%N` >> log
fi

Since this uses scp you will need to create your public/private keys to log in without a password. Of course you should use a non-root account for that part.

I couldn't find a way to use regexp's in this script. Oh well, maybe next time.

That is all. Have fun.

Lxer: Let's not talk about Ubuntu

How can a place that is about Linux news be so Linux distribution unfriendly? Not the site itself, but the people who comment. Seems that it should rename itself Lxer: Let's not talk about Ubuntu. Oh no, now I've gone and equated Linux with Ubuntu.

Convicted Monopolist Microsoft up to same old tricks

Once again Microsoft is interfering the pc market by declaring that in order to sell a UMPC, it must meet specifications that they set. What a joke.

Convicted Monopolist Microsoft

Ubuntu 8.04

Just booted my laptop off the newest Ubuntu . Good to see everything worked, including the 3-d effects on the Intel GM965 graphics controller.

Open Mesh

I'm playing with open mesh routers. If you are near me, log on to the eschreyer-open-mesh network and get your free wifi.

Zero Hardware Issues, User Friendly N1021 Notebook

This notebook rocks. Time from boot to Ubuntu Linux 20 minutes. Time to correct my mistake in giving that other OS to much space, another 20 minutes (I just reinstalled). Number of hardware issues, zero. Yes, you read that right, everything worked, and that is a testament to the hard working Linux kernel developers. Great job guys.

Specifications

CPU: Core 2 Duo 2.2GHz
RAM: 2GB
HD: 120GB 7200RPM SATA
LCD: 12.1"
chipset: Intel 965GM
Batteries: 2200mAH
3 USB 2.0 ports and 1 Firewire port and 1.3 Mpixel webcam

Haha Microsoft so sucks

Just saw an add for silverfish...er light on http://sourceforge.net and it was an Adobe Flash ad.

Lenovo 3000 N200 Review (short)

I bought my daughter a Lenovo 3000 N200 for Christmas (the non core 2 duo one). It was cheap and ran the Kubuntu LiveCD without issue. Installed Ubuntu 7.10, did have some issues with the sound and had to edit the alsa config and add one line to get it to work (newer hardware I guess). Also had to load the BCM43XXX firmware to get the wireless to work. New hardware is always fun, easiest installation of Linux to date.

Great notebook and so far no problems, Ubuntu rocks.

I did say this was a short review...

PS I kept the Windows Vista Home Basic partition and all I can say is woof woof. People actually put up with this when they buy a computer? If I didn't know any better I would have thought that the mouse cursor was an arrow with a glowing circle. You'd think with 2.5GB ram it would be fast. My Dell C600 700MHz about to die any day now laptop is faster.

Apple is just Hype

All this hype about how the Apple(tm) Mac(tm) is better than Linux, Windows and sliced bread has now been completely proven wrong.

Trying to help the smarter one in the family produce CDs of pictures of the homeschool history she has been doing for the past six months, and let me tell you the Apple UI is a CF (I'll let you guess what that means) of poor design.

You can't burn a copy of an iPhoto(tm) slide show to CD. You can burn an album, but not a slide show. If you burn an album you get a bunch of directories and several copies of your images.