Linux Performance Tuning

I found a very superficial Linux Journal article on performance tuning linked from LinuxToday this week. I read the article because I’m a performance junkie and I hoped to maybe find something I hadn’t heard before.
The article recommended a kernel recompile, which many people don’t consider critical anymore. It’s still something I do, especially on laptops, since a kernel tuned to a machine’s particular hardware boots up faster–often much faster. While the memory you save by compiling your own kernel isn’t huge and was much more critical back when a typical computer had 8 MB of RAM, since Linux’s memory management is good, I like to give it as much to work with as possible. Plus, I’m of the belief that a simple system is a more secure system. The probability of a remote root exploit through the parallel port driver is so low as to be laughable, but when my boss’ boss’ boss walks into my cube and asks me if I’ve closed all possible doors that are practical to close, I want to be able to look him in the eye and say yes.

The same goes for virtual consoles. If a system runs X most of the time, it doesn’t need more than about three consoles. A server needs at most three consoles, since the only time the sysadmin will be sitting at the keyboard is likely to be during setup. The memory savings isn’t always substantial, depending on what version of getty the system is running. But since Linux manages available memory well, why not give it everything you can to work with?

The best advice the article gave was to look at alternative window managers besides the ubiquitous KDE and Gnome. I’ve found the best thing I’ve ever done from a performance standpoint was to switch to IceWM. KDE and Gnome binaries will still run as long as the libraries are present. But since KDE and Gnome seem to suffer from the same feature bloat that have turned Windows XP and Mac OS X into slow pigs, using another window manager speeds things along nicely, even on high-powered machines.

I take issue with one piece of advice in the article. Partitioning, when done well, reduces fragmentation, improves reliability, and allows you to tune each filesystem for its specific needs. For example, if you had a separate partition for /usr or /bin, which hold executable files, large block sizes (the equivalent of cluster sizes in Windows) will improve performance. But for /home, you’ll want small block sizes for efficiency.

The problem is that kernel I/O is done sequentially. If a task requires reading from /usr, then /home, then back to /usr, the disk will move around a lot. A SCSI disk will reorder the requests and execute them in optimal order, but an IDE disk will not. So partitioning IDE disks can actually slow things down. So generally with an IDE disk, I’ll make the first partition a small /boot partition so I’m guaranteed not to have BIOS issues with booting. This partition can be as small as 5 megs since it only has to hold a kernel and configuration files. I usually make it 20 so I can hold several kernels. I can pay for 20 megs of disk space these days with the change under my couch cushions. Next, I’ll make a swap partition. Size varies; Linus Torvalds himself uses a gig. For people who don’t spend the bulk of their time in software development, 256-512 megs should be plenty. Then I make one big root partition out of the rest.

With a multi-drive system, /home should be on a separate disk from the rest. That way, if a drive fails, you’ve halved your recovery time because you’ll either only have to install the OS on a replacement drive, or restore your data from backups on a replacement drive. Ideally, swap should be on a separate disk from the binaries (it can be on the same disk as /home unless you deal with huge data files). The reason should be obvious: If the system is going to use swap, it will probably be while it’s loading binaries.

Still, I’m very glad I read this article. Buried in the comments for this article, I found a gem of a link I’ve never seen referenced anywhere else before: Linux Performance Tuning. This site attempts to gather all the important information about tuning Linux to specific tasks. The pros know a lot of this stuff, but this is the first time I’ve seen this much information gathered in one place. If you build Linux servers, bookmark that page. You’ll find yourself referring back to it frequently. Contributors to the site include kernel hackers Rik van Riel and Dave Jones.

Full disclosure and integrity

I feel like I owe it to my readers to disclose a few things, due to the events of recent weeks raising a few questions in some people’s minds.

Read more

Repairing corrupt IE installations

After church last night I looked at one of the computers in the office. Internet Explorer wouldn’t run on it. Or, specifically, the Internet Connection Wizard wouldn’t run, so IE wouldn’t run. Unnecessary parts strike again. Whatever happened to Web browsers that just used whatever TCP/IP connection was available? Oh yeah. If you do that, then you don’t get a chance to bother people about signing up for an MSN account. I forgot. Of course, no one actually does that. They call their favorite computer expert and ask why Internet Explorer doesn’t run. Sometimes you can make things so easy you make them hard. And the grizzled veteran always either clicks through it, or if they don’t have an account, signs them up for Earthlink out of spite.
But, as always, I digress.

