Search Results: "bab"

4 June 2006

Enrico Zini: Dapper on XEN (part 1/1, unfinished)

I need to do some work on a Dapper system, so it's time to try out xen:
apt-get install linux-image-2.6-xen-686 xen-hypervisor-3.0-i386 xen-utils-3.0 xen-tools
xen-tools tries to recommend xen, which is old and has been requested to be removed from the archive. The recommends needs to be ignored, which is not that trivial to do with aptitude. The linux-image doesn't happen to have an initrd. The bug has already been reported. One can recreate one using:
mkinitrd -o/boot/initrd-2.6.16-2-xen-686.img  2.6.16-2-xen-686
Then one adds this to /boot/grub/menu.lst:
title Xen
root (hd0,0)
kernel /boot/xen-3.0-i386.gz
module /boot/vmlinuz-2.6.16-2-xen-686 root=/dev/hda1
module /boot/initrd.img-2.6.16-2-xen-smp
And it boots lovely:
# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      939     2 r-----  4677.9
Now xen-tools provides xen-create-image. I'll try to create the Dapper image (deboostrap in my system has already been changed to be able to install dapper):
xen-create-image --size=4G --swap=128M --dhcp --volume=marvin \
                 --hostname=cavazza --dist=dapper --fs=xfs
But I get:
[...]
Creating swapfile : /dev/marvin/cavazza-swap
Done
Creating disk image: /dev/marvin/cavazza-root
Done
Creating xfs filesystem
Done
Installing the base system.   This will take a while!
Copying files from host to image.
Finished
Something went wrong with the debootstrap installation
Aborting
I love detailed error messages. This one is not. So I'll have to do by hand. The documentation says:
Before you can start an additional domain, you must create a configuration file. We provide two example files which you can use as a starting point:
  • /etc/xen/xmexample1 is a simple template configuration file for describing a single VM.
  • /etc/xen/xmexample2 file is a template description that is intended to be reused for multiple virtual machines. Setting the value of the vmid variable on the xm command line fills in parts of this template.
But in Debian there's no trace of the two example files. I've reported to Guido Trotter. Then I googled for the two files and found them. Now, on to adapt Dapper to run under Xen. The good Ubuntu wiki has an HOWTO which crudely makes you install the Tarballed Pre-built installations of Xen 3.0. It's sad that xen-enabled kernels didn't make it into Dapper roper. I can make this:
kernel = "/boot/vmlinuz-xen-domu"
memory = 128
name = "Dapper"
disk = [ 'phy:marvin/dapper,hda1,w' ]
dhcp="dhcp"
root = "/dev/hda1 ro"
I used the pre-built kernel as a domU, but:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)
Sigh. I'll try with the Debian Xen-enabled kernels. Installing yaird and linux-image-2.6.16-2-xen-686_2.6.16-14_i386.deb and linux-modules-2.6.16-2-xen-686. It WORKS! Now, that's not Dapper: that's a debootstrap install of it. No user, no root password, no desktop, no shiny Ubuntu custom config. How to finish the installation? No idea. In the past, I could run base-config, but now it doesn't exist anymore. It seems that the best bet is not to use debootstrap, but to install the CD in the LVM partition using QEMU and then chroot into it and then install the debian xen kernel to boot it. A QEMU install will take ages, and I expect some trouble, like getting partman to see LVM. Maybe I better install on a disk image file and then use tar and netcat to bring the ubuntu installation out of the disk image and into the LVM image. For today, I didn't make it. This job slips another day. Frustration. I hope that at least this description of my efforts so far can be helpful to someone trying similar things. One suggestion I got was to boot the Dapper CD and install from there. I can't: this computer has no bootable CD. Update: I found out http://xensource.com/summerofcode.html and it says:
Project Idea 3: Xen Desktop Outside of Domain 0 This project would deliver a Xen desktop to the user of a client system that presents an abstraction of a virtual desktop to the user in which multiple guests share the virtual desktop, each with a subset of the desktop resources (pixels, etc). Smart management of the sound drivers would allow mixing of sound from multiple guests to the single device used for output. Microphone input could be broadcast to all guests. Technologies such as ALSA already emulate playback settings by downsampling for the hardware etc. so its not hard to imagine a xen-snd-front device munging the data to a common format used for the internal sound card. Issues: synchronization of playback.
So, what I'm trying to do has been proposed as a SoC project and (I guess) is something that can't be done overnight. Although I was planning to run a diskless gdm accessed with XDMCMP from domain0's X server, and to just hand out the audio card to the domU using pciback, so my task would have been easier. Thus I give up using Xen for this one. I'll work around the lack-of-bootable-cd limitation of this computer by installing Ubuntu using QEMU. Which I found out requires using the "Alternate install" CD. The desktop install CD is a live CD installing with Ubuntu Expresso, and the live CD doesn't seem to work in QEMU. Or, I'll install in a LVM partition in the laptop and then move it around using the network. This one's probably faster. Could this experience be an interesting use case for Edgy Eft?

Erich Schubert: Optimize your ext2/ext3 filesystem

