Search Results: "sto"

3 January 2007

Russell Coker: Xen shared storage

disk = [ 'phy:/dev/vg/xen1,hda,w', 'phy:/dev/vg/xen1-swap,hdb,w', 'phy:/dev/vg/xen1-drbd,hdc,w', 'phy:/dev/vg/san,hdd,w!' ]

For some work that I am doing I am trying to simulate a cluster that uses fiber channel SAN storage (among other things). The above is the disk line I'm using for one of my cluster nodes, hda and hdb are the root and swap disks for a cluster node, hdc is a DRBD store (DRBD allows a RAID-1 to be run across the cluster nodes via TCP), and hdd is a SAN volume. The important thing to note is the "w!" mode for the device, this means write access is granted even in situations whre Xen thinks it's unwise (IE it's being used by another Xen node or is mounted on the dom0). I've briefly tested this by making a filesystem on /dev/hdd on one node, copying data to it, then umounting it and mounting it on another node to read the data.

There are some filesystems that support having multiple nodes mounting the same device at the same time, these include CXFS, GFS, and probably some others. It would be possible to run one of those filesystems across nodes of a Xen cluster. However that isn't my aim at this time. I merely want to have one active node mount the filesystem while the others are on standby.

One thing that needs to be solved for Xen clusters is fencing. When a node of a cluster is misbehaving it needs to be denied access to the hardware in case it recovers some hours later and starts writing to a device that is now being used by another node. AFAIK the only way of doing this is via the xm destroy command. Probably the only way of doing this is to have a cluster node ssh to the dom0 and then run a setuid program that calls xm destroy.

Felipe Augusto van de Wiel: 2 Jan 2007

Happy New Year! Happy 2007!

And a really happy one!
After the cloud of ideas and subjects on the last post, giving the clear idea that I should keep this blog more up-to-date, here is an important note that is missing (including old news that I should had post but didn't, sorry for that). I'm aware that a few people are interested in how the Debian NM process evolves from person to person, on my last update on that topic, I told you that I was recommended to the DAM by my AM. Almost three months later (2006-11-18) Myon (Christoph Berg, Front Desk Member) couldn't find my final report, he pinged my AM and one week later everything was fine again and I got approved to the next step: DAMnation. On the Christmas' evening I got a nice gift from Joerg, DAM approval. Yesterday (2007-01-02) I got the nice e-mail with the subject: New Debian maintainer Felipe Augusto van de Wiel (Thanks to James Troup, aka, elmo). The entire process took me 8 months and 10 days. I would like to say thanks to everybody that helped me pass thru this experience: Otavio Salvador (my advocate and mentor), Christian Perrier and Luk Claes (Mentors and Uploaders), Clément Stenac (my AM), Christoph Berg (Front Desk), Joerg Jaspert and James Troup (DAMs). They are directly involved in my NM process, but they were not alone, thanks for every single person that helped me with tips and hints, that took some time to teach me and all the people behind different projects in Debian (I really start naming everybody but then I realize that it got very large for Planet): Debian Brasil, Debian Volatile (aba, zobel, sgran), Release Team, Debian Women, Debian i18n Task Force and Debian l10n Brazilian Portuguese, Debian Weekly News Team, buildd.net project, Alioth admins and staff, Debian Installer Team, Debian Kernel Team, Debian Mentors, DebConf Team, OFTC Staff, Debian QA Team, Debian Doc Team, Debian WWW Team, Debian Admin Team (DSA)! People, you know who you are, thank you VERY much! You can check my Status Page to see more details about my NM process and more information about the acronyms used on this post. Now, Brazil has 17 Debian Developers (not counting the one that already retired). :-)

2 January 2007

Dirk Eddelbuettel: And another New Year's Day 5k run in Lincoln Park

For the fifth time in a row, I started yet another year with 5k race by participating in the 22th New Year's Day 5k at the lakefront. The race had decent conditions. Chicago is currently having unusually mild weather, which is an extra bonus. It was well over 50 degrees yesterday, but a little cooler around fourty this morning, and unfortunately overcast. And luckily fairly little wind as it can be unplesant at the lake. Following some mild training runs both Saturday and Sunday, I took it relatively easy and finished around 20:15 or 20:20 -- I forgot to stop the Garmin at the finish, and the official results are not yet published. Not a bad time given that I haven't really trained since the last marathon.

1 January 2007

Russell Coker: installing Xen domU on Debian Etch

I have just been installing a Xen domU on Debian Etch. I'll blog about installing dom0 later when I have a test system that I can re-install on (my production Xen machines have the dom0 set up already). The following documents a basic Xen domU (virtual machine) installation that has an IP address in the 10.0.0.0/8 private network address space and masquerades outbound network data. It is as general as possible.

lvcreate -n xen1 -L 2G /dev/vg

Firstly use the above command to create a block device for the domU, this can be a regular file but a LVM block device gives better performance. The above command is for a LV named xen1 on an LVM Volume Group named vg.

mke2fs -j /dev/vg/xen1

Then create the filesystem with the above command.

mount /dev/vg/xen1 /mnt/tmp
mount -o loop /tmp/debian-testing-i386-netinst.iso /mnt/cd
cd /mnt/tmp
debootstrap etch . file:///mnt/cd/
chroot . bin/bash
vi /etc/apt/sources.list
/etc/hosts /etc/hostname
apt-get update
apt-get install libc6-xen
linux-image-xen-686 openssh-server
apt-get dist-upgrade

Then perform the basic Debian install with the above commands. Make sure that you change to the correct directory before running the debootstrap command. The /etc/hosts and /etc/hostname files need to be edited to have the correct contents for the Xen image (the default is an empty /etc/hosts and /etc/hostname has the name of the parent machine). The file /etc/apt/sources.list needs to have the appropriate configuration for the version of Debian you use and for your preferred mirror. libc6-xen is needed to stop a large number of kernel warning messages on boot. It's a little bit of work before you get the virtual machine working on the network so it's best to do these commands (and other package installs) before the following steps. After the above type exit to leave the chroot and run umount /mnt/tmp.

lvcreate -n xen1-swap -L 128M /dev/vg
mkswap /dev/vg/xen1-swap

Create a swap device with the above commands.

auto xenbr0
iface xenbr0 inet static
pre-up brctl addbr xenbr0
post-down brctl delbr xenbr0
post-up iptables -t nat -F
post-up iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/24 -j MASQUERADE
address 10.1.0.1
netmask 255.255.255.0
bridge_fd 0
bridge_hello 0
bridge_stp off

Add the above to /etc/network/interfaces and use the command ifup xenbr0 to enable it. Note that this masquerades all outbound data from the machine that has a source address in the 10.1.0.0/24 range.

net.ipv4.conf.default.forwarding=1

Put the above in /etc/sysctl.conf, run sysctl -p and echo 1 > /proc/sys/net/ipv4/conf/all/forwarding to enable it.

cp /boot/initrd.img-2.6.18-3-xen-686 /boot/xen-initrd-18-3.gz

Set up an initial initrd (actually initramfs) for the domU with a command such as the above. Once the Xen domU is working you can create the initrd from within it which gives a smaller image.

kernel = "/boot/vmlinuz-2.6.18-3-xen-686"
ramdisk = "/boot/xen-initrd-18-3.gz"
memory = 64
name = "xen1"
vif = [ '' ]
disk = [ 'phy:/dev/vg/xen1,hda,w', 'phy:/dev/vg/xen1-swap,hdb,w' ]
root = "/dev/hda ro"
extra = "2 selinux=1 enforcing=0"

The above is a sample Xen config file that can go in /etc/xen/xen1. Note that this will discover an appropriate bridge device by default, if you only plan to have one bridge then it's quite safe, if you want multiple bridges then things will be a little more complex. Also note that there are two block devices created as /dev/hda and /dev/hdb, obviously if we wanted to have a dozen block devices then we would want to make them separate partitions with a virtual partition table. But in most cases a domU will be a simple install and won't need more than two block devices.

xm create -c xen1

Now start the Xen domU with the above command. The -c option means to take the Xen console (use ^] to detach). After that you can login as root at the Xen console with no password, now is a good time to set the password.