Anyway, I ran SFC.exe. It found changed/corrupted files, but it didn’t make a difference. I went to Add/Remove Programs, picked Internet Explorer, and told it to repair IE. That didn’t help either. I reinstalled IE. That didn’t help either–some DLLs related to the ICW failed to register.

At times I’ve used IEradicator to remove a severely corrupted IE, then I’ve reinstalled it. So I downloaded IEradicator, ran it, rebooted, let it do its thing, and was surprised to see IE on the desktop when it returned. I clicked on the IE icon. It worked perfectly.

I guess at some point he upgraded IE, but it clashed with the old one. IEradicator removed that top layer, but not what was laying beneath it. I’ve seen some strange things before, but this ranks right up there.

When faced with severe IE problems, the best tools you can have in your arsenal are IEradicator, to remove the old version whether Control Panel will let you remove it or not, and OffByOne, a tiny standalone Web browser that fits on a single floppy, which you can use to go download the current version of a more complete browser. Download them now and squirrel a few copies away someplace safe, before you need them.

The behavior I saw last night was completely unexpected, and completely unlike anything I’ve ever seen before. But I didn’t complain. At least it works now.

Microsoft’s temper tantrum

Microsoft is throwing a temper tantrum that if the states’ current proposal goes through, the company will be forced to withdraw Windows from the market.
Pay no attention, move along, there’s nothing to see here.

Remember, this is the company that didn’t sign an agreement with IBM for a Windows 95 OEM license until the day it was launched. At one point during the negotiations, Microsoft told IBM it could buy it at retail. As hard as it might be to remember now, at the time, IBM was still one of the top 5 players in the U.S. PC retail market.

This is a company that plays hardball. It says unreasonable things to get its way. And it’s used to getting its way. And even when it doesn’t get its way, it still says stupid things. Remember, in 1994 Steve Ballmer said a court’s decision against Microsoft in Stac’s favor would be reversed as soon as they found a judge with actual brains.

Reality check: Microsoft can very easily comply with the states’ demands. Or reach a compromise that will benefit everybody. Once upon a time, long long ago, when you installed Windows, you could tell it what you wanted. If you didn’t have any use for Calculator, you could click a little checkbox next to it, Windows wouldn’t install it, and you’d save about 200K of disk space. Hey, back when people were trying to run Windows on 40-meg hard drives, it was nice to have that ability. Or, if you already had a third-party calculator app that put Microsoft’s to shame and thus had no need for the one that came with Windows, you didn’t have to install it.

The same was true of DriveSpace and all the other bundled stuff. I mean, let’s get serious here: Is there any reason whatsoever to install Space Cadet Pinball on your domain controller?

But with Windows 95, Microsoft started to get unreasonable. Yes, you could uncheck that little box next to MSN, but when you did it, Windows didn’t actually seem to do anything. Regardless of whether you checked that box, when Windows was finished, you had an MSN icon on your desktop. If AOL continued to exist, Microsoft’s very existence was threatened. In order for Microsoft to survive, AOL had to die. So you got MSN whether you used it or not. (Some idiot with a journalism degree figured out how to remove it a couple of years later.)

With Windows 95B, things got more sinister. Netscape replaced AOL as the imminent threat to Microsoft’s very survival, so you got Internet Explorer whether you wanted it or not. This time, Microsoft didn’t even bother putting in a checkbox for Windows to ignore. You just got it. With Windows 95 OSR2.1 and 98, Internet Explorer became increasingly more entrenched.

Once it was evident that AOL would never die and Netscape would never rise again, RealPlayer and QuickTime became threats to Microsoft’s existence. So, with Windows 98, we got Microsoft Media Player, whether we wanted it or not. Never mind that the basic Real and QuickTime players are free and both companies would have loved for Microsoft to deliver them with Windows and it would have saved the company development costs.

Microsoft could go a long, long way towards appeasing the states if they’d just put in little checkboxes that let you decide whether Internet Explorer or MediaPlayer was installed, just like Calculator. There’s no need for 8,000 different versions of Windows, like Steve “The Embalmer” Ballmer wants people to believe. Let the consumer decide what pieces he or she wants. Does a deaf person need MediaPlayer? It’s questionable. Does a file server really need Internet Explorer? Absolutely not.

