Search Results: "duck"

16 February 2006

Philipp Kern: Stable security updates

Martin, I recall that Joey already did a diagram for the stable security updates, shown at LinuxTag 2005 in Karlsruhe. Funnily enough, Joey did not publish his slides. (He is almost the only one who didn’t, looking at the list of speakers of the two Debian Days.) Oh well... And guess what his own publication on his site lacks... The “Security Processing” part is just empty. Disclaimer: This is not intended to offend Joey in any way.

Martin F. Krafft: Not surprised... (in search of a proper UML editor)

I need a UML editor capable of state diagrams to formalise the current and future workflow related to security updates for the stable and testing releases. Most UML software in Debian's archive only knows about class diagrams, with a few notable exceptions:
  • tcm: the user interface is a nightmare and despite at least half an hour of reading the docs and trying hard, I had not managed to create a .xmi file describing a simple publication workflow. Reason enough to move away from this horrid application.
  • umbrello: 50 Mb of downloads later, I finally had the KDE-based umbrello installed and within five minutes, I understood how to accomplish what I want with the more or less intuitive user interface, although I have still not found out how to associate actions with transitions. Anyway, while I am happily clicking away, umbrello suddenly disappears without a warning, message, or output to the console. Thanks, KDE, for making intuitive software that looks good; whether it's usable and/or stable is an issue with which you need not concern yourself.
ArgoUML, a Java-based application (see how desperate I am?) doesn't even want to start with the 1.5 JRE. Lacking any usable editors, I might just implement the whole security update process in Python. At least then it's formally described. If only there was a tool that turned some sort of state description files into valid UML...

15 February 2006

Martin F. Krafft: The point of repeating passwords

If I set a password for a resource, it's good to be able to enter it twice and have the system verify that the two passwords equal each other, or else a typo may bring some unpleasant surprises. If, on the other hand, I let a system know the password for an existing resource (such as a WPA-PSK for a WLAN), there is no need in entering it twice! If it doesn't work, you probably entered the password wrongly. It's amazing how little many software vendors think when coding. "Password?" -- "Ah yes, two input fields, it's safer that way." The problem is especially annoying when the software needing the password is buggy, such as the Windows XP SP2 WLAN configuration: it cannot properly process WEP passphrases with special characters, so you have to enter the 13 bytes in hex. That's 26 keystrokes, and just to be sure you don't enter the password wrongly, make that 52. Some will say that Windows users are so stupid that requiring them to enter the password twice to guard against typos and subsequent hotline calls because it doesn't work. Let them say that. PS: Erinn, this Windows-related post I dedicate specifically to you.

Martin F. Krafft: A first glance at the Draytek Vigor 2900VG