You might have read that ext2/ext3 has support for so called "directory indexes", which supposedly speed up operations on directories with many files. For example your /usr/share/doc directory, your packages database, or your home directory (use ls -la wc -l to count the number of files). However, this feature is not enabled on most machines, since up to now you needed to pass a flag when creating the filesystem. The 1.39 upload of e2fsprogs (in Debian unstable as of May 29) made this default. So you probably didn't enable this when creating your filesystem. To check, first find out what your filesystem device is (use mount). Mine is /dev/hda5, so my example will use this device. In traditional terms, this is the first extended partition on the IDE primary master drive. Now use tune2fs -l /dev/hda5 grep features to get a list of your filesystem features. If you have "dir_index" in there then you're all set. Ignore any "needs_recovery" - that is good for mounted filesystems (it just means "not cleanly unmounted") To add dir_index, do the following.

Martin F. Krafft: A safer way to apply a new iptables ruleset

You probably now the feeling, that cold and hot rush of adrenaline after you've typed iptables-restore < new-ruleset and didn't get to see the shell prompt again: you've just locked yourself out of a machine that's potentially far away, and you feel like vanadlism, or screaming on the top of your lungs, or whatever. In my series "scripts to the rescue" (uh, which doesn't exist as a series actually), here's a new one: iptables-apply (and docbook manpage), which will make things easier for you. It applies the new ruleset and then prompts whether you like it. If you've locked yourself out, you cannot answer the prompt, and if you don't, the script rolls back the ruleset. Nice and simple. And surely beats my previous approach, which was:
echo 'iptables-restore < /etc/network/iptables'   at now + 2 min
iptables-restore < /etc/network/iptables.new
[...]
atrm ...
mv /etc/network/iptables .new, 
Now I hope the iptables maintainer feels inclined to put the script in with the package (see #370292).

3 June 2006

Joey Hess: new laptop

Well, I finally have a new laptop. Got it yesterday, spent about 3 hours installing and downloading all the software, and then let rsync run all last night to transfer over my home directory. Of course like any good Debian user I've filed a detailed installation report. I'm fairly pleased with the fujitsu p7120 so far. Compared to my old p1100:

Benjamin Seidenberg: New Anti-Spam Measures

(Sorry Robert, this is a meta-blog-post. Perhaps I should create a catagory for them?) Since being syndicated on Planet Debian, the amount of comment spam I’ve gotten has risen sharply. No spam has made it onto th site itself, since I moderate the first comment someone makes, but the emails have gotten annoying. Therefore, I put a turing test into place. Blind users will be happy to hear it’s not a CAPTCHA, instead it’s one more field to fill out that asks a very basic math question to prevent spambots from commenting. Users who registered back when I required it won’t even get the field, isn’t that nice?
To the readers of Planet Debian who are probably asking “Why Do I Care?”: If you don’t mind, try out the system to make sure it works. I figure the readership of that site will have a fairly diverse set of browsers and maybe even a few using accessibility ehancements that can confirm that the system has no problems. If you encounter any problems, email me at astronut@dlgeek.net or ping me on IRC (astronut on both freenode and oftc).

Gunnar Wolf: More != better

This is the time of year when most Free Software-related conferences in Mexico have their calls for papers. CONSOL's CfP closed two weeks ago (agh, I had to CONSOL's CfP closed two weeks ago (agh, I had to /lists.consol.org.mx/pipermail/consol/2006-May/006443.html">/lists.consol.org.mx/pipermail/consol/2006-May/006443.html">send my proposal by mail, and I do hope it gets in the official program - For sentimental reasons more than anything else ;-) CONSOL is, after all, still my baby!). Yesterday I had to come up with something, as CICOL's deadline was also hanging upon me. Now my attention has been brought towards FSL, for which I still have almost one month to think. And, of course, although at other times of year (but, of course, still clashing with other conferences) we will not have one, but three instances of GULEV this year..
WTF?
Mexico's Free Software community is a small and not too productive one, as most communities in our (culturally defined) continent, Latin America. And yes, conferences are quite fun, it's always nice to go to a nice place and meet your friends. But we must not forget the real motivation for them all: The academic program. We currently have four conferences that try to reach to the same audience (yes, in different places of the country, but all of them with a national scope). And if you compare the list of proposed talks (visible currently for three of them), you will see there is no real difference between the set of talks on them. Please explain me, what kind of incentive does this give to anybody to attend? Just to hang out with the friends, entering a talk here and there?
I ended up submitting the same talks for both CONSOL and CICOL, as running Debconf didn't leave me time to prepare or think over anything - That's not what I like to do, and I hope I can be a bit more creative with the topics for FSL. There is no published criteria yet on what will be the focus for (each of the) GULEV, so I'm not committing yet to them. And yes, being a very active Free Software promoter in my country, I try to be present everywhere - but of course, everything has a limit. I will most probably not skip CONSOL (as it is on the city I live, and it is the one I am most sentimentally attached to) or CICOL (as it is just 1hr south from here)... But I'm still uncertain if I'll be at FSL or any of the GULEVs.
Back on my initial questioning, anyway: Do we need four perfectly equivalent conferences in this country? Besides ego clashes, wouldn't we be best served if we had only one or two big conferences a year?

2 June 2006

DebConf6 Blog: DebConf6 Over - Thanks to all and pictures for the gallery (Posted by The DebConf6 Orga Team)

As you probably know by now: DebConf6 is over! It was an excellent event at a nice location with some amazing network details - such as 1.8km of cable to get all our areas linked into the local network, and having a fiber link into the tower - with 10mbit hubs. We would like to say thank you to all the people who helped to run and organize this conference, taking on tasks such as Additional thanks go to all the people who lent us their hardware, our sponsors for making the event possible in the first place (see the full list at debconf6.debconf.org), and to all the attendees who managed to keep on smiling even when things didn’t always turn out as expected.
While we are at it: There is a central gallery for DebConf6 behind gallery.debconf.org. As it is open for everyone, just create a user there and send a little mail to gallery-admins@debconf.org to get your account activated. We would like to have this as a central point for all pictures taken at DebConf6 (and all prior / following DebConf-Events), so we would really appreciate if you can (in addition to your own gallery) upload the pictures from DebConf6 or all prior events you attended there.

Gerfried Fuchs: Back in the worng timezone

After two weeks and a bit it finally happened: I hit austria again. But, first things first. I guess everyone noticed by now that at the start the network wasn't our best strengths. I helped as much as possible, collected network cable back from one path to lay it out at a different one just to find that the about 200 m were a bit too short (or rather, me was lying the cable with too much safety). Though, it was too long anyway to be relyable, to it was cut in the middle and a small access point was put in. Later it had to be replaced because we were running a bit short of specific power supplies. But it wasn't too bad, waiting for some more rj45 plugs and other things even allowed Ganneff to spend some time in the pool and relax a bit. And given that there seem to have been a few (vegetarian) people less than registered for sponsored meals allowed stockholm and Vagrant to get extra dishes to get fed. People during the debcamp mostly enjoyed themself, mao was played, fights for the gay vegetarian sign, tetrinetx on homer when only local network was available, and I managed to translate the new wesnoth tutorial into german. It wasn't clear by then that the new release will be delayed due to other problems until after the debconf, but in my opinion the tutorial is one of the most important parts of any games because it explains the basics, so I wanted to be sure that there won't be another release without a fully translated one. About enjoying oneself: I tried out the skirts I brought with me and considered them absolutely comfortable. You'll find me more with one, especially when it gets warmer. It helped me to be more "myself". Also I enjoyed the weird looks and repeated questions about my shoes — although it was often that I was walking barefooted; but that got a bit of a pain, especially after noon when you were able to boil eggs on the stones. And given that I forgot myself when I switched from blue/red shoes to red/blue ones you don't have to send in your guesses when it was done because I can't tell who would be the winner anyway. ;) The end of the week came, the Debian Day was here. Closer to its happening more and more people arrived and it was becoming more crowded in the hacklab. The network became more and more stable, the video streaming setup got finalized, and everything looked alright. Some of the mexico city people stayed for the night and enjoyed the friendly atmosphere (and a beer or two ;)). The debconf started for real, the talks started, people were busy all around, zack added me to the alioth pkg-vim project to continue helping with the hijacked debian specific syntax files. Haven't done much yet beside a checkout, still pondering where I can bug around most ;) I was looking forward to bubulle's BoF about the i18n infrastructure. It was really inspiring, and I collected some ideas for what the tool-to-be-created should support. The second BoF later the week just showed that others were mostly thinking along the same lines, so I hadn't much to add. Still I am looking forward to join the effort to make it happen — I was playing with the idea about such a tool for ages now, and I guess this is what it will make it happen, finally. Christian is so much more able to get people interested and together for making it happen than me... :/ There were some more talks I could mention, like Enrico's talk about Advanced tools for wasting time (yes, I have submitted my gnu.cow file in the meantime), or Erin's and aj's Debian's Debugging Debacle: the Debrief (in which I finally got around to fix a RC bug incidentally), and the talk by bubulle and jfs about State of the art for Debian i18n/l10n of course, which features some of the conclusions of the two part BoF. Some of the evening featured interesting things too, like a cheese BoF, the everywhere featured formal dinner with its mariachis, the waterfall and the blackout; special effects you wouldn't be able to plan as well as they happened — though Martin Ferrarri had a small accident with it when water rushed down onto his plate and spilled the sauce over his white shirt and the table. And then there was the hard liquour BoF where I quit after the eggnogg. The week passed, I got my hair dyed and rid of my beard right in time for the group photo. Thank you nattie, a thousands time, it went better than I expected! Really like it. I didn't attend the fun photo in the pool the next day, was a bit late after the talk, didn't had my bathing slip with me, was worried about my newly dyed hairs and was nervous... because a person I was looking forward to meet again was late. But gladly only late, so I got rid of my nervousness and enjoyed the last official talk (formerly mentioned i18n talk) of the week, and explained to some attendee that even in languages like French, German and English (yes, no mistake) there are still areas we have to struggle with all of this, like when keeping things up to date and the likes. It was the last evening in Oaxtepec for me because I refused to leave by bus at 4 in the morning, rather wanted to spend the night in Mexico City to at least be able to have seen a tiny bit of it and eat something my tummy enjoys completely. :) I guess I don't need to point at sandino's gallery about that evening anymore, thanks to Gunnar. And yes, I'm mentally disturbed, but that shouldn't be anything new to people who know me for a while, or is it? ;) This night was too long (less than 4 hours of sleep is even for debconf not much), so I rather went to bed early after a small walk (just 2 blocks or such) in the city and a nice dinner with friends who are missing the nice time too and was wearing too big sort-of shoes. Went to the airport in the morning by taxi whose driver gladly was able to speak english. Met zack and Martin Ferrari again there, and some other people with whom I was taking the same plane with. They were hacking along on the airport, found the open wifi, using power supplies from different spots. Bubulle already wrote about the two loud guys, gladly I wasn't too close to them, and plugged myself into the music and movie channels from the plane. The showed Last Holiday (which I really liked, although in the ending I started to cry — mostly because I started to realize what I was leaving...) and two spanish movies of which I don't remember the titles. People started to hack away in the temporarily set up hacklab and we started to wonder how much power they might have, though they cheated: They used two battery packs... In Madrid some more people parted and we were down to 5 people. I bought totally overpriced playingcards so we could play Mao, had a short nice session and spread the word. We did hack the baby room power supply and hacked along a bit more, and then Peter and me were off heading to vienna, finally. All in all I really enjoyed it. Although there were its down times, sunburned, my butt hurting a bit because in the end I did jump from the 10m platform into the pool, it still was a really nice event and even though I guess many people tried to enjoy themselfes quite some things were acomplished. If not really codewise, then at least social-wise, which will benefit quite well in the future, I'm sure. Hope to see you all next year, wherever that might be.

