Search Results: "dom"

20 January 2008

Simon McVittie: A magical xrandr incantation

Here's a handy incantation I use with the Intel X.org graphics driver on my laptop.

Put this script somewhere convenient:

#!/bin/sh
if xrandr   grep '^VGA connected' >/dev/null
then
    #echo "VGA connected"
    xrandr --output VGA --above LVDS --auto
    xrandr --output LVDS --auto
else
    #echo "VGA not connected"
    xrandr --auto
fi 2>&1   logger -t xrandr-hotkey

and bind it to your "switch video mode" key, e.g. Fn+F7 on my Thinkpad X60s. For instance, I run xbindkeys, so I saved it as autoxrandr and put this in ~/xbindkeysrc:

"exec /home/smcv/bin/autoxrandr"
    XF86Display

Now if you press the "switch video mode" key with a monitor plugged in, you'll get the external monitor appearing above the laptop panel (my preferred configuration - I've balanced my monitor on an N800 box to get the bottom of the screen level with the top of my laptop's screen). If you press that key again after unplugging the VGA cable, the laptop will turn off the VGA output and pull all the windows onto the built-in screen.

18 January 2008

Axel Beckert: Following Bleeding Edge Software and still using Debian Stable

Many Linux fans know that Debian Stable usually already lost the “b” when it’s being released. ;-) What seems not so well known (especially not by some DesktopBSD Marketing guy at last year’s LinuxDay.at :-) is that there is really a lot of people who really like this “stale” software collection — because it’s rock solid — especially compared to the ports in FreeBSD or DesktopBSD *evilgrin* which unnecessarily follow every new feature upstream introduces. This is really annoying in a server environment where you want as less changes as possible when updates are necessary due to security issues. My personal favourites here are Samba and CUPS. *grmpf* Although I belong to those people who run Debian Stable even on brand-new hardware, I sometimes have to use the newest beta or alpha versions of some software to get it even only running. And doing so is fun but feels strange somehow, though. Currently I follow the pre-releases of three software makers quite close, due to a new laptop: At the beginning of last semester I bought a brand-new Lenovo ThinkPad T61 (2,2 GHz Intel Core2 Duo T7500, 4 GB RAM, 160 GB HD, 1440x900 14” Widescreen) without preinstalled operating system (possible thanks to the ETHZ Neptun Project) and installed — of course — 64-bit Debian Stable on it. While the Debian Installer from Etch worked fine even on such new hardware, not all features worked out of the box because some components were just too new. So the first thing I did was installing 2.6.22 from Backports.org, quickly moving farther to vanilla 2.6.23. Nearly everything I needed worked except the wireless network card. It needs the iwlwifi driver which is officially in the Linux kernel starting at the upcoming 2.6.24 (said to be released during the next few days). So I run 2.6.24 pre-releases on the laptop since the first release candidate, always eagerly waiting for either the next RC or the final release. (And 2.6.24 looks impressively stable to me — even since the early release candidates. :-) I even got the fingerprint reader working for login and sudo (but not xscreensaver) using libthinkfinger backported to Etch from Debian Experimental. I’m just not sure if this is a good idea since the back of the screen already has enough of my fingerprints on it. ;-) The next software of which I’m currently running an alpha version is 64-bit Opera 9.50 (aka Kestrel, available at snapshot.opera.com) because no earlier Opera version is available for 64-bit Linuxes. Here I had different experiences: The builds from October and November were already quite stable, but since December it crashes usually several times a day. At work I also run the 64-bit Opera on my workstation, but stalled updating it when I noticed that it became so unstable. So my Opera at work has currently an uptime of nearly four weeks — and would have probably more if I hadn’t rebooted my workstation in Mid-December. Somehow this hunting for new versions and eagerly waiting for every new (pre-)release makes me really fidgety sometimes. And my understanding for people doing this for there whole userland or even operating system has grown, but I still prefer to have stale but stable software on all my productive machines, even on my laptop — just with some few and handpicked excpetions. The third but less thrilling thing I’m following are nVidia drivers for X. Since the free nv driver of X.org doesn’t support (and not only just doesn’t know) my graphics card yet and nouveau isn’t ready yet, I run the binary only and closed source driver from nVidia, waiting for that one release which supports Xen since I really would like to run a Xen guest with Debian Unstable for testing purposes and package building on my laptop. Until then I have to content myself with the much more unwieldy QEMU respectively KVM. Anyway, I’m very happy with the T61 and Debian Stable and can easily connive at the few not (yet) perfect issues like missing Xen support by nVidia, broken ad-hoc mode in the wireless card, no internal card-reader (as announced in the Neptun specifications) and no native serial port. Some useful links regarding the subject of this post:

Now playing: Jean Michel Jarre — Rendez-vous à Paris

Russell Coker: Bruce Schneier Advocates no Encryption

Bruce has written an interesting post about wireless encryption [1]. His main ideas seem to be that it’s nice to provide emergency net access for random people, that attempting to secure a wireless network only causes more problems when (not if) it is broken, and that your machines which are mobile need to be secure against a hostile LAN anyway. These all make sense. I’d probably be doing the same if it wasn’t for the problems I had getting 802.11b gear working in my house (maybe conflicts with some of the other wireless equipment I run) and for the fact that I run NFS over my home network (which needs decent performance and has no security).

16 January 2008

Miriam Ruiz: Sexism? Hostility?

The story seems to have started with Damog supporting sexism and xenophobia in Debian, followed by Bernhard’s comment about that not being tolerable under Debian’s flag. Aigarius replied kinda shocked that stopping verbal abuses and violence would be censorship. AJ clearly explained the reasons why that shouldn’t be tolerated in Debian, but Aigarius seems to keep thinking that poor jerks are being discriminated when they’re not allowed to insult us. Wouter seems to be tired of the whole topic. Am I missing any chapter? Now my turn: We are on the right way. Since the Debian-Women project started, we have being able to achieve a friendly and non-sexist environment inside Debian, which is something that I’d really like to keep. It doesn’t really mind that a couple of people try to go back to a hostile environment. Trolls just do exist, I guess, but they are not representative of the general feeling of the people inside Debian. Damog, I won’t get the fuck out of here, like it or not. It seems to me that it’s just a couple of you who are happy to be in such an aggressive environment as the one you’re promoting. For what I know, most of Debian people are happy to live in peace. You don’t have social life? You don’t like it? That’s your problem, dude, but don’t ask us to leave ours. I respect you, you know I have always done. I’m just very disappointed with your comment. Really. Making fun of other people’s problems and traumas is simply bullying. I hope you think about it. For the rest of Debian, keep up the good job. Right now my feeling is that the level of sexism, racism, ageism, homophobia, hostility and unfriendliness in general inside Debian development’s world is below the average in the Free Software world. It’s nice to be there, and I’m really proud of belonging here, which is something I cannot say about every group in Free Software. I’d like to keep it that way. Sorry for the aggressiveness in this weblog entry.

Wouter Verhelst: Dear world,

I'm a Debian developer; therefore, I have a GPG key. Just because I do, doesn't mean I want every random message to me to be encrypted. Thank you for your attention.

Anand Kumria: We're back. And, we won.