And while there are magazines and book authors who want you to believe otherwise, thousands of people have removed Internet Explorer from Windows. And guess what? The sun didn’t quit rising. The world failed to fall apart. The stock market didn’t crash. Their computers didn’t fall over. The applications they needed to run still ran. In fact, the applications ran better once they got the unnecessary machinery gone. Imagine that, a basic engineering principle applying to computers!

Microsoft execs have complained about a double standard, because Apple, IBM, and Be all shipped Web browsers with their OSs. Of course, there was a big difference. In the case of MacOS, BeOS, and OS/2, you could tell the OS not to install the browser, and it didn’t do it. The same for their other components. In the case of OS/2, you could even remove the entire Windows subsystem. You lost the ability to run Windows 3.1 programs, but you gained speed and stability. I knew people who did that. I’ve done minimalist Mac OS installations that took up less than 20 megs and were completely useless because they lacked the drivers needed to install other software. But if I want to be stupid enough to install a completely crippled OS that can’t do anything besides boot a computer and let me look at its empty hard drive, Apple’s not going to stop me.

The overwhelming majority of people will just leave things alone. But the people who like to get into the nuts and botls of things want (and deserve) the opportunity to change how their computers work. They want Microsoft to fight its battles in the marketplace, not in the memory and CPUs of their computers. I don’t blame them in the least. Of course, I’m spoiled. IBM and Commodore let me have it my way, back when I was buying my operating systems from them.

So, Microsoft has a history of threats, and a history of following through with them, even when the reasoning behind them is totally ludicrous. But in the case of IBM, they ultimately budged, albeit 45 minutes into the 11th hour, and they didn’t budge much. But you don’t just shut out the #3 or #4 PC maker in the country. At the time, Microsoft still needed IBM, and IBM needed Microsoft, as much as both companies hated to admit it.

This is no different. Microsoft can’t just pull Windows off the market. Windows is still its main source of revenue, and Windows runs on more than 90 percent of the computers on the market. Microsoft isn’t going to just give that away. Sure, they make some Mac products, but the Mac is 5 percent of the market on a good day. The cheapest and easiest replacement for Windows, in the unlikely event Microsoft pulled out, is Linux, where Microsoft is a non-player. Microsoft could still sell Windows software to the existing installed base. But it’s ludicrous. Pulling Windows off the market is corporate suicide.

I really don’t think Microsoft would have made IBM buy its copies of Windows 95 at retail. Not everyone remembers it now, but there was some resistance to Windows 95 initially, and a company the size of IBM not shipping Windows 95 on its new computers would have given way to much credence to the naysayers. Microsoft was counting on Windows 95 being big, and it wasn’t going to take any chances. It had spent way too much money on research, development, and hype. Microsoft made that threat to see just how far IBM would go. And that’s what Microsoft is doing now. It’s trying to see how much the states are going to budge.

And that’s all there is to Ballmer’s rhetoric. Nothing more. And nothing less.

Encryption on the cheap

Disspam cruises along. It’s not often that I gush about a program, let alone a 4.5K Perl script, but Disspam continues to make my life easier. Granted, it simply takes advantage of existing network resources, but they’re resources that were previously (to my knowledge) limited to the mail administrator. Literally half my e-mail at home today was spam. Disspam caught every last piece.
A little scripting of my own. I’ve got a client at work who wants absolute privacy guaranteed. He and his assistant have some files they don’t want anyone else to be able to read, period. Well, there’s no way to guarantee that under NT, Unix, or VMS. Under NT, we can take away anyone else’s rights to read the file, but an administrator can give himself rights to read the file once again. We can make it set off all kinds of sirens if he does it, but that security isn’t good enough.

Well, the only way we can guarantee what they want is with encryption. But we’re nervous about making files that one and only one person can read, because last year, one of our executives went on vacation in Florida, fell ill, and died. We don’t want to be in a situation where critical information that a successor would need can’t be unlocked under any circumstance. So we need to encrypt in such a fashion that two people can unlock it, but only two. So the client’s backup is his assistant, and the assistant’s backup is the client. That way, if something ever happens to one of them, the other can unlock the files.

Password-protected Zip files are inadequate, because any computer manufactured within the past couple of years is more than fast enough to break the password through brute force in minutes, if not seconds. The same goes for password-protected Word and Excel documents. Windows 2000’s encryption makes it painfully easy to lock yourself out of your own files.