John Goerzen: Usenix

Usenix is an interesting conference. Probably the best I've been to in years.

There are a lot of people here that maintain really, really big sites. I was at one talk where the presenter said "now this may work fine if you have 500 servers, and a bit slow when you have 1000, but will is still work when you hit 2000 or 5000?" And some audience members in another one talking about 30,000 machines.

Makes our 5 or so physical boxes and dozen or so virtual Unix machines seem a bit puny.

Then there were also people that were backing up about 5GB of data a day. Made our 400GB (native) tapes seem rather large.

I got to meet one of the Bacula hackers tonight, which was nice. I had lunch with a person that works in a large ecommerce company that is an all-HP shop. They have a lot of the same hardware as us, and are also pretty happy with HP.

One presenter asked, "Why do people buy Dell servers?" After a timid guess or two from the audience, he said, "because you boss made you." Nobody likes Dell here, and I understand why.

Lots of laptops everywhere. Thinkpads and Powerbooks, oddly enough, are the most popular ones in sight. A surprising number of Unix administrators are running Windows on their Thinkpads, but just as many have Linux or FreeBSD on them.

I'll post more once I get back home.

Michael Janssen: Been a long time coming.

Life has taken a turn for the busy lately, which means of course that this space loses a lot of content. Things have slowed down a bit now. Things which were taking up my time before were being basically one of the only technical staff for ICRA2006 (with one other who helped enormously), a new job at Honeywell Labs, and actually getting some research done on my thesis.