Actually I never went away, yes 22 months is a long time between blog entries, I just got distracted by travelling and working at AwayPhone. I'm still there and we are looking for one or two developers, principally in the US (Washington state) — but as a global company, not necessarily — so let us know (ASCII only, spell-checked, coherent English, etc.) if you are interested. I've been on (technically) holidays for the past few weeks, but I find myself awake, reviewing code at 02:45 (now 03:30) and trying to catch up on emails. I'm reminded of a friend of mine who always used to shout “RELAX!” whenever we went bar-hopping. I've been trying to apply that to a broader area of life than just bars but it appears that it just isn't how I'm wired to operate; for better or worse. That means, that whilst in Australia, I'm also rebuilding my mothers' IT infrastructure at her publishing company. I want it all to survive without any intervention for at least 2 years. So, I've been evaluating various pieces of kit. My conclusions:
NetGear
Switches, Modems (ADSL) and Wireless access points
Western Digital
Linux NAS boxes (they have Samba, rsync and SSH on pre-installed. I'd expect a firmware update from the makers to incorporate iSCSI and allow you to join a domain shortly).
HP
Desktops and Servers. Although I wish Bdale has some influence within HP and I did not have to taint the kernel of my servers. Seriously, it is because of that I re-do a price/functionality check everything time I go to purchase a machine. HP only just get it right.
Linksys / Cisco - snom
VoIP handsets. To be honest, this category is still being evaluated; but I'm leaning towards snom.
I realise everyone has probably been burnt but some of the vendors mentioned above but this is my experience of them. You'll notice nothing about laptops. I'm looking around for a decent vendor, I'll let you know if I find one. If you have been following along, you will notice that the Netgear ADSL modems (DM111P) runs Linux. The WD MyBook World Editions II's, run Linux (and I'd expect that they could be coaxed very easily into running generic Debian). The HP stuff (mostly) runs Linux. As does the Linksys and snom handsets. We won. Now, I've got to figure out how to setup Clonezilla so that the desktop Windows machines can be replaced when they fail. And I have less than 144 hours to do so. There is nothing like a deadline to concentrate your mind. P.S. I do have some half-finished entries for the intervening 22 months, I will clean them up and post them under their original dates in the next few weeks

Russell Coker: Differences between Distribution Kernels

It is not uncommon to run a Linux system with a kernel that was compiled for another distribution. One reason for doing this is the difficulty in compiling and testing a kernel to make sure it will do what you require. It’s not THAT difficult for someone who knows what they are doing, but if someone else has already done the work then it seems like a waste to re-invent the wheel. Sometimes it’s an issue of a driver that one distribution supports but not another, copying the entire kernel package from another distribution may be easier than compiling a new kernel with the extra driver. Sometimes it’s a kernel bug, if distribution A has fixed the bug and distribution B hasn’t, then it’s often easier to install a kernel package from distribution A when running distribution B. Another reason for running different distributions with the same kernel is Xen. If you have a Dom0 which hosts instances for different distributions as DomU’s then running the same kernel on all of them can make it easier to manage. Unfortunately it’s not uncommon for different distributions to have different kernel feature sets. One example I’m currently dealing with is the fact that the Debian/Etch kernel is compiled with CONFIG_AUDITSYSCALL disabled while RHEL and CentOS require it. So if you run a RHEL or CentOS system with a Debian kernel (EG running a Debian Xen server with a RHEL or CentOS DomU) then you see messages such as the following in your logs. crond[7824]: pam_loginuid(crond:session): set_loginuid failed opening loginuid The loginuid feature allows login and equivalent programs (which includes xdm and other graphical login programs, cron and every other program that runs a program on behalf of another user) to set the loginuid. This loginuid will be stored by the kernel, inherited across fork() and exec, and not be changed by running setuid or setgid programs. Therefore if you see some strange entries in your audit log indicating an attempted attack you can determine the original login UID of the person responsible. In terms of security features it’s not a really high priority. But it is really annoying when programs that work on RHEL don’t work properly with a Debian kernel and put many unwanted messages in the log files. For people who have less background knowledge about these things it may be more than annoying, and may even force them to change their deployment plans to make the message go away (not everyone knows which messages can be ignored or where to ask about such things). The fact that Etch has no user-space support for the auditing features in question (auditing system calls or setting the loginuid) was never a good reason for not enabling this feature (IMHO). Using the auditing system calls was simply a matter of copying the auditctl program from a RHEL, Fedora, or CentOS system (for those who didn’t feel inclined to compile the source). The loginuid required changes to PAM to enable it, but is actually a small part of the auditing layer. As a general rule minimising the differences between distribution kernels is going to benefit most people. Some people complain about kernel bloat, but there are worse candidates for that accusation and given that it seems impossible to buy a machine with less than 512M of RAM and a 900MHz CPU (the specs of the ASUS EeePC) adding a few extra kernel features seems unlikely to hurt anyone. It is of course always possible to compile your own kernel for the smallest machines. Finally I am in the process of back-porting SE Linux code and related security features to Etch, and having this already enabled in the kernel would make my work easier. I won’t do a 7 year support cycle for it unless someone pays, but supporting Etch past the release of Lenny with the latest SE Linux features (and the current features working properly) is my aim.

15 January 2008

Anthony Towns: Exclusion and Debian

Oh yay, another argument about sexism. I thought we were over this. Aigars writes:
Trying to restrict what words people can or can not use (by labeling them sexist, racist or obscene) is the bread and butter of modern day media censorship. It is censorship and not “just political correctness”. While I would not want people trying to limit contributions to Debian only to “smart and educated white people” (racism) or “logically thinking males” (sexism), going the other way and excluding people from Debian because their remarks or way of thinking might offend someone is just offensive to me.
One: it’s not censorship for Debian to limit discussion of various things on Debian channels. It’s censorship when you prevent discussion of something anywhere. Two: if you think excluding people is bad, then supporting jerks whose mysogyny repulses people isn’t compatible with that. Three: doing something in someone else’s name, that isn’t supported by them, is wrong. If you’re in a channel called “debian-something” don’t act in ways that don’t match Debian’s goals. If you want to be free to go against the principles of the DFSG by, eg, discriminating against people or groups, make up your own name for a channel.

Aigars Mahinovs: Freedom of information production and distribution

Bernhard It is possible that you are not alone but nether are defenders of freedom if information production and distribution and in particular of freedom of speech. Trying to restrict what words people can or can not use (by labeling them sexist, racist or obscene) is the bread and butter of modern day media censorship. It is censorship and not “just political correctness”. While I would not want people trying to limit contributions to Debian only to “smart and educated white people” (racism) or “logically thinking males” (sexism), going the other way and excluding people from Debian because their remarks or way of thinking might offend someone is just offensive to me. That is against the spirit of information freedom that free software is built upon. To summarize: no one should have the power to say what you can or can not say. You personally do not have to listen to what people say if you do not like what they are saying - there are technological measures that allow you to filter people out at your end. But denying them the right to speak (or segregating them to non-Debian communication channels) is clear and simple censorship that goes against the very principles of free software.
I do not agree with what you have to say, but I’ll defend to the death your right to say it.
— Voltaire

David Moreno Garza: ##debian-offtopic

It’s incredible how one troll can split a channel up. It’s incredible how the sexist shit can be spread all over the place. It’s incredible, not wait, not incredible, it’s sad, sadder and sadder, to see what Debian has become. The Debian social life has become a center for dramas of all kinds, since sexist traumas, transgenders issues, people with too much free time, real good technical people leaving, freaking big farts in Debian thinking on leaving the project, elitist dolls clubs, small wannabes who think they can treat other people unrespectful. Debian itself is now its own slow killer. There has always been old people, new people, people leaving and people entering, but when you see other projects just as good as we were, some of us remain because of the social side of Debian. But is it really worthwhile? Perhaps not anymore. And because of the non-sense shit from the debian-women mailing list thread, here are a few random greps on my old logs:
Jun 11 07:19:29 <directhex work> timgoh0, for the same reason a woman in skimpy lingerie is sexier than a women in the nude, lesbians are sexier to watch than a threesome. it’s the *potential* being presented. the thinly veiled chance for the imagination to run wild Sep 13 00:23:27 <tech> women are mostly useless Sep 12 23:28:10 <tech> nvz: just stay away from women, it’s easier Mar 04 20:12:32 <nvz> women like to be refluffled Jan 13 12:50:07 <toresbe> rcox: Some idiot got out on the debian-women mailing list and said #debian-offtopic was “sexist”.
Of course we are sexists, just like we are men and women unfriendly, we laugh about nationalities, we like fluffling, make fun of others and we like to be nipple smited. Love it or get the fuck out of there. We’re an unofficial community now. Who would want to be official after all?

13 January 2008

Filip Van Raemdonck: Gmail still erratic

Still no solution on the issues I wrote about a few days ago.
Mentions of the problems are surprisingly few and in between; either it's not universal or people just don't notice / are not bothered by it.

Andrew Pollock: [debian] Adding domain-search (option 119) support to DHCP

I've been a bit behind with the ISC DHCP v3 package of late. I've had a package of 3.1.0 for a few months, but I'm becoming more and more reluctant to make uploads of this package without giving it some rudimentary testing. Real life has been demanding of late, so I haven't had a chance to do that testing. Nothing's gone wrong with the package to date, I just feel negligent not giving it some basic testing before throwing it out there. So I chucked a spare QFE card in my workstation brutus, put unstable on the second hard drive, installed Debian unstable on the spare 10G partition of Sarah's old PowerBook, and lashed the two together with a bit of CAT-5, and voila, instant DHCP client/server testbed. So now that I'd verified that version 3.1.0 wasn't blatantly broken, I could have a fiddle with the new support for option 119 (domain-search) that has people at work very excited. I spent a bit of time off on a wild goose chase trying to figure out how to configure the DHCP server for this new option before I realised it was as simple as option domain-search "foo bar baz"; and then made the necessary tweaks to dhclient-script. I'm figuring that since one of the blokes who wrote the RFC works at Apple, and since Leopard supports option 119, the way they're doing it in Leopard must be approximately correct, so I've altered the behaviour of the DHCP client accordingly. All of this assumes you're not using resolvconf. Prior to 3.1.0, if you had the domain-name option set, the /etc/resolv.conf created by dhclient-script would set the search directive to the domain name. With 3.1.0, I've decided to make this set the domain option instead. The resolver behaviour remains the same, as best as I can determine. With 3.1.0, if the domain-search option is set, then the search directive is set to this. If the domain-name option is set, this is prepended to the list of domains in the domain-search option. This is consistent with what MacOS X 10.5 (Leopard) does. I'm not sure what Windows does (nor what version started honouring the domain-search DHCP option)), and since it doesn't have an /etc/resolv.conf equivalent, it's a bit hard to test. I'm going to hazard a guess and hope that since the other bloke who wrote the RFC works for Microsoft, that maybe, just maybe, Windows and MacOS X at least behave the same way. Currently, if resolvconf is in use, you get the old behaviour whereby the search directive is populated with the contents of the domain-name option, and the domain-search option is ignored completely. I've filed #460609 with a patch to fix this. Interestingly, resolvconf itself internally collapses the domain and search directives into the search directive of the /etc/resolv.conf it generates, so I can't quite get the same /etc/resolv.conf generated as would be generated without resolvconf being used. No big deal, the behaviour should be the same. The domain directive is largely unnecessary as I understand it. I have unearthed what I consider to be a bug with the domain-search option handling code in the client. It seems to be largely benign, apart from causing the client to emit some errors when it's obtaining a lease that contains the domain-search option, and possibly not splitting the domains in the domain-search option correctly. There's also another (I think unrelated) warning that gets emitted as well. I'm waiting to hear back from upstream about both. I'm not going to package the recently released 4.0 DHCP until I've figured out a transition plan to go from the old DHCP v2 packages to the v3 ones.

Matthew Garrett

Neil:

The vast majority of your criticisms are unfounded. Nvidia contribute code to the open driver for their network hardware (see the commits) - you don't mention what version of Debian you're actually running, but if it's etch then it's hardly surprising that new hardware isn't supported terribly well. Try a more recent kernel. It's not clear what you expect HP to have done here - used older hardware to make sure Debian worked?

"the graphics don't work with standard Debian kernels and the standard Debian 'nv' driver" - this seems fairer. No 7000-series IDs have been added to the nv driver for some time, and 7150 is clearly missing. Naughty nvidia. No biscuit. But, again, hard to see what you wanted HP to do here - you bought a machine with an nvidia graphics chipset, and you're surprised that the open support is poor?

"I'll still need some firmware for the bcm43xx wireless card - and it is that firmware that made my previously ultra-reliable iBook into a flaky, power hungry psycho-beast." - no. Given that the firmware runs fine on non-Linux platforms, it's pretty clear that it's the (entirely open) driver that's at fault. Which is hardly surprising, given that it's had to be reverse engineered due to Broadcom providing no specifications whatsoever, but blaming vendors for using proprietary firmware is a bit much. Do you have the source for your CPU microcode? Your BIOS? The firmware that's in flash on your other wireless cards? Your hard drive? As a community, we haven't been sending a strong message to vendors that we want open firmware. Acting shocked that they then don't provide it is alarmingly unreasonable.

"GNOME doesn't yet work because of the proprietary crap" - the only proprietary crap you need is the graphics driver, and it's unlikely (though possible) that it's breaking GNOME. Perhaps you have another bug?

"I didn't think companies were still producing crap of this pitiful standard - HP: you stink" - this might at some level be linked to the fact that you paid 500 pounds, and as a result you got something made from cheap parts. That's not HP's fault. Their consumer hardware isn't designed to work with Linux. It's hardware that's designed to be as cheap and shiny as possible in order to appeal to home users who are then going to use it to download films and porn and animated mouse cursors in order to ensure that all their private data get sent to Russia. If it's supported by Linux then that's a happy coincidence. If not, then who cares?

Never mind. It's likely that your laptop is one of the machines that has some debugging hardware on io port 0x80, and as a result Linux's use of that as a delay port (despite the hardware's acpi tables claiming it as a motherboard resource) is likely to cause the machine to deadlock randomly if you do things like try to read the hardware clock or nvram. That's likely to cause you more problems than HP's use of Nvidia graphics.

Christian Perrier: [sports] Lauberhorn

Russisprung, Hundschopf, Minsch-Kante, Canadian Corner, Kernen-S, Wasserstation, Hanneggschuss, Silberhornsprung, sterreicherloch, Ziel-S. If that rings a bell, you know what I'm talking about. Today was *the* ski downhill race of the season, namely Lauberhorn in Wengen, Switzerland. The longest (2'30") and fastest (sometimes up to 160km/h) downhill races of the season. Wengen's scenery is among my favourite ones, with the Eigerwand, M nch and Jungfraujoch dominating the entire race (the image of racers in the S curve before the Hundshopf jump, with Eiger, M nch and Jungfrau at the back is usually the image of the year when it comes at ski competitions. And, this year again, the sun was brilliantly shining over Wengen so we spent a great time watching this (on TV...going there to see it live is one of my dreams). And, for this non standard downhill race, we again had a non standard winner with Mr Bode Miller, winning it for the second time in a row. Next week is the Hahnenkamm downhill in Kitzb hel, the ski Mekkah of Austria, on the Streif. Also coming, the Schladming night slalom, Chamonix downhill, Val d'Is re downhill.....January is always busy for those who enjoy competition ski. (and, as I do not only watch sports on TV, I also ran my second longest distance today, with 19.5km in just 2 hours. Yay)

12 January 2008

Filip Van Raemdonck: Big G having issues

Something awry on Gmail this evening... I've been having status messages — you know, the yellow/orangish overlay on top of the page that usually shows when an action has finished — telling me that "the system encountered a problem" for a few hours now while reading my email, intermittently.
Now all of a sudden, I'm dropped in the "old version" of the Gmail interface and there's no longer a choice at the top for the current UI, you know, the one with the funky coloured labels and such; which disappearance leads me to believe that it's not just a client side issue. I'm simply curious now how long it'll take them to fix things.

*Update* As I finished this post and went back to navigating through Gmail, the new UI is back. That didn't take them long...
*Second update* ... but the service also wasn't fixed, I almost immediately started getting error status messages again. And now I'm back into the "old" UI. As I'll be off for bed soon, I probably won't find out how long it'll take. Not that I'm that interested.

Adam Rosi-Kessel: TSA Gripe of the Day

I arrived back late last night from DC (National Airport, called “Reagan” by some) to Logan Airport. I got to National about an hour before my departure and checked two bags. Only one of them appeared at the baggage claim on the other end. The U.S. Air baggage people were surprised; they said National rarely loses or delays bags, especially where the passenger checks in with reasonable lead time. My second bag finally arrived this afternoon. I found the solution to the mysterious delay within: a Transportation Security Administration “Notice of Baggage Inspection.” Presumably they held my bag for too long or it just didn’t get routed properly after being manually inspected. I don’t believe the random manual inspections provide much improvement over the full CT scans now mandated at all airports. But apparently they do create inconveniences. On another note, I noticed for the first time this trip that the now obsolete “no smoking” signs above every seat have been replaced with “turn off electronic devices.” (Query which is more addictive.) Technorati Tags:

11 January 2008

Matthew Garrett: The weather

Friday's predominant weather is forecast to be heavy rain
Saturday's predominant weather is forecast to be sunny
Sunday's predominant weather is forecast to be light rain
Monday's predominant weather is forecast to be heavy showers
Tuesday's predominant weather is forecast to be heavy rain

Oh well. In a fortnight I'll be heading to Linux.conf.au to discuss why suspend to disk doesn't work, can't be made to work in its current form and that everyone who thinks it currently does is under some form of mass delusion. Friday, 11:30. Be there or be listening to one of the other fine presentations that day. If it rains there, I may be upset.

10 January 2008

Andrew Pollock: [tech] What ever happened to glue records?

One of the things I noticed when I was fiddling around with daedalus the other week, was that when I had everything stopped, linux.org.au seemed to stop resolving (and therefore semi-important things like ftp.au.debian.org, which is a CNAME to mirror.linux.org.au This made me very sad, because I'm always harping on about BCP 16 when I see other sites go down because all of their name servers are on the same subnet. Now that wasn't the reason for this particular "outage", though. It seems that because one of the name servers is russell.linux.org.au, and there's no glue record for this host on any of the .org.au name servers, I don't think russell is seeing any DNS traffic at all (perhaps only from resolvers that somehow already happened to have a cached entry for it obtained through other means than an NS query for linux.org.au) So before I go doing any further disruptive maintenance on daedalus I guess I'll be needing to get a glue record for russell.linux.org.au. I'm surprised that searching Enetica's knowledge-base for "glue" didn't raise a mention of it. I would have almost thought that they could detect the need for a glue record when you're adjusting a domain's delegation, so I wonder if it's a failure of their domain management system, or a complete oversight. Maybe people just don't go sticking their name servers in the domain they're hosting any more.

9 January 2008

Tollef Fog Heen: Choosing a nonce in CTR mode

I am currently working on implementing a cryptographic file system using FUSE. It is different from EncFS and similar in that it just mirrors a normal directory tree, but encrypts the contents of the files as they are read or decrypted as they are written. My use case is backups. I have some machines where I and only I have access, machines which may contain proprietary information, personal emails and so on. Of course, I want backups of those, so when the hard drives stop working, I don't lose any data. The machine(s) I am backing up to, however are not always machines where I trust all the people with physical access to not make a copy of my data. In addition, I don't want broken hard drives returned under warranty to contain unencrypted data. This use case is the reason for why I'm encrypting on read rather than on write. I have chosen to use CTR (counter) mode together with AES which should give acceptable security. One of the requirements CTR needs to work well is a nonce, typically 64 bits (for 128 bit AES) which must not ever be used twice. If you use it twice, you leak information about your plaintext, which is, for obvious reasons, bad. My current design headache is how to choose a good nonce. Ideally, I believe it should be persistent for each version of the file and unique per file. Using the inode number takes up 64 bits (on AMD64 at any take, or when using -D_FILE_OFFSET_BITS=64 on 32 bit platforms). So while this gives me the latter, it doesn't give me the former at all. I am wondering if I should use the inode number modulo 2^32 (effectively choosing the lower 32 bits of the inode number) and then something which is fairly sure to never be the same, such as mtime (or at least the lower 32 bits of it, when time_t becomes 64 bit). The reason for not just choosing a completely random value is I don't want a command like diff file1 file1 to claim there are differences in the file. My hope was I'd get a great idea on how to solve the problem as part of writing it down. Alas, that hasn't happened, so if you happen to come across a great solution (or a reason to avoid a particular choice), feel free to email me

David Welton: Nefarious Network Solutions

  1. Go to http://www.networksolutions.com/
  2. Type in a silly domain name (not something you actually care about!).
  3. In a few minutes, they will have registered that domain themselves, locking you into buying it from them if you actually want it.
They're overpriced anyway, but that's really sleazy.

Next.

Previous.