Search Results: "mak"

8 June 2006

Matthew Palmer: A Fool And His Money are soon parted...

... but not nearly soon enough. The Daily WTF is almost always worth a read -- it makes me feel better about my lot in life. Today's entry, though, shocked me more than a little. How do people this dumb even breathe? Certainly, they don't deserve to be in control of a business.

7 June 2006

Christoph Berg: Post-DebConf Woes

After getting back from DebConf and the 1-week trip afterwards, it took me a full week to get out of most of the chaos travelling usually leaves behind. I still haven't unpacked all stuff from the suitcase, but at least managed to wash the dirty clothes. Oh, and I've signed all keys from the KSP - including madduck's, he showed me his proper German ID card when I asked what this funny Transnational Republic was. (Oh, and if you were listed at the KSP, didn't show up, but I've signed your key anyway, that's because we met before and you have a new UID, in case you are wondering.) The pictures I took are still scatered over several home dirs on different hosts, I'll try to sort/rotate/rename them over the next days. (Oh, and DebConf was great, the trip afterwards likewise - I'll try to write a separate blog post on that later...) At the moment I'm slowly starting to get into frontdesk work. I have some notes from Neil's and Enrico's AM BoF and the discussion BoF round around my "NM process future" proposal that I still have to write down once I'm finished with answering my own NMs' mails. Both BoFs went pretty well, the major outcome being that we should discuss much more among AMs on -newmaint and IRC, have older AM reports available for reference by other AMs, and have some sort of "AM report template" that lists the points the DAMs want to see in the report. About the propsal, my feeling is that we shouldn't implement any major NM changes (like the DM idea) until we really understand what the problem with the current process is. (It takes too long, but that can be fixed by throwing out the not-ready applicants more aggressively.) Thanks to all the people who provided very valuable feedback during the BoFs and in the private conversations afterwards. So far, I've assigned a few applicants to AMs, added comments to the database on the level of prior contribution of the new applicants, and worked a bit on the web pages. The major visible change is that the NM graphs are now included on nm.d.o. The 'big' thing I'd like to implement next is to let the applicants write some application email where they list what they've done for Debian so far before the AM assignment, so we can match NM-AM better, and also improve our judgement of the level of prior contribution. Also, we will probably require 2 advocates per applicant in the future, to make sure people have worked with more than a single DD before. Of course, all this must not get excessive, we don't want to make joining Debian harder than it already is. Then there's also the usual 2k+ message backlog waiting in the Debian mailbox...

John Goerzen: Announcing HSH, the Haskell Shell

Following the "release early, release often" motto, I am happy to announce version 0.1.0 of HSH, the Haskell shell.

You may obtain it with:

darcs get --tag 0.1.0 http://darcs.complete.org/hsh

Things are still very rough in many ways, but this version already lets you:



Here is an example session: (some lines wrapped for readability)

$ ghci -fglasgow-exts HSH
*HSH> run $ ("ls", ["."])
COPYING    HSH        HSH.hs    TODO    announcements  testsrc
COPYRIGHT  HSH.cabal  Makefile  _darcs  test.hs
*HSH> run $ ("ls", ["-l"]) - - ("wc", ["-l"])
12
*HSH> :m +Text.Printf
*HSH Text.Printf> let countLines = (zipWith (\i line -> printf "%-5d %s" i line) 
       [(1::Int)..])::([String] -> [String])
*HSH Text.Printf> run $ ("ls", ["-l"]) - - countLines - - ("grep", ["hs$"])
6     -rw-r--r-- 1 jgoerzen jgoerzen  1285 Jun  6 09:43 HSH.hs
11    -rw-r--r-- 1 jgoerzen jgoerzen   565 Jun  6 09:43 test.hs
*HSH Text.Printf> :m +Data.List
*HSH Text.Printf Data.List> run $ ("ls", ["-l"]) - - countLines - - 
         filter (isSuffixOf "hs")
6     -rw-r--r-- 1 jgoerzen jgoerzen  1285 Jun  6 09:43 HSH.hs
11    -rw-r--r-- 1 jgoerzen jgoerzen   565 Jun  6 09:43 test.hs
*HSH Text.Printf Data.List> run $ ("ls", ["-l"]) - - countLines - - filter (isSuffixOf "hs") 
       - - ("tr", ["a-z", "A-Z"])