I got myself the Draytek Vigor 2900VG, as announced, to handle my home office connection needs. I've been playing with the device all morning and am somewhat undecided as to whether I should keep it, or replace it with a tiny computer without moveable parts that runs Debian, simply for the benefit of greater control. But first, let me review the device. Don't get me wrong when I say that I am not sure whether I should keep it: the router seems solid and has a lot of functionality, and with few glitches, it mostly seems to work. Go read the specs yourself if you care, in the following I want to give my view on some of the pros and cons of the device after a few hours: The device is an all-in-one, combining WAN access (DHCP, PPPoE, PPTP) with NAT (with support for a DMZ), DHCP, VPN (PPTP, L2CAP, IPsec), a stateful packet filter, a 802.11g access point with support for WPA2 and 802.1x, VoIP gateway, a 4-port switch with VLAN and rate control, static routing and RIP, QoS, UPNP, dynamic DNS updates (e.g. no-ip.com), syslog or SMTP-based logging, and a printer server for USB printers. Basic HTTP URL and content filtering is provided, though most of it comes through the interface to SurfControl (no subscription included). Content control includes the most popular IM and P2P protocols. For all that functionality, the price is quite reasonable, if you ask me. Interaction is through a web interface that can be restricted to a couple of clients only, and is password protected (though in the clear). In any case, the device also comes with a telnet console that has a larger feature set than the web interface, but lacks documentation. Several forums exist, however, to fill this hole. The router also sports SNMP! The packet filter seems limited in what it can do: TCP, UDP, ICMP, IGMP, and only the basics for each (e.g. sockets for TCP). There are 12 filter sets with 7 rules each, and if/then logic can be implemented by branching to other filter sets. However, I can well imagine that the limit can be quickly reached. For QoS, you can define three classes, and to each assign services based on sockets and diffserv. That's it, but it should be enough for most basic use cases. VPN can be achieved with L2CAP, PPTP, or IPsec, but only pre-shared secrets are supported. Users can dial-in, up to 16 "Road Warrior" profiles can be created, and 32 LAN-to-LAN tunnels can coexist. A nice feature are the 16 schedules you can define and use throughout. For instance, certain filters can be restricted to only apply during working hours, some users may only be allowed to use the VPN to dial in during specific times, WLAN can be turned off at dusk, and VoIP devices can be routed based on the time of the day. NTP ensures this all happens accurately. I am really missing a RADIUS server on the device. As it stands, I am left to run a separate RADIUS server on the LAN, or resort to WPA2-PSK, which is a little less desirable but quite okay for my case. The device can separate LAN and WLAN clients and block any traffic between the two. I have not found a way to put LAN and WLAN into their own subnets and allow traffic inbetween. The DHCP server seems okay, it does not remember leases and will simply time out leases and use them for new requests. It is not possible to lock a MAC address to a specific IP through the web interface, one has to resort to the telnet prompt, and the limit is on 10 static leases. The device has no support for DNS updates for DHCP clients, nor is there any integration with a DNS server whatsoever. This means that for 10+ clients, you'll need ZeroConf stuff or you cannot use DNS between clients on the LAN/WLAN. All of the above are minor annoyances. I have also already found a bug (which has been known for more than a year now but remains unfixed in the latest firmware from December 2005): the device has a DNS relay without a cache (ugh!). If you request an A record, it all works. If you request an AAAA or MX record, it forgets to translate the source IP of the answer and feeds the upstream forwarder's packet straight throught. Thus, it is not possible to resolve AAAA or MX records without hard-coding the DNS servers to use in the DHCP server configuration to bypass the DNS relay. That's all for now. I have not gotten around to play with VoIP stuff yet, but one of these days...

14 February 2006

Eric Dorland: Firefox definitely could be better

Martin F. Krafft writes about Firefox's un-UNIX-like behavior. I mostly agree with him. Aside from the X forwarding bug in the remote implementation (which has been reported numerous times already), the main problem is the inconsistency in the interface. If I run firefox from the command line everything works fine and it behaves like a normal UNIX application (ie taking over the terminal unless I background it). If I go to another terminal and run firefox file:///tmp/foo.html, this will open a new window or tab in Firefox and immediately exits. This is very un-UNIX-like, there's no way to know if the program is actually exiting or if it's just launching a new window. These leads to fun bugs with programs that call firefox as an external viewer (see #278990 and #284174). If running firefox causes it to connect to an already running instance, it should wait(2) on that process, since that would make a lot more sense from the UNIX perspective (and perhaps a -remote flag to have the "fire-and-forget" functionality we have now, because that does make sense in some situations too).

As far as I'm concerned the whole profile mechanism is a waste of code and a hold over from the old Netscape days, for people without multiuser systems. It should be dropped completely. Although we'd probably need to be able to run multiple Firefox processes on the same profile before it could be stripped out.

There is definitely a strong Windows mentality that pervades Firefox. I still remember when the extension mechanism was first introduced back in 0.9 and you needed to run as root (or the Administrator under Windows) for it to work properly. Madness. Although UNIX does seem to be more suited to an environment where processes are lightweight and short-lived. Big, monolithic applications are a more recent phenomenon.

