Search Results: "sto"

5 March 2007

Andree Leidenfrost: IA64 Support for Mondo Rescue!

The first fruit of my work on Debian IA64 packages for Mondo Rescue are now on http://people.debian.org/~andree/packages/. It took a bit longer than I had anticipated and there was a bit of an interruption while I stayed on beautiful Norfolk Island for two weeks.

Everything should be fine and dandy apart from the fact that restores will currently miserably fail on IA64 because parted2fdisk expects an older version of parted than what Etch and Sid contain.

So, why publish IA64 packages at all if they don't even work, I hear you scream. Well, firstly I thought I give a bit of an update and show that things are actually moving forward. Secondly, maybe I'm lucky and someone is interested in helping out with getting parted2fdisk to work with newer versions of parted or (better) in getting mondo migrated to using parted natively on all platforms (pending Bruno's approval).

Other than that, the packages have a few user-visible improvements and fixes across all supported architectures and they bring the Debian packages a fair bit closer to upstream - see the changelogs for details.

As usual, check out the new packages, let me know if something doesn't (or does) work, get involved! ;-)

Andrew Pollock: [tech] MythStream

I like to listen to Nova 96.9's stream, and I'd been doing it really sloppily at home by quitting the MythTV front-end running on the TV, and just running mplayer with the URL of the stream. I really wanted to be able to play the stream through MythTV. So a few weeks ago I did a spot of searching and up came MythStream, which appeared to be just the ticket. I'd already done a few sloppy unpackaged installations of things on the MythTV machine, and I wanted to stop this, so I held off installing it until I had time to make a package of it. Today I finally had time to make said package (which is here if anyone else is interested) and it works a treat for what I want to do. It looks like it has plenty of other features that I don't really need but will explore anyway. MythStream screenshot

4 March 2007

Ian Murdock: The Wi-Fi business model: Like air conditioning or pay toilets?

New York Times: “WI-FI service is quickly becoming the air-conditioning of the Internet age, enticing customers into restaurants and other public spaces in the same way that cold ‘advertising air’ deliberately blasted out the open doors of air-conditioned theaters in the early 20th century to help sell tickets.”

3 March 2007

John Goerzen: A better environment for shell scripting

Shell scripts are good for a lot of things. It's quick and easy to design shell scripts that take input from one program, pass it to another program, munge it for filenames, etc.

But there are a few drawbacks to shell scripts.

The #1 drawback, in my opinion, is that it is extremely difficult to get quoting and escaping right. I often see things like $@ in shell scripts (breaks if a parameter has a space in it). I also see people failing to check for errors properly (set -e helps that). It's also difficult to do a more modern style of exception handling (do a sequence of actions in a temporary directory, and always remove that directory, even if there's an error, but stop processing and propogate the error). Command-line parsing is esoteric and odd, even with getopt. That's not to say that it's impossible to make a secure shell script that handles filenames with spaces in them properly. Just that it's difficult, and makes using common operators like backticks difficult.

Awhile back, I toyed with the idea of making Haskell a shell scripting language. This week, I spent some time to make this a reality. I released HSH, a shell scripting environment for Haskell.

HSH makes it easy to run shell commands, set up pipelines, etc. straight from Haskell. You can either use simple strings to invoke commands (they'll be passed to sh -c), or you can specify arguments as a list (like exec...() takes), which eliminates the strange filename problems.

But the really cool thing is that HSH doesn't just let you pipe from one external program to another. It also lets you pipe to/from pure Haskell functions. Yes, you can pipe the output of ls -l straight into a Haskell version of grep. I've found it to be very nice, especially for more complex processing tasks.

I put these simple examples on the HSH homepage:

run $ "echo /etc/pass*" :: IO String
 -> "/etc/passwd /etc/passwd-"
runIO $ "ls -l" - - "wc -l" 
 -> 12
runIO $ "ls -l" - - wcL
 -> 12
In this example, wcL is a pure-Haskell line-counting function.


The results were surprising. According to SLOCCount, porting hg-buildpackage from a shell script to a HSH script achieved a 20% reduction in source lines of code. And at the same time, gained better error handling, better safety of filenames, better type safety (compile-time type checking), etc. Yet it does exactly the same thing in almost exactly the same way.

Even greater savings will occur too. I decided to reimplement a small part of sed just for fun, and that code is still in my tree. If I removed that and replaced it with a call to sed as in the shell version, that would probably buy another 5% savings.

I didn't really expect to achieve a reduction in lines of code. I thought that I'd be lucky to come close to breaking even. After all, who'd expect something other than the shell to be better at shell scripting?

I don't know if these results are generalizable, but I'm really excited about it.

Erich Schubert: SELinux policy updated

I have not been active with SELinux recently. I was seriously lacking motivation, and recently the old server I was using to test my SELinux stuff died because of a hardware failure. But these days I installed vmware, and in order to try it out, I decided to install a SELinux Debian etch system. Then I also updated my policy packages. I actually did quite some progress on the packages; I not only merged the latest upstream SVN version, I also fixed a couple of Debian policy issues (or worked around them), and added some new functionality. First of all, I extended the update tool (now called update-selinux-policy). It will not only install the current version of each module, but also rerun autodetection and install additional modules if you added software in the meantime (it won't do the relabeling for you, though). This should make system administration a lot easier. The packages now come with a -dev companion, which includes the interface files. The README.Debian file details how you can use this to build a custom policy module, and the policygentool included will actually generate a template for you. This should make the development of policy modules a lot easier. Grab the policy packages from my experimental refpolicy directory. Note: while they share the "refpolicy" source name with the packages in Debian main, they are packaged independently. Manoj is maintaining the official packages, and I never learned how his Makefiles work, so I'm sticking to my own packaging for my development stuff. Oh, and for me they don't work in enforcing strict mode at boot yet. Policy is still incomplete for Debian (but down to ~25 audit errors). Targeted mode works in enforcing at boot time. The main issue seems to be the way Debians init ramdisk is working and the /dev directory is populated. I don't think I'll keep the packages updated frequently, sorry, and I don't think I'll have time to get enforcing working for strict, either. :-(

Erich Schubert: Debian 'etch' GUI installer

Now that VMWare is actually working for me, I tried the GUI installer of Debian 'etch'; not that the installation in VMWare hasn't been tested often enough... I intend to use the VM for some SELinux tests; the server I was running SELinux on has died recently (likely a bad power supply), so I currently don't have any current SELinux system left. (I can probably still use rjc's SELinux test box, though). Anyway, I must say that I'm quite impressed with the GUI installer. It looks serious (not this wannabe-cool look that Vista has), but still welcoming and features the Debian colors. I like it. Fonts are good, smooth but crisp. Unlike the fonts of Vista, which were heavily blurred (did they stop using hinting?) Now we just need to get 'etch' released...

Evan Prodromou: 11 Vent se CCXV

We had one of the biggest snows of the year today in Montreal. The storm, which happened overnight and was supposed to let up around noon, still hasn't stopped. It's a practical white-out outside -- big fluffy flakes everywhere. The radio said we had more than 40 cm of snow, which is just amazing. I headed over to La ka this afternoon for an interview with Steve Faguy of the Montreal Gazette. I was pretty worried about going out, but as usual I was pleasantly surprised when I was outside. Snowy weather is pretty gentle, and although I was cold and wet when I got to La ka, it wasn't all that bad. I had a good talk with Steve about Wikitravel, Montreal tech scene, and the French Revolutionary Calendar. I'm looking forward to seeing the article when it comes out. tags:

certifi.ca doing well I was glad to see a post about certifi.ca in the Solution Media Blog of Thomas Huhn. Thomas set up the extremely useful OpenID Directory, so his opinion is pretty valuable. I'm glad he's as enthused about certifi.ca as I am. tags:

Registration and privacy I think I have an account on every free OpenID service on the Web. I need lots of accounts for debugging purposes, and I also like to have an idea of what people are doing with the protocol. I checked out prooveme.com a few days ago. prooveme.com gives out OpenIDs with SSL cert authentication, like certifi.ca. It seems like an OK service, but I don't think they use SSL and certs the right way. I tested the prooveme ID on a couple of services, had a couple of errors, and that was that. So I was surprised to see this posting in the proovemeblog today:
  • certifi.ca is another site doing certificated OpenID. Evan, the creator of certifi.ca is a subscriber of ours. We'll obviously be pleased if he carries on using us!
Now, I've been in wikis long enough to know that you have to AssumeGoodFaith when people post things in public forums, so I'll take this comment as nothing more than clumsy but good-natured ribbing. Ha ha ha. But: I haven't publicly said that I'd tested out the prooveme server. I'm not particularly embarrassed about it, but I hadn't had any reason to mention it to anybody, either. So the only way the poster could know that I'd registered for their service was to check their database records for my registration information. Publishing users' registration info without their consent steps over an important privacy line for me and, I think, for a lot of people. I'm not sure making a joke really justifies that kind of privacy invasion. I don't feel fairly treated, here. I partly blame myself: after all, I submitted personally-identifying information (PII) into a Web form on a site without an explicit privacy policy. I've gotten so used to OpenID providers being experienced with security and privacy issues that I made assumptions that turned out not to be the case. I've taken the incident as a wake-up call to put a privacy policy on certifi.ca. I hope that will communicate to users what I consider acceptable use of their data. And I'll make sure to check carefully for privacy policies whenever creating a new account in the future. For clarity: if I have an account on a Web service, that is not any kind of endorsement of their service, and doesn't necessarily suggest that I use that service regularly (or at all). I'm going to see what I can do to get my account deleted from the prooveme servers to avoid any misunderstanding in the future. tags:

2 March 2007

Sune Vuorela: Linuxforum day 1

Today I was at the business day at linuxforum. The first exciting thing about the day was if it was possible to actually get there after violent criminals have been ruining Copenhagen all night long. My bus took a detour, but I ended up at the rigth place finally. Today there was talks and some companies have been running their booths. The most interesting talk today was Poul-Henning Kamps talk about varnish. Another interesting topic was how lego tried something new - work with the community around their mindstorms stuff with great success. Tomorrow it is a bit more techie-day where the local LUGs are having booths also, and with exiting talks about Qt programming and a spamfilter deathmatch.

Erich Schubert: VMWare doesn't work.

I tried to setup VMWare today, to be able to have some virtual machines to test random stuff. My laptop only has a small HD, so I want to have all the VM stuff on my huge external USB drive. Also I only use them occasionally, so that pretty much rules out Xen. So I decided to give VMWare a try. VMWare has always been a desaster installation-wise. It took me like 5 runs to get it installed properly; you need to apply some patches or it won't work with current kernels etc. After these tries it had installed without any further error messages and the GUI also came up easily. However none of the VMs I created did anything; apparently they're supposed to at least show some BIOS like screen. Instead I only get the error message "Unable to change virtual machine power state: The process exited with an error: End of error message." And of course it doesn't tell me which process or anything else that could help debugging it. Shutdown also doesn't work properly - stopping vmware leaves a vmware-serverd process running that needs to be killed with -9. As usual, commercial software is totally disappointing. [Update: so neither the vmmon shipped with VMWare nor the one from vmware-any-any-update108 worked; keep your eyes open for update109. I managed to patch vmmon myself, in include/compat_kernel.h move the if/else part up to the front, as it is in update108.]

MJ Ray: Bad Tech: CGI Scripts and Line Endings

Bad Tech: DOS using different line end character sequences. Problem: CGI scripts uploaded with the MS Windows version of FileZilla over SFTP don't work until converted. Either there's some FileZilla settings wrong by default, or it just doesn't work. Solution: Evilly, I made a perl^M symlink to stop having to convert users' files. Surely there's a better way I'm not seeing?

Christine Spang: Free Your Music

While I’m not a Harvard student, I’m vaguely affiliated through some friends of mine with Harvard Free Culture, a local Free Culture chapter. They are, after all, just up the street. One of our newest projects is the Free Music Project. The goal, is, well, to gather together music under free licenses, both for just making a centralized collection of free music and for other specialized purposes, like providing music to go on OLPC laptops and school servers. So, go find free music, or if you’re an artist, re-release your music under a free license or record some new stuff. (If you’re in the Boston area, Antenna Alliance can help you get your music recorded for free. Who knows, maybe your music will end up on millions of laptops.

Gunnar Wolf: Say no to petroleum-powered vehicles - Make Mexico a better place!

[ Yes, entry written for my Mexican fellows. My blog is in English. Don't rant about that, your pleads won't be listened ]
Damog just ranted (in Spanish) about too many people coming to Mexico City. I completely agree with him, but not with his conclusions. We are a ~25,000,000 people city, in a ~100,000,000 people country. The inequity we face every day is huge (Cd. Nezahualc yotl, among the poorest in the city, is the most densely populated region in the whole world, but you can easily spot over 2000 sq mt houses in Bosques de las Lomas or similar regions - And the whole Santa F region just scares me, it is an unknown planet I don't even want to think of). But what's really terrible is how living in this city changes our collective moods.
Sometimes it strikes me to understand how people in other countries can live in one town and work in another, over 40 minutes away. Well, for many years I worked at places over one hour away from home - and I didn't even cross the city. Mexico City is, or was last time I checked, 40x70km, and without enough adequate main ways. Of course, people get grumpy and aggressive while driving.
What's my answer?
Don't drive.
Seriously.
Yesterday, for example, I chaired three talks at Linuxworld Mexico. In friggin' Hip dromo de las Am ricas, a convention center located in one of the worst-connected pieces of land in Mexico. Usually, it would take me 40-90 minutes to get there by car, depending on the time of day and phase of Deimos against Fobos. Of course, it took me 70 minutes to go by metro+bus. I took two nice books (La regi n m s transparente, a beautiful book by Carlos Fuentes no Mexico City inhabitant should skip, and Laurence Rosen's Open Source Licensing). And I didn't get bored, and I didn't hate the people I was riding with. Even though I crossed the most crowded metro stations. Not only I saved a fair amount of money (MX$6.50 each way against probably something close to MX$120 between the gas and the parking fee of that unholy convention center), but I used my time much better. Some years ago, when I regularly travelled one hour back and forth to work, I learnt most of what I know today of Computer Science during the long time I spent sitting on small microb s seats. Not the most luxurious way of travelling, but still a very good way of moving around our messy city.
Of course, today I have learnt even more, and I want to advocate it: don't work far from your house, or at least, don't work far from a place reachable by Metro. Sometimes it sounds impossible, but really... How much do you value your time? Do you think that it's better to get MX$20,000 a month in a Santa F office than to get MX$15,000 in an office in Insurgentes? Do you think nobody will pay you decently if the offices are in Ermita Iztapalapa? Good work done brings a good salary. And seriously, the extra MX$5,000 in my first example is not worth the daily anger you will get by crossing the city to get to Nowhere Land and work for the corporate overlords.
I might be extremely lucky, but I work 3Km away from home. I come by bike every day. And yes, I was scared at first - Even in Ciudad Universitaria people drive aggressively. You have to take care where you drive. Taxi drivers are among the worst, as they are always in a hurry. And, yes, my elbow has an ugly scratch, as I prefered to stop and fall off my bike than to land over a car whose driver was in a hurry. I've just had my bike for ~6 weeks (after over 10 years of not riding one, and back then, just for a bit), but I'm confident enough to get off the safety of a protected University with no cafres driving their microb s as they damn well please. Last weekend I had a ~6km drive (Copilco-Miguel ngel de Quevedo-Loreto-Alta Vista-Copilco) using several high transit vialities (Universidad, Revoluci n, Insurgentes). I crossed three times the San ngel bus hub, which scared my ass as I approached - But it's perfectly doable, far easier than what I expected. It was fun. It is a decent excercise. And we need more people to take the streets with their bikes.
This morning I heard on the radio that Marcelo Ebrard (Mexico City mayor) is pushing a plan to boost bycicle usage in the city. Something similar to what has been done inside Ciudad Univeritaria, but -of course- in a larger scale: Useful ciclov as along the main roads, city-owned bike rental places (where you can rent your bike at one and drop it at another spot), all this well connected to the main Metro stations. In this interview (in this morning's 98.5 FM news program - sorry, I don't know who heads it... Mart n something IIRC) they said that today, ~0.7% of the trips outside home in Distrito Federal (where only 8 out of our 25 million people live) are carried out on bycicle, and they expect to raise it to 5% over the next six years. We will see about that, I can only wish this program best luck.
Damog complains that we drive like shit because dealing with too many people for too long pisses us off - Ok, Damog, here is the recipe: Don't get pissed off. Each of us will make a minor but tangible contribution. Don't drive so much. Quit your job so far away, get a decent (even worse paid) job closer to your house, closer to the university. You will be happier. Get a bike. Use it, you live close to UNAM as well. You will be happier. And we will be one step closer to total world domination. (yes, we the bikers, not we the Debianers ;-) )

Biella Coleman: On Edmonton, Place, and State of Mind

Recently, I got a comment on an older blog post on Edmonton that basically agreed with another comment that Edmonton was so not the cat’s meow. Despite the winter and many months later, I guess I still do think it is, although in saying so, it is not I think their assessments are wrong, I think my take has as much to do as what has come before (like NJ, which was not the high point o my life), my experiences here, and what is to come in the future. I tend to like Edmonton because there is enough stuff to do but not too much to do. It is that whole freedom from choice that I like because I often shut down in the face of too much choice. What also colors my experience in a positive light is that generally, Canadian politics, social policy, and way of life, are a step up or two (or maybe three) than that of the United States. So the worst of Canada (if you are even to call Edmonton that, which I would not), in this regard, beats out the best of the United States. And I have lived most of my life in the US so that is my point of comparison. Even if you are living in a fantastic American city, you always face the possibility of struggling in ways that will *never* happen in Canada. It makes for a calmer, less aggressive society. For example, I recently learned that Edmonton has the highest murder rate in Canada, at a whopping …. 36 people per year (population of Edmonton = 1 million). I grew up in a place, Puerto Rico where the yearly murder rate hovers at about 700-800 per year (population = 4 million). And yet people here are freaking out over the high rate of murder, which is a good thing because hopefully they can bring it down but this fact should make the US pause and think about what they are doing up north to keep the murder rate so darn low (and the answer I think is pretty easy to find). But perhaps a lot of my love of the place has as much to do or more with my state of mind. After a grueling year of finishing a dissertation under pressure as I had deadline, and then living in NJ where I was on the job market (which meant spending so much time churning out application after application and then flying around interviews), in addition to flying 7 times in one year to visit my mom, my life here just feels so much more sane than it has been in years. What sealed it all was that right before I moved here in August I was lucky enough to be offered a permanent job (which means this summer I will be moving to NYC to join this department and I will be back to the land of overwhelming choice), so that for the first time in 5 years I did not have to apply for anything in the fall that would guarantee my livelihood for the next academic year. I was not faced with a year of lots of travel (and actually traveling in out out Edmonton is really one of my least favorite things). With that firmly in place, I could just concentrate on things like my work, my friends, brewing kombucha and do things routinely, like exercise, which I had not consistently done for years. There are things about Edmonton that I find totally obnoxious like the cities inability to plow roads leaving a thick glaze of black ice on the roads so that when you drive in the city, you basically are at real risk for an accident (and this is despite a 6.6 BILLION government surplus). There are a tad too many strip malls in the outlaying areas, and of course there is the infamous winter. We are still deep in it. The cold temperatures have been with us steadily for months now and according to folks, there are still two more months to look forward to. The cold and the constant layering of clothes are getting to me a little, although I do appreciate that the cold is just not as cold as one would think with the actual temperatures. The lack of wind, the dry conditions, the cute as chubby-as-anything- bunnies that run through the snow, and the overpowering sun all help to make -6 F much more mild, so it is not as bad as you would or I would think it was. So while I am thrilled to join the department where I am moving too, I will be sad when I leave, though perhaps not as sad as Edmontons “darling” hockey player, Ryan Smith, who was just traded by the Oilers to the NY Islanders. The day he left, he literally was shedding tears at the airport. And I have to say, even though I have no attachment to hockey, I found the pictures endearing because there is nothing like seeing a grown Canadian man cry over hockey! : )

Nico Golde: wikipedia starts to suck

The famous Wikipedia online encyclopedia starts to suck. Well at least the German, haven't looked at other languages.
First they (ok in particular one wikipedia guy) wanted to delete the article about my favourite live cd grml (crux linux for example is deleted).

Ok could be just an action of some random idiot. But then I read an article in Tim Pritlove's weblog that they also deleted an article about Julia Seelinger a young politician of the green party in Berlin because of their so-called "relevance criterias".

And there are many other discussions about deleting articles, for example here.

WTF has happened to wikipedia? Is there any valid argument to delete an article apart from the argument that the content itself is totally wrong?
Isn't disk storage cheap enough today to keep these articles?
Wasn't one of the goals of wikipedia to catch up all the human knowledge?

Really, I can't understand this bureaucracy currently happening in wikipedia but if some random fools start to delete articles with these arguments I
wouldn't wonder if people stop writing and editing articles for the Wikipedia. It also sad for the people who put their efforts into wikipedia and wrote the articles.

Just sad.

MJ Ray: Never mind the wheels...

Never mind the wheels what about the fuel ? Update: Morrisons have withdrawn unleaded petrol from suspected stations as a precaution. Well done! Meanwhile, last I heard, Tesco were still denying that the contaminated fuel was anything to do with them, while flushing their tanks. Hey, it's not their cars which are kangarooing.

MJ Ray: OpenWRT (3)

More comments, which I think help to narrow my choice to OpenWRT or FreeWRT. Kris Marsh commented:
"I can't comment on dd-wrt, as I've never tried it. I can, however, say that OpenWRT is great. Personally, I don't see the point in X-WRT, as I use vi and /etc/ to modify configs. Assuming you're handy with Debian (;-)), then you should be just fine without X-WRT. Tip: If you want to use WPA, you need to install the "nas" package: "ipkg install nas". I believe this non-free package is what a previous commenter was referring to."
Yes, I want to use WPA (I think some of the machines here can't do IPSec and WEP just isn't good enough) so I guess I have another freedom problem. I'd be happy with ed, but I might try X-WRT just to see how it copes with my web browser (I expect badly, like many embedded web apps, but then I could file bugs or fix it up). ranf mentioned:
"There is also a OpenWRT fork named FreeWRT ."
Argh, another candidate! Seriously, thanks for the tip. I'm not sure what it offers me over OpenWRT, as FreeWRT doesn't list either my router (Belkin POS) or my office host system (gobo) as supported and I don't intend to install svn any time soon. I'll probably try its Web Image Builder. Taneli commented:
"I believe Kamikaze has open source broadcom drivers (it's using 2.6). No idea if backport exists, but I'd venture no. Using Kamikaze sounds quite dangerous, but I haven't tried."
nbd wrote:
"Hi there. A few comments on your blog post: The main reason why the free Broadcom drivers haven't been included yet is because they're simply not ready. The Broadcom SoC needs to be handled differently than the MiniPCI cards and I'm working with the bcm43xx on that. Actually the new 2.6 based port is almost complete. As to which Firmware you want: As an OpenWrt developer I very much recommend installing X-Wrt on OpenWrt :) Anyways... Have fun!"
Yes, this is definitely a "fun" choice! I guess I won't know what works until I JFDI and pick up the pieces. Glad to hear the Broadcom drivers are still being worked on: I've met a lot of Broadcom cards and some of them can only be coerced with ndiswrapper, which isn't good. I wish I knew enough about network hardware to hack sensibly, but I don't know where to start and there's so much else to do. Finally, it looks like dd-wrt isn't a good choice. Yammering (Clint Adams) linked me to this rant and Simon Farnsworth commented along similar lines:
"X-WRT is just an easier UI that installs over OpenWRT. DD-WRT is a competing project to OpenWRT, based on the OpenWRT code, but using such "free" software techniques as product activation, and per-seat licencing to stop you "misusing" your GPL rights. I'd recommend OpenWRT/X-WRT, just because they tend to be more respectful of licences, and less prone to demanding money with menances."
I've no problem with commercialism itself, but I dislike broken promises and playing fast-and-loose with copyright. If there's evidence the other way, please let me know!

1 March 2007

Paul van Tilburg: Space Efficient Algorithms

Last Tuesday I finished my paper about Space Efficient Algorithms and Histograms that will comprise most of the grade of my last remaining Master course, Advanced Algorithms. While I’ve been mostly enjoying writing this paper, I am glad it is finished for several reasons, one of them being able to do other things than just working on it and another is that it allows me to focus fully on my Master Project which is starting to progress nicely. (More about this later.) FOSDEM 2007 Due to the amount of time I needed to work on the paper, the need to save money (I really would like to go to Debconf7) and that the scheduled talks didn’t seem to interest me that much, I decided to break with tradition and not to go to FOSDEM this year. Just before FOSDEM, however, it seemed that lots of the people I would have liked to meet did go. While that was a pity, I hope to meet them in three months at Debconf7.

Christoph Berg: OpenPGP keys in DNS

The latest addition to the mutt CVS tree is PKA support via gpgme. While trying to figure out how that works in mutt (I haven't yet...) I configured my DNS server for PKA and CERT records. PKA PKA (public key association) puts a pointer where to obtain a key into a TXT record. At the same time that can be used to verify that a key belongs to a mail address. The documentation is at the g10code website (only in German so far). I put the following into the df7cb.de zone: cb._pka IN TXT "v=pka1;fpr=D224C8B07E63A6946DA32E07C5AF774A58510B5A;uri=finger:cb@df7cb.de"
$ host -t TXT cb._pka.df7cb.de
cb._pka.df7cb.de descriptive text "v=pka1\;fpr=D224C8B07E63A6946DA32E07C5AF774A58510B5A\;uri=finger:cb@df7cb.de"
Now gpg can be told to use PKA to find the key:
$ echo foo   gpg --auto-key-locate pka --recipient cb@df7cb.de --encrypt -a
gpg: no keyserver known (use option --keyserver)
gpg: requesting key 58510B5A from finger:cb@df7cb.de
gpg: key 58510B5A: public key "Christoph Berg " imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: automatically retrieved  cb@df7cb.de' via PKA
CERT CERT records work similarly. Records are generated by make-dns-cert (from the tools directory in the gnupg source). cb.gpg is a stripped-down gpg keyring (created with pgp-clean -s and converting from .asc to .gpg).
$ ./make-dns-cert -f D224C8B07E63A6946DA32E07C5AF774A58510B5A -n cb
cb      TYPE37  \# 26 0006 0000 00 14 D224C8B07E63A6946DA32E07C5AF774A58510B5A
$ ./make-dns-cert -k cb.gpg -n cb
cb      TYPE37  \# 1338 0003 0000 00 9901A20440 [...] 509C96D4BFF17B7
With a new bind and host (backports.org!) the format looks a bit nicer, that's also what I copied into the zone file:
$ host -t CERT cb.df7cb.de
;; Truncated, retrying in TCP mode.
cb.df7cb.de has CERT record PGP 0 0 mQGiBECBGdAR [...] UDlCcltS/8Xtw==
cb.df7cb.de has CERT record 6 0 0 FNIkyLB+Y6aUbaMuB8Wvd0pYUQta
Again, gpg can be told to use that:
$ echo foo   gpg --auto-key-locate cert --recipient cb@df7cb.de --encrypt -a
gpg: key 58510B5A: public key "Christoph Berg " imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: automatically retrieved  cb@df7cb.de' via DNS CERT
Thanks to weasel for some hints on using CERT. SSHFP I'm also mentioning SSHFP records here since it fits in the topic - I have been using them for some months now:
$ host -t SSHFP tesla.df7cb.de
tesla.df7cb.de has SSHFP record 1 1 EE49B803541293656C33B86ECD781BD8F1D78AB5
tesla.df7cb.de has SSHFP record 2 1 3E82FB5EE8AA0205305F0D0186F94D6FB3E0E744
$ ssh -o 'VerifyHostKeyDNS yes' tesla.df7cb.de
The authenticity of host 'tesla.df7cb.de (88.198.227.218)' can't be established.
RSA key fingerprint is 5a:c9:38:ca:c0:2b:11:c1:c8:fb:f1:ad:73:a1:9c:8b.
Matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)?
The records are generated with ssh-keygen -r.

Ross Burton: Tasks Translations (part 2)

I may give up actually coding in the future and just ask for things to be done on my blog.

Erich Schubert: Pyroman update

I just uploaded a minor update of Pyroman to unstable and the pyroman download page on alioth. I added support for a complete interface wildcard, and added example configuration files for a single-host setup. Pyroman is a firewall configuration tool I wrote for managing the firewall of a small network consisting of four zones and servers with a dozen different tasks. It plays very well in setups with DMZ, wireless networks, intranet etc. and all kinds of different services. Key benefits are the very simple syntax, safeguards (extensive syntax checks, rollback on failure, safety timeout option for remote administration), scriptability in python and high performance, since it does not run dozens of iptables commands, but generates a script file for iptables-restore. For more benefits, see the pyroman homepage. The next version will probably feature an XML syntax additionally; while the current Python syntax is very powerful and readable, it's pretty much impossible to write a GUI for editing the policy when written this way. That's why I'd like to add an XML syntax (that can be intermixed with Python statements, but only the XML-defined parts will be editable in the GUI) that supports the key parts of configuration (if you want the rules to be generated on the fly from some database or whatever, you'll still be able to do that in Python!): making it easier to write a GUI for it.

Next.

Previous.