Run the command apt-get install udev, this could not be done in the chroot before as it might mess up the dom0 environment. Edit /etc/inittab and disable gettys on tty2 to tty6, I don't know if it's possible to use them (the default and only option for xen console commands is tty1) and in any case you would not want 6, saving a few getty processes will save some memory.

Now you should have a basically functional Xen domU. Of course a pre-requisite for this is having a machine with a working dom0 installation. But the dom0 part is easier (and I will document it in a future blog post).

David Welton: One Year of Rails, on_idle plugin

I've been using Rails for about a year, and I am, in general, quite satisfied. It really is a big step forward in terms of web programming, and I've found the whole experience very enjoyable. In a year I've managed to crank out a number of sites in my spare time (in between various other activities such as the occasional bike ride and Hecl hacking): As promised, one of my goals is to shift a bit towards producing open source software as a side effect of revenue generating work. The first small result of that is the on_idle plugin I packaged up for Rails. It's the code that Stuff To Do uses to tell whether people are active or not. Installing it should be as simple as:
./script/plugin install http://svn.dedasys.com/public/on_idle
It's just a few lines of Javascript code that are wrapped up in a way that makes it trivial to use from Rails views:
def on_idle(timeout, options, wakeoptions)
<%= on_idle(600,  :url =>   :action => 'notify_idle'  ,
                  :url =>   :action => 'notify_wake'  ) %>
Let me know if there is anything I should fix/change/improve. If this plugin works out, I will post, in short order, a plugin that improves the default Rails drag and drop functionality.

Russell Coker: free software liason?

In my previous work as a sys-admin I have worked for a number of companies that depend heavily on free software. If you use a commercially supported distribution such as Red Hat Enterprise Linux then you get high quality technical support (much higher than you expect from closed-source companies), but this still doesn't provide as much as you might desire as it is reactive support (once you notice a problem you report it). Red Hat has a Technical Account Manager offering that provides a higher level of support and there is also a Professional Services organization that can provide customised versions of the software. But the TAM and GPS offerings are mostly aimed at the larger customers (they are quite expensive).

It seems to me that a viable option for companies with smaller budgets is to have an employee dedicated to enhancing free software and getting changes accepted upstream. For a company that has a team of 5+ sys-admins the cost of a developer dedicated to such software development tasks should be saved many times over by the greater productivity of the sys-admins and the greater reliability of the servers.

This is not to criticise commercial offerings such as Red Hat's TAM and GPS services, a dedicated free software developer could work with the Red Hat TAM and GPS people thus allowing the company to get the most value for money from the Red Hat consultants.

If using a free distribution such as Debian the case for a dedicated liason with the free software community is even stronger, as there is no formal support organization that compares to the Red Hat support (there are a variety of small companies that provide commercial support, but I am not aware of a 24*7 help desk or anything similar). If you have someone employed full-time as a free software developer then they can provide most of your support. It would probably make sense for a company that has mission critical servers running Debian to employ a Debian developer, a large number of Debian developers already work as sys-admins and finding one who is looking for a new job should not be difficult. There are more companies that would benefit from having DDs as employees than there are DDs, this isn't an obstacle to hiring them as most hiring managers don't realise the technical issues involved.

This is not to say that a company which can't hire a DD should use a different distribution, merely that their operations will not be as efficient as they might be.

31 December 2006

Evan Prodromou: 9 Niv se CCXV

My brother Nate and his girlfriend Kristen live in the Laurel Heights area of San Francisco, just north of Presidio Heights, across the street from Laurel Village on California Street. They invited us up for dinner at their house last night, and since my Mom and Dad hadn't seen their apartment yet, they decided to join us, too. Maj, Amita June and I went up early yesterday afternoon, right after naptime. (That's our main measure of time -- before naptime, after naptime, before bedtime, after the baby goes to sleep.) We initially planned to go downtown and do some post-Christmas shopping, but we hit gruesome traffic getting off North 280 into China Basin. Friday afternoon traffic in San Francisco is pretty crappy any day of the month, but yesterday was Critical Mass, which really tangles things up downtown. So we juked west and headed out to Ocean Beach instead. I parked at the end of Golden Gate Park by the giant windmills. We all walked out onto the beach -- Amita at 0.5 mph, of course, and rarely in the correct direction -- just at sunset, which was great. It was our second beach day in a row, but it was great being out there. The baby chased dogs and waves, and we got to watch the sun go down. There were kites everywhere -- I explained to Amita how people had to hold their strings so that they could keep flying. It's so counterintuitive. We dropped into the Beach Chalet on the Great Highway for a late afternoon snack. Amita June had her trademark grilled cheese sandwich, Maj and I split a plate of calamari. The chalet does its own beers, so Maj had a Christmas ale and I tried the more than decent stout. We got to Nate's place just after 6, and they ordered Indian food from Rotee in the Lower Haight. It was excellent -- we got some tandoori fish and about 12 different curries. Maj's brother Brian came too, and we stayed up pretty late talking. Maj and I stayed over at Nate and Kristen's last night, then shared coffees this morning from Peet's. There's a really nice Cuban place, Caf Lo Cubano right up the street, but we wanted bagels from Noah's, so it's just natural to get Peet's, too. We had a long ride home, though -- Maj and I are both feeling sick, and the baby's not too happy about long car rides anymore. But we got home for a good nap and a radio interview. tags:

Get Connected Radio I did an interview today on Get Connected Radio about Wikitravel. It was pretty fun -- the interviewers were pretty clued-in about wikis, so we got to talk a bit more about the interesting travel aspects. Also cool that they emphasized the "open source" aspect, which is something a lot of media don't cover. tags:

30 December 2006

Tollef Fog Heen: A moderately complicated OpenWRT setup

At home, I have had a setup with a wireless router for quite a while. It's more or less a stock OpenWRT setup, but I have split the joined all the wired ports into one virtual interface (actually, I think they're just on one VLAN) and split off the wireless. The wireless is open to the world, but I have a fair amount of packet filters there so it doesn't get too annoying. Some people have no shame and run bittorrent and other file sharing utilities on other people's open wireless. Anyway, my setup is no longer so simple. I bought a WRT54GL to provide better reception in other parts of the flat and wanted to join those two. After a little bit of reading, I found what I wanted: WDS. Due to a previous misconfiguration of the WRT54GS, the WDS connection was joined onto the br0/LAN segment and not the wireless segment. That was easily enough fixed, but it's always a bit scary to change network settings on headless devices. (I did manage to lock myself out, but I could ssh through in from the wireless network, so I just used the WRT54GL to bounce through.) Once that bit was up, I could set up WDS, I did as the documentation told me and did it with lazywds (anyone can do WDS with you) enabled. It worked, so I turned it off and rebooted both routers (again..), and it still worked. Yay!

Russell Coker: more about vista security

While reading the discussion of Vista security on Bruce Schneier's blog it occurred to me that comparing the issues of DRM that face MS with the issues faced by SE Linux developers provides some benefits.

SE Linux is designed to enable the owner of a computer to effectively enforce security policies to protect their system integrity and the confidentiality of their data. Some of the SE Linux users (military users) use all the available features, but most people only use the targeted policy which provides a sub-set of the system integrity and data confidentiality protections that are available to give a greater ease of use.

Fedora and Red Hat Enterprise Linux ship with the SE Linux targeted policy enabled by default. This policy is not something that most users notice. The main program that is commonly used which might have an issue with the default SE Linux policy is Apache. Fedora and RHEL systems that do not run Apache (which is most of them) can run SE Linux with almost no costs.
setsebool -P httpd_disable_trans 1
/etc/init.d/httpd restart
It seems clear to me that there is no good reason for disabling SE Linux by default. There are reasons for running a particular daemon in the unconfined_t domain via the FOO_disable_trans boolean. EG to run Apache without restrictions you would type the above commands.

In spite of the SE Linux targeted policy being so easy to use, the fact that it prevents certain daemon compromises from allowing immediate control of the system, and also prevents some kernel exploits from working, there are still some people who turn it off when installing Fedora and RHEL systems and advise others to do so.