Mike Hommey: Gripes with Firefox

Martin said:
Firefox and OpenOffice.org seem to be two flagship products of the F/OSS world. At the same time, they are probably the two best examples of programmes orthogonal to the Unix philosophy. Does that mean that the Unix philosophy is the wrong way? Holy Shit!
No, Martin, that doesn’t mean anything about the Unix philosophy. It only means Windows developers don’t have a clue about Unix.

Martin F. Krafft: Gripes with Firefox

Mozilla Firefox has done some good to the Web as a whole. I still wonder why, for $DEITY's sake, it does everything different from a normal application. To be precise, Firefox sucks just a little too much for my taste. Today's gripe: I have two machines here, my laptop and my workstation. The workstation is headless due to a broken monitor, but it's connected to the stereo. My music collection is served by libapache2-mod-musicindex over HTTP, and I have not yet figured out how to configure mocp to actually play remote playlists (any ideas?). Thus, these days I X-forward Firefox to my laptop to surf the list and select the songs. But try this: start Firefox locally, then start an instance through an X-enabled SSH session: it will open a new window of the running local session, which is really not what I want nor expect. It seems like the requirement to surf from somewhere else is an out of bounds concept for the Firefox developers. Thanks for trying (and failing) to be smart, Mr. Firefox. Why don't you rather concentrate on processing clicks and keystrokes when you should, rather than ignoring them from time to time? Update: Matt Brubeck tells me that MOZ_NO_REMOTE=1 in the environment does what I want. Future versions will have a -no-remote command-line argument. I think it should become default. Please see #352809 if you have an opinion on this. PS: Firefox and OpenOffice.org seem to be two flagship products of the F/OSS world. At the same time, they are probably the two best examples of programmes orthogonal to the Unix philosophy. Does that mean that the Unix philosophy is the wrong way? Holy Shit!

10 February 2006

Martin F. Krafft: No SSL for archives

Amaya claims that it's easier to put it all under SSL if the list management interface should be protected. I use the following options in /etc/mailman/mm_cfg.py to use SSL for list management, but plain HTTP for the archives:
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
PUBLIC_ARCHIVE_URL = 'http://lists.madduck.net/pipermail/%(listname)s'
PRIVATE_ARCHIVE_URL = 'https://lists.madduck.net/mailman/private/%(listname)s'
Add to that some apache2 RewriteRule directives, and it's enforced.

Martin F. Krafft: Finally, no more T-Offline

I finally got around to switch my parents from T-Offline to MaxiDSL. The switch worked flawlessly, our internal phone system continues to work, and switching the DSL was painless. So no more random disconnects (if I am to believe what people say about MaxiDSL), a responsive service hotline with people that have a clue, and all that for about 60% of the price we used to pay to T-Offline. Heartily recommended for residents of Munich. If you are interested, link up with me so we can both benefit from a referral bonus.

7 February 2006

Clint Adams: Allison

She called him because she had had a big fight with her boyfriend and asked if she could stay with him if she needed to. He told her that she could. He cleaned his place like a man possessed. No one had ever seen him that driven before and no one would see it ever again. When she made up with her boyfriend and decided to stay at home, the embers of hope within him died. Normally he dated women who were contrary. They liked to fight with him and he liked to whimper and whine. There was a great deal of manipulative behavior on both sides, and a lot of emotion and intensity. He did not fight or squabble with her, but he loved her deeply. She got married shortly before he did. He married a girl with whom there was almost no passion at all. Some people cried at that wedding.

6 February 2006

Martin F. Krafft: Enabling comments on blogs