ICRA2006 was basically amazing and horrible at the same time. The amazing parts: meeitng people who are famous (a.k.a. "respected in their field"), eating a ton of fancy food on the dime of the conference, being at the first conference of my academic career. The horrible: working 18 hour days, being the go-to guy for practically everything, painful feet from walking most of those 18 hours. All in all, the amazing outways the horrible by a long shot. I also couldn't make it to DebConf6 because of it, and it was in a country that I might have actually made it to this time. Next year I guess.

The new job at Honeywell is going decently. We have a target in July which is probably going to have me pulling long hours. The best thing about the new job is of course pay-related though - I am going to be consumer-debt free by the end of this year. I hope that I can finish the nameless financial web application before my finances improve enough that I don't need it anymore.

I have narrowed in on my thesis more, which is an improvement at least. Now I need to actually write papers and do research while avoiding too many duties in other areas. I've got a couple of blog postings in the queue which should show up soon, and hopefully I will re-enable myself on Planet Debian.

I also bought a present for our apartment, and she hasn't guessed exactly what it is yet. This is me taunting Di a little. :-)

Simon Richter: Freezing

I think the next handy device that needs to be integrated into mobile phones is a heater. It must be strong enough for a tent, while I'd probably use it for thawing myself enough to recognize the vibration alarm. Why yes, it is June.

31 May 2006

John Goerzen: Midnight Musings on a Dark Train

I stepped out the front door Monday morning at 2AM. Our house was a bit warm and stuffy, and I expected a nice, cool breeze. But instead I got a blast of... slightly warmer and stuffier air. Summer must be here.