So I spent some time this afternoon trying to perfect a batch file that’ll take a directory, Zip it up with Info-Zip, then encrypt it with GnuPG. I chose those two programs because they’re platform-independent and open source, so there’s likely to always be some kind of support available for them, and this way we’re not subject to the whims of companies like NAI and PKWare. We’d be willing to pay for this capability, but this combination plus a little skullwork on my part is a better solution. For one, the results are compressed and encrypted, which commercial solutions usually aren’t. Since they may sometimes transfer the encrypted package over a dialup connection, the compression is important.

Plus, it’s really nice to not have to bother with procurement and license tracking. If 40 people decide they want this, we can just give it to them.

The biggest problem I ran into was that not all of the tools I had to use interpreted long filenames properly. Life would have been much easier if Windows 2000 had move and deltree commands as well. Essentially, here’s the algorithm I came up with:

Encrypt:
Zip up Private Documents subdirectory on user’s desktop
Encrypt resulting Zip file, dump file into My Documents
Back up My Documents to a network share

Decrypt and Restore:
Decrypt Zip file
Unzip file to C:Temp (I couldn’t get Unzip to go to %temp% properly)
Move files into Restored subdirectory on user’s desktop

I don’t present the batch files here yet because I’m not completely certain they work the right way every time yet.

They don’t quite have absolute security with this setup, but that’s where NTFS encryption comes in. If these guys are going to run this script every night to back the documents up, it’s no problem if they accidentally lock themselves out of those files. If their laptops get stolen, all local copies of the documents are encrypted so the thief won’t be able to read them. And the other user will be able to decrypt the copy stored on the server or on a backup tape. Or, I can be really slick and copy their GPG keys up onto the same network drive.

This job would be much easier with Linux and shell scripts–the language is far less clunky, and file naming is far less kludgy–but I have to make do. I guess in a pinch I could install the NT version of bash and the GNU utilities to give myself a Unixish environment to run the job, but that’s a lot more junk to install for a single purpose. That goes against my anti-bloat philosophy. I don’t believe in planning obsolescence. Besides, doing that would severely limit who could support this, and I don’t have to try to plant job security. I always get suspicious when people do things like that.

Stopping spam.

Forget what I wrote yesterday. I was going to post the stuff I wrote in Ohio when I realized it isn’t all that good, it’s definitely not useful, and the people who annoy me the most are the people who can’t get over themselves. No one cares what I ate for breakfast, and the only people who care what went on in Ohio already know.
So here’s something useful instead. It’s the coolest thing I’ve found all year. Maybe all decade, for that matter.

Spam begone. I hate spam. It wastes my time and my bandwidth and, ultimately, my money. I’ve seen some estimates that spam costs ISPs as much as $5 per month per account. You’d better believe they’re passing those losses on to you.

There are tons and tons of anti-spam solutions out there, but most of them run on the mailserver side, so for an end-user to use them, they have to set up a mail server and either use it for mail or run fetchmail to pull the mail in from ISP’s mail servers. I’ve done that, but it’s convoluted. But that’s trivial compared to setting up the anti-spam kits.

I was crusing along, vaguely happy, when my local mailserver developed bad sectors on the hard drive, so one day when I went to read my mail, I heard clunking noises. I turned around, flipped on the power switch to the server’s attached monitor, and saw read errors. Hmm. I hope that mail wasn’t important…

Eventually I shut down my mail server and put up with the spam, hoping I’d come up with a better idea.

I found it in a Perl script called disspam.pl, written by Mina Naguib.

It took a little doing to get it running in Debian. Theoretically it’ll run on any OS that has Perl installed. Here’s what I did in Debian:

su (to become root)
apt-get install libnet-perl (Perl couldn’t see the network without this, so the next command in this sequence was failing. This hopefully isn’t necessary on other distros, as I have no idea what the equivalent would be.)
perl -MCPAN -e shell (as per readme–I accepted the defaults, then when it asked for CPAN servers, I told it my continent and country. Then it gave me 48 choices. I picked a handful at random, since none were any more obviously close to me than others.)
install Net::POP3 (as per readme)
quit
cp sample.conf disspam.conf
chmod 755 disspam.pl

Next, I loaded up disspam.conf into a text editor. It looks just like a Windows-ish INI file.

