mdlbear: (technonerdmonster)

I recently bought a new-to-me Thinkpad X230, and in keeping with my ongoing theme of naming thinkpads after their color, I called it Sable, which in addition to being the heraldic name for the colour black is also a small dark-brown animal in the mustelid (weasel) family.

I've become quite fond of Sable. It's only an inch wider than my former laptop, Cygnus (named after Cygnus X-1, the first X-ray source to be widely accepted as a black hole), about ten times faster, and the same weight. The extra inch makes it exactly the right size for me to put one of my Thinkpad USB keyboards flat on top of it. One may wonder why I would even want to do this, but I can move the keyboard to my lap when one of the cats wants to sit on my desk. (The cat is almost always Desti, who is also black, but naming a laptop after her would be confusing.)

Anyway.

One of the problems with getting a new computer is getting it configured the way I want it, which usually means "pretty much the same as the last one". Most people do this by copying as much as they can off the old one, (on Linux that's typically their entire home directory), and then installing the same collection of applications (packages, in Linux terminology). It's tedious, and when the architectures or operating system versions are different it leads to a wide range of random glitches and outright bugs that have to be tracked down individually over the course of the next week or so. Even if it doesn't, home directories tend to include a large amount of random stuff, like downloads and the contents of your browser cache, that you don't necessarily want.

And if you're trying to set up a home directory on your web host, or your work machine, or something tiny like a Raspberry Pi, well... What you really want to do is start afresh and just install what you really need.

That's where the turtles (because home is wherever you carry your shell, as it says in the song) come in. Specifically, Honu, which is a collection of makefiles and scripts that does almost all of the setup automagically.

Honu (Hawaiian for the green sea turtle) requires nothing more than a shell (the Linux/Unix command-line processor, and anything Posix-compatible will work), an SSH client, the git version-control system, and make. In fact, if you can install packages on your target system, the first thing Honu's bootstrap script will do is install the ones you don't have.

Make was one of the first programs for building software automatically, and I'm very fond of it. It lets you define "recipes" -- actually, short shell scripts -- for building files out of their "dependencies", and it's clever enough to only build the things that are out of date. It can also follow rules, like the built-in one that tells it how to use the C compiler to turn a .c file into a .o object file, and the linker to turn a .o file to an executable file. (On Windows the executable file would end in an extension of .exe, but Unix and its descendents don't need it.)

Make can also follow chains of rules, so if your source file changes it will rebuild the executable, and (unless you tell it not to) delete the object file after it's sure nothing else needs it. And rules don't have to result in actual files -- if you give it a recipe for a "phony" target it will simply notice that it isn't there, and run the recipe every time. This is good for things like "install-pkgs" and "install", which are Honu's main make targets.

Turn it loose with a make command, and Honu's makefiles happily go about installing packages, creating directories, and setting up configuration files ; the whole process takes well under an hour.

I wrote Honu to be pretty generic -- it knows a lot of my preferences, but it doesn't know my name, email address, current projects, or hosting service. I also have another package, Mathilda (our name for the particular happy honu who narrates "Windward"). Mathilda sets all of that up, pulling down the Git repositories for my current projects, blog archives, websites, songbooks, build systems, and so on; putting them in the right places so that I can sit down in front of Sable, open the lid, and be right at home.

...Except, as in most moving projects, for tracking down all the little pieces that got left behind, but that only took a couple of days.

...

...And in case you were wondering what happened to this week's Songs for Saturday, you can read more about "Windward" in Songs for Saturday: Travelers and The Bears, from 2015.

Where the wind takes us next year no turtle can tell, But we'll still be at home come high water or hell, Because home is wherever you carry your shell.

Or $(SHELL), as the case may be.

Another fine post from The Computer Curmudgeon (also at computer-curmudgeon.com).
Donation buttons in profile.

mdlbear: (technonerdmonster)

Wherein the curmudgeon cogitates out loud, and solicits suggestions.

Recently, my business (HyperSpace Express) checking account's balance has gone up considerably thanks to a writing gig. And the keyboard on my favorite laptop, a Lenovo X120e netbook called Cygnus, has been giving me trouble recently. It's developed a habit, which I think is thermal, of shutting down mid-boot. And last week random keys stopped working. I fixed that one -- nothing but a loose cable, (this time: it's on its second replacement keyboard) -- but not before I started looking at laptops again.

For quite a long time, the laptop I'd been considering lusting after as an upgrade has been the Lenovo X230. (The pointing stick and middle mouse button are required, along with an easy Linux install, so my choices are somewhat limited.) The X230 only slightly bigger than Cygnus, but a considerable upgrade: somewhat lighter, up to 16MB of RAM, a faster CPU, USB-3, and longer battery life are the main features I'd like to have. The fact that it has a docking connector that just happens to match a dock I have sitting around is a nice extra. They're available on eBay for anywhere between $150 and $400, depending on features, and can often be obtained defenestrated or with Windows 7. (I also considered the 220, which has the old-style beveled keys, but it has little else to recommend it. Besides, I'm used to the chicklets on Cygnus and I prefer the new layout.)

A few days ago, though, I made the mistake of also looking at the X1 Carbon series. It's tempting. First the negatives: it's bigger, with a 14" screen. It's more expensive -- more like the $300-600 range. It has less I/O -- you need a dongle for ethernet. The RAM is soldered on; you get your choice of 4 or 8 GB -- the 230 is upgradable to 16. Confusingly, it comes in a six different "generations" rather than having different model numbers; each generation has a different collection of I/O ports. The touchpad is larger than the one on the 230, which is a negative for a clumsy bear. It uses the M.2 form factor for SSDs, so I can't just take a drive out of any of my other laptops and stick it in. Windows 10 is standard. If you go for the "yoga" variant, which flips over to become a tablet, it's heavier.

On the other hand, it has a larger (16x9) screen, which would be especially nice for lyrics. The "yoga" version would be perfect on a music stand. It has somewhat better battery life than the 230. It comes standard with SSD. And it is, surprisingly, about half a pound lighter in the non-yoga flavor. Even the yoga is lighter than Cygnus. And although it doesn't have all the I/O I'd like to have, it's all I'm likely to need on a day-to-day basis. (The 4th generation, or the equivalent 1st generation yoga, looks like the sweet spot for I/O; it's pretty close to the 230.)

On the gripping hand, can I really justify having yet another laptop? I currently have five thinkpads (admittedly, one is old enough vote and has the Y2K bug, and the next oldest is also an IBM; the newest is currently out on loan), two other Lenovos, and a Dell netbook. I can't find my Asus Eeee, but I think it's around somewhere. (I didn't buy them all; I'm also the household's repair depot dumping ground for old computers.) But still. And I'd have to get new stickers.

There's also the question of what I want to do with yet another laptop I don't use on a daily basis. I already keep one in the bedroom. I could, of course, keep one on the desk and one in my backpack, but I'd have to take the backpack one out to sync it every time I left the house.

Buy one of each? ... ... see above, only doubled.

Sell one? Naaaaaaaaaaaaaaaaaaaaaa...

Resources

Another fine post from The Computer Curmudgeon (also at computer-curmudgeon.com).
Donation buttons in profile.

Most Popular Tags

Syndicate

RSS Atom

Style Credit

Page generated 2026-01-03 01:57 pm
Powered by Dreamwidth Studios