Terah and I were setting out on a train trip. The train east out of Newton, KS leaves at 3:01AM. We got our bags loaded and set off to the station.

Not long after we got on the train and to our room, the train started moving. Terah fell asleep right away. It's hard for me to fall asleep so quickly the first night of a train trip. The excitement of the upcoming trip keeps me awake. Plus, once I wake up, I usually stay awake. Even if the alarm woke me up at 1:20AM.

This time, I lay awake remembering my ancestors, who migrated from Russia to Kansas in 1874. Some of our trip will follow the same route that they took 132 years ago.

In the train, you hear what sounds like a distant train whistle fairly frequently. It's from the locomotive on our train, but sounds distant because the passenger cars keep the noise out.

We slowed a bit, went around a gentle curve, and the whistle sounded again. Off to one side of the train were the lights of a small town. It's Peabody, KS -- where my ancestors arrived in the middle of the night back in 1874. They were excited to finally be at the end of their journey -- which had taken months and spanned oceans and railroads on two continents. So excited, in fact, that they set off to find their new land in the middle of the night rather than wait for dawn. But how did they cover those 15 miles at night? Did they rent horses and wagons from someone? I couldn't remember, trying to sleep here in the middle of the night.

I'm still awake. I come to a pause in my thoughts and notice the train's horn again. Somewhere ahead, there is a dirt road crossing the tracks. Nobody is there, but the train is sounding its horn to keep them away anyway.

I think back to 1874 in Russia. Not everybody in the Mennonite settlements there left. Those that were too old, too weak, or that couldn't make the trip for whatever reason stayed behind. For most, when they left Russia, they were saying goodbye to their families for the last time. They would never have the opportunity to see them again.

Then their trip began. Through rickety Russian railroads, to long days at sea, then through New York, and on the railroad again, stopping some points along the way. They'd never seen what would be their new home. And there was no going back if it wasn't to their liking. I can only imagine how hard that must have been for this group of German-speaking immigrants from Russia. And how anxious and exciting it would be to finally get off the station and head to their new home.

This group of settlers made quite the impact on Kansas. They brought their "turkey red" winter wheat with them from Russia. This wheat turned Kansas into the world's leading wheat producer. And it helped rescue the ATSF railroad from the precarious financial situation it was in. That was a good move on the railroad's part -- they were the ones that sold land to the Mennonites in Kansas, recruited them to settle in the area, and even built them temporary housing for their first winter in Kansas.

And that's the same railroad we're taveling on now, as I hear the crescendo and then the WHOOSH of a passing train just a few inches from ours.

By now its 4AM. I think back to the train station in Newton, which we left behind just an hour ago. I remembered how earlier in the 20th century, after the Mennonites were well-established in Kansas, they would send off missionaries to other parts of the world -- China or India especially. Those that went off served two 7-year terms. They departed from the Newton train station, just like we had. They probably waited for the train to carry them away in the same room we did. But they knew they wouldn't see their friends, relatives, or home for 7 years.

When missionaries would leave, a large group of church members would accompany them to the station. As the train approached, the people there would start singing their favorite hymns -- a capella, in German. The sound filled the old station, and followed the departing family out onto the platform as they boarded their train. The people leaving weren't the only ones to miss their friends and relatives. Those staying behind would also go 7 years without being able to talk to the missionaries that were departing.

A light flickers by the window. Maybe a yard light, or a small town, or the back side of a warehouse somewhere. Off in the distance, the horn sounds at another crossing.

Time for some sleep.

David Pashley: Eddie RSS and Atom Feed Parser

I'd like to announce the initial release of Eddie, a feed parser library written in Java. It's taken me over 100 hours, but it now correctly parses 90% of the FeedParser unit tests, including all the rss and atom tests. It's GPLed, with an exception allowing you to use it in any open sourced program. Get it at my website. Need to add documentation and character set and encoding support. Also need to separate the testing infrastructure from the rest of the code. This is the first time I've done any java programming in anger, and I have to say I'm surprised to discover I quite like it. In many ways it seems a very quick language to program in. It seems almost like programming in a scripting language, but stronger typed. This is probably due to not having to worry about memory management. Certainly I don't think I could have written this quite so quickly in C++. Having said that, there are a couple things that I don't like about Java. Everything is a pointer. This is useful at times, but it means that every time you want to call a method on an object you have to test whether it is null or you run the risk of getting the dreaded NullPointerException. Java also doesn't have keywords for and, or and not. I know not everyone likes these, but I keep finding myself trying to use them. I'm sure there are other things I hated, but I can't remember them now. I think I'll end up doing more java programming in the future.

30 May 2006

Erich Schubert: IEEE1394 drives... damned prolific...

Since the prolific-based 3.5" firewire+usb external HDD box I have is total crap (it often stops and restarts the disk, going readonly and losing data), I've been looking for a different drive. Unfortunately, I havn't been successful so far. The cheap computer stores around here all seem to only have drives with (probabliy newer revisions of) this chipset... and I'd really like to avoid buying another prolific crap. I updated yesterday to the latest firmware for the PL3507, and I also checked that the drive I put in the box doesn't have any errors. Didn't help. The drive still is very unreliable, in both firewire and USB mode. Unfortunately, my laptop only has USB 1, otherwise I'd buy an USB-only box which supposedly uses a different chipset.

27 May 2006

Erich Schubert: Next generation of office suites

I have the impression that OpenOffice is still busy with cleaning up the code inherited (and e.g. porting to GTK2 and such things). Given the screenshots posted in the much respected Office UI blog by Jensen Harris, I think OpenOffice will run into trouble when Microsoft actually releases their new Office. Microsoft seems to have a really neat and productive UI there - there is only one thing really wrong with it: it's completely different than anything else people are used to (and people have learned to use). While there will obviously be migration issues, companies will probably delay switching to the new office to save licensing costs and such things, marketing people will be all crazy about the new features in there. You might remember the research with the aggressive title "PowerPoint makes you stupid"... actually this will become even more true with the new Office, I fear. It comes with default styles for common diagrams used in presentations, like a flow sequence or a circle sequence. While these aren't particularly smart things, they'll be presented even more prominently (because the gfx is so great), and the actual contents will probably be pushed back even further... Anyway, these new styles look really hip, so people will be eager to use them. And use them. And use them again. And use them really big (eventually forgetting about the contents behind them)... and OpenOffice can't keep up with that so far. Maybe OpenOffice needs a huge scale UI contest. Maybe with some abstraction scheme to be able to run different UIs on the same engine. OpenOffice in particular should try to become a technology leader, and not just try to copy Microsoft as much as possible... the UI changes in Impress are said to be pretty similar to what people expected when they think PowerPoint. There are good reasons to stick with the established UI standards (even when that might mean 'cloning' the UI) since that keeps migration costs low. But I think it's a pity OpenOffice can't show many large technological improvements to put more pressure on Microsoft. Ah, and yes, I guess many people at OOo are well aware of that, and like so many projects (commercial ones probably even more than FLOSS) they're just short on development resources...

26 May 2006

Erich Schubert: GNOME settings chaos

GNOME is all about usability. And it used to take this to a point making many people angry. Still I loved this direction, because it prevented me from wasting too much time on toying around with settings that don't really affect my productivity... Today I've counted 37 entries in the settings menu. That is more than twice as many as should be there, IMHO... It makes me remember the settings chaos in kcontrol, where I often happen to know that the settings is somewhere and I just can't find where... Granted, many of them aren't part of the GNOME core, for example two entries are Sun Java crap. Some policy tool I have no idea what it does, and a visually completely different dialog for the plugin. Or the art manager, a ruby application (why does it hide in settings?) to download themes from art.gnome.org. There are tons of settings I've never even looked at, like the CD database server (probably defaults to freedb.org, and why would I want to change that?) Yeah, I know... I should probably get some fresh Ubuntu install and look at the menu there, I bet it's only half as big as mine here...

Andrew Pollock: [life] Another massive road trip coming up

It's not a Holiday Weekend unless it involves us putting heaps of miles on the car. This time, we're going to Kirkland, where I'll work from for the week. The route outlined on this image isn't quite the route we're going to take, we're going to camp amongst the redwoods on Saturday night, and stop off in Portland on Sunday night. On Friday night we'll stop where we drop, which we expect will be Ukiah. The following weekend, on the way back, we'll take a more direct route, which will probably be closer to what's on the map. Rough idea of the trip

25 May 2006

Uwe Hermann: OS Install Experiences - Part 2: SUSE Linux