Given this great fear of some people to use a technology that is specifically designed for their own benefit I find it difficult to imagine that any users will be inclined to accept the MS DRM technology that is specifically designed to go against their interests.

ESR claims that the 64bit transition is the critical period for Linux to move on the desktop. While he makes many interesting observations I don't find his argument convincing. Firstly current P4 CPUs with PAE can handle significantly more than 4G of RAM (64G is possible now). Secondly it's quite possible to run a 64bit kernel with 32bit applications, this means that you can use a 64bit kernel to access >64G of RAM with each 32bit application getting direct access to something slightly less than 4G of virtual memory. As ESR's point seems based on total system memory the 4G per application doesn't seem to be an issue. As an aside the only applications I've used which could benefit from >4G are database servers (in the broadest interpretation - consider an LDAP server as a database) and JVM environments. Again it would not be difficult to ship an OS with mostly 32bit code that has a 64bit kernel, JVM, and database servers.

I hope that Vista will be a good opportunity for mass transition to Linux. Vista offers little that users desire, many things that will hurt them, and is expensive too!

With Vista you pay more for the OS and more for the hardware (Vista has the usual excessive Windows hardware requirements plus the extra hardware for TPM encryption) without providing anything substantial in return.

What I want to see next is support for Security Enhanced X to protect desktop environments against hostile X clients. This will make a significant difference to the security of Linux desktop environments and provide another significant benefit for choosing Linux over Windows. While MS is spending their effort in making their OS act against the best interests of the users we will keep making Linux enforce the access controls that users need to protect their systems. Hopefully Linux users will choose to use SE-X, but if they don't they are given the freedom to make that choice - unlike the poor sods who use Windows.

Wouter Verhelst: f-spot vs digiKam

Since I have been having a digital camera since a few weeks now, I've had a need for an application to manage my pictures. The two applications that people have pointed me to are f-spot and digiKam, which also seem to be the most popular applications in this category for Linux. Since I use neither KDE nor GNOME as my user interface, it doesn't matter much to me which I install; so I've tried them both. Their feature set is quite different; unfortunately, though, they both have some features which the other doesn't, which makes choosing for one or the other rather hard. Since their on-disk format is rather different, it's impossible to use them both at the same time—at least not if I don't want to enter commentary and tags each and every time; so I'll have to choose one or the other based on their features. Since that requires me to actually compare them, I thought I might as well make a blog post out of that. Note, though, that this comparison is in no way intended to be complete; it only compares those features which I really care about. Features digiKam F-spot My opinion After having used f-spot for a few weeks before I tried digiKam, I have to be honest and say that I don't like the concept of albums. They do not add value; everything they allow you to express can equally well be expressed with tags. Additionally, one can categorize a picture in only one album, whereas it's possible to categorize pictures in as many tags as you would want. Just creating one album which contains all my pictures, with tagging used for categorizing, doesn't help either; that way, digiKam would store all my pictures in a single flat directory, which would become problematic when the number in the picture filenames wraps around. I do love the scoring thing in digiKam. A favourites tag just doesn't cut it; and creating five tags for scoring would make things like find all pictures that have a score of three or above rather cumbersome, and sort by score outright impossible. However, the fact that it's not possible to filter by score makes it all rather useless. The export to gallery function in digiKam is horrible. I have to select my pictures blindly; none of the metadata which I tack on them can be used to help select which pictures I want. Workaround: use whatever filtering is available to select the right pictures and add them to a temporary album from which I then upload all pictures, but that's silly (and requires disk space for no good reason). Additionally, there seems to be a bug in the interface, which means that I have to babysit an upload (with no workaround). And I can't even view my pictures to spend the time waiting. Bah. F-spot isn't without problems of its own. Due to a bug in mono, it crashes rather often on my PowerPC laptop. When that happens, it can't be restarted until the X server is restarted. Workaround: use Xnest, but that makes it impossible to view pictures in full-screen mode. Also, since f-spot is a GNOME application, its options dialog is as helpful as a pair of soccer shoes when you're out swimming. No surprises there. Conclusion Which one do I prefer? I'm not sure. The digiKam upload interface is positively annoying, especially the bug which requires me to click continue after every picture. For that alone, I might ditch it. On the other hand, it has a slew of interesting features (the scoring, to name one) that f-spot lacks, and that pull me more towards digiKam. I guess I'll have to give it a few days of thought. But hey, at least I know where I stand now.

David Welton: Stuff To Do