The second line gives me an exclude list. It’ll take names and e-mail addresses. So I put in a few important names that could possibly be blocked (friends with AOL and Hotmail addresses). That way if their ISPs ever misbehave and get blacklisted, their mail will still get to me. Then I popped down to the end of the file and configured my POP3 mailbox. I had an account I hadn’t read in a week, so I figured I’d get a good test. Just drop in your username, password, and POP3 server like you would for your e-mail client. If you have more than one account, copy and paste the section.

Bada bing, bada boom. You’re set. Run disspam.pl and watch. In my case, it flagged and deleted about a dozen messages, typical of what I usually get, like mail offering me Viagra or access to horny cheerleaders or how to find out anything about anyone (which I already know–I have a journalism degree). The only questionable thing it flagged was mail from MLB.com. I can’t get off their mailing list ever since I voted online for the All-Star game. No importa, I never read that mail anyway. I could have always added MLB.com to my exclude list if what they had to say mattered to me.

But if you’re like me and get lots of mail–that was my less-busy account–and about half of it is spam, that stuff’s going to scroll by really fast. So here’s what I recommend doing: when you execute disspam.pl, use the following command line:

~/disspam/disspam.pl ~/disspam/disspam.conf >> ~/disspam/disspam.log

Then you can examine disspam.log. If disspam ever deletes something it shouldn’t have, you can add the person to your exclude list and e-mail them to ask what they wanted. It looks to be less work than deleting all that spam. Probably less embarrassing too. Have you ever accidentally opened one of those horny cheerleader e-mail messages when there were people around? Yikes!

I fired up Ximian Evolution, pulled down my mail, and had 15 new messages. No spam. None. Sweet bliss.

It’s just version 0.05 and the author considers it beta, but I love it already.

Unix’s power allows you to string simple tools together to make powerful ones. Here are some suggestions.

You can e-mail the log to yourself with these commands:

mail -s disspam [your_address] rm ~/disspam/disspam.log

If you want the computer to do all the work for you, here’s the command sequence:

cronttab

Then add these entries:

0 0 * * * mail -s disspam [your_address] * 0 * * * ~/disspam/disspam.pl ~/disspam/disspam.conf >> ~/disspam/disspam.log

If you read your mail on the same machine that runs disspam, you can substitute your user account name for your e-mail address and save your ISP a little traffic.

You’ll have to provide explicit paths for disspam.pl and disspam.conf.

The first entry causes it to mail the log at midnight, then delete the original. The second entry filters your inbox(es) on the hour, every hour. To filter more frequently you can add more lines:


* 10 * * * ~/disspam/disspam.pl ~/disspam/disspam.conf >> ~/disspam/disspam.log
* 20 * * * ~/disspam/disspam.pl ~/disspam/disspam.conf >> ~/disspam/disspam.log
* 30 * * * ~/disspam/disspam.pl ~/disspam/disspam.conf >> ~/disspam/disspam.log
* 40 * * * ~/disspam/disspam.pl ~/disspam/disspam.conf >> ~/disspam/disspam.log
* 50 * * * ~/disspam/disspam.pl ~/disspam/disspam.conf >> ~/disspam/disspam.log

This program shouldn’t be necessary for very long. It’s short and simple (4.5K worth of Perl) so there’s no reason why mail clients shouldn’t start incorporating similar code. Until they do, you run the risk of disspam and your mail client getting out of sync and some spam coming through. If you read your mail on a Linux box with an mbox-compliant client like Sylpheed or Balsa or Kmail, you can bring fetchmail into the equation. Then create a .fetchmailrc file in your home directory (name it ~/.fetchmailrc to ensure it goes to the right place). Here’s the format of .fetchmailrc:

poll SERVERNAME protocol PROTOCOL username NAME password PASSWORD

So here’s an example that would work for me:

poll mail.swbell.net protocol pop3 username dfarq password censored

Next, set your mail client to no longer check for mail automatically, then type crontab and edit your disspam lines so they read like this:

* 20 * * * disspam.pl disspam.conf >> ~/disspam.log ; fetchmail (your server name)

In case you’re interested, the semicolon tells Unix not to execute the second command until the first one is complete. If you have more than one mail account, add another fetchmail line.

As an aside, Evolution seems to use the mbox file format but it doesn’t store its file where fetchmail will find it. I think you could symlink /var/spool/mail/yourusername to ~/evolution/local/Inbox/mbox and it would work. I haven’t tried that little trick yet.

