Jeff Duntemann's Contrapositive Diary Rotating Header Image

linux

Odd Lots

Odd Lots

Odd Lots

Odd Lots

  • Here’s a great article from NASA on the unexpected success it’s had with the WISE (Wide-field Infrared Survey Explorer) spacecraft in spotting previously unknown asteroids in the infrared spectrum. WISE is detecting hundreds of new asteroids every day, which is unnerving, since a rock no bigger than a Motel 6 could cause regional devastation greater than any nuclear weapon yet produced.
  • From Larry Nelson comes a pointer to the AirStash, an interesting $100 USB Wi-Fi gadget that can accept up to a 32 GB SD card and act as a content server over Wireless b/g. Anthough nominally a thumb drive, the USB plug also charges the internal battery, and (though it’s not screamed from the rooftops) the thingie works all by itself, no computer connection required. This suggests “wearable file sharing”: Drop one in your pocket and nearby people can download files from the device without having any idea where it actually is. Little by little, the jiminy (an AI wearable computer I thought up in 1983, and figured would be mature by 2027) creeps toward realization. The AI is actually the tough part; everything else already exists, if not in as small a package as I imagined 25 years ago.
  • And if you ever wanted to run Linux on one of your fillings (ok, one of your elephant’s fillings) this would be the solution. (Thanks to Bill Cherepy for the link.)
  • Here’s a gadget that builds you an external USB storage device by dropping in (literally) a naked SATA hard drive. I may not need it, but I admire the elegance of the concept.
  • I’ve been arguing in favor of dual-screen reader devices for years, and this one is a good start. Sounds like the user interface software needs work…but when has that not been an issue for a first-gen device? We’re closing in on it, though.
  • Nice status update on some of the current non-Tokamak fusion research approaches, link thanks to Frank Glover.
  • Also from Frank comes a reasonable article on how people would die in a vacuum and how they wouldn’t. I had heard of lung shredding; heart failure was new to me. But take, um, heart: Your blood wouldn’t boil.
  • If you ever wondered why you cry when you slice onions, well, it’s the sulfuric acid released by cells in the onion when they’re cut open. Supposedly living things evolved this mechanism (or at least key parts of it) half a billion years ago. Onions evolved their chemical weapons to avoid being laid on hamburgers in slices–but we evolved Vidalias to prove that we were smarter than onions, and that fast food will prevail against all threats.
  • Interestingly, the Canon G11 camera reduces the size of the image sensor to 10 megapixels, down from the 12.5 on the G10. The new sensor gives you fewer pixels but better ones, and faster, which is all for the best.
  • Burger King is testing a new retailing feature in Brazil. When you order a burger, they take your picture and print your face on the burger wrapper.

VMWare Player and the Thoughtpolice Images

Quick non-rant update to yesterday’s rant: It’s Sunday night and I didn’t expect to hear from VMWare support today, so I did a little thinking and came up with a crazy idea: What if somebody else has already created VMWare images of popular Linux distros and just put them out there?

Heh. Somebody did. And even though I can’t install Linux (or anything else) in a brand-new VM, I googled around and found a page offering a whole bunch of Linux-in-a-VM images, all freely downloadable. They’re big (most of them over a gigabyte) but there are torrents for them and they came down fast. I downloaded Fedora Core 12 and OpenSuSE 11.2. What I didn’t mention yesterday is that when you install VMWare Workstation, you also install the standalone VMWare Player, which is a stripped-down run-only version of Workstation. The version of Player that installed with Workstation was not bound by the Workstation license, and worked.

The Fedora Core 12 image loaded and ran flawlessly. The OpenSuSE image did not load at all. I don’t think it was a damaged zip file; the message put up by Player indicated that “opensuse is not supported.” Smelled like an “old software” problem to me. My copy of Workstation dates back to 2007 and installs Player V2, so I downloaded the most recent version of Player (3.0) and installed it. This time the OpenSuse image loaded right up, albeit in KDE 4. (That’s OK; I need to spend some time exploring KDE 4.) Lesson: In the VM world, the latest is probably the greatest…or at least worth having.

I installed Lazarus in the Fedora image, and if you’re logged in as root, it really is as simple as:

yum install lazarus

(Use su -c 'yum install lazarus' if you’re not in root.) Took about 25 minutes. I haven’t run a lot of tests on the new install, but the source is there and everything looks functional.

Several people wrote to recommend the alien utility for converting rpm packages to debs. I’m going to try that, and (assuming the generated deb works) I’ll just host the deb on my upcoming FreePascal page so people can download it. (Why don’t I think it will be quite as easy as that?)

Another crazy idea: Once I get my Workstation 6 running, create a VM of Ubuntu with Lazarus installed, however it is to be done. At that point, who needs to install anything? I’ll just tell people to download the VM and run it in Player. I can set up the VM to save state with Lazarus running and the book itself open in Okular, with all the example programs in appropriate directories, ready to load and poke at.

I’m still annoyed at VMWare, but at least they’re not holding up my research any longer.

Rant: That Old Linux Package Format Blues

I described my FreePascal from Square One book project in detail a couple of weeks ago, and I work on it as time allows. There have been some hangups; in fact, I sometimes wonder if I’m not Cing evil spirits at work hereabouts, frustrating my efforts to popularize Pascal.

A lot of this has to do with Linux software package formats. I’m trying to write a chapter in a beginners’ book describing how to install the FreePascal/Lazarus compiler/IDE combo. For Windows it’s easy: Download the executable installer, run it, and answer the wizard’s questions. I ran into a stone will with Ubuntu: There is a deb package for Lazarus (which includes the FreePascal compiler binaries) but it’s ancient, and much worse, it does not install the compiler source code, which Lazarus needs. Now, why an IDE needs the source code for its compiler is obscure, but that’s how they wrote it, and when you run Lazarus in the absence of FreePascal’s source code, it complains, and warns that some (unspecified) subset of its features may not work.

The rpm package, on the other hand, is current and complete. In the installation chapter I’d like to describe installation in detail for Windows and the three most popular Linux distros: Ubuntu, Fedora Core, and OpenSuSE. Fedora and OpenSuSE use RPMs. No problem there. Installing Lazarus under Fedora may in fact be as simple as opening a console and typing “yum install lazarus.” (I haven’t tried that yet; more on why a little later.) YaST has OpenSuSE covered. But with the Linux market leader, I’m hosed.

Yes, I know, there are solutions: Get the tarballs from the Web site, build the whole damned thing from source, convert from rpm to deb with Alien, etc. etc. etc. I can do that stuff. But this isn’t about or for me. It’s for people who are just starting in on programming and may be just trying out Linux. I don’t want to explain how to frakking rebuild the whole damned 200 MB monstrosity from source code. (Wasn’t CP/M Turbo Pascal happy to take up 24 KB? Does anybody even remember that old letter “K”?) All that is beside the point. The real question is this: Why can’t the FreePascal/Lazarus guys keep a workable deb package together? I know enough about Debian package management to be sure that it’s possible. (I don’t knows enough, alas, to do it myself.) It isn’t being done. And nobody seems to want to talk about why.

Not having a complete install for Ubuntu made me uneasy about running tests in Lazarus under Ubuntu, so I realized I would have to get instances of Fedora Core and OpenSuSE together. How hard could that be? Well…

  • I created a new VM in Workstation 5 for Fedora Core 12. The install failed partway through, with the VM locked up. “He dies and gives no sign.”
  • Ditto a VM for OpenSuSE. Ditto. The YaST installer could not detect the virtual hard drive created for the VM, so we didn’t even get as far as installation.
  • I reformatted an old Kubuntu partition on a machine downstairs and attempted to install Fedora on it. Different fail, but fail nonetheless. The DVD vetted itself with a clear bill of health, but I may download it again anyway.

I managed to get OpenSuSE to install on that same partition, so I finally have a complete and trustworthy Linux installation of Lazarus. And I will say that I really like OpenSuSE. (This is the first time I’ve ever laid hands on it.) The OpenSuSE Build Service is a thing of beauty.

The double VM fail is a puzzler. And that led to me wonder if newer distros just don’t play well with 2004-era Workstation 5. So I finally took my still-sealed retail copy of Workstation 6 off the shelf, installed it, registered it…and VMware doesn’t seem to know how to license it. I’m sure they don’t do much business in boxed product, but that’s no excuse. Email tech support with their Indian support people has a 24-hour turnaround, and the last time I got a response, the guy sent me the serial number for my copy of Workstation 5 and told me to use that, as it was already licensed. Gakkh. So they have my $180, and I have a copy of Workstation 6 that won’t run. We’re three days into this adventure, and I’m sure nothing will get resolved until Monday. If then.

You wonder why I hate activation systems so violently.

And people wonder why tech books take so long to write.

