Archive for January 4th, 2009
In the process of setting up a new PC for my mother, I finally figured out how to get remote desktop sharing in Kubuntu Hardy working. You’d think the bog-standard (and default) krfb would work, but it crashed every time. Come to find out, after much searching, the solution boils down to this…
Shoot krfb in the head, use vnc4server and x11vnc.
Use synaptic or apt-get to install those and all their dependencies on the remote machine (i.e., the one that will become my mother’s PC). While you’re at it, uninstall krfb: good riddance.
Run vncpasswd and feed in an appropriate password that you’ll use to authorize yourself to the vnc session.
Log out, restart X (with Ctrl-Alt-Backspace, perhaps), log back in again to get all the X11 infrastructure up to speed.
On your local machine (i.e., mine), use SSH to sign in to the remote box:
ssh -p unusual-port -L 5900:localhost:5900 remote.PC.ip.addr
The -L creates a tunnel from your local machine’s port 5900 to the remote machine’s port 5900, through the authorized SSH session.
I use an unusual port because running SSH on port 22 on an internet-facing machine (even behind a firewall router) is just plain dumb. I doubt the unusual port provides much protection, but it should shake off a few script kiddies.
[Update: Just in case you regard shared-key authorization and a nonstandard port as evidence of clinical paranoia, read that. One of the comments notes that using a nonstandard port gets rid of all the low-speed zombies...]
Incidentally, the firewall router must forward the unusual port directly to the PC’s local IP address, which requires a bit of tweakage all by itself; that depends on which router you have. Word to the wise: do not use DHCP to get the PC’s IP address. Think about it.
That PC is also set up with my RSA keys, so that the kiddies can’t brute-force a username / password login attack. And, yes, I regenerated the keys after the Debian goof.
This is still on my LAN, so I use a dotted quad IP address (being too lazy to tweak /etc/hosts for a temporary machine), but you can use the host name maintained by DynDNS or their ilk for a truly remote box. See this post for the straight dope on making that work.
Then fire up a remote-desktop client like, for example, krdc on your local PC, with the “remote desktop” address aimed at:
That’s the local end of the SSH tunnel to the remote PC. It won’t work if you aim it at the remote machine’s IP address, because it’s not watching for incoming connections (nor is the router forwarding them).
Type in the password and shazam you should see whatever’s appearing on the remote desktop. Mouse & keyboard control should work just fine, too. Word to the wise: make sure your local monitor is bigger than the remote monitor; while you can scroll around or scale what you see, that’s icky.
It should be obvious that you cannot “switch users” to a different X console on the remote box and expect it to work. I tried it, just for grins, and it doesn’t. You could probably tunnel another session in through port 5901 (or 5900 + whatever the X11 console might be), but I haven’t tried that.
Last year I set my mother up with Verizon’s cheapest DSL service: 768 kb/s down and 16 kb/s up, all for a whopping 15 bucks plus tax a month. Yes, that’s 16 kb/s: slower than old-school dial-up modems. Sheesh & similar remarks. So all this fancy remote-desktop GUI stuff won’t work for diddly with the PC in her apartment.
SSH and the command line rule!
I bake a loaf of this every few days…
Dump in a 4.5-quart mixer bowl:
- 1/2 Tbsp dry yeast
- 2 Tbsp brown sugar
- 1/2 cup dried milk
- 1-1/2 cup warm water
I find it’s easiest to mush the three dry ingredients together so the brown sugar coats everything, then stir in the water. Let it sit for ten minutes or so if you have the patience, then, with the yeast up & running, add the goodies:
- 1/2 cup flax seed meal
- 1/2 cup bread flour
- 1/2 cup rye flour
- 1/2 cup wheat flour
- 3 cups wheat flour (easier to measure that way)
- 1 tsp salt
- 2 Tbsp canola oil
Put the dough hook on the mixer, screw down the bowl, and let ‘er grind on lowest speed until the dough gets nice & cohesive. Dump out the dough, oil the bowl, throw the lump back in, and roll it around to coat all sides.
Put a lid on the bowl and let it rise overnight; perhaps in the oven after warming. If your yeast is more enthusiastic than ours it’ll take less time, but this is bread of unparalleled density.
I’ve been baking this bread in a classic Pyrex Bake-A-Round that we’ve been toting unused from house to house ever since we got it as a wedding present. Turns out it’s really slick for this purpose. You can certainly use an ordinary loaf pan.
Whatever you use to contain the dough: butter it thoroughly, pop in the dough without mushing it too much, and let it rise for another hour or two. If you’re using a B-A-R tube, push-and-hold the ends to plump up the middle just before you pop it in the oven. Best if you add aluminum foil caps to the end to keep ‘em soft.
Bake at 325 F for maybe 50 minutes. Cool on a rack while you get the peanut butter out of the refrigerator. Slather with PB, give thanks to the yeasty-beasties, eat.
Speaking of which, it’s worth noting that our tap water now comes with chloramines that seem to kill yeast stone cold dead. We run the water through a Brita filter, but it’s not clear how much that helps; our yeast seems rather dispirited even in filtered water.
[Update: A new batch of yeast reveals that we were using dead yeast. I'd bought several pounds of the stuff, as we use a lot of it, but evidently it aged out. Now we know.]
This recipe started life as the Fundamental Tassajara Whole-Wheat Bread recipe, but has mutated over the years. The flax seed meal adds a surprisingly good taste.
Update: if you’re in a hurry, dump the just-mixed dough out of the bowl, roll it into a log that barely fits into the B-A-R tube, slide it to the middle, cap the ends, and pop the B-A-R into a warm oven (ours hits 170, more or less). Let the yeasty beasties fart for an hour or two, then fire up the oven with the B-A-R inside; you can even use the Automatic Oven setting. Works like a champ!