6     -RW-R--R-- 1 JGOERZEN JGOERZEN  1285 JUN  6 09:43 HSH.HS
11    -RW-R--R-- 1 JGOERZEN JGOERZEN   565 JUN  6 09:43 TEST.HS
*HSH Text.Printf Data.List> let generator = \(_::String) -> unlines . map show $ [1..20]
*HSH Text.Printf Data.List> generator ""
"1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n"
*HSH Text.Printf Data.List> run $ generator - - ("grep", ["1"])
1
10
11
12
13
14
15
16
17
18
19
Future versions will likely simplify syntax to make it easier to write scripts and introduce a sh to hsh converter. I also plan to add pure Haskell tools for some common shell-ish things that one could do in Haskell.

Baruch Even: Head is up

My graphical skills are known to be poor but I still managed to use the gimp to create a hackergotchi for myself out of the ugly image from my student web page. The hackergotchi was quickly added to the Debian Planet, before I regret that move. I probably should raid my digital photos for a better picture, if a skilled hackergotchi maker is interested in making something more palatable I'd be happy to privately offer some other possible pictures for the conversion.

Martin F. Krafft: Build dependencies and the clean target

I find it rather annoying that some packages require their build-dependencies to be satisfied to run fakeroot debian/rules clean. Those packages include:
  • all packages using debhelper (hm...)
  • all packages using cdbs
  • packages cooking with Python distutils
  • ...
I think they all should fail gracefully when asked to clean themselves, even if the build dependencies aren't satisfied. Rationale: if the build dependencies aren't there, there's probably nothing to clean. Otherwise it's a royal pain to quickly build packages on production systems with pbuilder or the like -- those clean first (rightly so), then try to package. Of course, an alternative would be to tell pbuilder to ignore failures from the clean process. But I'd much rather fix causes than symptoms. Also, this would mean that the clean target may actually not finish, because commands after the failed one get ignored. So please, prefix your dh_* or similar lines with a - (minus sign) in the clean target of debian/rules today. That minus will make ignore the errors. Thanks. /me now awaits the flame flood. Update: the discussion is going on (#debian-devel/irc.debian.org). It has been claimed that pbuilder must be fixed. I'd like to point out that dpkg-buildpackage does not check for build dependencies when asked to build a source package (which is when you need the clean target) with the -S switch. Update ^2: I could be coerced into accepting dpkg-buildpackage fixed to check for build dependencies before it cleans the source tree in the process of creating a source package. Note that it does this unless you pass -S, because then you're actually asking it to build the binary package, not just the source. The real question I guess is whether build dependencies need to be satisfied to "build" a source package. Update ^3: Junichi, the pbuilder author, has since followed up.

John Goerzen: Usenix

Well, we're back from the Usenix '06 Annual Technical Conference. Overall, a very nice conference. This is the first Linux/Unix conference I've been to since the old LinuxExpo (NOT LinuxWorld) events in the late 90s.

I must say it was quite fun to be around so many intelligent *nix folks. I learned quite a bit, and learned how much I had in common with some (and how little with others). A very nice social at the New England Aquarium Friday night.

Some very interesting speakers, too, with lots of experience to share. I'm glad I was there.

I have only one main complaint about Usenix -- they tried to cram too much into too few days. The conference sessions ran till as late at 6:45PM, with BoFs after that. That left almost no time to see anything of Boston and meant that very few people could actually stick around for all the BoFs. Next year, they should use more days and schedule fewer things in the evenings.

The highlight of the trip, though, wasn't Usenix at all, but instead getting to meet some Boston-area Debian folks Saturday night. Lots of fun, and Mako is as crazy in person as he looks online :-)

Our train trip in each direction was nice, too.

More to come...

Mike Beattie: I speak proper england!