Regarding my previous posting, the first thing that I wanted to release is called "Stuff To Do", and is a simple, elegant priority queue for getting things done. It lets you reprioritize, track time spent on tasks, generate reports on time spent, and most importantly, share with other users. You can create groups of people who can view one another's tasks, and give tasks to other users, all via a very intuitive interface (javascript is, however, required). It's all meant to stay out of your way as much as possible, even the time tracking requires only that you visit the browser window every so often to let it know you're there, rather than fiddling with (and sooner or later forgetting about) start and stop buttons. Perhaps it's not accurate down to the second, but the idea is to give you a general idea of what you've been up to, rather than something you have to slavishly click on all the time. The group interface is also meant to be easy to use to get a quick idea of what other people are working on, or share tasks with other people. For instance, if you're a project manager, you could create a bunch of tasks, and then just drag and drop them to other people in the system. You can't change other people's priorities (yet), because I think it's better if you simply ask them yourself - technology isn't a substitute for communication! While I work on the paypal interface (I looked into Google Checkout, but it's still got some limitations), I'm going to let people sign up for the group-enabled version with six months for free. It won't cost too much per user when I roll it out in any case, probably somewhere south of $20. The basic version is likely to remain free as long as I can cover hosting costs. I've been using it myself at work and home for the past month or so, along with a few of my colleagues, and it seems to fill a nice niche in between more heavyweight issue tracking tools like JIRA, and the index cards/bulletin board we'd been using. Check it out - I hope you like it! In any case, let me know what you think.

29 December 2006

Evan Prodromou: 8 Niv se CCXV

We had a great day on the coast yesterday, just the three of us -- Maj, me, and Amita June. We drove over Highway 92 from my parents' place in Los Altos Hills, a pretty steep and winding highway, down to Half Moon Bay on the peninsula's coastline. We were going to head up to Montara Beach, one of my favorite places in the Bay Area, but it's a bit of a drive and we had plans to be back in Mountain View for dinner. So instead we turned off at the nearest coastal access -- Venice Beach, right in HMB -- and parked for a little beach time. Unfortunately, the strong winds and storms that we've had in the Bay Area this week have also caused higher-than-normal surf. We couldn't actually get to the beach from our parking lot -- Frenchman's Creek was blocking the staircase down to the sand. We think it might have been diverted by the high surf and winds. Anyways, we had to walk about 20 minutes out of the way to actually get down to the beach. Which was, of course, fantastic. I don't think there's anything quite like a Costanoan beach on a December day. The Bay Area's Pacific coast is quite unfairly ignored by most visitors, but a drive down scenic Highway 1 from SF to Santa Cruz can give a really good idea of what most of coastal Northern California is like -- from Santa Barbara up to Eureka. Venice Beach has nice yellow sand, Amita June loved running through the sand in bare feet. We chased seagulls (Amita tried to talk chicken-language to them: "bok bok bok!") and kicked around a soccer ball we'd brought. The surf has been exceptionally high, and it was probably pretty reckless to do, but the tide was going out, so we took off our shoes and dipped our feet in at the top of the sand. Amita loved seeing the waves come in, and running away when they got close. After a lot of playing and a little bit of a tantrum when we decided to leave, we all headed to lunch at the Distillery in Moss Beach. The Distillery is a California historical site -- an old speakeasy, built on the peninsula's coast in the 1920s when Canadian rum-runners would drop off their wares under these remote cliffs. It's kind of hard to find -- down some teensy residential streets on the ocean cliffs -- but it's a local landmark. The view was excellent and the food was great -- I had a big tub of steamers, and Maj had a really good plate of seaweed-wrapped prawns. The only problem was the wait -- we got there just as the lunch rush was starting, and didn't leave until after 3PM. That would have been nice for a romantic lunch for two, but with a one-year-old you're on a pretty tight schedule. Back over the Coast Range and down again to the introspective Bay, we took long naps then headed over to brother Andy's house for turkey soup and some family time. I dunno if there's any kind of tired like sun-and-wind tired from the beach. tags:

Ian Murdock

Phil Wainewright: “The idea, by the way, that users are going to keep their own private backup somewhere else, as Google’s PR rep suggested in an email to TechCrunch, is patently absurd. The whole point of storing email in the cloud, surely, is to avoid having to download hundreds of megabytes to your hard disk every night just in case the service falls over.”

Jonathan McDowell: Ubuntu on the Advent 8111

Katherine's father bought her mother a laptop for Christmas. I am ashamed to admit that although I was responsible for the specification it was purchased from PC World. There is a lack of shops in Northern Ireland where you can walk in and purchase a reasonably cheap laptop unfortunately. The model we ended up with was an Advent 8111 (Dixons link as it's saner than the PC World one). It's not actually a bad spec; Core Duo 1.6GHz, 1GB RAM, 80GB HD, wireless/ethernet/modem, 15.4" 1280x800 widescreen TFT. I think it claims up to 3 hours battery life and I certainly had 2+ out of it though not under heavy use. I decided that it was getting Linux; Katherine's mum isn't used to any form of computer so there are no preconceptions about Windows to get over. While I'm a Debian person myself I felt it was time to give Ubuntu a chance; mjg59 (and others I'm sure) has spent a lot of time trying to get it happy on laptops and make sure things Just Work. I didn't have a lot of time to sit fiddling with the setup, so a shiny out-of-the-box distro seemed ideal. I downloaded ubuntu-6.10-desktop-i386.iso and burnt myself a CD. Dropped it in the drive and it booted into the live CD installer fine. The install process was simple and it managed to resize the Windows partition without problems (I would have deleted it but I couldn't convince the Windows rescue CD creator to work and I don't want to burn my bridges until I'm sure Linux works out ok for the owner). Rebooting into the freshly installed system I was surprised at the time the boot process took. It certainly felt a lot longer than it takes my (lower speced) laptop to boot to a GDM prompt under Debian. Also the display looked a bit fuzzy. Further investigation led to the discovery that although X correctly detected a panel size of 1280x800 it was only using 1024x768. Much searching found me i915resolution which did some magic that made things work. However this doesn't appear to be part of Ubuntu proper so I'm not sure if was the correct solution or if I should have done something else? Getting to the point where I could download i915resolution was interesting too. My parents have a WEP encrypted wireless network (to prevent casual use rather than because it's secure). I was expecting Ubuntu (which detected the Intel wireless card fine) to pop up some sort of dialog saying it had found a network and would I like to connect (if I provided the key). Something network-managery. But no. Even when I went to the network control panel and added all the details the connection didn't seem to come up. I gave up and did it manually with iwconfig and dhclient (I needed it to work quickly and at present it won't need wireless usually). Once I had the display working happily my other task was to tame the modem. It's an Intel HDA thing and I'd hoped sl-modem-daemon would drive it. Of course it didn't. Although it's an Intel chipset it has a bloody Conexant codec on it. Which of course there are no free or Free drivers for. I ended up trying the trial Linuxant driver, which did work fine at 14.4k, but that's really painful so I gave up and paid for the full version. I'd really rather have voted with my feet and ended up with some proper modem hardware, but it would have been an extra set of wires and cost more. I hate Conexant. Anyway, the drivers work (though seem to break sound; I haven't had enough time to prod this and the modem is much more important to have working). Hopefully in time I'll convince them they really want ADSL, but at present I think it would be quite hard as they don't have a high expected use. Once the modem was working I needed an easy way to dial up. I started playing with modem monitor, which had been installed by default. However I just couldn't figure out how to get it to allow me to dialup and dial down - the activate/disable options stayed greyed out. So I installed GNOME PPP which seems to work fine and be easy enough to drive - put a nice link to it on the desktop and stored all the details so it's a double click to launch and then a click of the "Connect" button. My final issue was that once I actually took the laptop to Katherine's house to show her mum how to use it it started hanging on boot. Booting into recovery mode showed a soft lockup error message around the point where it was setting up the network interfaces. I think this might have had something to do with me hitting the wireless kill switch (no point having it on when there's no wireless in the house), as disabling the device in the BIOS made the problem go away. I didn't have enough time to do a fully exhaustive check, but will look at it in the future. I wait with interest to see how use of the laptop goes. Expected usage to being with is mainly web and email (provided by the Ubuntu defaults of Firefox and Evolution) so hopefully it shouldn't be too problematic now I've fought the install process. I was really quite surprised at the problems I encountered (well, aside from the modem drivers); I'd expected a much smoother install that would leave me with everything working fine out of the box. I haven't yet filed any bugs or done more investigation - I only had about a day to setup the machine so couldn't prod it more just yet. I will of course try to do so when I get a free moment, but if I missed some obvious stuff please do point it out to me! (As if you wouldn't...) Oh, and here's some lspci output for anyone interested in some more details about the laptop:
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA])
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) (prog-if 00 [Normal decode])
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02) (prog-if 00 [Normal decode])
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02) (prog-if 00 [Normal decode])
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02) (prog-if 00 [UHCI])
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02) (prog-if 00 [UHCI])
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02) (prog-if 00 [UHCI])
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02) (prog-if 00 [UHCI])
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) (prog-if 01 [Subtractive decode])
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02) (prog-if 80 [Master])
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 10)
05:01.0 CardBus bridge: Texas Instruments Unknown device 8039
05:01.1 FireWire (IEEE 1394): Texas Instruments Unknown device 803a (prog-if 10 [OHCI])
05:01.2 Mass storage controller: Texas Instruments Unknown device 803b
05:01.3 Class 0805: Texas Instruments Unknown device 803c (prog-if 01)