Screw it. It’s the weekend. I’m going to find the nearest bag of potato chips and eat the whole damned thing.

Odd Lots

  • Here’s a nice detailed article about how Linux treats hard disks and how Linux partitioning works.
  • We now have two major sunspots on the visible face of the Sun. I don’t remember the last time I saw that. (Most of the specks we’ve been giving sunspot numbers to in the last couple of years don’t count, in my book.)
  • The New York Times has finally shone their light on an ebook marketing technique that Baen Books pioneered years ago. (Thanks to Pete Albrecht for the link.)
  • Version 4.0 of the FastStone Image Viewer is out, and well-worth having. It’s the best image browser I’ve ever used, and if you have to sort an SD card full of digital photos and cull marginal shots quickly, there’s nothing like it. Make sure you get the portable version; it lacks nothing and doesn’t make any changes to your system. Freeware. Highly recommended.
  • Rich Rostrom sent a pointer to a fascinating article on Moscow’s stray dogs. They’re going feral, but it’s a peculiar sort of urban feral that considers humans and all their gadgetry to be just another part of the landscape. They’ve learned how to ride the subway, for pete’s sake!
  • I’d read in a number of places that faces judged as beautiful are generally “average” faces, without a lot of distinguishing characteristics. Because I could never quite get a grip on what an “average” face would be, I always took the notion with a grain of salt. But this site, assuming it really is creating a “facial average” from a gallery of headshots, suggests that there’s something to it. Start with two faces, then add faces one by one, and see if the average face doesn’t become more beautiful (and distinctly ambisexual) as you go. It did for me.
  • Here’s a short interview with Bob Silverberg, describing his writing life during the Golden Age of Pulps. A million words a year…
  • Cracking ice in the surface of a frozen lake sounds like a blaster battle.
  • From the That-Certainly-Has-To-Count-For-Something Department: Behold the world’s largest disco ball.

The Night of the Monumental Fail

(And you thought I was talking about the Massachusetts senatorial election…)

Pulled down the Fedora 12 DVD ISO earlier today, burned it to disc, and turned it loose on my Linux SX270, which at the time had a 60 GB hard drive with a functional Ubuntu Intrepid partition on it. I’d been meaning to install Fedora for some time, and wanted to try a few things on which I’ll report in the near future.

Alas, things went what may be irretrievably bad, or bad enough to be irretrievable without completely wiping the hard drive, including my Ubuntu instance.

No, I don’t know what went wrong. It’s hard to troubleshoot a failed install of an OS. What happened went this way:

  • I used the built-in partitioner (Disk Druid, unless I misrecall) to shrink the existing 55 GB partition to 22 GB.
  • I allocated the rest of the drive to the Fedora partition.
  • With the shrink/allocation apparently successful, Anaconda dove in and started the installation. After installing 106 package files, the process stopped. The machine wasn’t completely frozen–the mouse pointer still worked–but nothing was happening, no disk activity, nada.
  • After watching it sit at file 106 for over an hour, I gave up and hit the power switch. The machine had only 512 MB in it, so I dropped my spare 512 MB DIMM into the second slot. I know that most Linux installers set a lot of stuff up in memory prior to the actual install, so maybe it just ran out of RAM.
  • When I booted back into Ubuntu to take a look at what remained in the wake of the crash, I saw the new partition, and saw that it did not have a file system. That seemed odd to me, since for all appearances it was copying files to the hard disk.
  • I rebooted from the install DVD and started the install from scratch. I tried to make use of the partition I had created on the first pass through, but nothing selectable allowed me to make use of the partition.
  • I booted back into Ubuntu and deleted the new partition. I then restarted the install DVD and told it to use the free space where the new partition used to be. Again, it stopped at the partitioner, this time telling me that there was no root partition defined. I defined the existing Ubuntu partition as root, and kept going.
  • Almost immediately it died and gave no sign.

Now, I have nothing irreplaceable in the Ubuntu partition. I could wipe the whole drive if I wanted to. But it makes me wonder if the engineers at the Fedora project ever took into account the (inevitable) event of an install failure. Is there any machinery in Anaconda to pick up the pieces when an install croaks and it has to start fresh?

If a Linux distro won’t install with 1 GB of RAM, I’m not sure it still qualifies as Linux. Or is there something else freaky about this machine? I don’t know, and don’t know how to find out. I have room on my slightly cranky 3 GHz Pentium downstairs, and that box is loaded. I’ll try again down there. Still, this counts as a very significant fail for Fedora. I’ve installed Ubuntu on SX270s at least five times, and never had any problem more significant than a video mode screwup requiring minor editing of xorg.conf.