(... well, I like to think I can!) So, on a completely unimportant website that I frequent, I've ended up being a moderator on the site forums. Something about knowing *nix and PHP apparently.. Anyway, I've always had a beef with the way english is used and abused on the Internet. You know, all those abbreviations, and incorrect word usage that just seethes "I'm an illiterate prick." U, 2, ur, da, r, etc etc.. and also the so incredibly common misuse of your/you're and they're/there/their. GAH. Yech. Anyway, this particular site is no exception. Some of the users have appalling habits. (Ab)using my powers as a moderator, I've started to demand some care and attention to the most glaring errors - mainly towards my most intense pet peeve, misuse of "your" and "you're". Looking for a place that describes all this stuff well, I stumbled across this site. I couldn't have said it better. Thank you Sarah D. Bunting! (I especially liked, and agree with this:
And no, in fact, I don't know what you mean when you write me a hate mail that reads, "You're site sucks," because that doesn't mean anything. Because it's grammatically incorrect. Because you've substituted a contraction of a verb phrase for an adjective, thus rendering the sentence nonsensical. And it makes you look stupid, and therefore I cannot take you seriously.
)

6 June 2006

Erich Schubert: Why I use (well, wrote) my firewall tool

Wouter Verhelst wonders why you would use a firewall config tool (apart from a GUI) instead of writing iptables rules directly. While I do just use a couple of iptables statements in a shell script here on my laptop, this is not manageable for larger networks IMHO. In fact, I wrote my Pyroman firewall admin tool for the very reason that it replaced an existing iptables script which was a pain to maintain. I'm talking 300-400 lines here. Four networks, two failover firewalls, a dozen of servers in the DMZ network some of which with extra access rights into the internal network (such as accessing the LDAP directory). And no full-time admin to take care of them. So I needed a firewall script that everybody can edit and that won't fail miserably when they make a mistake. A script with extensive error checking and that prevents people from locking themselves out. With an easy syntax. The first approach was in Perl, and already worked quite good. The rewrite then was in Python, and the users (read: fellow volunteer "admins", that don't know the firewall by heart as I do) liked it a lot. They now could add new hosts and services without depending on me to update the firewall. This is a configuration file they'll immedeately understand:
# add the web server
add_host(
        name="web",
        ip="10.100.1.2",
        iface="dmz"
)
# offering, well, web service.
allow(
        server="web",
        client="ANY DMZ INT",
        service="www ssh ping"
)
In contrast to any pure iptables script. It also helps to require them to commit their changes to a SVN repository (for getting the changes synched to the failover firewall) - that way you have version control and undo.

5 June 2006

Wouter Verhelst: On firewalls

A few recent posts on Planet Debian make me wonder why some people seem to insist on using someone else's "firewall scripts", yada yada. Personally, I just have my own #!/bin/sh in /etc/init.d which runs iptables with some appropriate options. And that's it. Well, no, I'm lying. It also has some ip6tables lines in it. An tc. But that's really it, I swear. So, indulge me, please. What's the great thing about these firewall ruleset generators? Apart from the fact that some of them provide a GUI to change the ruleset, which I don't care for.

Matt Brown: The importance of truly Open Standards

I think the current brouhaha surrounding PDF functionality in Office 2007 is an excellent object lesson in why software patents shouldn’t be allowed anywhere near an Open Standard (and software in general!). I’m not sure if a patent is the tool of choice that Adobe is wielding in this particular example, but even if it’s not Patent’s present a large risk to Open Standards and should be resisted. It’s the same as the distinction between a Shared Source program and Open Source or Free Software. You may have the source code for a shared source program and be able to see how it is implemented and how it operates, but there are restrictions preventing you from doing anything with that information. Likewise a standard shouldn’t be called Open simply because you have details on how it is implemented (although that is undoubtably a critical part of openness). An Open Standard should be one which is openly specified and completely free of any other encumberances (such as patents). Unfortunately I don’t see any of the standards bodies making this a priority. My understanding of the IETF RFC process is that you have to file a statement stating any IP claims but you’re not prevented from standardising somethign that you hold a patent on. W3C and the IEEE seem slightly less prone to this problem as they tend to have committee oriented standards process that require more interaction, but I’m still not aware of any direct efforts to prevent parts of the resulting standard from becoming patent encumbered. If the lack of truly Open Standards can bite Microsoft it can bit any of us. It’s not an issue we should be ignoring.

Alex de Landgraaf: Debtags AI web interface

Hacked up a quick REST-style webinterface for the debtags AI classifier, try for example: http://alextreme.org/ai/emacs/use::editing to get the chance emacs is used for editing. My server had to train all night to process all tags, so a central debtags-ai-webservice makes sense. An issue is that it's not very clear which tags are available (an ajax-like interface would be much more human-friendly), but then again this interface is meant to be easily parseable. Next step is to actually use the classifier for approving suggested tags...

Andrew Pollock: [debian] LVM snapshots of chroots and pbuilder

A while ago I knocked up some scripts that created LVM snapshots for use with dchroot. Tonight as I was wading through my debian-devel backlog, I discovered that pbuilder can operate in a non-tarball mode, so I was immediately interested in seeing if I could couple the two together. This caused me to iron out a few more issues with the aforementioned scripts, to the point where you can go:
$ sudo create_chroot unstable; pdebuild --auto-debsign -- --no-targz --buildplace /chroots/unstable --bindmounts /var/cache/apt/archives --aptcache ""; \
sudo remove_chroot unstable
And the whole process is a bit faster (I think) than dicking around with tarballs. This is probably throw-away work anyway, given I'm sure cowbuilder will kick-arse, but it was fun... I need to make the create_chroot script take an option to not mount /proc, as at the moment, if you run the create_chroot script and then pdebuild immediately afterwards as indicated above, the latter will fail because pbuilder will fall over because /proc was already mounted in the chroot. I really should go to bed...

Joerg Jaspert: Pictures from DebConf

Finally uploaded all the missing pictures I took at DebConf6 to our Gallery. Looks like the Gallery this year gets really many of the pictures, which is good. Make it the single place for people who want to remember this event. :) Oh, if you read this: I would appreciate it if you stick with ascii-only for the names of the album you create. I needed to kill and recreate one album due to a non-ascii-char in it. Thanks.

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).