Uwe, you are not the first to request that I add a comment feature to my blog. Its consideration is on my to-do list, but I am somewhat against it already. Why? Because I do not want to deal with yet another point of attack for spam, and I am really not fond of web interfaces; there are probably nice ways to tell pyBlosxom to integrate comments well with the filesystem, allowing me to e.g. reply via SSH rather than a browser (or better yet: email), but as it stands, all I know are comment forms on the blogs' web interfaces, which require a browser and cookies enabled to be able to add one's opinions. As blog owner, I have to continuously check my blog for new comments with a browser, and leave answers to comments immediately as I am checking them, but tracking forums with browsers is a royal PITA. Thus, an RSS feed would be the right way to do it. However, RSS only alerts me of new comments; I then still have to fire up a browser (or a shell) to leave an answer. Anyway, I am already drowning in emails, I don't need another medium requiring attention and feedback. There's also another reason against comments on my blog: it's my blog. Apart from legal obligations in the EU, I have not fully grasped the pros and cons of giving other people a space to express themselves. If an entry of mine solicits feedback, I include an email address, and I summarise what I learn from the numerous responses I receive in a second blog entry. I will look into ways to integrate my blog with my email traffic, so that comments come in as emails, and replying to them publishes my response on the blog. Anything else I would not want, I think.

Uwe Hermann: /media vs. /mnt

Martin, you should enable comments in your blog instead of forcing me to resort to email or spamming Planet Debian :) Seriously though, while I know that the FHS recommends /media as a mount point for removable media (and it sure makes sense for Debian as a whole to use that), one of the first things I do on my own boxes upon a fresh install is "rmdir /media /cdrom /floppy /initrd". I don't want to have yet another directory cluttering my root, and I find /mnt is perfectly fine for any mount points, especially since I don't really care whether I mount removable media or not. For example, I have /mnt/cdrom, /mnt/usbstick, /mnt/win, /mnt/hda1, /mnt/hda2, ..., /mnt/ipod etc. etc.

Martin F. Krafft: Use /media not /mnt

Uwe, you should be mounting crypted_sda3 under /media, not /mnt. :)

Martin F. Krafft: Counting peas in Switzerland

Switzerland is bloody expensive, you surely don't want to be shopping here. For instance, I wanted to get myself the Lonely Planet Guide for Laos and Myanmar, both of which have had new editions released in 2005. Their price is a little more than 20 each, including the German VAT of 7%. If you buy the book in Switzerland, it's between 40 and 50 CHF (incl. 7.6% VAT), which is almost 10 more than the German price. Despite the fact that I cannot find the 2005 editions neither in Swiss stores nor on amazon.de, I'd be looking at a slight problem. Either, I can pay the higher price in Switzerland (in addition to shipping), or I can order with amazon.de (or the like) in Germany, who will subtract the VAT and ship it to Switzerland for free. Sounds great, huh? Well, it isn't really, because in Switzerland, receiving packages might mean you have to pay VAT, and not only that, they also make it unnecessarily complicated: If the goods you receive are valued less than 75 CHF, you do not have to pay VAT. However, if you do have to pay VAT, the VAT and a nominal service charge of 10 CHF count towards those 75 CHF, which means you effectively have to stay below (75 - 10 - VAT) CHF, which is 60 CHF or thereabout. Translate that to Euros, we're talking about 38 . Thus, if you want free shipping and no VAT, you have to place orders between 20 and 38 -- 20 is the minimum price to get free delivery if your order is not entirely made of books, in which case delivery would be free even below 20 . You do not want to place orders higher than 38 ever, because VAT in Switzerland is higher than the VAT for books in Germany, and the additional 10 CHF charge is not going to make up for it. So the only way for me to obtain the two books is either through the overpriced Swiss bookstores, or via two separate orders to amazon.de so as to not exceed the 38 limit. The maths gets more fun when you get away from books. For normal goods, VAT in Switzerland is still 7.6%, but 16% (and maybe soon 19%) in Germany. Thus, you will want to stay below 38 , unless the total value of the goods exceeds an amount where the cheaper 7.6% VAT + 10CHF service fee is lower than 16% VAT. This drives the limit up to 121 CHF, or about 77 . Now, if you think this is complicated, stay put. I am looking to buy myself the DrayTek Vigor 2900VG router, for which is around 265 in Germany including the 16% VAT, and 421 CHF including the 7.6% VAT in Switzerland. These prices square, but they're not including shipping, and if I would order the German product for delivery to Switzerland (which they are not willing to do, but anyway), I'd have to add the 10 CHF service charge and the 7.6% VAT. I also would not be able to claim the 16% VAT paid in Germany with EU customs because I am not a full resident of Switzerland. Man, no wonder taxes have had a long history of violence. Now I also received a 35% rebate offer from the Swiss distributor, driving the price down to 274 CHF, which is clearly a hell of a lot cheaper than the German product. So what am I waiting for? Well, Germany being an EU state and all, the German shop has to give you a 30 day return warranty and a 2 year product warranty. In Switzerland, you get no return warranty and only 1 year of product warranty. My dilemma thus becomes: are 30 days return warranty and an addition year of product warranty worth the difference of roughly 150 CHF? Seems like the answer must be "no". But I know that if I order it in Switzerland, it will break after 366 days, by the laws of Murphy. I have now asked the German distributor to match the 35% rebate. If they will, I'll order the device to my parents house in Germany. If they don't, I'll take it up with Mr. Murphy. PS: If you think the DrayTek Vigor 2900VG is not a good choice, speak up now!