But even if you’re not ambitious enough to make it run automatically and integrate with all that other stuff, it’s still a killer utility you can run manually. And for that matter, if you can get Perl running on NT or even on a Mac, this ought to run on them as well.

Check it out. It’ll save you time and aggravation. And since it only reads the headers to decide what’s spam and what’s not, it’ll save bandwidth and, ultimately, it’ll save your ISP a little cash. Not tons, but every little bit can help. You can’t expect them to pass their savings on to you, but they’ll certainly pass their increased expenses on to you. So you might as well do a little something to lower those expenses if you can. Sometimes goodwill comes back around.

Catching up.

One of these days I’ll get around to posting the stuff I wrote in Ohio. I didn’t think I’d have culture shock out there. I can’t decide if Ohio is in the midwest or if it’s really an eastern state, but St. Louis is awfully eastern for a midwest city, and my dad was from Doylestown, Penn., so I lived with an easterner for 18 years of my life.
Look for that tomorrow, maybe. I’d have to unpack the laptop to post that material and I really don’t feel like doing that. I’ve had a fairly productive day, cleaning the place up a bit and politicking and reading Exodus, and I’m going to conveniently remember that Sabbath runs from sunup to sundown, and the sun is down (never mind that the Sabbath takes place on Saturday–this is my convenient re-interpretation, thank you) so I’ve got my excuse to be lazy, which means kick back with a cup of decaf green tea and let the stream of consciousness flow.

Politicking. Yes, politicking. I found myself in the distressing position this week of being a moderate. I’ve always been an outspoken conservative/libertarian (whichever stance will offend the most people is the one I generally took in print in college), except on religious matters, where I’ve always found a way to be a flaming liberal. When I ditched the liberal theology, I gravitated towards modern practices, which put me right back in the liberal camp.

I find myself caught between two very strong personalities, one that wants radical change yesterday, and the other who finds the status quo very comfortable. That in itself makes me uncomfortable, because our comfort level isn’t very high on God’s priority list. And the mission statement of our church is Reaching people for Christ, equipping people in Christ. When I look around at all the GenXers in our congregation who could be reached more effectively, the status quo makes me very uncomfortable. Ministry starts to go downhill fast when the focus shifts to numbers, but I can think of a dozen faces we could help equip more effectively.

I’d much rather equip one person effectively over the course of a year than 12 in a so-so fashion, but with the status quo, I’m questioning whether we can equip one more person effectively. By the same token, alienating 20 people in order to satisfy one person and potentially gain new people is a net loss, even if you eventually gain more than you lose. You don’t just turn someone’s world upside down for no reason.

Hence, I’m suddenly a moderate.

I don’t like being a moderate on much, so I’m going to go find something I can take an extreme position on.

Shaving. That’ll do it. Unix and VMS master Charlie was talking about razors on his page. I can take a strong position on shaving. Become a Nazarite and don’t do it. Life is much simpler afterward. It takes less time to get ready in the morning, and you end up looking like Richard Stallman so no one will come near you, which means you have fewer social problems, thus making your life even simpler.

Except these days, there’s e-mail, so people can talk to you without having a clue what you look like. And I like being able to walk up to girls without them shrieking something about the ghost of John the Baptist and running away at about 60 miles per hour. But if you get your jollies by trying to prove the Cheetah isn’t the fastest land mammal, I think I just told you how.

But I digress, as usual.

I was having a conversation about a year and a half ago with a good friend and mentor, and I told him about an incident I found myself in. I was having lunch with an old friend, female, in Kansas City, and I found I’d forgotten my razor. So, before I went to see her, I went out and bought a drag razor and my sister showed me how to use it. I’d never shaved with a blade in my life. (She was worth impressing. But don’t get any ideas, because she’s married now.)

“Once you go to a drag, you never go back,” my friend said.

Oh, I went back alright. The drag gets a whole lot closer, but even with a really high-quality one, I can still cut myself occasionally. Once I learned the secrets, I never cut myself with an electric. And an electric is so much faster, because you don’t have to bother with shaving cream and filling the sink with water, and you (usually) don’t have as big of a mess to clean up afterwards. There are two tricks with electric razors. OK, three.

1. Brand matters. A lot. My dad used to give me the electric razors he tried and didn’t like. I figured out really quickly why he didn’t like them. They were like shaving with a Sherman tank. They didn’t shave close, and I felt like I had a rash afterward. Sometimes they’d turn me beet red too, and I wasn’t even mad or embarrassed. My dad would never let me try his Braun. So one day I snuck in after he’d left for work and I tried it. Good stuff.

