If you are looking for the epic motorcycle journey blog that I've written, please see the Miles By Motorcycle site I put together. 
  • Subscribe to this RSS Feed
  • SMTP Protocol to send an email message.
    10/25/2010 7:08PM

    Ages ago, I used to know the SMTP protocol by heart but these days I actually telnet into a mail server to diagnose problems so rarely that I forget the details. I could have sworn I had put an article up about this, but can't find it, so here goes.

    Telnet 25 localhost

    HELO test.com
    MAIL From: test@test.com
    RCPT To: test2@test.com
    This is a test body
  • Changing/Editing Start/Program Menu in Fedora Core 13
    09/21/2010 10:20AM

    You would think that an editing tool would be included by default but it is not. So after some searching I discovered the tool needed is "alacarte". To install, as root in a terminal window:

    yum install alacarte

    After installation there will be a new menu item called System->Preference->Main Menu which will let you edit the menus.

  • Fedora Core 13 on a Lenovo ThinkPad X100E
    09/19/2010 4:44PM

    I'm repeating my experiment with the Lenovo Thinkpad X100E. I picked one up directly from Lenovo.

    The product page is here. (not an affiliate link)

    I got the "Elite" version with the AMD Turion Neo X2 Dual-Core L625 (1.6GHz, 800MHz, 1MB L2) processor, 4 gigs of ram and a 320 gig drive. It's got a realtek wireless card.

    It comes with Windows 7 installed. I used the Lenovo tools they provide to create a set of restore CD/DVD's.

    Then I created an image of the hard drive onto an external USB drive, in case I ever want to sell the thing to someone else I can reinstall the factory Win7 image. (I could probably just use the CD's I created for the same purpose, but wanted to be doubly sure.)

    I booted the Fedora Core 13 live CD using an external USB CD/DVD drive, but because the laptop is too new and ACPI on this machine is not yet supported by the stock kernel I had to pass acpi=off in the kernel boot parameters.

    I plugged in an external USB drive.

    I was going to just do a straight dd as I usually do but came across this article with some optimizations:



    dd if=/dev/hda conv=sync,noerror bs=64K | gzip -c  > /mnt/sda1/hda.img.gz 

    From there I went on to try to shrink the ntfs partition. I figure it might be good to have win7 on the machine just in case I wanted to play with it or needed an authorized copy of the OS for some reason.

    The Fedora Core 13 installer supports resizing NTFS partitions during install but that feature errored out on me leaving me with an unbootable machine.

    I used the Lenovo tools to restore the original factory image of the drive. Interesting, the file system shrink had worked and despite doing the drive restore it kept my newly sized partition structure. Interesting. 

    From here, installing Fedora Core 13 to the hard drive is just a matter of clicking on the install to harddrive icon from the live cd.

    Installation was painless as usual. I ran through applying all available updates which took a while. 

    Wireless networking doesn't work out of the box. You have to download and install the latest Realtek driver, which means you have to install the kernel-development headers and the GCC development environment.

    The driver is available from:


    More information on Linux and the X100E can be found here:


    I am currently running with acpi off. There is a module you can compile for yourself but I haven't explore this yet.

    On my X100E sound does not work. More accurately it works long enough to play exactly one sound then it's nothing but garbled static. I have not yet tracked this one down yet either.

    Fedora Core 13 seems to run slowly on this machine for some reason. Win7 is /much/ faster by comparison. Not sure if ACPI has something to with the slowdown or not.

    The keyboard rocks and I really like the form factor.

    Update - Flashing BIOS

    After doing some more googling around I heard several mentions that some users had success with ACPI working with the current stable FC13 kernel. So I booted back into Win7 and went to Start->Lenovo ThinkVantage Tools -> Update and Drivers and installed all Critical and Recommended updates. A BIOS update utility is included as part of that set of updates and it automatically flashes the BIOS after many warnings to not turn off your computer or lose power during the update process.

    After this I rebooted Win7 just in case there were any post-update steps it needed to complete. Then I rebooted into Linux making sure to remove the acpi=off flag in the boot parameters.

    I'm running the stock kernel installed during the latest update run from System->Administration->Software updates.

    Dmesg reports at that acpi has been recognized and sound now works!

    It looks like I may have a fully functional system now.

    Another Update - Hard Freeze/Lockup

    With the above changes I left the machine running. When I came back after a few hours it was locked cold requiring the classic remove battery and reinstall to get it to reboot.

    Based on some more google searches this may be a known problem with ACPI and the laptop suspending. I've set power management to suspend "never". I will report back to see if that works around this problem. It seems the 2.6.35 kernel which has not yet been released into Fedora Core fixes this problem.

  • Useful Unix/Linux Find command
    06/28/2010 2:08PM

    One of the problems I face these days is that I do too many disparate things. As a result, some uncommon tasks take a little while to get figured out. 

    In this particular case I had a directory of photos spanning a few days. I wanted to use the dates of the photos to copy them into separate directories spanning the four days of my trip.

    You can use the Unix/Linux find command to select files that are older or newer than a given other file.

    So for instance, the directory of photos was:

    -rwxr-xr-x. 1 yml yml 4468694 Jun 24 22:25 DSC01079.JPG
    -rwxr-xr-x. 1 yml yml 4496797 Jun 24 22:34 DSC01080.JPG
    -rwxr-xr-x. 1 yml yml 4543774 Jun 24 22:34 DSC01081.JPG
    -rwxr-xr-x. 1 yml yml 3852189 Jun 24 23:00 DSC01082.JPG
    -rwxr-xr-x. 1 yml yml 3386850 Jun 25 01:41 DSC01083.JPG
    -rwxr-xr-x. 1 yml yml 4492462 Jun 25 12:14 DSC01084.JPG
    -rwxr-xr-x. 1 yml yml 4515675 Jun 25 15:07 DSC01105.JPG
    -rwxr-xr-x. 1 yml yml 3317623 Jun 25 23:02 DSC01118.JPG
    -rwxr-xr-x. 1 yml yml 3314088 Jun 25 23:02 DSC01119.JPG
    -rwxr-xr-x. 1 yml yml 3584793 Jun 25 23:04 DSC01120.JPG
    -rwxr-xr-x. 1 yml yml 3837912 Jun 26 01:11 DSC01121.JPG
    -rwxr-xr-x. 1 yml yml 3754608 Jun 26 01:11 DSC01122.JPG

    To copy the files for June 25th, one approach is to select the files that are older (i.e. NOT newer than) than DSC01120.JPG, the last photo on the 25th and newer than DSC01082.JPG, the last photo on the 24th.

    [yml@nomad 101MSDCF]$ find . -name \*.JPG  -cnewer DSC01082.JPG \! -cnewer DSC01120.JPG -exec cp {} somedirectory

  • Motorola Droid Faq
    03/29/2010 2:19PM