Monday, November 21, 2005

Minimuim Priviledges: mysqlhotcopy

I'm setting up a MySql server to run the database from a ramdrive (tmpfs). In order to protect the data, the system has to replicate the database in memory to the drive. The utility, mysqlhotcopy, can be used for this by adding it to a crontab. In my configuration, I'll copy the database to disk every 20 minutes. As my database is primarily read-only, if there were a crash, at worse I'd loose only a few updates.

The problem is that mysqlhotcopy requires a username and password, which must be issued on the command line. Since the command is stored in a crontab, the authentication information is stored in the clear. If someone were to comprimise the machine, I don't want to give them a free ride to the database.

The solution is to create a dummy account with minimuim priviledges. For my dummy account I set all priv's to 'N' except:
    Select_priv='Y'
    Reload_priv='Y'
    Lock_tables_priv='Y'

This allows mysqlhotcopy to replicate the data to disk, but limits an intruder to switching the database to read only.

Sunday, November 20, 2005

Apache modules

I've been needing this for a while: OpenSA has a list a quick reference to Apache modules. I was able to comment out about half the modules and slim the servers by about 12%. That mean more users, less swap. Woohoo!

Friday, November 11, 2005

Car Rentals: DAY beats MCO

...but not in a good way. Just got back from Dayton Ohio and was very dissappointed with the organization of their car rental layout. In fact, I think it is the first airport I've found that is worse than Orlando. (It astounds me that Orlando is so disorganized: With all the Disney tourists, you'd think theyed have thier act together!)

Normally, the Avis car counter has a score board that displays customer's names, and give information about their car. In Dayton, you have to know that the score board is on mounted backwards: You have to walk up to the counter, then turn your back on the counter representative to see the scoreboard.

Once you have you keys, you step outside the bagage area, turn to the right, and walk the one hundred yards to the cars. The cars are in an uncovered lot-- in Ohio. I've lived in Ohio-- it snows in Ohio. Sometimes allot. I don't want to have to load my lugage into a rental car in the snow. (The good new is that the hundred yard walk is not uncovered, they have you walk through a set of tent-like tunnels. This was especially entertaining since its still tornado season-- the tents were acting more like windtunnels than weather protectors.

But here's the best part. The rental return is on the complete opposite end of the airport from the checkin. Now its a two hundred yard walk. Returns should be more convient than pickup. If you arrive in a town late, you simply call your appointment, and blame missing you appointment on the airline. Everyone understands that. If get at the gate late for your flight home because of a problem with the rental car, the airline does not hold the plane for you.

Other than that, Dayton was OK.

Friday, November 04, 2005

Fedora 4 Kickstart Errors, Brilliant Fix

Yep, got kickstart working. The fix was AFL brilliant! But before I tell you the solution, you have to promise to understand what I'm saying, rather than blindly implementing the fix.

I added a %pre statement:
dd if=/dev/zero of=/dev/hda count=1000
In other words: I wiped out the partition table. Of course this means all my data was destroyed! But that's OK... Your not suppose to store any mission critical data on a Fedora system anyway.

The major downside is that the system I'm playing with is a dual boot box, supporting both FC4 and RHEL4. This means that if I want to reinstall Fedora, I will have to follow it up with a Red Hat install. The good news is that kickstart still works under RHEL4, so it shouldn't be that painfull, just time consuming.

And, like, I got plenty of time!

Fedora 4 Kickstart Errors

What a disappointment. Turns out, the kickstart function is virtually useless under Fedora 4. After half a dozen attempts to rebuild a system, I found Chris's Wiki :: blog/linux/FC4BuggyAnaconda, which confirmed that there are two very big bugs in the kickstart facility. One bug will not let Anaconda (the 'client' side of kickstart) allocate partitions. If we can't find the partitions, we can't very well install software to the disk. The second bug prevents the system from being able to identify which packages to install.

So, let's recap: We can't find the disk, and even if we could, we can't figure out what to put on it. Too bad somebody didn't test this before it went out the door.

Friday, October 21, 2005

April 7, 2009

Mark your calenders! A Senate panel has set the date as the end to analog TV broadcasts (CNET News.com). Better buy your HD set or et your converter box. The best part of the story: The date was pick to avoid interfering with NFL and NCAA game schedules.

What about baseball? Ha! Nobody cares about baseball on TV.

Top 50 Science Fiction Television Shows of All Time - Boston.com

The Boston Globe has given us a fun list: Top 50 Science Fiction Television Shows of All Time. All in all, they did OK, though we could easily haggle over the rankings. They had several dogs in the list, and missed a few gems, but isn't that the way it goes.

What would I have included, you ask? How about:
Star Lost, The Invaders, or Brimstone

Wednesday, October 19, 2005

HOWTO - Linux VNCserver

I was playing with the idea a remote desktop on one of my home systems. Under Red Hat Enterprise Linux 4, you can share your desktop, but only if you've launched the GUI. This meant that the system was running X, even when I wasn't logged in: not what I wanted. With Googles help, I found HOWTO - Linux VNCserver, and setup a VNC Server to run in the background. When not logged in, VNC Server take less than 1% of CPU.

I don't think much of the "authentication" process-- more correctly, the lack of good authentication. The server is configured to run as a specific user ID, and all the remote user is doing is connecting to the target users account. (Scary though: Don't run it as root!) For my environment, it should be good enough. The target system in on rack in my basement and I'm connecting via a dedicated ethernet from my another room.

CommonCensus Map Project

An interesting project. The site, CommonCensus Map Project asks a few unintrusive questions and uses the data to create maps of cultural networking. I especialy liked the NFL map, as it showed the Redskin's sphere of influence to extend into South Carolina. What I wonder, is what would it look like if Washington was having a bad season?

Thursday, October 13, 2005

Next, CUA


Catholic University of America on a cloudy day.
Catholic University of America was the next stop. The adjacent basilica is the largest traditional church in the western hemisphere. They have the second largest library in the US. There campus is home to the second tallest building in DC. I was almost surprised when my son raised his hand, as if to ask a question... But he was only fixing his hair. He didn't like CUA-- it smelled funny.