Evan Prodromou: 7 Niv se CCXV

I've been feeling sick since the day after Christmas. Maj says that when you push your body too hard, it gives you a cold to tell you to sit back and take it easy for a little while, fercryinoutloud. I think that's what happened to me -- almost as soon as I had some free time, I got a sore throat, body aches, stuffy sinuses, fatigue. It's been OK, though -- I've had a lot of time to sit at my parents' house, fool around on the computer without doing anything serious, and read books. I got a proposal for a new project done, and some API designs, but I also am almost finished with James Fenimore Cooper's The Pathfinder, which has been a real enjoyable book. I picked it up in Lake Placid while we were there at the beginning of the month, and I'm just getting around to finishing it. I guess I'm just getting myself on a Colonial New York kick. I've also watched about 400 episodes of It's a Big, Big World, a great kids show starring a good-natured stoner sloth and some spazzy monkeys. They deal with lots of interesting issues, but mostly the answer to their problems is, "Get over yourself, chill the hell out, and do some tai chi." Which I think is a pretty good piece of advice for everybody. tags:

Edinburgh So, I just registered for Debconf7, the 7th annual Debian conference, to be held in June 2007 in Edinburgh. I'm excited to go -- I've never been to Scotland, and I'm looking forward to the visit. Nor have I been to a Debconf before! I also submitted an abstract for a paper on the Debian Creative Commons Workgroup, a kind of extended history from the Debian Creative Commons Workgroup Report?. I want to cover the details of the relationship between Debian and CC, the history of the workgroup, and give some lessons learned from the process. I'd also like to draw some conclusions about using one of Debian's greatest assets -- our moral authority in the Free Software world -- to shape the future of FLOSS and Free Content. tags:

Mysteries of Web comics I guess there are just some things I'll never understand about the aesthetics and economics of Web comics. Like, why hasn't Patrick Farley, author of the great e-sheep comics, published anything since 2003? e-sheep is some of the most moving, intelligent, and deep work of any kind on the Internet. I'd really love to see more. Conversely, why did the lurid, absurd, and obnoxious Leisuretown go off the air entirely for a few years? And why did it come back? And if it's back, why hasn't the enigmatic Tristan A. Farnon added any new comics? Also, I still wonder if that's his given name, or if he's stuck with a BBS handle from back in the day when he thought All Creatures Great and Small was really cool. Leisuretown is another of the best things on the Web -- crude, angry, existential. I really like it. tags:

