Search Results: "sten"

4 September 2006

Branden Robinson: Update on Debian Security Infrastructure and Personnel

Since I got back from the Oldenburg Linux Developers' conference, I've had my attention on our security infrastructure. Despite only being there for one and a half days thanks to a badly delayed trans-Atlantic flight, I found the conversations and collaborative spirit heartening. The bad news is that what I had planned for a writeup got rendered obsolete soon after I returned to the United States. Things have been changing rapidly, but mostly for the better. We've got three machines in the DNS rotation for security.debian.org now, which is superior to the one we had before (you can use the command dig security.debian.org to inspect the DNS record). My thanks go to our security and system administration teams for recovering from the recent overload problem provoked by an xfree86 package security update. Being somewhat familiar with that package, I can understand how its large size combined with Debian's ever-growing userbase starved the security host of bandwidth. Secondly, while I was in Oldenburg, Joey Schulze gave me a lot of insight into what a challenge one particular package is — the thing sucks up at least half of his time, dwarfing all other stable security update efforts. You've probably guessed that this package is the Linux kernel. Due in part to its success, and in part due to OS kernels being inherently attractive exploitation targets, the Linux kernel is getting a significant amount of scrutiny from a security perspective. Taking Red Hat Enterprise Linux as an example, we can see two advisories in the past two weeks: one on 28 September and one on 5 October. The one on 28 September addressed eighteen (18) different vulnerabilities as catalogued by MITRE's CVE project, and the one on 5 October — that's one week later — addressed fourteen (14) vulnerabilities, of which eight (8) were distinct from the previous advisory. (There was some overlap because the earlier advisory was for Red Hat's Linux 2.4.x kernel series, and the latter was for the 2.6.x series.) Those Debian developers who have ever handled a security vulnerability in one of their own packages can likely imagine the labor burden this is. Then reflect that Debian ships and supports a lot more Linux kernel trees than Red Hat does — this only magnifies the problem. The good news is that a team of developers focused on stable kernel security updates has been established. One of its members said to me today that he has seen a "very positive increase in kernel-related security activity". It is too soon to declare this problem resolved, but I perceive no lack of talent or dedication on the part of our developers. I am there to assist them in resolving the organizational and workflow issues so that our users can see the fruits of their energy directly. Similarly, I'm interested to see how the security.debian.org round-robin arrangement holds up after a reasonable period of real-world loads, particularly since I expect kernel package updates to sock the machines about as badly as an X Window System update. These issues are not over and done with, so an announcement declaring these problems vanquished would be premature. At the same time, the developers and users at large need to know whether or not people have their attention on them. I am wary of leaders or managers who declare issues resolved too soon, or proclaim optimism that later turns out to be unfounded, and have sought to avoid this vice. I apologize if I have tacked too far in the opposite direction. I perceive progress in this area. Let me know what you think, what you need to see, and by what metrics you measure progress and accomplishment on the security front. You can reach me at leader@debian.org (the address is already blitzed with so much spam there seems little sense in obfuscating it). (After getting some feedback on this entry, it's my intention to post it with any applicable revisions to the debian-devel-announce mailing list; please take this opportunity to "patch" this "beta", if you're so inclined.)

Dann Frazier: Syncing Podcasts on my Neuros

I recently found out what these new-fangled podcast things are all about. I was playing with Rhythmbox the other day and noticed it had a built-in podcast feature, and I'd recently noticed that my favorite radio station is now doing podcasts, so I decided to investigate. After a few days of that, I decided that I approved of the concept. I bought a Neuros a year or two ago, and I spend about an hour or so bike commuting with it every day. Adding music to it is slow (USB 1.1), so I normally end up listening to the same music for a week or so. What I really want is to just plug it in at night & have fresh music on there ready to go the next day. But I also want to keep the flash full, so I don't want it to flush the old stuff unless it needs to - so I wanted something kinda like a FIFO. First thing I needed was something to track podcasts for me; rhythmbox is nice, but I need something scriptable. For now I'm using podracer. Its not very configurable, but it does the trick. I prototyped this all in shell using the positron command line interface, but then immediately rewrote it in python using the positron libraries instead. I then added a wrapper for cron to run that makes sure podcasts are up to date, the neuros is mounted (very easy now that udev automatically creates device files that are unique to a device under /dev/disk/by-id/), etc. It should be trivial to split the audio-device specific code into modules - which I'll need to do as soon as I find a physically smaller, logically larger flash player that works well with linux (I was looking at the iRiver T20, but have only read bad things about linux compatability).

Dann Frazier: New Pornographers, Destroyer & Immaculate Machine