5 February 2006

Martin F. Krafft: Encrypting ~

It's about time I encrypt my home directory. So far, I've found two tools for the job: dmcrypt and encfs. dmcrypt links in between the VFS layer and the data store. For an encrypted partition or image, it creates a device under /dev/mapper, which you then mount. Think cryptoloop. Encryption covers the whole scale of symmetric encryption, but I didn't find anything related to public key crypto. I am also not entirely clear yet on why a damaged block on the storage medium doesn't screw the encryption block (partially) stored on it, as well as all following ones, given a chaining mode like CBC for instance. However, as this thread shows, I am wrong and technology is right (and works), and I still just don't get it. It feels like another Monty Hall problem to me (which I also never really understood to the point of being able to convince someone else thinking 50/50 is the answer of the alleged 2/3). So then there's encfs, a FUSE-filesystem that seems (I have not tried it) to create a virtual directory for an existing one, transparently encrypting filenames and contents as they are written to the existing directory (via the virtual one), and decrypting them when requested through the virtual one. So it's a 1-to-1 mapping, which has its pro's and con's. encfs seems equally strong on the symmetric crypto side, but seems to lack public key support. For each, there's a proper PAM module: libpam-mount can mount a cryptoloop filesystem upon login (though the README says it cannot do so for OpenSSH logins. If that's right, well, one candidate less...). On the other hand, there's libpam-encfs, which creates the virtual directory on login (and removes it on logout). I can well imagine how any of the PAM modules would do their job just fine on a machine where xdm is the primary/only login method. However, what about SSH? What happens if I log in through xdm, then SSH, then quit X? How do you solve the problem? I am curious and will blog about the things I hear... Update: After rereading my thread, I am understanding, I think. We're talking encrypted block devices (or loop devices). It's not difficult at this stages to tie IV chains in with storage blocks. I am still curious why my 8M file was still all zeroes after changing the cryptotext. Update2: Sesse points out that CBC uses the ciphertext of the previous block as an IV, not the plaintext. So if some block gets corrupted, that messes up the next one's plaintext, but not its ciphertext, so the one after that is OK. Thanks.

4 February 2006

Martin F. Krafft: Ultrasonic toothpaste

... or rather the lack thereof: I love my dentist (Dr. Felkel in We ling b. M nchen). At his recommendation, I got myself one of those ultrasonic toothbrushes. What I need now is ultrasonic toothpaste to go with it. The regular toothpaste just doesn't cut it, it won't foam quite enough. And that tarnishes my toothbrushing experience.

2 February 2006

Martin F. Krafft: What happened to Debian?

If you experience network problems related lost nameservers about ten seconds after establishing a link (e.g. with DHCP), you are being hit by #350995. I don't run GNOME (or KDE), but I do need gucharmap, which is such a complicated programme that it needs to link against 33 libraries:
lapse:~> apt-cache depends gucharmap   grep -c Depends:
33
Among these, libgnomevfs2-0. Don't ask me why gucharmap needs VFS support, I probably didn't find all the hidden features yet, especially the one that requires me to have a 169.254/16 address on my interfaces: going further down the chain:
libgnomevfs2-0 depends on libavahi-compat-howl0
libavahi-compat-howl0 depends on libavahi-client3
libavahi-client3 recommends avahi-daemon
avahi-daemon!!! WTF? I have a wonderful infrastructure with DNS records automatically updated, why in the world would I want ZeroConf. If I wanted ZeroConf, I'd be running 1-click Windows wizards! Yes, I am pissed right now. A temporary fix is dpkg -P avahi-daemon. The long-term fix should be a little more care when deciding which features are necessary and which would be nice to have. Something tells me that GNOME (and KDE) have somewhat twisted perceptions of this. This isn't a personal attack on anyone donating time to make GNOME (and KDE) happen in Debian. However, it's a plea to everyone not to forget that we're Debian. We have the most complex dependency graphs (see e.g. xserver-common/xserver-xorg/xorg-common/...) just to make it possible for people to install exactly what they want and no more.

1 February 2006

Erinn Clark: Standby passengers love me

Usually waking up an hour after your flight has left is a bad sign -- like, a sign of imminent doom, that things are about to get horribly worse. At least, that's how it usually feels and this being the third 6:25am flight I missed in 2005, I was well-accustomed to that feeling. Luckily I got re-routed through Tampa, then Los Angeles, and I finally ended up in my San Jose, CA destination with a lovely Val awaiting me. She seemed shocked; said I was far shorter than she expected, then she realized I was walking with a group of Stanford basketball players and that, though they dwarfed me, I still managed to have at least an inch on her. (Val is "5'9 and three quarters!", according to her.) A lot of the visit was a bit of a blur. After arriving, I quickly showered, and was promptly told by Val that my skater rat apparel just wouldn't do and that our New Year's Eve party was meant to be dressy. A black shirt and some funky necklace managed to placate her, luckily, as well as my excuse of having just flown in from out of town with no instructions to dress pretty. Off to the party, where I met a load of brilliant and entertaining people, including Lina who was positively heartbroken by the lack of fireworks.
Lina and me in the ballpit The next day included eating vegan duck for breakfast, visiting Google offices for fun (not profit), getting lost with Val in some frightening redwood forest, Indian food in SF with Janet, Jen, and Val. Actually, the Indian food might deserve an entry of its own -- the owner of the restaurant actually spoonfed me, which was bizarre and funny. Afterwards, we went to visit Kristal and laughed at various things, including the most hilarious website ever. "Oh yeah baby, check out my throughput." Of course, that feeling of imminent doom was not entirely wrong. I contracted some kind of California Plague while there and spent my flight back doubled over with body aches, fever, and chills. Overall, well worth it. Happy New Year, everyone!

Martin F. Krafft: I have the fastest cable modem

Either Lars really publishes Gigabytes worth in a single image and my provider is the fastest on earth, or the Extended Statusbar plugin for Firefox has some other issues:
http://blog.madduck.net/static/lars-huge-image.jpg

31 January 2006

Martin F. Krafft: Twin Peaks reloaded

We got together tonight in a small group to start watching the Twin Peaks (warning, spoilers on that webpage) series by Mark Frost and David Lynch. For me, it's the best soap opera ever produced, and it's just beautiful and warms one's heart to watch. We're through the pilot and episode 1, so we have 28 episodes and a sequel movie (Fire Walk With Me) to go. I am excited.

Next.

Previous.