Note: This article is part of my OS Install Experiences series.
Next up: a SUSE 10.1 install. It's been a few years since I touched a SUSE distribution (it was something like SUSE Linux 5.3 or so), a lot has happened since then... Here's a rough sketch of the installation and a few superficial remarks and facts related to security. Install
  1. First, I downloaded a SUSE 10.1 CD image, burned it on a CD, and booted from that.
  2. The installer that showed up is graphical, and you can choose between a normal installation, booting a rescue system, or running a memory test (uses memtest86, I presume).
  3. While the installer runs it merely shows a rotating logo, but you can switch to other consoles (ALT+F1, ALT+F3, ALT+F4) for watching log messages passing by.
  4. You can choose the language used in the installer, later also your timezone and keyboard layout. You can also check the installation medium, which verifies the checksum of the CD, I guess.
  5. Next, you'll be asked to accept a license agreement (yeeaah, whatever).
  6. Your hardware will be automatically detected (worked quite well for me), and after that you can choose between a new install or a system upgrade.
  7. As for the desktop, you can use GNOME, KDE, text-mode (no desktop), or a "minimal graphical system" (it turns out that means fvwm, at least that's what I think).
  8. The graphical partitioning tool feels a bit awkward at first, I needed several tries until I figured out how to make it use the layout I wanted it to. The default file system suggested by the tool is ReiserFS.
  9. There's an explicit option which lets you choose the default run-level for the system (run-level 5 is pre-configured).
  10. The bootloader, GRUB, recognized the other partitions (Debian stable + unstable), added an entry for SUSE Linux, and created a working setup. Nice, although more control over the process (e.g. naming of the boot options) would be nice.
  11. Reboot.
  12. I'm asked to insert CDs 2 and 3, which I don't have (or want), as I only burned CD 1. Clicking "abort" a few times does the trick, and I can continue by choosing a hostname and domain name for the box (hydra + local.domain).
  13. Now I must enter the root password. Very nice: I have the choice between DES, MD5, or Blowfish (SUSE default) for the hashing/encryption of user passwords.
  14. Afterwards, the network is configured (automatically, via DHCP). You can enable a firewall at this point, and enable/disable access to the ssh port explicitly. It's also possible to enable "VNC remote administration" (default: off), or configure a proxy.
  15. Authentication methods for users, available from the installer: local (/etc/passwd), LDAP, NIS, Windows Domain.
  16. When adding a new user, there are some options. Per default, the user is in the groups "users" (no per-user groups, it seems), "dialout" and "video", but that can be configured. Password expiration is disabled. The default shell is bash.
  17. And now... another registration message (in the release notes, actually). May I quote (from my head): The registration procedure transfers zmd's unique device identifier to Novell's registration web service. The information sent may also include OS, version, architecture, and the output of uname and hwinfo, according to that text. More on that later, maybe...
  18. Of course, SUSE Linux comes with SUSE's/Novell's AppArmor enabled by default, but I haven't looked into it, yet.
  19. Now some problems appeared. More hardware discovery took place, it seems, then the screen turned black (with only a non-blinking cursor in the upper left), no reaction to any input -> I performed a hard reboot.
  20. After booting, I'm dropped into fvwm (although I chose GNOME in the installer), the reason probably being the forced reboot. After looking around a bit in the menus and stuff, I wanted to start sax2 (to find out what it does), but the screen turned black again -> another hard reboot. Could it be that I don't have enough RAM for this (256 MB)?
  21. Anyways, at this point I lost interest in playing with the system any further, and gathered the below information for comparison reasons...
Security That's it. Comments, suggestions, flames?

Simon Law: Debconf 6, Day 5


Gorditas
Originally uploaded by sfllaw.
After a very tasty breakfast of gorditas in the market, I sat through talks all of Thursday morning, which were all quite good. They were visionary talks, talks about where Debian was going to go, and what we can do to get it there. After a brief lunch, we returned for the talk of debugging debian-installer. I've been lugging around my laptop, jamaica, through the entire conference. It's an old A20m, which means that it's a rather bulky looking thing, that is quite heavy. What makes it noticable is that it's been epoxied together, after having been dropped one too many times. People marvel that GNOME runs reasonably on it. Anyway, during the talks, my wireless card decided it didn't want to work any more. Pulling it out and letting it cool down seemed to get it responsible again. Strange. After the afternoon talk on how to find security problems within Debian, I went back to the hotel to change. You see, we were going to a Formal Dinner. I had not packed for a formal dinner, thinking that all functions would be casual at the very most. Still, I pulled out a pair of pressed slacks, an ironed shirt and a colourful tie. When I left my room, it became apparent that Formal actually meant "clothes without any holes".

Mariachi band
Originally uploaded by sfllaw.
We all packed into the coach buses from yesterday and drove into town. This was actually quite difficult for the drivers, because the streets were very narrow and the buses were incapable of turning around corners. I think it took us fifteen minutes to park, which mostly consisted of doing a 30-point turn. We disembarked and walked into a large building. Two of the walls were made of stone, the rest were made of stucco. There was a small stage presiding over a floor full of fold-up tables which were arranged in a Debianesque spiral. I decided that I was going to be at the nexus of activity, so I sat down at the central table and reserved a seat for AJ. As people seated themselves and started talking, there was a sudden commotion. Holger was running towards AJ with a plastic crown, deposited it unceremoniously on his head, and continued sprinting past. This drew applause and photographs, along some cheering of "Long Live the DPL!" AJ looked decidedly uncomfortable. It's probably for the best that Debian isn't a monarchy.

Indoor waterfall
Originally uploaded by sfllaw.
Our evening got more and more interesting. A mariachi band came in the door and started playing. Soon after they started singing, rain began to fall. This made lovely sounds on the tin roof above, which made me a little sleepy. Right about now, a brawl sprang up near the front door. There was some shoving involved and quite a bit of yelling. Soon, the combatants were separated and some of them left the building in anger. All this time, the musicians were playing louder and louder. As the music crescendoed, the rain fell harder and the wind blew stronger, until we had to close up the shutters to keep the water from blowing in. And the band kept trying to play over the rain. Then, slowly, the roof began to spring leaks. We were lining up for food then, and by the time I got to the buffet table, water was pouring into the trays. I managed to get something reasonably dry and scurried back to my seat. Which was wet. After I got some food inside of me, I experience the final act that capped our evening. We were chatting a bit about the strange weather we were having indoors when suddenly, water started cascading down one of the walls. It made a tremendous roar and the floor of the building quickly flooded. As I was photographing the events, the lights suddenly went out with a pop. We were plunged into darkness. I made my way back to my seat and someone eventually found the fusebox. The lights were restored, one by one, and it was soon time to leave. I don't know how the organizers of next year's Debconf are going to be able to top this: ceremony, live music, fisticuffs over a woman, an indoor waterfall, and drama. This was a night we're all going to remember.

24 May 2006

Matthew Palmer: Testing the Testing of Your Tests

I'm writing an application in Ruby that makes heavy use of XMLRPC (the application of XMLRPC-over-Unix-socket fame), and so I'm using Mock Objects to mock out the XMLRPC client proxy and provide an interface that doesn't involve having a whole other infrastructure running on my laptop so I can run my test suite. For those who don't know, mock objects are objects which look and superficially act like the real objects you might use to communicate with an external service, but don't actually do the communication -- instead, they return canned responses to your calls. Why is this useful? Well, imagine that the real object talks to a SOAP service on the 'net (such as the Google search API). It means that every time you run your test suite, you need access to the Internet. The external service may also cost something everytime you talk to it -- or it may be impossible to use to test, since there's statistics generation or something going on that means that hammering it for test purposes is just impractical. In addition to returning values to your application, mock objects will usually record what has been called, so that after your test run is complete, you can also verify that all of the methods you wanted called have actually been called. This means that you can have a good idea that what you wanted to happen to the service actually would have been done. Handy. Some people have a (justified) ditrust of Mocks, because it's easy to make a mock object that doesn't perform like the real one (and hence invalidate your tests), but they provide a necessary evil in cases where you just can't use the real object when running your test suite. The XMLRPC proxy I'm using has a bit of a quirk. Everything runs through one method on that object -- XMLRPC::Client#call(). This seems really limiting, especially in a wonderfully dynamic language like Ruby. In reality, it's not too bad -- it makes the object interface easier to mock, and you couldn't emulate the whole thing with method_missing anyway, because you can have various Ruby-illegal characters in XMLRPC method names. The downside to this all-in-one-method thing, though, is that simply verifying that #call() has been invoked a dozen times doesn't really tell me much about whether the mock was used the way I wanted it to be used. My chosen mock object suite, Test::Unit::MockObject, whilst otherwise excellent, is (or rather, was) missing the ability to verify the arguments that are passed to your calls -- you can say "I need methods x(), y(), and z() called", but you couldn't say "I need the call y('foo', 'bar', 42) made". Of course, this change the mock object class is non-trivial, and needs to be tested itself (it'd be pretty lame if a class intended to facilitate automated testing lacked a test suite of it's own). I added a bunch of tests to the test suite, and got some good results. I had a couple of false starts, where I wasn't checking most of the corner cases (where bugs lurk in the shadows), but eventually I got a test suite that was fairly complete, which drove the new features I needed to a good place. So I carted my newly enhanced mock object class across to my production project, and off I went. Except that I was getting some downright weird failure messages when my code wasn't invoking the mock object the right way. Why? Because I hadn't tested that my failure messages were appropriate. Why was that? Because the assert_raise assertion in Test::Unit doesn't have a facility to make sure that you're passing back the right exception message, only that you're passing back the right exception class. Whisky, Tango, Foxtrot? Over. (This space intentionally left blank for me to insert the correction to this claim that the lazyweb is sure to provide) So I had to write a new assertion (assert_exception_message) which checked that both the right class and the right message came back. This code, of course, needs to be tested too, because otherwise you can't be sure that your test code is performing right. At this point, I was writing test code to test a new assertion I'd written so I could test the mock object class I had modified so I could test my application. At this point, things got a bit "meta". It got a bit difficult to separate out the tests from the tests' tests. But I fought through the brain melt, and shortly thereafter came out the other end with a properly working piece of actual application, and all was well in the world. By now, a certain Mr. Tendys is probably rubbing his hands with glee, as he gets ready to espouse at length about how this whole post just proves how utterly useless test-first programming (or even testing in general) is for producing economically-viable software. Let me analyse what I "spent" on getting all this functionality, though -- about 3 train trips home -- maybe 4 hours of time total, including writing the extra tests in my application to use the wonderful new features I'd made. That's not much, in the grand scheme of things. I've wasted that much time in a day skiving off work in the past because I was frustrated with what I was trying (and failing) to program, usually because I was swamped with bugs. What did that four hours of my time buy me? Heaps. I can now better verify my software works as anticipated. I have confidence that my software is a lot more robust than it was before. My tests identified several issues that passed my eyeball check, but blew up when I tried to actually use them in a particular way. But with the help of my tests, I identified the problems quickly and went on my way. Since I was working in a localised area of the application, I was immediately familiar with the code, and could stomp the bug almost immediately. If I'd only done end-to-end testing at the end of development (or worse, released it with the bugs still in there), the debugging would have been much harder because I'd forgotten little details about the code. I reckon that benefit, alone, has probably saved me 4 hours already, since I've spent whole days hunting down little bugs in an ad-hoc fashion in the past. I'm fairly sure most any programmer can empathise with me there.

Next.

Previous.