So if you don’t like your electric, try another brand. I’ll never use anything but a Braun. If a Braun doesn’t work for you, your face might be better suited for a Remington or a Norelco. They must work for some people, seeing as someone buys them.

2. Use pre-shave. The most common brand is called Lectric Shave, but there are others. Rub your face down with it a couple of minutes before you shave. It can make a big difference. With pre-shave, my 3-stage Braun gets just about as close as a blade.

3. Clean your razor! Your razor is not a gateway to a netherworld where your whiskers disappear to. If your razor just isn’t getting very close, pop the top off it and empty it out. It’ll work better afterward. And you’ll have a mess to clean up, like you would if you used a blade.

Printing with HP

I drove into North St. Louis tonight. The computer lab I set up at Bethlehem Lutheran needed some maintenance. It turned out to be very minor maintenance (fortunately)–their HP LaserJet 1200 printer had come unshared from the Win98 box that hosts it, so none of the other PCs could print. So I reshared the printer, connected the rest of the machines to it again, and printed test pages. It worked. I did a little more cleanup since I was there. These computers live a hard life. Fortunately, they’re completely standard microATX systems so getting parts for them will be easy and cheap.
I really need to set up a Linux box to host the printer though. If the printers were hosted by a keyboardless, headless Linux box, they couldn’t come unshared. A Samba print server takes me about an hour to set up, so it’d be a good investment of time. And I’d have my choice of 486s to do it with. I showed one of their staff how to share out a printer just in case it happens again.

They have a second printer as well, an HP DeskJet 660 donated by one of their field workers, and I was going to hook it up but I couldn’t find the stash of cables I used to have up there. I had a parallel cable out in my car for the longest time too, but I went out there, tore my car apart, and couldn’t find it. I must have given it to someone at some point. So I’ll be making another trip up there next week after I run across one. The DeskJet is just there for backup purposes.

The choice of HP printers may make some people curious. The DeskJet was donated. The 1200 is just a really fast, really inexpensive printer. I know Lexmark has something comparable now, but at the time we bought the 1200, there wasn’t much else in its class. It’s a very solid printer. HP’s not the best about providing new drivers when operating systems come out, but there’s a dirty little secret that apparently people don’t want to talk about (or maybe they don’t know). You can always use an older HP printer driver with newer printers. I could run both the 1200 and the DeskJet off an old LaserJet II driver. Microsoft always provides drivers for some of the classic HP printers. In a pinch, I run laser printers off a LaserJet 4 or LaserJet 5 driver. On high-end printers I lose the ability to select trays, but on a low-end printer like the 1200, I won’t lose a thing. So if you can’t find a driver, try the closest match you can find, and fall back on a lowest-common denominator like a LaserJet II if that fails.

Ugh.

Ugh. (Yeah, I’m using big words today.) I’m behind, I know. I haven’t posted anything of substance for a few days. I’m being hit from every possible direction right now, which is why I’m behind on my e-mail and behind on the site.
My apologies. I probably ought to cancel, but I’m making time tomorrow to go out for pizza with some friends who have a way of putting things in perspective. (I’d better not tell ’em that though. It’ll go to their heads.) I’ll be thinking more clearly afterward.

So, anyway… I’ve got stories from Ohio, I’ve got some hardware talk, but before all that I’ve gotta take care of some business that blew up while I was out of town.

The hysteria on StarOffice…

Various sources are reporting Sun’s plans to begin charging for StarOffice. Sun, meanwhile, is mum on the subject.
Nowhere has anyone reported that Sun, by the strictest definition of the word, already charges for StarOffice. You can buy it at retail. It’s fairly cheap, but we’re not talking five bucks. I’ve seen a retail-boxed StarOffice 5.2, with Sun’s logo on it, at Circuit City within the past year. Price was about 40 bucks, as I recall.

Sun is mum on the subject. It could be that Sun plans to charge $100 for it and take away the free download. Or it could be that 6.0 will cost $40 at retail but remain downloadable for free on the Web. It’s anybody’s guess, precisely because Sun hasn’t said anything yet.

It’s non-news until Sun announces a shift from current policy. But this isn’t the first time non-news has garnered attention and it won’t be the last.

One more thing. On a completely unrelated note… This picture really scares me.