28 December 2006

Adrian von Bidder: I Am A Top Contributor

Now either I'm really astonished or somebody has seriously strange metrics. I suspect it's the second. According to Aleksandar Vasovic (working at the university of K ln (Cologne) in Germany):
[...] we analysed the debian mailing list archives, especially the debian-devel mailing list, as it is a good representation of the whole network. [...] we identified the 100 main actors and therefor came across your email address.
So, somebody who talks quite a bit on the mailing lists, but really only maintains one package is already one of the top 100 "actors" in Debian? I seriously doubt it. (And yes, receiving the mail I quoted and seeing that the questionnaire is not online yet(?) does not improve my impression either.) Now (more talk) of course the right thing to do would be to define as many metrics as possible and see how often I am in the top 100. Anyway, when I feel I have to say something I will continue to do so, and otherwise just thank the (at most 99 ;-) people who do more for Debian than I for creating and maintaining all the cool stuff I can use for free. And, obviously, I also have to mention the upstream authors who make Debian possible in the first place. Still, metrics got me thinking. One metric I'd be really interested in is a weighted "I respect person X" one: everybody submits rankings of people who (s)he thinks do a very good job in Debian and who tend to do the "right" things, both in technical matters but also regarding community or organisation stuff. Then, from these rankings, a overall ranking is calculated, but with a twist: have the opinions of people high in the overall ranking count more than those with lower rankings - after all, the latter are inclined to trust the former people's judgement. Now, the obvious thing to do would be to elect the DPL with this ranking. But it could go further: maintain the ranking continuously (i.e. let people adjust their ranking at any time) instead of only polling once a year, publish the ranking (or perhaps just the top 20 or top 50?), let the top 5 be a leadership team instead of having a single DPL, adjust the leadership team as often as necessary as the top 5 of the ranking change (minimum terms of 3 months and only change the team when somebody falls out of the top 5 for at least a month or so to keep things from boiling over too quickly). Obviously, rankings have their problems, and this approach wouldn't suddenly solve all of the project's problems and would probably also introduce new ones, but I feel the continuous monitoring by the project's members might make those leaders more realistic when stating their goals by eliminating the campaign frenzy. #include stuff about people not actually wanting to be part of the leadership team and stuff about requiring some regular confirmation from the electorate to weed out people who just recorded a ranking at some time but don't follow events anymore. Ok, now this was absolutely in the Talk Is Cheap™ category.

Daniel Burrows: Microsoft: Copyright law is for other people?

Unsurprising, sad, but still amusing: this guy photographed talks given at a computer conference and released them under the Creative Commons Non-Commercial Attribution license. A Microsoft senior program manager copied his work as part of an advertisement, without attribution.

Try violating Microsoft's copyrights and they'll bury you under lawyers and moral outrage. But catch them violating yours and it's laughed off as no big deal (some of the huffy responses from Softies on the blog post I referenced are pretty funny).

Of course, in a real sense, it isn't a big deal: "might makes right" is a dreadful moral principle but a largely accurate summary of how the world actually works. But exposing the hypocrisy of the powerful at least forces them stop pretending that they are anything but overgrown, sanctified, self-righteous bullies. (this doesn't actually make anything better (even if you get rid of one bully, he'll just be replaced by another one), but at least it means you don't have to gag on hypocrisy every time they open their mouth)

John Goerzen: Christmas Memories, Part 3

In the first two posts about Christmas, I remembered Christmas at home and with my dad's family. Today I'm remembering Christmas with my mom's family, and tomorrow -- the last post on this subject, I promise -- more recent Christmases.

The first thing that comes to mind about Christmas with mom's family is Grandma's peppernuts (pfeffernuesse to any Germans reading this). Grandma made wonderful peppernuts. And she made huge batches of them for Christmas. I remember gallon jugs being passed around.

Peppernuts are a small sweet dough, rolled out, and cut into pieces about the size of a peanut M&M, then baked. My mom has been making them, and they look like this:



In fact, I can't really remember what sort of main dishes we used to have. Guess I had a one-track mind. I suspect that we also had some of Grandma's famous cherry moos (rhymes with "close").

Us kids usually were the only ones to get gifts there, but that was fine with me. It was also great to spend time with my uncles and aunts, none of which lived in the area. They were always good for some jokes, or maybe a math puzzle.

I seem to recall that Grandma and Grandpa also joined our family for our Christmas celebration on Christmas Eve some years. Here's my Grandma reading from the Bible to my brother one of those Christmases:



Grandma has always loved being around her grandchildren, and she always seemed to have plenty of time for each one of us.

Thinking of my Grandpa Klassen reminds of first of the German hymn Nun Ist Sie Erschienen (MP3 and PDF in the comments at that link). It's still sung, in German and English, at Christmas in our church.

Grandpa was great with the harmonica. And the song I best remember him playing at is Nun Ist Sie Erschienen. I remember sitting on his lap many times listening to him play it. And I'm pretty sure it was a year-round song for him. Terah and I even had it sung at our October wedding -- if it was year-round for Grandpa, that was good enough for us. It's always special to sing the song in church.

