Navigation


RSS / Atom



Email packrat

2009-12-27 , , R. Lonstein , Comment

I’m an email packrat. I have organized, compressed archives of nearly everything I’ve received or sent since 1999. In duplicate. I qualify “nearly” because in 2006 I switched to maildir after corrupting an mbox and out of necessity began culling several mailing lists. And the only reason it only goes back ten years is that I can’t read some of the tapes and can’t find a second copy on a different medium or simply don’t have the operating system any more (OS/2, for example). But that isn’t the point. The point is that I found an email I sent six years ago in less time than it took to write this entry and I did it using little more than grep (I really must sit down and index all of that with mairix).

Comment


I bet you know these people too

2009-12-07 , , R. Lonstein , Comment

The other day, I was involved in on-call, Maria was wrapping gifts and Nate was doing his best to annoy both of us. So I ordered him downstairs and put on a tivo-ed cartoon. I then walked into Maria’s office and said, “We used to know a young couple who said that they would never use the television as a baby-sitter. I wonder what ever happened to them.”

Comment


To my family and friends running Windows...

2009-09-18 , , R. Lonstein , Comment

I regularly get questions about the virii, worms, trojans and other malware infecting Windows. Lately a very convincing and hard to clean piece of malware is making the rounds so I decided to write up several previous discussions to get all this in one place.

First, let’s be clear: I don’t manage or run Windows systems at work anymore and have not in several years. I spend most of my time in Unix; I’m an occasional user of a managed corporate Windows deployment and someone else worries about all this. When I do need to run Windows at home, it runs on a Mac inside a VMWare Fusion virtual machine or under FreeBSD or Linux using Virtual Box. I take snapshots of the virtual machine and restore it when I’m done. If that made no sense then detailing what I do for myself is probably not going to work for you, but I’ll try to offer some advice on cleaning up and avoiding some of these problems.

The procedure for cleaning up is simple, in theory:

  1. Take the machine off the network, preventing reinfection and the spread of the existing infection.
  2. Get the host to a state where important files (documents, pictures, music, etc.) can be backed up. If you do not have a backup device, improvise by burning to CD or DVD or use a USB stick.
  3. Use the original installation or recovery disk from the vendor to “nuke and pave” (wipe clean and reinstall) the box returning it to an original pristine state.
  4. Restore your data.
  5. Prevent reoccurrence.

In practice, it’s not so simple. Skim the longer explanation below. Don’t panic. If it sounds like more than you can do, spend the $250 for your local computer shop or the Geek Squad (Best Buy) to handle it.

Before getting into the malware, some comments on network hygiene. If the box is connected directly to the internet via a cable modem, it’s probably infected whether you know it or not. See this article Unpatched PC Survival Time Just 16 Minutes which was true in 2004 and still applies today. If you have DSL or FiOS with a company-supplied router (not a bridge) or have a router or wireless base that you supplied (like one of these from Linksys or Belkin among several makers) then you might have a small barrier between your machines and whatever comes knocking from the outside world. If you don’t have one, get one before you begin or you’re wasting your time. Be sure to update to the latest firmware and change the default password.

Next a comment on the behavior of malware, if the box is infected with one piece of malware it probably has more. Disconnect it from the network and leave it off until you can deal with it for a few hours uninterrupted. Many pieces of malware scan the local network or present fake services or subvert them (for example, DHCP which is used to dynamically assign an IP address) to infect other hosts. These can spread over a wireless network, too. Trojans often require someone to do something- accept a pop-up, run a game, load a program, play a video- as a means of getting their foot in the door. Worms and self-propagating nasty things don’t need help. Plan to spend time checking and cleaning any other computers on your home network.

Using a different, uninfected machine download fresh copies of Avast! (anti-virus), Ad-Aware (malware cleaner), Malwarebytes (another malware cleaner), and Spybot Search & Destroy (yet another malware cleaner) and burn them to a CD. The free versions are fine for this purpose. Be sure to only use the official releases linked above as there are a bunch of fakes circulating with trojans in them. Last download the complete Microsoft IE and Windows updates and burn those to a CD. You’ll need all of these to remove the initial infection or reinstall.

If you have a full-system backup, stop. Your backup is probably infected too. If you’ve made an ad hoc backup using a CD, DVD or memory stick assume it is infected but go ahead and make a second one now. Trying to save your applications and settings is usually a lost cause so focus on the data. If the machine is somewhat usable (ex, pop-ups, fake blue screen, etc.), try to install the new copies of the programs above then run them to clean out the system. If this fails or you can not install and clean you are at serious risk of losing your data. As a last ditch effort where you can not get one-on-one professional help, you might try creating a boot disk on another machine and copying off the files by hand or installing a second minimal copy of the original operating system in a second directory or on a different harddisk. If your machine is recent and can boot from USB, there are commercial and non-commercial (ex. Bart’s PE Builder) ways to build a bootable Windows image on a flash drive but if you can do that, you probably don’t need my help and would not be in this mess. Understand that even if you succeed in retaking the machine, the software on it is not trustworthy. The point is that you should be able to back up your data.

At this point, if it’s not obvious where I’m heading, I recommend wiping the machine entirely and reinstalling from scratch before you connect to the network. Apply the patches you downloaded above for Windows and Internet Explorer. Now that you have a clean machine, install the anti-virus and anti-spyware mentioned above. Do not restore your files from backup yet! All updates need to be done before putting the box back on the network or you’ll simply get reinfected. You should have that hardware device (router, access point, etc.) I mentioned earlier between you and the cable or DSL.

Do not restore your backups and reinstall your apps. Seriously. Scan them with the anti-virus and anti-spyware first. If you’ve taken full system backups, you are going to restore only the data (MyDocuments, etc.). Do not restore the whole system and overwrite what you just cleaned up. Restore this subset of the backup to a new folder and scan it. If you work with an ad hoc backup, copy the data to a new folder and scan it. Next move on to applications. Only install ones for which you have the original disk or trust the download site. Do not trust C|Net, download.com or any of the other sites that track software they didn’t write. Only install from the original vendor or author. Do not install any “free” games, screen-savers, plugins or video codecs. It’s okay to install Adobe Flash and Shockwave and the Apple Quicktime Player. When you are done, take a full system backup and create a “Restore Point” using the Microsoft System Restore tool. This will be the reference copy if you ever need to do it again.

Finally, to prevent reinfection you need to change habits:

  • Don’t run or double-click anything you download that isn’t vetted first. This means no solitaire games, toolbars, screensavers, browser plugins or other gadgets. It also means no email attachments and documents. Be paranoid.
  • Don’t click on pop-ups or click “Okay” until you know what the message means.
  • Don’t use file-sharing networks and peer-to-peer software. It encourages you to run software you haven’t vetted and to open files from untrusted sources.
  • Install anti-virus and keep it updated. Pay for the subscription.
  • Install anti-spyware, keep it updated and run it regularly. Pay for the subscription.
  • Use a white-list only firewall. Only permit the traffic you want to and from your PC. Microsoft ships one built in and I’ve heard that Comodo is good and Norton is acceptable. Pay for the subscription. Either way, pay attention to the pop-ups from it.
  • Use a different browser. I suggest Firefox instead of Internet Explorer. It’s generally better and presents a smaller target.
  • Disable or restrict ActiveX, Javascript, Flash, Java and every other plugin. For Firefox users this is best achieved using the NoScript Plugin and only permitting trusted sites to execute scripts.
  • Run a filtering proxy and configure your browsers to use it. The open source Privoxy can help you screen out junk. Download Privoxy for Win32 from sourceforge.
  • Don’t use Outlook or Outlook Express for email. Their previewing of attachments is a opportunity for infection. Try Thunderbird instead.
  • Don’t use AOL chat or any other branded chat clients. If you have to use a chat client try Pidgin.
  • Take regular full backups. An external hard drive and the commercial Novastor or the open source Areca will do.
  • Make regular ad hoc backups of your data. Burning to DVD is an easy and reliable method.
  • Make a recovery disk, ideally a recovery USB stick, and keep it updated.

I know no one is going to follow that list until they get burned for the second time.

Comment


Yard sale find

2009-09-07 , , R. Lonstein , Comment

I don’t know why I picked it up. Maybe because there was just enough power left in the batteries to run a couple of calculations and the self-test before they died, but for $2 I bought a circa-1983 HP 12C financial calculator. It’s missing the owner’s manual, the vinyl sleeve is in tatters and the quick reference lost its spiral binding long ago but the calculator itself is in excellent shape.

hp12c-front

hp12c-back

$9 worth of button cell batteries later, I have a working RPN calculator. It’s a neat little device and HP still sells it in two models- one of which switches between RPN and Algebraic modes- and supplies (pdf) manuals and guides:

I don’t know what I’m going to do with it but I’ll leave on my work desk and see if I use it. I usually have a Lisp session open in a terminal or a newer, faster computing device nearby, but it’s quite fast for what it does compared to slapping together a one-off and checking the result.

Comment


Dropping wanderlust, back to mutt

2009-08-28 , , R. Lonstein , Comment

I’ve given wanderlust, a mail user agent for Emacs, a solid six month try as my only mail reader after a prior year of dabbling with it. It’s good but not great. I found no improvement over mutt with Emacs as my editor. That combination just lets me read mail most of the time instead of swearing and grovelling through the code.

Comment


Vacation bug identification?

2009-08-24 , , R. Lonstein , Comment

On the first day of our beach vacation we found a number of large (about 1.5” long), red-legged, solitary wasps digging dime-sized holes in the sand between the patio pavers. They were industrious, sweeping out the sand with their forelegs and brushing it away with their hind legs. These bugs were not aggressive despite the kids’ investigations, nor were they bothered by my crouching and moving around to take snapshots with my pocket camera even when I flashed it a few inches from them. I took several shots but only two turned out okay (time for a better camera):

Digging wasp, hole #1.
digging wasp

Digging wasp, starting hole #2.
digging wasp, starting a new hole

I witnessed the wasp drag some bug into the burrow but wasn’t ready with the camera. Comparing to pictures on the ‘net, I think they are “golden diggers”.

Comment


Cherokee web server

2009-08-10 , , R. Lonstein , Comment

In the past I’ve used NginX for a development web server but I stumbled across the Cherokee http server recently which fits my criteria of small, fast, lightweight, trivial to build on unix-like systems and easy to configure.

Whatever the project’s intentions, the result is perfect for my style of semi-disconnected development on my laptop with an instance per work dir listening on the loopback and independently serving different components. It has a combined rsize under 2MB for the workers and the controller meaning it’s dwarfed by the reset of my tools (like Firefox and Emacs) and it’s trivial to configure thanks an included web-based admin tool.

Comment


Happy birthday Nate

2009-07-08 , , R. Lonstein , Comment

Four years old. Monday night we wrapped and set out presents and Maria put the big red birthday plate and a party hat at his seat at the dinner table so he would find it at breakfast. I think we were more excited than he was until he unwrapped the gifts from his uncles Joe and Stephen (no longer pronounced “the uggles”) and found “Krypto, the Super Dog” videos and books. It’s all super dog and space aliens with him lately, with his serious-voiced emphasis on how the latter are “not too scary.” This weekend we’ll have his birthday party, the third celebration of it, actually, after having cake for the kids at school and another cake at our Fourth of July party. It’s good.

Comment


Palm Pre SDK?

2009-07-06 , , R. Lonstein , Comment [1]

Maria jumped onto the early-adopter bandwagon for the first time recently and I had a chance to play with the Palm Pre smartphone. It’s a nifty little device. Not so nifty that I’m shelling out cash for one- yet. I carry a blackberry for work and still have hard feelings (and a pile of broken Pilots and old Visors in a box somewhere) on Palm’s failure to hold onto and grow out of the PDA market that it defined- but interesting enough that when she described what the built in apps can do I had some ideas and went looking for the SDK.

Surprise. It’s still in “early adopter” mode and you have to register and wait until your name comes up in whatever scheme they’re using to choose developers. That’s the sort of thing you do when the device is not yet widely available and the tools and documentation are raw. Except “early adopters” for SDK’s expect it to be raw. They’re developers, remember, used to incremental releases and half done documentation. It’s the sort of thing that happens when marketing is afraid that you’ll get one, and only one, try at launching before the bad reviews sink it. I looked, there’s next to nothing in the Palm application store and it’s going to stay that way until Palm gets the SDK out into people’s hands and I don’t mean by someone leaking it (heh, read last night that it was leaked) so it finds its way into torrents.

Comment


Chemistry humor

2009-07-05 , , R. Lonstein , Comment

Derek Lowe’s web column In the pipeline has a section titled Things I won’t work with with pithy observations like this one:

If you’d like to make your mark, this seems to be a relatively unexplored field. The problem is, the mark you’re most likely to make is in the nature of a nasty stain on the far wall.

There is some funny stuff, even if your chemistry education (like mine) stopped with making nylon, slime, distilling alcohol and scorching lab benches with poorly thought out (or supervised, or contained…) uses of oxidizing reagents. The visitor comments are also good reading as is another of Lowe’s sections Things I’m glad I don’t do.

Comment


« Older Posts    Newer Posts »