Next attempt: OpenSuse. We’ll see if it can move into Fedora’s slightly scorched apartment, or if it needs to gut it to the walls first.

Odd Lots

  • Hard drives are cheap, and I still have one free SATA port on my desktop system, so I ordered another drive as a Linux playground to solve the problem described in my entry for December 19, 2009. This time I’m going with a Seagate, since for reasons still obscure, the Linux kernel seems to like Seagate drives better than Western Digital drives.
  • And while we’re talking drives, Seagate has just announced the 2.5″ Momentus Thin, which at 7mm is about as thick as a vanilla wafer (you can tell I’m off my diet for the holidays) and will definitely bring down the BMI of netbooks and other portable gadgetry.
  • I think most people may have seen this by now (I forgot to Odd Lot it back when it appeared a couple of weeks ago) but wow: video footage of an underwater volcanic eruption under three klicks of water. Man, this is what robotics is for. (Thanks to Aki Peltonen and several others for the link.)
  • I just received my brand-new Dell Inspiron Mini 10 netbook here, and all I know so far is that it powers up and boots reasonably quickly into Windows XP Home. The unit as configured to order has both a built-in TV tuner and a GPS receiver. It’s going to be my travel computer and replace my knuckleheaded Lenovo 2005 Thinkpad X41 Convertible Tablet PC. I’m going to mess with it for a little while and will post something here as soon as I have a feel for it.
  • We’ve been hearing about Apophis for years: the 900-foot asteroid that will swing by in 2029 and say hello. And for an unnerving change of perspective, check out the close encounter from the asteroid’s point of view, in a JPL animation that counts as the scariest thrill ride I’ve taken in awhile. (Have not seen Avatar yet.)
  • Speaking of asteroid collisions, if you’re an SF writer spinning a plot involving big rocks and the sudden release of kinetic energy, look for Hazards Due to Asteroids and Comets, Tom Gehrels, ed. (University of Arizona Press, 1994.) It’s a 1300-page compendium of academic papers on big things hitting even bigger things, with lots of formulas, charts, and analysis. Dense and not an easy read (and also not cheap–it was a steal years ago for $40) but I’ve learned a great deal from it.
  • It’s interesting to read the reasons why good and intelligent men do not believe in God, and here’s Gregory Benford’s testimony, which is a lot more cogent than most I’ve seen. (Thanks to Frank Glover for the link.)
  • Finally, if there’s some source code in your past that you regret (I’m thinking of a few lines right now that I’d like to wipe from this space-time continuum if I could) maybe the answer is Bad Code Offsets. Debug-and-Trade, anyone? (Thanks to Bruce Baker for the link.)

Linux Bug #257790

I never thought I’d say anything like this, but…I may have run afoul of Linux bug #257790, “Kernel does not recognize Western Digital Caviar SE WD3200AAJS 320GB 7200 RPM SATA 3.0 GB/s Hard Drive (2nd Generation)”. I recently bought a new 7200 RPM hard drive (guess which model!) for my main desktop system, which had come with an older Seagate 5400 RPM unit as the primary bootable drive. I migrated my Windows XP install over to the new WD drive without any trouble. But when I go to do a clean Linux 9.10 install, the installer does not see the WD drive. It does see the secondary drive in the system, which is a 5400 RPM Seagate 750 GB unit. But the WD? Installer no see.

Interestingly, gparted has no trouble seeing the WD, and even resized the Windows partition there to make room for two additional Linux partitions. However, when I go to install Karmic in the new partition on sda2, the installer doesn’t see the sda device at all…except when I check the button telling the installer partitioner to erase the whole drive and install Linux on the entire thing. Then sda magically appears. At that point, when I re-check the option to install Windows and Linux side by side, the sda device vanishes from the device selection pane at the top of the installer partitioner window.

While sniffing around the Web looking for insights, I ran across Linux Bug #257790, simply because it names the precise model of drive that I just bought. Supposedly, that bug was fixed for the 9.10 Karmic release at the end of October, but evidently the installer still has some reservations about certain WD drives…like the one I now have. I’m tempted to download and install Fedora to see if I get better service, but if any of you Linux gurus have any suggestions I’ll certainly hear them. I do not want to go back to my older (slower) drive, nor do I want to wait for Lucid Lynx (V10.04) due in April. I can’t imagine that this is not a fixable problem. Thoughts?