Thirty-two megabytes might be the old way of doing business, but around this house it’s more than enough to get the job done.
Looking back at the weather clock escapade, I realize I had taken on one of the more intensive projects — not a huge task of course, but there are others on my list that are more obvious, and easier to wrangle. Such as …
That’s a lowly 133Mhz Pentium, the economy-class traveler of 1998, with little more than a 12-inch screen and a cantankerous Trident video card to boast of. And it only has 32Mb of PC66 in it because I’m too lazy and too much of a skinflint to order more.
And so it’s running Debian Lenny. Out of date, yes. Out of work … not on your life. :twisted:
While you admire my impromptu photo frame and wonder at its magnificentness :roll: , I shall give you a few details.
First, I can say up front that putting this together was definitely easier than the weather clock. I installed Debian (which only took about two hours :roll: ), then added the non-free and contrib repositories.
With those two I could move from a kernel-supported wired connection to a ralink-based wireless card. Rather than play footsie with Debian’s wireless configuration — and because wicd-curses isn’t in the Lenny repos — I jammed the wireless configuration and dhclient commands straight into rc.local. Works fine, if you want to know.
After that, I added a rough slew of programs, all of which revolved around feh.
xorg rxvt-unicode xfonts-terminus mc elinks-lite htop nfs-common ntpdate rsync most unclutter
and the Openbox suite. Configuration is almost identical to the settings I used for the weather clock — autostart.sh handles all the DPMS options, almost nothing in .xinitrc, etc.
Of course, I have to rip out xserver-xorg-video-trident, because that driver causes the machine to spasm. That will remove xserver-xorg-video-all, but that’s just a metapackage, so it doesn’t matter.
Things like ntpdate and rsync and nfs-common are really only for my own convenience. This machine has no USB port, so the only practical way to get pictures on and off the machine — without burning a CD of them — is via network.
Ideally, I’d like for this to seek out a USB drive whenever one was inserted, copy the photos to the internal drive and sift through them one at a time.
To that end, this howto — although I didn’t try it — should do the trick. I suppose it could be adjusted for a CD drive, but I’m not going to burn up a dozen CDs just to try it out.
For the record, the command to get a full-screen, randomized 10-second slideshow of anything with a .jpg extension on it … is this:
feh -ZzFx -D 10 photos/*.jpg &
That at the end of autostart.sh will fork off feh into its own world, and give you the contents of the photos/ directory, one every 10 seconds.
Total cost for the project: US$10, which is still cheaper than a generic photo frame from your local big box store. And you have the added educational value of installing Debian and setting up your computer. :)
I should say I tried doing this first in Awesome (awesome 2, to be more precise) but got a single-pixel border around the left and top of the full screen instance of feh, which sort of ruined the effect.
I also tried running it without a window manager altogether, but had trouble getting unclutter to start alongside feh, and having them both quit when feh was told to stop.
In the end, Openbox was just easier and quicker, even if it is somewhat heavier than an outdated version of awesome.
(As a side note, I should mention that awesome is quite speedy in its Lenny version. And while rollover effects (a la GTK2) on a machine this slow are a nightmare, it doesn’t suffer too badly in Debian. I will still stick with console applications any day though. ;) )
If I can get my hands on a decent Pentium II with a reliable video card and a USB port somewhere on it, I might try this again for fun. Of course, I suppose if I hadn’t torn apart the K6-2, it might have done this just as well. :roll: