Search Results: "duck"

20 October 2006

Martin F. Krafft: Freeing the primary IP address

I have a machine in Singapore and have been asked to switch it to another IP address (don't ask...). Due to numerous reasons, I do not want to reboot the machine, so I am faced with the task of switching the primary IP address of a remote host via SSH. Fun. In the following remote identifies the remote machine, local the workstation from where the SSH session originates. 1.2.3.150 is the old IP that I have to free, and 1.2.3.200 is the new IP. 1.2.3.129 is the router IP and since it's a /25 network, 1.2.3.128 is the network address. I'll be using the ip command from the iproute package exclusively. ifconfig must DIE! The first step of this endeavour is making sure that traffic to your new IP is not going to be caught by the packet filter. This is simple enough:
remote# ip addr add 1.2.3.200/25 dev eth0
local# nc 1.2.3.200 22
SSH-2.0-OpenSSH_4.3p2 Debian-3~bpo.1
We have thus added a secondary address and verified that it can communicate, at least receive packets on port 22. However, since it is a secondary address, it depends on the primary address and will be removed if you remove the primary from the interface. We thus need to get tricky:
remote# ip addr del 1.2.3.200/25 dev eth0
remote# ip addr add 1.2.3.200/32 dev eth0
Note how we're adding the address with a /32 netmask instead. This makes it independent of the current primary address. Now the fun begins. Close the SSH session and log in to the new IP:
remote# exit
local# ssh root@1.2.3.200
And remove the primary IP; yes, you heard me:
remote# ip route
1.2.3.128/25 dev eth0  proto kernel  scope link  src 1.2.3.150
default via 1.2.3.129 dev eth0
remote# ip addr del 1.2.3.150/25 dev eth0
remote# ip route
default via 1.2.3.129 dev eth0
Gotta love Linux: it saved the default route because it was still reachable from the 1.2.3.200/32 address, and only removed the link-local route. We could stop right here for there is no real reason why this machine should have a link-local route or even know about the network to which it is attached; but we won't... instead, we'll add the new address again (a second time), now with a proper netmask:
remote# ip addr add 1.2.3.200/25 brd 1.2.3.255 dev eth0
remote# ip addr del 1.2.3.200/32 dev eth0
remote# ip route
1.2.3.128/25 dev eth0  proto kernel  scope link  src 1.2.3.200
default via 1.2.3.129 dev eth0
After modifying /etc/network/interfaces, the deed is done. The next time I do this I might consider a safety net of the form:
remote# echo 'ifdown --force eth0; ifup eth0'   at now + 10 minutes
But that would only have been half as fun. Of course it goes without saying that the above comes without warranties, if you try it out, you do so at your own risk. :) NP: Neurosis / The Eye of every Storm Update: It's been proposed to just run:
remote# ip addr del 1.2.3.150/25 dev eth0; \
  ip addr add 1.2.3.200/25 dev eth0; \
  ip route add default via 1.2.3.128
This may well work, especially if run within a screen session (I've had times when the shell did not execute subsequent commands after being cut off from the controlling tty). However, this method does not guard against typoes. Or did you spot the typo in the above set of commands? The method I provided above seems resilient to typos as no command ever affects the current connection.

Martin F. Krafft: Shopping for computer parts in Z rich

Here in Z rich, I miss Munich for numerous reasons; one of those is that I can't just go to nb Computer for all my computer part needs. At that store, you get top quality stuff with excellent advice for competitive prices. There is no comparable store in Z rich, only "discounters" without any chance of receiving advice or being able to look at/touch/try things before you buy them. While no sensible mind would purchase e.g. a harddrive at Media Markt, Interdiscount, or Rediffusion (no links, they're not worth it), digitec looks more promising. However, I am no longer their customer. Yesterday, a drive I had bought from them in February failed, so I tried to get information on the warranty exchange procedure. I have since sent 3 mails, filled out the contact form, and tried 14 times to call their (expensive) hotline, where I'd usually be kicked out after 10 minutes or so. At their branch, they told me I had to get in touch with customer service first. This is not acceptable. Screw you, Digitec. Another store, PCP.ch is a totally different story. Unlike Digitec, I cannot just walk to the store and pick up stuff I preordered online, I'd have to drive about 40 minutes. However, their product line is very attractive, the prices seem alright, and I've never had a problem getting in touch with them. The current tendency in central Europe is "cheaper cheaper", the commercials promoting stinginess all over the place. Obviously, as the margin decreases for the shops who are trying to keep up with the downward trend, they cannot engage in any fair dealing or obligingness any longer. What people in Z rich do not seem to realise and it surprises me, especially in Z rich is that some folks, including myself, would be all too happy to pay a little more if in return we'd get reliable service. I am not even going to ask for a shop like nb Computer, who manages to give reliable service and keeps the prices down at the same time. If your reputation is widely known to be exactly that, you can also earn a living. NP: Emiliana Torrini / Love in the Time of Science Update: Adrian replied with two pointers to stores I'll have to check out. Thanks!

Martin F. Krafft: Loop-mounting partitions from a disk image

Every now and then, I have a disk image (as produced by cat, pv, or dd) and I need to access separate partitions. Unfortunately, the patch allowing partitions on loop devices to be accessed via their own device nodes does not appear to be in the latest (Debian) 2.6.18 kernels the loop module does not have a max_part parameter, according to modinfo. So this time I sat down to come up with a recipe on how to access the partitions, and after some arithmetic and much swearing at disk manufacturers, and especially the designers of the msdos partition table type, I think I have found the solution, and the urge to document it for posterity. It's all about the -o parameter to losetup, which specifies how many bytes into the disk a given partition starts. Getting this number isn't straight forward. Well, it is, if you know how, which is why I am writing this. Let's take a look at a partition table, with sectors as units:
$ /sbin/fdisk -lu disk.img
You must set cylinders.
You can do this from the extra functions menu.
Disk disk.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
      Device Boot      Start         End      Blocks   Id  System
disk.imgp1   *          63       96389       48163+  83  Linux
disk.imgp2           96390     2056319      979965   82  Linux swap / Solaris
disk.imgp3         2056320    78140159    38041920    5  Extended
disk.imgp5         2056383     3052349      497983+  83  Linux
disk.imgp6         3052413    10859939     3903763+  83  Linux
disk.imgp7        10860003    68372639    28756318+  83  Linux
disk.imgp8        68372703    76180229     3903763+  83  Linux
disk.imgp9        76180293    78140159      979933+  83  Linux
The first few lines is fdisk complaining not being able to extract the number of cylinders, since it has to operate on a file which does not provide an ioctl interface. The first important data are the units, which are stated to be 512 bytes per sector. We take note of this value as the factor for use in the next operation. Let's say we want to access the 7th partition, which is 10860003 sectors into the disk, according to the fdisk output. We know that each sector is 512 bytes, so:
10860003 * 512 = 5560321536
Passing this number to losetup produces the desired result:
# losetup /dev/loop0 disk.img -o $((10860003 * 512))
# file -s /dev/loop0
/dev/loop0: Linux rev 1.0 ext3 filesystem data
# mount /dev/loop0 /mnt
[...]
# umount /mnt
# losetup -d /dev/loop0
If the partition really holds a normal filesystem, you can also let mount set up the loop device, and manage it automatically:
# mount -o loop,offset=$((10860003 * 512)) disk.img /mnt
[...]
# umount /mnt
And since there's aparently no means to automate the whole process for an entire disk, I hacked up plosetup. Enjoy:
# plosetup lapse.hda .
I: partition 1 of lapse.hda will become ./lapse.hda_p1 (/dev/loop0)...
I: plosetup: skipping partition 2 of type 82...
I: plosetup: skipping partition 3 of type 5...
I: partition 5 of lapse.hda will become ./lapse.hda_p5 (/dev/loop1)...
I: partition 6 of lapse.hda will become ./lapse.hda_p6 (/dev/loop2)...
I: partition 7 of lapse.hda will become ./lapse.hda_p7 (/dev/loop3)...
I: partition 8 of lapse.hda will become ./lapse.hda_p8 (/dev/loop4)...
I: partition 9 of lapse.hda will become ./lapse.hda_p9 (/dev/loop5)...
# ls -l
total 0
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p1 -> /dev/loop0
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p5 -> /dev/loop1
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p6 -> /dev/loop2
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p7 -> /dev/loop3
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p8 -> /dev/loop4
lrwxrwxrwx 1 root root 10 2006-10-20 13:25 lapse.hda_p9 -> /dev/loop5
# plosetup -c .
# ls -l
total 0
(this post is dedicated to Penny for no other reason than the tunes I am listening to right now) NP: Fly My Pretties / The Return of Fly My Pretties Update: Be careful about the $((...)) style arithmetic. dash manages to overflow at 32bit. zsh and bash seem to get it right. If in doubt, use perl or a calculator.

18 October 2006

Martin F. Krafft: HP LaserJet 3052 anyone?

I am about to buy a HP LaserJet 3052 for my home office. Unfortunately, I have not been able to find any reviews of it, and while the feature set looks quite convincing, I'd feel much better if I'd know people are happy with it... Are you? Are you not? Please drop me a line if you own this device. NP: No-man / Dry Cleaning Ray

Martin F. Krafft: Coma Divine

While discussing Porcupine Tree's live album Coma Divine, my friend Hanspeter remarked: "the album is almost too perfect to be recorded live." It is true that the album is not a recording of a single live show, but rather a mix across three evenings of concert in Rome. This is not surprising, often live records are remastered in the studio, and audience noise is added or removed ad libidum. However, Steven Wilson, Porcupine Tree lead and producer of the album, has done a truly amazing job on this recording. Almost too amazing, according to Hanspeter. Which I countered with: "it's Steven Wilson, after all..." Highly recommended. NP: Porcupine Tree / Coma Divine (Disc 2)

17 October 2006

Martin F. Krafft: Digging the iAudio

A little while ago, I finally gave in and bought myself a music player. Now I find it hard to imagine how I coped all these years without one -- I did not have a music player since my MiniDisk player from about seven or eight years ago. I bought the iAudio X5L with 30Gb of space as part of a fall special sale, and even though it's still a bit on the expensive side, I am glad I did go with the X5L as opposed to the X5 or models by other manufacturers. Here's my analysis, which isn't all positive:
  • The iAudio players can play more formats than any other player I've seen, including, of course, Ogg Vorbis and Flac.
  • The casing is sturdy and smooth; the player is a little heavy but not too heavy. The display is gorgeous, although I would not watch videos on it even though I could. All in all, it feels and looks great.
  • The software seems archaic at first, but after a little use it's quite enjoyable and intuitive to use. It does not compare to the scroll wheel of the iPod when scrolling large directories, but it does quite alright. I really appreciate being able to browse while listening. Also, the display contains a lot more information than on any other player I've seen.
  • One quickly gets used to the joystick; however, considering that the right direction is the one used the most, it starts to go loose after only a bit of usage. This has not really been an issue so far, though.
  • The X5L has only 30Gb of storage, as opposed to the 60Gb you can get with the X5. However, the L in the product title refers to long-life, and the battery in the X5L lasts about twice as long as the one in the X5. I just took the device for a spin in the alps and after two 5 hour train rides of continuous playing, and another 6 hours of playing at the cottage, the battery was still around 40% full. If I ever run out of space, I could exchange the internal 1.8" harddrive for a bigger one.
  • I can use the device to record from microphone or line-in (using an adapter) directly to MP3, and the microphone's quality is quite fair. This is great!
  • The sound quality is good, but all the sound enhancers, like BBE and Mach3Bass are useless; better leave them off.
  • When connected to a computer, the harddrive appears to the machine as a regular USB storage device, so no software is required to maintain the data on it.
  • I am a little annoyed by the fact that the USB connector on the device can only be used to connect cameras and the like to store data on the X5L's harddrive. In order to dump data onto the device, you have to connect a little dongle and then attach the USB cable there.
  • It does not appear to be charging while connected via USB. I am not sure about this yet though, since the configuration menu offers an option to enable and disable charging via USB.
  • I've been told that firmware upgrades aren't rare and that they're easy to apply.
  • It comes with two years of warranty (as opposed to the default one year in Switzerland).
Altogether, the player isn't perfect, but it does what it should (and more) quite well. I can warmly recommend it. It comes in at a slightly higher price than the iPod, but quite frankly I am happy to support the manufacturer Cowon for its product line and philosophy of supporting open formats and caring for the customer. NP: Porcupine Tree / Tarquin's Seaweed Farm (Side B)

15 October 2006

Julien Danjou: Total recall (2006)

Directed by jd & adn Genre: Action / Adventure / Sci-Fi / Thriller / Horror / Drama / Humor
Runtime: several weeks
Country: A lot
Language: English
Color: Color (Technicolor, QT, GTK and ncurses) Tagline: They stole their project, now they want it back. Plot Outline: In September 2006, a group of developpers from the Debian planet rise against the corruption leading the government.
User Comments: Great action, great suspense, great cultural satire, and a great mind-bender. Awards: Waiting for nomination. Quotes: Cast overview
Anthony Towns (aj), as the Debian Project Leader Denis Barbier (bouz), as The Recaller
Aurelien Jarno (aurel32), as one Seconder Clint Adams (schizo), as one Seconder
MJ Ray (mjr), as one Seconder Pierre Habouzit (madcoder), as one Seconder
Martin Schulze (joey), as one Seconder Marc Dequ nes (duck), as one Seconder

12 October 2006

Martin F. Krafft: In love with Porcupine Tree

Somewhere around the mid-nineties, I was listening to Pink Floyd around the clock. Later, I slowly approached (and stuck with) David Bowie, to whom I dedicated my Honours thesis. Genesis, and specifically Peter Gabriel, followed. Right around the time I released my book (which is dedicated to Peter Gabriel), I lost my bearing and strayed about in the sea of independent and/or progressive post-rock, encountering bands like Godspeed You Black Emperor, Mono, Explosions in the Sky, and Mogwai. I don't think I'll grow old of those anytime soon. Lately, however, I've gotten hooked to more modern progressive rock, and in particular Porcupine Tree. And when I say hooked, I mean hooked: I've tried various times to dig the tunes by no-man, a project by the Porcupine Tree singer Steve Wilson which is more ambient in mood, and various excursions into the world of the German Solar Project (more experimental) or Porcupine Tree's sibling project Psychomuzak (more psychedelic). But none come close, I have been listening to Porcupine Tree pretty much consistently for the past 6 months. And I am still in love with what these 4-5 guys produce, especially the four albums Deadwing, In Absentia, Stupid Dream, and The Sky Moves Sideways. Being a drummer myself (who hasn't played seriously in several years), it is hardly surprising that Gavin Harrison is my favourite, some of the licks he plays send shivers down my spine, and he managed to get me on track thinking about how to pick up percussion again. But I could not imagine the band without Steve's voice and lyrics and guitar solos, Colin Edwin's most enjoyable bass guitar theatre, or Richard Barbieri's innovative synthesiser work. It's pretty cool how 30 years after the term progressive rock was coined, these guys still manage to ride the tide. If you're in San Francisco, they're coming to the Fillmore on Friday! I've seen two of their shows and was simply ecstatic during and after. And in November, they're coming to Japan. If you know and like Mono, you should just go! I'll definitely be on their next nearby concert! Interestingly, next to my development of taste of rock music, I've always been a major fan of electronica. I've found, however, that electronic music is far more short-lived, meaning that you grow old of it way faster. And now I wonder what's next. I feel I may soon return to King Crimson, even though their music is not as complete as Porcupine Tree. Don't ask me to define what I mean with that. Update: if you're into jogging, "Lazarus" off the Deadwing album is a really good energiser. Richard plays some very sweet arpeggios on the (synthesised) piano, and about a minute into the piece, Gavin and Colin deliver a truly groovy flow; I sometimes feel as if my legs move without my doing (haha, I just typo'ed "doping") when listening to this track. I guess this applies to much of their music. And if you're into drums, listen up at 3:18 minutes into the song. It's a very convincing fill on the drums. Gavin has better, but this one somehow strikes me as a damn good combination of innovation, simplicity, and feeling. NP: Porcupine Tree / In Absentia (Bonus Disc)

10 October 2006

Martin F. Krafft: IBM/Lenovo on-site support

I am less enthusiastic about the number of hardware issues I've had with my Thinkpad X40 (3 harddrive replacements, 1 keyboard replacement) than I am with their technical support. Starting at last weekend's bug squashing party, my X40 would randomly lock up, probably in response to some interrupts (network, input devices, ...). At first I thought it was only the 2.6.18 kernel acting up, but now I am seeing crashes with 2.6.17 as well. Thus, I called the support hotline to make use of my 24-hour on-site support contract. Abridged, this is how the call went:
I: It randomly freezes. The harddrive seems fine, and memtest86+ also ran fine. He: Please run the diagnostics tool. I: I don't have that installed. [I did not mention that I do not run Windows, but mumbled something about it being a university installation and that I cannot install the tool] He: Hm, okay. So it's not the hard drive and it's not memory, so there's not much left. I'll have a local technician get in touch with you tomorrow.
Not more than 10 minutes later I had arranged for a replacement. And this was not the first time I came out of an IBM/Lenovo support call with a good feeling. Thanks! NP: Porcupine Tree / XMII

9 October 2006

Martin F. Krafft: Report from the Zurich BSPs

Yesterday, the second of Zurich's two bug squashing parties came to an end. As organiser I feel as if both events have been very successful. On 9 September, between 5 and 8 people hacked on Debian all day, and we managed to fix 17 release-critical bugs without opening any new ones. This past weekend, we had about the same number of people working between the early morning hours (9:00 o'clock) and dinner time, and fixed 27 release-critical bugs, alongside a slew of normal bugs on the way. Unfortunately, we encountered three new release-critical bugs. In the end, we decreased Debian's release-critical bug count by 41! One of the attendees, Hanspeter Kunz, worked on the BSP beginner's HOWTO while he was learning about the art of bug squashing. The document is still in the works, please feel free to contribute. I would like to thank all attendees for their time and work, and I hope my organisation made the events pleasant for all. I also would like to thank our sponsors: /ch/open and Google for covering our travel and catering expenses, and the Artificial Intelligence Laboratory for letting us use their space and infrastructure. The organisational effort required from my end was minimal, largely due to my relation to the AILab. This means that it would not be too hard for me to organise another event, but I do not think I'll have the time to do so before the release of Debian "etch". Anyway, if I can somehow excite more sponsors, the Zurich BSPs might turn into a semi-regular event, attracting people from far away, like it did to Debian's second-in-command, Steve McIntyre, who honoured us with his presence. NP: Mono / You Are There

4 October 2006

Martin F. Krafft: My hatred for single-language DVDs

Following a friend's recommendation, I set out to buy Kikujiro non natsu this morning, a movie by Takeshi Kitano, one of my favourite contemporary film directors. I came back empty-handed. The movie is available in countless stores (much to my surprise, actually), but all versions I've seen are German-only. I hate synchronised/translated movies. What I want is the original Japanese movie with English subtitles. I do not want some silly German dork utter words and concepts in a way too distant from anything in the Japanese culture. One of the main arguments for DVDs has always been the ability to provide multiple audio and subtitle tracks, so everyone could watch the movie the way they wanted. Publishing a DVD with a single audio track, which isn't even the original, should be punishable. Seriously, what the heck drives people to commit such a blatant act of ignorance? If the answer to this is licence issues then I really don't want to know more; then our world is even more fucked up with respect to intellectual property and art than I was willing to admit until today. Update: Daniel Baumann tells me that audio and video track are licenced separately ("value creation chain" should really be called "cost creation chain"; value is removed, not added, but the alliteration you get for free), so in the interest of maximising profits, the local film distribution just removes half of the film and provides crap instead. I'd wish that they'd save the money on the synchronisation, spend considerably less on subtitle creation, and just publish the films the way their creators made them. NP: Porcupine Tree / In Absentia

3 October 2006

Martin F. Krafft: Ch-ch-ch-ch-changes

" turn and face the strain" After many years of accumulating computer usage habits, configuration files, scripts, shortcuts, and key combinations, I have reached a point where I'd much rather wipe the slate clean than to go about fixing bits and pieces here and there. This does not sound like the thing to do, but I really would prefer to rethink how I handle computers rather than put time into fixing things. Maybe it's time for me to work on madduck 2.0. I have a lot of computer-usage-related headaches these days. For instance:
  • my zsh configuration has grown beyond me. I have used the same configuration for 7+ years (the CVS history only dates back until 1999, but I did not use CVS from the start) across a total of 113 machines, each with their quirks and problems, and I think it's time to officially state that I've lost control.

  • my mutt configuration is patchy and many parts of it are ugly hacks that have worked in the past, but only because they are built on assumptions about the way I handle mail which may not hold much longer, because...

  • my mail processing is completely annoying:

    egrep -v '^[#[:space:]]*$' ~/.etc/procmail/rc.*   wc -l   tail -1
    8815 total
    
    Since those 8'815 lines in the end still don't do exactly what I want, I really have to rethink the way I do mail. Does anyone know of a way/system/approach to assign tags to email messages using statistic means (like Bayesian filters, or crm114) and how to get mutt to play along?
  • as an almost-first-day user of vim, and one of those "I use vim for everything types", my configuration file collection is massive. I have all these macros and mechanisms in place, which vim can now handle in a much smarter way, but I just have not found the time to migrate, nor would I really know how to start. And the vim documentation, despite all its links and cross references, is hardly very usable for it always assumes you read it cover to cover.

  • I have the feeling that the way I use X (Fluxbox) is suboptimal, I find myself juggling windows too much. I've tried ion3, but could not get it to do the things I want. I guess this is mostly related to things I should be automating, and more consistent use of the 10 workspaces I configured.

Things have to change, and I might have to face the strain. But why am I bringing this up now? Well, some time ago I tried once again to make the switch to Dvorak and my Kinesis keyboard, but I (once again) gave up after only a day. I realise that it'll take me several weeks to undo almost 20 years of QWERTY typing, but apart from a very slow typing rate (which is normal at the start), I found anything not related to authoring longer texts to be everything but ergonomic on this keyboard, and much of that is related to the configuration I have in place, and that it is geared towards a plain, flat QWERTY keyboard. It's mainly the position of the two Ctrl and Alt keys, which I use extensively, and which have four different meanings (from left to right): Ctrl, Meta, ModeSwitch, Mod3 (I use Mod3 to quick-start applications. E.g. Mod3-t gives me a terminal, Mod3-f starts Firefox.). In addition, my Caps-Lock key has served me well as Mod5 for window manipulation ever since I switched to ion3 post-Debconf5. It turns out that I need to use two hands or some non-ergonomic configuration of my digits for almost every operation: reading mail, even if only deleting all mail in a folder and moving on; writing mail; editing with vim; interacting with the shell; window manipulation. For instance:
  • Alt-tab requires me to lift my left hand completely above the keyboard, stretch both fingers, then make sure it finds the home row again.
  • Mod5-c, which I use to close windows, now requires both hands as the 'c' is on the right half with the Dvorak layout.
  • When in mutt, trying to just delete all messages in a folder and moving on can sometimes be a major pain (see the Dvorak layout on Wikipedia if you want to play along): hit 'D', which sometimes just ends up being 'f', which means forward. If unlucky in this way, I'll find myself within vim, having to 'ZZqn', which isn't that bad, but I first had to discover 'ZZ' to replace the awful ':wq' (or 'ZQ' for ':q!'). Switching folders ('c=foldername') isn't nice either, and sending an unsigned email that I don't want stored ('pff^W^W' or 'pff<space><BS>') gives me cramps on Dvorak.
All this in addition to the fact that I am still in the beginning stages of writing my thesis (I have started), makes me conclude that it will be better to further postpone learning Dvorak and adopting to the new keyboard until the thesis is well on its way (and the writing is flowing), because then it'll be much easier for me to rework my configuration one-by-one with the new keyboard in mind, and start learning Dvorak when I'm half-way there and know what I have to type. NP: Leech / Soundtrack to an Individual Emotion Picture Mindmovie

Martin F. Krafft: Ikiwiki and issue tracking

It's been a while, but Joey Hess replied publicly to a discussion we had on IRC, but he only looked at whether issue tracking in a wiki makes sense. Thus I wanted to add my point of view. Three months after I originally started this post. Oh well. The reason I contacted Joey Hess was because I was (and am still) on the look for better tools for my personal information management, and I identified several important aspects I'd want from such a system:
  • An issue tracker, to be used as my own todo list
  • A wiki, or some form of integrating web frontend to make it easy to browse the information and give others granular access to it.
  • A backend store that can be properly synchronised across several machines (so that I can always have an offline copy on my laptop).
  • A command-line interface for manipulation of existing and addition of new contents. I want to use the regular Unix tools for the interaction.
  • A blog engine.
  • Granular permissions, either based on a Netware-style user database with records of content-and-permission tuples per user, or a simple password protection for individual content items.
  • A mail-in interface for new issues, so that I can simply bounce mails by customers to the system and have it assign a ticket number. Given a command-line interface, though, this could be added without much effort.
In terms of integration, I am thinking mostly about WikiWords that get automatically linked to the corresponding wiki pages, if these exist, and across all components; so if I write a blog entry or add a new issue to the tracker, I can easily refer to content on my own wiki (or the issue tracker, or blog) without much typing. I imagine further synergies are possible but have not put much time into thinking about those. The main reason I contacted Joey about this, because his ikiwiki has a backend store capable of synchronisation: it's a wiki engine (which can also be used for blogging), but it's based on the subversion version control system. Together with svk or bzrsvn, it definitely meets the synchronisation requirements about as good as it gets. But ikiwiki falls short in three main points for me:
  • it does not integrate an issue tracker, so I'd have to use another product and hack up the integration.
  • it is based on Subversion, but it does not include a browser for the version control system. Joey may argue -- and I would have to agree with him on principle -- that such a component has no place in Ikiwiki and there are already plenty of other tools that do a better job at repository browsing than he'd ever be willing to implement. But still, I'd like to have integration with the version control system and be able to easily refer to files and changesets, again without jumping through hoops.
  • it is written in Perl and I am not much of a Perl hacker, so it's not going to be easy for me to contribute to and extend the code base.
Also, ikiwiki does not have a permissions subsystem, though I'm sure it would be possible to add that fairly easily. Many who have read this far will probably think Trac, which I've also inspected. Trac is written in Python (which I grok), and it integrates a wiki engine with an issue tracker and a (single) repository browser much in the way I want it. However, it comes without granular permissions, and wiki content and issues are stored in an SQL backend, rather than the version control repository to which a Trac instance can be bound. This also leaves it without a command-line interface or synchronisation abilities -- unless I want to manipulate SQL records and set up replication between SQL backends. If you care, I am not the only one who wants to see Trac use the VCS backend for wiki content and issue storage. So I am still on the look. If you have any comments, please mail me. NP: Sybarite / Placement Issues Update: Joey tells me that ikiwiki now also supports git, Mercurial, and tla backends, and that Monotone is in preparation. I wonder how long it'll take until bzr is added.

23 September 2006

Martin F. Krafft: Swiss drumming

My percussionist's heart really jumped high here in Switzerland when I saw this (Flash video; no alternate formats, sorry). NP: Porcupine Tree / Lightbulb Sun

Martin F. Krafft: Motivation

Colour me na ve, but I disagree that Debian is facing a crisis caused by dunc-tank.org. First of all, stuff like this has been going on for years, and I've been personally involved in cases where money was given to developers to work on specific aspects of Debian, though it's always been up to the receiver whether to announce it or not. I hope this does not come as a surprise to you. Second, there are two issues: funding developers, and our DPL engaged in the process in a way that's not obviously independent from Debian to everyone. I think the heated debate around the latter is a mere function of the emotional issues related to the former, so I'll only concentrate on the funding aspect. When people like Joey loudly protest about where the fun has gone, I start to wonder (again) about motivation. Everyone of us who contributes to Debian does so because of some kind of motivation, whatever it may be. In my case, that motivation is technical excellence: Debian is in a position to avoid hacks and do things right, and it's a joy to be part of a community that seems to think alike, that likes to be perfectionist, pedantic, clean, academic, advanced, you name it. I am also mighty proud of Debian, of what we've achieved, of what we are. Lastly, Debian powers every single computer I administer (and the number would be far lower if it wasn't for Debian), and our operating system is how I earn my living. To me, the issue of funding developers is tangential to the development of Debian. Why should it matter that s/he gets paid by the project and I don't? I'm still doing the same work as before, and I am still doing it for the same reasons. Note that we're talking about well-defined, limited use of funds, not employment contracts. When people say that "money corrupts", I think they're taking the easy way out. Money doesn't corrupt, people corrupt in the presence of money. I'll go out on a limb and claim that a person affected by an allergy will probably rather cure the allergy than to avoid the things to which s/he's allergic. Go figure. Even though I've never really cared much for stable releases, I can understand many of our users when they ask us to get along and release "etch", and I really doubt we can do it in time just chugging along like we've been doing it in the past. Of course, Debian is all about "releasing when it's ready", and we don't know yet whether paid release managers are going to enable us to release on time and when it's ready, but isn't it worth a try? I was also opposed to the idea of paying our release managers when it first came up. However, I've managed to change perspective and am now supportive of it: we are not hiring them, they will not be Debian employees; we are raising funds for them to be able to dedicate their full time to the final, tiresome stretch just before a release, without existential worries. We are helping them to move our project along. Especially since our release team has been one of the more open teams in Debian, being quick to respond to questions and training others in the Art of Releasing Debian, I feel rather good about this particular, well-defined and limited use of our funds. All other things aside, here are my top three reasons why (I think) we really want to release "etch" on 4 December 2006, in increasing order:
  • we can be even more proud of our project than before because we've bashed one of the main, negative reputations of our project.
  • we'll have a first instance of proof that a huge and chaotic project like Debian can meet a deadline. I think this alone would be a major achievement.
  • Lars will have to tattoo his arm with our release names.
If it weren't for the last one... :) NP: Kammerflimmer Kollektief / Cicadidae

22 September 2006

Scott James Remnant: Having Left Debian

It’s been over a year now since my last proper upload to Debian, and nine months since I announced my intent to put aside working on Debian for a while. With Matthew Garrett’s resignation from Debian, several people have compared it to my own “resignation” from Debian. It has got my thinking about whether I currently intend to ever end my “Sabbatical” and return as an active Debian Developer. I think that the end of my love-affair with Debian started at Debconf last year where several developers treated those of us who also worked on Ubuntu quite rudely. Someone was attacked for wearing an Ubuntu t-shirt at the conference, while someone else was applauded for wearing a “Fuck Ubuntu” t-shirt. That’s where I realised that maybe I didn’t have as much in common with these people as I thought I did. I still don’t understand why Debian singles Ubuntu out for this kind of treatment, we’re still the only derviative distribution that makes all of our patches to Debian available, yet Ubuntu is claimed to not do anything at all. Another example is that Ubuntu is being asked to change the Maintainer field of every package, something no other derivative is being asked to do or has ever been asked to do. Martin Krafft has had some interesting things to say about this strange relationship in the past. If that was the start of my falling out with Debian, I think that Debian considering removing documentation and firmware from the distribution, especially the documentation, was another point I started wondering whether I shared anything in common with the project anymore. Call me strange, but I think that one of the fundamental purposes of a Linux distribution is to be useful to its users. If nobody can use the distribution because it doesn’t support their hardware, and even if it did, all the documentation has been stripped out; I started to wonder what it’s aims are. It became increasingly apparent that the only users Debian was considering a priority were its own developer. And the third thing is simply a matter of Fun. Fun for me, at the moment at least, has been to build a system that fits together extremely nicely with each component doing the right thing. For Ubuntu this has meant being a driving force for it being Linux 2.6 only, with reliance on udev for hardware, etc. Upstart is just a continuation of these goals, getting a system which all “just works”, even if it means throwing out a few things people were previously fond of. All of these things would have been impossible to do in Debian itself. Getting upstart installable required changes to twelve different packages, including sysvinit itself; at a worst case, this would have required the agreement of twelve different maintainers in Debian. It’s often exhausting just persuading one of the reason for the change, persuading a dozen would have been a herculian effort. Perhaps Matthew is right, what Debian lacks is a single leadership. There’s nobody in Debian I could have gone to for approval over the changes I wanted to make, whose decision developers cannot overrule. Ubuntu has such people (the Technical Board and sabdfl), which gives the project an obvious direction instead of a couple of hundred people all pulling in different directions. In a way, I don’t feel that I’ve left Debian. I feel like I was happily going along, only to realise the mob had gone in a different direction and with no easy way of rejoining the group.

Alexis Sukrieh: About choices and consequences

Indeed, Jon Downland is right, the way Debian behaves these days is not very glorious, we are reflecting a pretty bad image. I don’t know if Ubuntu can be a good example for us (because we don’t have the same priorities), but I know one thing: Debian is completely hijacked by that thing we call “money”. We have to face the reality, as soon as the money came into the game, Debian has lost a point. I cannot predict if the DPL made the good choice when he decided to launch Dunk-Tank, but I can tell that now that it’s done, people have to face a very big mess. And I really hardly see how that will help us to release etch in time…

Martin F. Krafft: Why I don't work on Ubuntu (or at least one reason)

Yesterday, the Debian package tracking system notified me of a new patch Ubuntu applied to mdadm:
diff -pruN 2.4.1-6/debian/mdadm.init 2.4.1-6ubuntu4/debian/mdadm.init
--- 2.4.1-6/debian/mdadm.init 2006-09-21 21:13:04.000000000 +0100
+++ 2.4.1-6ubuntu4/debian/mdadm.init  2006-09-21 21:10:08.000000000 +0100
@@ -1,4 +1,4 @@
-#!/bin/sh -eu
+#!/bin/sh -e
#
# Start the RAID monitor daemon for all active md arrays if desired.
#
The changelog entry goes out of its way to reason the change:
Do not invoke init scripts with -u. Fixes dist upgrade from dapper to edgy mostlikely caused by /bin/sh pointing to dash.
Of course, it's debateable whether set -u is applicable to an init.d script it causes the shell to barf when uninitialised variables are used, just like Perl's use strict;. I think set -u is good practice and I use it everywhere. My /bin/sh also points to /bin/dash, and I cannot say that I've never run into problems. However, the fixes are usually quite trivial. I consider Ubuntu's change a hack fixing symptoms, not causes. Due to the immense time pressure under which the core team is maintaining the main parts of the distribution, I can imagine such hacks to be quite common. I'd hate for that to be my job as a maintainer. NP: Explosions in the Sky / How Strange, Innocence

13 September 2006

Ben Armstrong: Ichthux, a joint Debian/Ubuntu project

Whew. Ichthux has released, and now I can breathe again! When I joined the Ichthux development team, they had produced their “proof of concept” release as yet-another-Knoppix-remaster. At that time, I encouraged them to move away from tacking their work on as a derivate of a derivative and instead become a CDD. I argued that as a CDD Ichthux would last, while as a Knoppix-remaster, it would just be another marginal custom livecd that went nowhere. They got the message. So you may well be surprised to hear our first release is based on Kubuntu, and not Debian.
So, what’s the story here? Have you defected?
Nope. It just happens that most of the team ended up being actively involved in Ubuntu development. Also, when we first started casting about for the best way to package a livecd/install disk, it seemed to us that Ubuntu already had a head start on this.
What about being a CDD? It looks to me like that idea has fallen by the wayside.
Nope again. We’re a joint team now, and though we’ve started out with Ubuntu, we’ll be pushing changes back into Debian. The goals of a CDD are well understood by the whole team: to best meet the needs of our users, we design the system to mesh well with the parent distributions, not forking and making a derivative, but working inside those distributions to improve them for our particular subgroup of users.
Hold on now, aren’t you contradicting yourself? A CDD’s development is all within Debian, but Ubuntu itself is a derivative, and what’s worse, Kubuntu is a derivative of a derivative! Aren’t you right back where you started?
Well, on the last count, you’d be wrong. Kubuntu is not a fork. And as for Ubuntu being a derivative, well, sure it is. But the Ubuntu/Debian relationship is different from other derivatives, and although there is friction, I’m enough of a crazy idealist to believe a joint Debian/Ubuntu CDD is quite doable, benefits both projects more, and serves our users better than if we were to split up and each go work on our own.

8 September 2006

David Moreno Garza: damogzito cocktail

How to make a damogzito
Ingredients:
5 parts pride
5 parts ambition
1 part instinct
Method:
Blend at a low speed for 30 seconds. Top it off with a sprinkle of sadness and enjoy!

Username:

Personality cocktail
From Go-Quiz.com

I’m sorry Martin: My life is full of trivialities and memes. :(

Next.

Previous.