I was going to have a picture of Grandpa with his harmonica here, but I didn't get it ready in time. So I'll have to describe it. Imagine a black and white picture of a gentle man, dressed conservatively, holding a harmonica in his hands. He's looking towards it tenderly -- it seems to be something important, and maybe it represented fond memories for him, too. I'll post the photo as soon as I get a copy of it.

Back on December 1, 1990, just at the start of Christmas season, I remember the phone ringing. Dad answered, and I knew quickly that something was wrong. Grandpa had died earlier that day, while doing something he loved -- visiting his children and grandchildren in western Kansas.

His funeral followed shortly. At 11, I was starting to become interested in photography, and I set up my tripod and took this picture of the church on the day of his funeral.



So many people still remember the church that day and commented that having the sanctuary all decorated for Christmas was the perfect way to remember Grandpa.

Grandma still talks about it, too. My mom and I played a piano duet arrangement of Nearer, My God, To Thee. After we finished, Pastor Epp said, "If the music in heaven is anything like that, it will be a wonderful place indeed." He passed away not long after that, too, but Grandma still remembers that comment verbatim (and I'm sure would gently correct me if I made the tiniest of mistakes recalling it here).

In a few days, we'll be celebrating Christmas with Grandma -- and also her 92nd birthday. I bet there will be some peppernuts there.

27 December 2006

Jordi Mallach: At the crossroad

Two Fridays ago, on the 15th of December, I finished my support contract with Canonical. Last Wednesday, or just 5 days after leaving Canonical, was my last day working for LliureX, the Valencian Debian-based educational distro which is being developed by the Conselleria de Cultura, Educaci i Esport. Definitely an intense week... In both cases, terminating the contract was my decision. I was working for Canonical for a small amount of hours per month, and I enjoyed doing it as it allowed me to work along with the great people who are developing Launchpad in a unique company like Canonical, but at some point my stress started to pile up and freeing time for myself seemed a good thing to do. I also had been working at LliureX for 2.5 years and I was starting to feel I had to move on, as the project has changed a bit since I joined it and because I think I need to see new things and explore new challenges. And the challenge is called ITI, a CS research institute in the Universitat Polit cnica de Val ncia, where I'll start working in a pair of weeks thanks to ex-lliurex co-worker Sergio. My main task will be sysadmin work, but the ITI gets many interesting contracts every few months, and I suspect I'll be working with Debian and Ubuntu at work very soon. The new job is pretty close to my house and the idea is that being in the University campus and having some more free time will allow me to retake a few activities like completing my studies, resuming some of my triathlon training (you've gotta see the awesome athletics ring and olympic swimming pool just 100 metres away from the institute!) and other stuff I have been neglecting for way too long. I leave behind quite a few friends and many good people, and getting used to the idea of not speaking or chatting to them on a daily basis isn't that easy. To compensate, I'm sure I'll meet lots of cool people next year. Bones festes!

Lars Wirzenius: Random hacks: Notetak

I always spend my Christmas with my parents, and for the past few years, I've always started some new little hobby hacking project or another. Three years ago I started writing a new text editor, sex.py. I still use it, although I haven't had much time to improve it further. This year, I wanted to see if I could come up with a little something to jot down random little notes easier, to keep track of said notes, and to help me manage a GTD workflow better. Last summer, I started dabbling with the "Getting Things Done" method by David Allen. It's basically a way of keeping track of things that you need to do. A bit more sophisticated than a simple todo list, without getting seriously bureaucratic or tedious. So far, whenever I follow the method, it seems to be working, although I'm not sure if it is because of using this particular method, or because I'm a method at all. GTD requires keeping a few lists of things: todo items that can be done now (assuming suitable context, but with no unfilled dependencies), todo items that might be done some day, etc. The tool I chose for this last summer is Gjots2. It's a GUI outliner tool that works adequately, but is not smooth enough to prevent me from looking at better tools. One of the things missing from Gjots2 is a good search facility. You can't do things like "show me all items containing the words 'Debian' and 'upload'", for example. Some time ago, while browsing 43Folders, I learned about a small application for MacOS X, called Notational Velocity. I don't have a Mac, so I can't try it out myself, but it works by keeping track of small text-only notes, each with a title, and has a user interface geared at searching. Instead of having a tree or a list of notes, it has a title bar where you enter some words, and it shows you a list of the notes that match those words. You can then either select something from the list, or press Enter to create a new note, with the text you entered as a title. This sounded intriguiging to me, and I thought it might be interesting to experiment with it for my note taking and GTD needs. So I spent one night at my parent's writing a first approximation of a prototype. I'm calling it Notetak.
Notetak screen shot Notetak, first prototype. The drop-down menu shows the notes that contain the word "notetak", in upper or lower case.
I've today switched from Gjots2 to Notetak, and it's already clear that it's a completely different approach to things. So far I like it, but I'll have to experiment with this for a few days or weeks to see if it really works. I'm pretty sure the basic approach would benefit from having additional tags for notes, or possibly having stored searches. I keep finding myself searching for, say, "@next" a lot to get a list of GTD next actions. The source (and a preliminary .deb) is on my home page, in case you're interested. Please note (ahem) that this is highly experimental and may eat your data. I may abandon it at any moment, if I decide that it's not worth it, but if not, it might also change frequently. If you do use it, I'd be happy to receive any bug reports, suggestions for improvements, and patches you may come up with.

Next.

Previous.