I hadn't heard of Immaculate Machine before, so I downloaded the mp3s they had posted online. They sounded pretty awesome, so I made sure to show up early. Not since the last New Pornographers show have I gotten such good parking at the Gothic (the marquee in the back). Not only that, but some guy with an extra ticket sold it to me for $15 ($17 at the door). The night was starting out right. Just as I walked in and ordered a Gin & Tonic, Immaculate Machines started their set. They were pretty upbeat & rockin; I picked up their new CD. Destroyer played next. I'd listened to a number of tracks available from their site as well. A few of them were pretty good; I really liked the tracks with the horns - but they didn't bring them to the show. I like Dan Bejar's vocals on the New Pornographers albums, but I'm not much of a Destroyer fan. The New Pornographer's set was excellent. They started off with Twin Cinema & Use It - their first two singles off the new album. I always think its cool when bands get their singles out of the way; but that might just be me remembering a Rolling Stone article about the Breeders, and how cool the author thought it was that they started the set with Cannonball. The vocalist/keyboardist (and also Carl Newman's niece, it seems) played the entire set with them, as did the bassist from Destroyer. Dan Bejar came out for a few songs and seemed to be getting a bit a little tipsy near the end. A lot more people showed up than last time I saw the New Pornographers. But that's probably because they were competing with a Flaming Lips/Modest Mouse show the same night.

Benjamin Mako Hill: The Official Ubuntu Book

Any Day Now, The Official Ubuntu Book will show up in stores. I have a rubber-banded-together copy of the folded and gathered sheets and the the first batch of books should be bound (or being bound) right now. Those who have pre-ordered it from Amazon or elsewhere should have it in their hands quickly. In addition to my own name on the author page is (future Ubuntu Community Manager) Jono Bacon, Corey Burger, Jonathan Jesse, and Ivan Krsti . Many more members of the Ubuntu community and many editors at Prentice Hall deserve credit as well. I'm proud of the book. I sense that it's more consistent, better organized, and of a higher overall quality than my last book. Even better though, is the fact that the book is released under a Creative Commons Attribution-ShareAlike license. Several chapters are already being shipped by default on the Ubuntu desktop and several translations are underway. You can read more about the book on the publishers site and order it from any number of places online. Books under such licenses are economically risky for publishers so please support the project by buying it if you end up finding the text useful!

Benjamin Mako Hill: Taking the "Open" out of "Open Media Commons"

There's a disturbing little press release floating around where the Sun-backed Open Media Commons announces it's release of a new DRM specification to be implemented using free software. That people are creating DRM systems under open source and free software licenses is not surprising; much of the encryption technology on which DRM is based has been free and open for a long time. What is disturbing is that it contains what appears to be an endorsement by Lawrence Lessig:
Lawrence Lessig, Chairman of the Board of Directors of Creative Commons and Professor of Law at Stanford Law School: "In a world where DRM has become ubiquitous, we need to ensure that the ecology for creativity is bolstered, not stifled, by technology. We applaud Sun's efforts to rally the community around the development of open-source, royalty-free DRM standards that support "fair use" and that don't block the development of Creative Commons ideals."
Lessig's position seems to be that DRM is bad and should not exist. But in a world where it does exist, he thinks that not-quite-so-bad DRM is better than the alternatives. Is that the sort of message we want to be sending? The fact that the software is "open source" is hardly good enough if the purpose of the software is to take away users freedom -- in precisely the way that DRM does. It doesn't help that EFF has already spoken out against this project. Lessig is on the board of directors of both EFF and FSF. I think it is smart for members of either organization who are opposed to DRM, even when it's sweetened up, to contact those organizations and let them know how you feel. On the OMC website, there is a photo of two young attractive people listening to a single pair of headphones. Apparently, the people in the picture need to share a single pair of headphones because the Open Media Commons rights management system won't allow them to share the digital media itself.
/copyrighteous/images/omc_sharing.png

Isaac Jones: Haskell' Summary and Status

I'll try to update the Haskell community periodically on the status of the Haskell' language standard. As mentioned previously, we are currently focusing on two topics, concurrency and the class system. If you feel that you have anything important to contribute to those topics, now is the time to review the proposals, join in the Haskell' mailing list and let us know what you know! Stephanie Weirich has posted a summary of the class system discussion. Stephanie says:
     This page is important because it lists all of the proposals not
     related to MPTCs as well as trying to capture the big picture
     about where we stand with respect to MPTCs. I've been trying to
     not duplicate text that appears elsewhere in the wiki, but just
     provide a consistent picture of the state of the discussions on
     the mailing list.
     Please take a look at this page and help me fill it out. In
     particular, I've been trying to take a pulse of where we stand on
     some of these issues, and some of you may not agree! Tell me if
     I'm off the wall. Also, I've (mostly) concentrated on issues that
     have tickets, so I may have missed some issues that were only
     discussed in the mailing list.  Please let me know if there is
     anything I've forgotten.
Simon Marlow has posted a summary of the concurrency discussion. Simon says:
     I have tried to summarise the various points that have arisen
     during the discussion.  If anyone feels they have been
     mis-paraphrased, or I have forgotten something, please feel free
     to edit, or send me some text for inclusion.  I don't want to
     include long gobs of text in here, though: just summarise the
     main points, and if necessary link to relevant mailing list
     posts.
Thanks, Simon & Stephanie for keeping things moving forward!

Isaac Jones: Packaging darcs

Last night, I worked a bit on the Debian package for darcs. darcs is an advanced revision control system, "two senses in which it is supposed to be advanced: 1) each copy of the source is a fully functional branch, and 2) underlying darcs is a consistent and powerful theory of patches.". Darcs is also written in Haskell, which makes it even more cool. When I did my first big group project in college, I started using CVS and completely loved it. I tried subversion for a while last year, and at home and work I'm currently using arch / tla. I'm excited about these two distributed revision control systems, tla and darcs. Keeping packages in VC: Since the author of darcs, David Roundy, is apparently a Debian user (and a skillful one at that), I expect this package to be a joy to take care of. At his suggestion, I'm going to keep my changes in darcs itself, and I figure that while I'm at it, I'll keep all my packages in darcs. I'm debating a bit about how to go about this, though. I could keep just the "debian" directory in version control, but then if I have to change the upstream sources (like the Makefile), then I couldn't track that. On the other hand, if I keep all the upstream sources in VC, then I'd have to sorta pound on the repository whenever there's a new release, with a bunch of big changes. Not too bad, I guess. What do those of you who keep packages in version control do? I was very pleased to see Colin's blog entry yesterday about Intel support of its Centrino chipset for Linux. I've been sending mail to them every couple of weeks for the last 8 months or so.

3 September 2006

David Nusinow: More Steering Committee

I'm glad people have reacted in a largely positive manner to the steering committee idea. It's not really original, but I'm perfectly happy with stealing ideas from other people. I'm going to clarify a few basic ideas here and then address criticism.

The biggest difference between Debian and someone like Canonical or Redhat is that we don't pay employees to do things. We could go that route, but a defining feature of Debian is that it has a bottom-up structure, rather than top-down. I think this makes us unique and we need to do our best to preserve it. I imagine the steering committee to be an extension of this model.

First, the committee would be not be elected by the developers, but would instead be delegated by the DPL. Developers could challenge this delegation in the same manner as any DPL decision. The committee would be very similar to the technical committee in terms of size.

Second, its scope of power would be similar in that it would only relate to the distribution itself, rather than the way the Debian project itself was organized. Its powers would be limited to approving specific improvements within the distribution. These improvements would have to be submitted for approval by the committee, preferably in some sort of specification format similar to the one Ubuntu uses. The committee would then vote on the issue (most likely following the same rules as the technical committee). If they approve it, anyone is free to work on that specific improvement even if it touches on packages they don't maintain. This allows motivated developers to freely work on cross-distro improvements without worry. The committee would ideally be relatively quick to reply to submitted proposals, allowing fairly rapid developments to occur (to facilitate this, proposals must be well thought out).

Further, like the release team, the steering committee would also be responsible for actively working on goals that are set. This would ensure that something actually does get done. These features would give us a group with a limited scope of powers to implement large-scale improvements to the distribution without forcing anyone to do work they don't want to do. In addition, motivated people would have the authority to make large-scale improvements (like consistent theming for example) across many packages they don't maintain. People working on these improvements would be expected to try and cooperate with the normal maintainers as well as possible, so as to prevent problems. Maintainers who have issues can appeal to the technical committee, whose role would remain reactive to solve conflicts as they arise.

Ok, now for the critique from ij, which is a good one. I think the problem with what you suggest is that the DPL simply isn't going to be capable of acting like a good dictator without working full time on Debian for several years. The job is just too big. Allowing them to remain DPL for more than a year is something I don't think many DPL's would opt for anyway, it's just too draining.

The other existing structure is the technical committee, which is a better candidate for taking on this sort of role. The key to the tech-ctte though is that its job is to handle technical disputes. We could expand its role to allow it to set policies and direction, but then who do you appeal to if you don't agree with them? The developer body can override the tech-ctte (with a 2:1 majority) but that adds additional democratic overhead. GR's are draining, and providing another layer for technical decision making allows us to avoid them. Further, I'd like the steering committee and tech committee to have different modes of working. I imagine the steering committee to be more agile, taking a leading role in setting out a vision for the mass of developers to follow and take inspiration from. The tech committee, on the other hand, should be more defensive, carefully deciding on the most difficult issues. Basically the steering committee will looking towards the future, the tech committee will be looking towards the present.

Martin F. Krafft: Never give up

Scott, the first thing I want to say in response to your post is that you are not alone. I did not know someone was attacked for wearing an Ubuntu shirt in Helsinki, but I did witness at least one "Fuck Ubuntu" incident, and it seemed that Ubuntu jokes and snaps at the new distro were very common. I find this utterly childish and stupid. I am sorry for everyone who was offended. But please don't blame or condemn everyone in Debian or the whole project for the actions of some of its members or followers. You've already linked to my thoughts on the Ubuntu-Debian situation, so I need not cover any of that anymore. I wouldn't want to either, because believe it or not, this article got me flamed by Ubuntu developers just way too many times, in personal mails as well as in forums. Instead, let's look at the now and then this time. I've heard a few developers express their unhappiness with Debian in the past year, much in the same way that you did. Not always was it related to Ubuntu, but quite often it was. There are newcomers to Debian who shake their head in disbelief how anyone can work in a project such as Debian, and there are the veterans among us who seem to concede that Debian has slipped away from their ideals and it's just not fun anymore. It's not hard for me to understand each of them. I've followed Debian for nearly a decade now and thus tracked how it changed over time. We are one of the largest free software projects, and size never comes without problems. So while the Debian project used to be an association of geeks enjoying their focus on technical excellence, the sheer growth of our project called for many other fields to be managed, and we did not always handle this increase in complexity very gracefully. After all, we are all just geeks who want to have fun, aren't we? As a result, several aspects of our project have been said to "stagnate", and parts (and parties) have diverged. As a volunteer developer, it's not always fun to run up against walls and find that your innovativeness is met with stubborness or simple silence. I say "not always" because I think it's really just a matter of perspective. Over the years, Debian has seriously affected my life, the way I look at things, the way I interact with people, and the way I do stuff. I am eternally grateful for much of that. But the learning process has not stopped. What Debian needs is a stronger grasp of the big picture. In joining all the other developers who are already doing excellent work in that direction, what better learning opportunity could there be to approach large-scale project management, away from academia and the corporate world. For me, this is a very interesting perspective of a fascinating project, one that directly relates to my current research endeavour. I was asked recently how we "control the anarchy", and the first thing I said was that "control" was not the right word. Debian is not about control, it's about the flow. If it's not going your way, you can swim against it, you can pull out, or you can try to find ways to change that flow, bottom-up rather than top-down. I think David's idea of a steering committee is an excellent one, and I'd be happy to dedicate time to such an effort. I wouldn't call it "steering" though, as that seems too active. Rather, I envision a group of people dedicated to keeping track of the big picture (obviously in close contact with the release team) to which developers can turn if they need advice. In the last few years, I've often asked myself why the heck I don't just give up, instead of continuously running up against problems that seemed hopeless. Even now, I sometimes think that I should have just pulled the plug, but my answer has always been no, and it looks like it'll remain that way. Why? Because we've come an incredibly long way, and that by itself provide for a lot of motivation. Mostly, however, I decided to hang in there because I tend to like challenges, even if at first I have no idea how to conquer them. When I then look at what some of the people are doing for the project, I come to realise that there are solutions, even if the road is a long one. You (Scott) strike me as a very innovative person, and not only because the problems you and I are looking at tend to overlap to a large degree. I strongly respect you for your work, and Canonical certainly deserves a tip of the hat for providing you with the environment to do so. Sometimes, I even envy you a little, simply because I haven't been able to get down to coding solutions as much as I would have liked to and you've beaten me to the punch on things like HCT or upstart -- even though my work in that area has been mostly vapourware, so there was no real punch to which you've beaten me... I think you'll know what I mean. Yet, scanning some of your older blog posts, I got the impression that you weren't always happy with the way you have to do things at Canonical. And still, you're enthusiasm for working on your projects is astounding; it wasn't hard to come to that conclusion just a week ago, even though we've only talked briefly in Cambridge. Have you asked yourself why that is? I'll go out on a limb and postulate it's because of your innovativeness, because of your urge to push technology further, to implement cool things, and to break free of the cruft that comes with 13 years of Debian and several decades of standards la POSIX and SysV. Debian is too conservative for you, and all the cruft weighs heavy. Ubuntu, on the other handy, is "fluffy" and not afraid to forge ahead, and you've been an active part of it from day one. As much as I hate to see you "with them" rather than with us, I think you've found your place. And so have I. I'm less about coding than I am about integration, and there's work to do. Debian is a massive project with an amazing track record of achievements to look at. And it has problems. Well, great! Let's attack them. Never give up. Another reason why I've stayed with Debian is because there are people who think alike. Three years ago, I would have been able to give you a long bullet lists of hopeless problems in Debian. If you ask me today, I would have problems arguing their hopelessness, for I've seen plenty of developers taking it up with these problems, and in the meritocratic way. Our release team is doing a fantastic job and I've never felt so positive about the promise we made with the next release. People like J rg, Zobel, Rapha l, the two Alex, Meike, Christoph, and the many others I'll leave out only in the interest of brevity (the list is longer and doesn't only span Germany and France) are doing great work, and that is truly motivating. And I ought to mention explicitly our leader, Anthony, who's been doing an excellent job so far. I hope he can keep it up. Also, take a look at our IRC channels. I would have to be lying if I'd say nothing has changed. And the same applies to mailing lists. We still have a reputation to deal with, but if you stop listening to what people say and actually take a look, I think we've come a long way. I'd even say it's become more fun to work on Debian again! I think we owe a lot of that to Debian Women. I am definitely proud to be a member of this community (with which I mean Debian as a whole, not just Debian Women). I think I could continue this blog post endlessly. Let's not. You (Scott) may not be a fellow DD any longer, but you remain a fellow D, and I hope we'll continue to let our cooperation prosper. Now if only you had told me that "getting upstart installable required changes to twelve different packages, including sysvinit itself" when you approached me with what sounded like a simple sponsorship request... I've started to have a go at the "herculian effort", step by step. Seems like an interesting experiment. NP: Eels / Daisies of the Galaxy (it's really hard to find a better band for a grey Sunday morning) Update: Maybe our reputation isn't all that bad, or Slashdot posts suddenly became all useful. A lot of insightful and interesting posts in the first batch of comments...

Matthew Palmer: Music To Hack To -- The Belated Summary

Back in the embarrassingly early part of this year, I wrote a blog entry on music that I liked to listen to whilst cutting code. I solicited feedback, and promised a followup. Technically, I didn't say when I'd be posting a summary, so I don't feel quite so bad about leaving it for 9 months before posting this followup. Firstly, Matthew Davidson gave a lengthy treatise on The Fall, whom I'd never heard of before, and actually haven't gotten around to listening to yet, either (shaaaaame!). It certainly must do the trick for him, though, because he says:
I try to avoid programming wherever possible -- I know how it's done, and really appreciate it when it's done well, but I generally find doing it as much fun as a trip to the dentist. However, put a bit of the Fall on, and I find myself settling into a pretty productive groove without much trouble.
Next up, Decklin Foster pointed me to where I could do my own research -- the Debian Developers group on last.fm. Although I've glanced at last.fm now and then, I've never really gotten into it much. I suppose I should harness the hive mind and find more music similar to that I already like -- you can only listen to your old favourites so many times in a row before they start to wear out. Apparently, my tastes in coding tunes isn't unique -- Roger Barnes shares my preference for the quick-paced abstract:
When I'm coding though, I prefer something fast and electronic. I think this is for two reasons, one is the rhythm tends to get my mind going, and the lack of vocals means that there are no words disrupting my thoughts.
As does François Beausoleil, who says:
I have the same need as you for loud, fast and driving music. Personally, I've been listening to Born to be alive, the first Matrix's theme song, Confusion from New Order of the Blade soundtrack.
Since the original Music To Hack To post, I've been listening primarily to the Chillits 2005 sets whilst coding. In the words of Boing Boing (where I originally found out about Chillits), "Every fall in Northern California, the Chillits music festival brings together a stunning line-up of DJs who spin mesmerizing sets of ambient and downtempo music under the sun and stars." The key word there is "ambient"; I'm not looking for something to listen to so much as I want backdrop to my other activities. The collection of laid-back and thumping tunes keeps a nice work/relax rhythm going while I'm coding. There are some immensely funny bits in some of the mixes, too, like the (hopefully) mock ad for speed ("The little blue diet pill you don't have to be overweight to need!"). Sometimes the tracks go into some area that bugs the shit out of me, which is when I exercise the skip feature of my music player, but most of it is pretty good at blocking out the world and letting you concentrate on the code at hand.

30 August 2006

Martin F. Krafft: Using LVM snapshots for filesystem recovery

This morning, I found myself in Gunnar's position and was looking at an empty /home directory because of the following mount failure:
piper:~# mount /dev/mapper/vg0-home
mount: Unknown error 990
Starting XFS recovery on filesystem: dm-0 (logdev: internal)
Filesystem "dm-0": xfs_inode_recover: Bad inode magic number, dino ptr =
  0xffff810028a6bd00, dino bp = 0xffff81002851d140, ino = 33629
Filesystem "dm-0": XFS internal error xlog_recover_do_inode_trans(1) at
  line 2352 of file fs/xfs/xfs_log_recover.c.  Caller 0xffffffff88307729
I am used to XFS giving me hard times, but this time at least I didn't have much to worry as it happened at home, I have plenty other machines I can use instead, and all data was backed up. Since this is on a Debian unstable machine, I had the latest xfs_repair available, and told it to do its thing, but it refused:
piper:~# xfs_repair /dev/mapper/vg0-home
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed.  Mount the filesystem to replay the log, and unmount it before
re-running xfs_repair.  If you are unable to mount the filesystem, then use
the -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.
Great. Catch-22. I decided to have a go at fixing it, but as much as I pretended to grok xfs_db, I did not manage to get the filesystem into a consistent state. I thus fired off an email to the mailing list (which has not arrived there 4 hours later) and started pv to dump the raw data to another machine for later use or debugging. Watching the progress meter of pv from time to time, it occured to me that my /home is in fact on LVM. I put it on LVM way back when LVM was new and cool and I wanted to gather experience with it. I've never actually done anything with it, but today it saved my little bits of remaining sanity. Why? Because LVM can take snapshots of volumes. It took me a while to put the pieces together, but in the end, a snapshot would enable me at least to run a test-round of xfs_repair -L and assess the damage, and if it wasn't all that bad, I could just run the repair process on the actual volume again. With the encouragement and knowledge of Christian Aichinger and Daniel J. Priem on IRC, I hence proceeded to give it a try. First I had to extend the volume group to make room for the snapshot data, and since I had no disks handy, I just used a loop device based on a sparse file:
dd if=/dev/zero of=/srv/loop bs=1 count=1 seek=5368709120
losetup -f /srv/loop
pvcreate /dev/loop0
vgextend vg0 /dev/loop0
lvcreate -s -n home-snapshot /dev/vg0/home -L 5G
(Thanks to Ian Nicholls for spotting the error: I was using pvcreate instead of that last lvcreate previously). Now /dev/vg0/home-snapshot was a copy-on-write snapshot of the original volume, and I could do whatever I wanted with it, as long as I did not exceed the 5G size allotted for the copied data blocks that I modified. Using mount and xfs_repair, I could verify that the problem also shows up with the snapshot. Thus, I ran xfs_repair -L on the snapshot and finally was able to mount the snapshot to inspect the /lost+found directory. Fortunately, it wasn't all that full, nor was there anything important in there, so I sighed, removed the snapshot (lvremove) and unleashed xfs_repair -L on the original volume, which is now again mounted under /home. Finally, remove the loop device from the volume group (vgreduce). If you are like me and forgot to do so before rebooting and now find your LVM volumes not starting anymore, look into the --removemissing option. I like this method. I knew the filesystem was corrupted, but I did not know to what extend. Had corruption been worse, I could have waited for the XFS guys to help me out. But seeing the low damage, I was able to decide to just purge the journal and accept the damage. If this had happened on a more important machine (i.e. without recent backups), I would have proceeded a bit differently: once the snapshot was mounted, I'd have run xfs_dump on it to save the data. I would also have used more space for the snapshot and not removed it until the parent volume was repaired and mounted. It's unlikely that xfs_repair will produce different results when run on a volume and its snapshot, but better be safe than sorry. All this said, I just want to point out that the above method is filesystem independent and hence would work for any filesystem out there. I've never been a big fan of LVM, especially without RAID to build on (striping across physical media multiplies your chance of data loss), but this method is a good reason for using LVM regardless: use a volume group instead of your physical disk, and logical volumes instead of partitions, but don't span disks (unless you have to). Then, if stuff goes bad, you can hook in another disk, extend the volume group with it, and work on snapshots.

Ross Burton: I Waited

I waited. I prayed. I begged. I cried. Eventually, they listened. NP: Under The Pink, Tori Amos

Felipe Augusto van de Wiel: 29 Aug 2006

To infinity, and beyond! -- Buzz

[Debian]
I should write about this a few days ago but didn't have the time. Sorry. Well, these are great news (at least for me), a few days ago I sent the second part of my T&S and already got approved. My AM (Hi Cl ment) also pointed out a few changes that were needed in my packages that are already fixed and uploaded; Cl ment already sent the report and considering that, I'm now waiting for the Front Desk to review my application (and after that, DAMnation. I'm happy! I also finish the adoption of xless and levee. I still have to finish the MyPasswordSafe adoption, but before I have to fix a RC bug related to the use of sudo as the gain-root command (instead of fakeroot) in the alpha buildd. Thanks neuro that already give me a few tips on how to solve it.

Following the random ideas season:
  • Next week, Extremadura will host the i18n Debian people, the idea is to discuss lots of ideas, specially i18n Infrastructure, but not only discuss, also code a lot!
  • I do not like the idea to have sourceless firmware in main and I really like Don Armstrong proposal on that subject.
  • I still have to finish the desproxy, tuxfrw and thumbs packaging work to get it in time for etch.
  • I'm wondering how a tally sheet with more than 10 choices looks like


[Anti-SPAM season]
Like a lot of people already did, in the last two weeks I've been fighting SPAM in my company and also on the server of Free Software Projects that I'm part of the System Administration Team. In most cases I'm using postfix with clamscan and postgrey, but I will switch to amavisd-new to use SpamAssassin (with razor/pyzor). But I'm still studying the various alternatives in a Debian Sarge system.


Hey silva, thank you! (Journeyer certification).

28 August 2006

Matthew Garrett

I resigned from Debian today.

It wasn't actually any one thing. But over the past few weeks (months? Years?) it's become clear to me that Debian doesn't really seem to know who or what it's for. Arguments erupt over whether something is a deeply held principle or an accident of phrasing on the website; whether we should release more often or less often; whether free software is more important than our users having functional hardware. And, depressingly, these debates generally seem to turn into pedantic point scoring and insults and yes, I'm probably as guilty as many others in this respect. But it's got to the point where social interaction with Debian-the-distribution makes me want to stab people, even though I've just spent a lovely weekend with Debian-the-people. Perhaps worse, I occasionally find mails I've sent that make me want to stab me.

So it's got to the point where I find myself reading things written by people I respect, and deciding that I'd be generally happier if I didn't read them. I could just unsubscribe from all the mailing lists, except that part of the fun of being involved in Debian was being part of a community. I don't want my only form of communication with the rest of the project to be limited to bug reports, especially when I find the development IRC channels as bad as the mailing lists.

It's interesting to compare Debian to Ubuntu in this respect, though the different ages of the projects make it difficult to draw any firm conclusions. The fairly rigidly enforced Ubuntu code of conduct probably helps a great deal in ensuring that discussions mostly remain technical. The distinction between core-dev and MOTU is a pretty explicit acknowledgment that not all developers are equal and some are possibly more worth listening to than others. And, at the end of the day, having one person who can make arbitrary decisions and whose word is effectively law probably helps in many cases.

There's a balance to be struck between organisational freedom and organisational effectiveness. I'm not convinced that Debian has that balance right as far as forming a working community goes. In that respect, Ubuntu's an experiment - does a more rigid structure and a greater willingness to enforce certain social standards result in a more workable community? In a few years, we ought to have an answer. I look forward to finding out.

25 August 2006

Erich Schubert: Fun with google.

Talking about logic, and where people fail at understanding it... Fun with stupid Google queries - Is there any page about Google and not Google? Wonder how big the Google index is? Google OR -Google. (I'm aware that the count is imprecise, it's just funny that this query is actually processed.) Now let's look at MSN. google 64741016
-google 4669973284
okay. that should make "4734714300"... google OR -google 5156927770 - oops, magic new hits.
-google OR google 68735504
So where are the 5 billion pages that have "google or -google" but not "-google or google"? And how about MSN OR -MSN - there can be only one. askdjfhsakdf OR -askdjfhsakdf - top result for this garbage word: Google! askdjfhsakdf OR -askdjfhsakdf Google results are consistent. I wonder what their sorting is in this case... random? hash function? age? Remember Googlestossen? Like Googlewhack, but with scoring. There must be only one hit with both words; score = # of hits with word 1 * # of hits with word 2

Julien Danjou: DeFuBu contest #2

Bug Welcome to this 2nd issue of the DeFuBu contest, the monthly championship of the funniest bug reported to the Debian BTS. The challengers How the vote has been done Five Debian related people voted for these bugs: Roland Mas, Alexis Sukrieh, Cl ment Stenac, kolter and Yves-Alexis Perez. Full ranking Bugs Challengers The winners Notes To participate, simply drop me an email with a bug number. About DeFuBu

23 August 2006

Simon Richter: Xen and LVM

Another thing that I want to do with Xen is scan systems for rootkits. For that, I'd like to create a snapshot, mount that and scan. However, the snapshot usually has dirty filesystems whose journals will be played back when mounting, I wonder if that could be used to escape detection; also, LVM will make the snapshot persistent, and refuse to bring up the LV in question after a reboot unless dm-snapshot is loaded, which it usually isn't. So I'd like to have temporary snapshots that get deleted after a reboot or when inactive for some time, so a bug in my scripts does not leave old snapshots around, or, in the worst case, stops my system from booting because my initrd does not have dm-snapshot. Also, because of potential bugs, I'd prefer that my scripts either don't have permission to delete snapshots they haven't created, or, if that's not possible, at least not have any mention of lvremove at all. The precedent for this would be temporary tables in SQL, so perhaps it might be an idea to introduce a session concept to LVM.

21 August 2006

Gustavo Franco: Meet our GNOME Debian Desktop

Being improved as we speak for Etch, but needing testers...<br /><br />Quick howto:<br /><span style="font-weight: bold;">aptitude install gnome-desktop</span> <span style="font-weight: bold;">desktop</span><br />or<br /><span style="font-weight: bold;">tasksel install gnome-desktop<br /><br /></span>You can download the <a href="http://www.us.debian.org/devel/debian-installer/">testing weekly images</a> and select "Desktop environment" after base installation, if you want to help testing this from scratch.<br /><br />Some known issues are:<br />- It could boot faster;<br />- There's no visual consistency yet (login screen, splash and wallpaper);<br />- It doesn't fit in the first CD (it should, really).<br /><span style="font-weight: bold;"><br /></span>I'm helping with the current known issues and probably some more useful packages will be added soon in the desktop. By the way thanks to joeyh, kov and joss.<br /><br />Suggestions and general feedback to my email are welcome. That would be good if the people that i've contacted and once worked for a better Debian desktop start replying my emails.<br /><br />Closing, i don't want to work for extend the supermarket catalog. I prefer to focus on some fridges and if it isn't enough for all the users, they're free to install something more from the next fridge. Hint: Pick your fridge in Debian and work there, avoid this supermarket bloat!

Gunnar Wolf: Caps Lock becomes useful again! / Is this a farewell, my dear Window Maker?

I have always hated and despised the Caps Lock key. Not only it is useless to anybody who works writing code, sysadmining, or plainly writing real text, but its mere existence has degraded the work quality of millions of people's work. Suddenly, IT GETS NORMAL TO WRITE LIKE THIS - It's just a magic spell that allows you to get rid of those old-fashioned rules about the language, about where to write in which case. Even worse, in Spanish some people tend to think that uppercase letters do not carry accents, so they produce text that is, um... Lets say it is readable, but that's often an overstatement.
[switch context]
I have been a happy and loyal user of Window Maker since 1997, when Juan Pablo Romero pointed me to it (BTW, I found Juan Pablo's homepage after searching for some links to post here and finding his, very old and probably unmaintained, WindowMaker page), back in the time where one of my favorite webpages was Window managers for X - clear sign that I didn't really like anything I had been using. And with WMaker, I was happy for (WOW) almost ten years. I still am. But after last week's ugly XFS corruption episode, I decided to follow the trend among some Debian people, and installed ion3.
My impression so far, with two and a half days of usage? I LOVE IT. It is the only WM I've met that really comes from a different point of view, stating that what most so-called modern WMs offer is just counter-productive. It just stays out of your way, not providing any visual distractions, and limiting to providing screens and frames to organize your windows. It acknowledges that its target audience (in my life I'd never set up ion3 for my mother ;-) ) usually hates using the mouse if unneeded, and that there is little point in wasting screen real estate with docks and desktops with functionality. It just sits there waiting for you to command its working via the keyboard - of course, the mouse is also an option, but not the natural one.
Anyway, I won't discuss the beauty of ion3 here - mostly because I have only scratched the surface so far. I have loved it, let me tell you. A little more on this in a couple of lines... Just for my Spanish-prefering friends, I found this piece of text explaining what ion3 is about: Ion3: Rompiendo con los entornos gr ficos convencionales
[merge contexts]
My only grudge is that in its default configuration, ion3 becomes the 0wn3r of Meta. What is Meta? What some people call "the Alt key". That key that is not Ctrl, but has become a controlling key. And I'm a heavy Meta user - Remember that my favorite way of interacting with the computer is Emacs. Yup, the nice OS without a decent editor, nicknamed after "Escape-Meta-Alt-Ctrl-Shift". Rob me of my Meta, and the gained productivity might as well go down the drain.
Here comes the link to my first paragraph: Ion3 is very configurable. No, it's not configurable - it's programmable. The configuration files are pieces of Lua, a full programming language. Of course, this means you can do mostly anything with it... But you have to do it in the end. Editing ion3's behaviour is not just clicking on selectors - You can take a dive to get the feeling. It looks quite easy, but I yet have to get around it and start poking the configuration.
After mourning my lack of Meta, I came across a very useful post in Gregor Hermann's blog. Gregor, I owe you a beer or three - You not only gave me back my productivity, you also gave use to the most despised key in my keyboard. Two lines into XModmap, one line into a couple of Ion3 files (I have yet to be sure it is needed in all of them), and I now have a perfectly useful CapsLock key, which is the key I will manage my WM with. It just rocks! It stands in nobody's way, and I am sure I'll very soon grow used to it.

20 August 2006

Ross Burton: Come And Get It!

In an attempt to clear out some of the stuff I never use, I've put a Thinkpad charger and a Lowepro camera bag on eBay.
IBM ThinkPad charger. This will charge most of the ThinkPads in existence, I don't know when it was introduced but I got it for my ThinkPad X22 (bought in 2001), and has since been used with an X32, a T40p, and a T43. Basically if you have a ThinkPad and the charger is not a brand new 20V Lenovo model (?60 range only as far as I know), this is what you want. This retailed at £50.
Lowepro Nova 3 AW camera bag. Good condition, excellent quality camera bag from Lowepro, capable of storing an SLR, 3-4 lenses, flash, filters, charger, and more. The bag is is dark grey and black. I've been using it to hold a Canon EOS-300D, 18-55mm, 50mm, 28-135mm, a Speedlite 380EX, cables and a number of filters. This retailed at £45. NP: Boys for Pele, Tori Amos

Next.

Previous.