Joshua Kwan: Summer progress

I’ve started my internship at Accenture Techlabs. Good stuff. Some random thoughts. Xfce’s plugin API changed, so I had to revise my cpufreq monitor plugin. An hour or two of tinkering got it working, but I’m sure it’s not bug free. The leak that was present in the previous release might still be there. But if you’re missing having it in your panel since upgrading to 4.4, give it a shot. The makefile is still hardcoded to Debian paths, because I feel really dirty switching to autoconf/automake for a one-source-file project…! Also, you might recall how I broke my T42’s LCD. Well, I received the replacement today, and with the help of a service manual that I found online, I was able to replace it. It was a fairly involved experience, but I came out knowing how to take a ThinkPad apart without looking at the manual. I’ve also “downgraded” my laptop, as the replacement LCD has ‘T41′ written on the LED bar (but of course it was fully compatible with my T42.) This summer is looking up! Edit: Also, it appears that Wordpress is completely retarded, as I discovered when making this post.

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:

David Moreno Garza: World Cup just around the corner

Well, Mexico played three preparation games in Europe on their way to start the World Cup. They played against France and the Netherlands on their territories and well, I think Mexico was not ready enough, it is not solid and the manager was making lots of crazy movements. They ended 1-0 and 2-1, respectively. Obviously those were difficult matches against f tbol potences on their home, but still Mexico has plenty of capacity to beat any of those countries. The third game was against a German university, Gottingen, which was more a diplomatic match (the manager and players didn’t want to play it, but it was because of the chief managers of Mexico, trying to make a good relationship with the city and/or Germany, itself). We won 0-3. Next week, on Friday, the World Cup will begin. The Mexican team will be playing firstly, against Iran, then Angola and finally Portugal, on group D. I don’t see Mexico solid and trustable enough yet, but we’ll see how it goes against Iran, which have been playing widely good (they won Costa Rica 3-2, back in March; drew 2-2 with Croatia and won 5-2 against Bosnia-Herzegovina; these last two in the last couple of days). Iran is not at all, an easy enemy. We’ll see how it goes. I’ll be reporting more World Cup news on the next weeks :)

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).

Next.

Previous.