Search Results: "agi"

24 February 2006

Pierre Habouzit: back from the deads, screenrc, zshrc

Well, my DSL provider killed my connection for 10 days, and then I had some vacation ... Long time no see. Though, I've played with my dotfiles recently, and I set up some really nice things, picked from the web. Screen and zsh cooperation The one I find the best is the tight collaboration between screen and zsh to have nice labelled windows in the screen status line. You have to do this like that :
   # in your .zshrc, add the following code to you preexec :
   preexec ()  
       if [[ "$TERM" == "screen" ]]; then
           local CMD=$ 1[(wr)^(*=* sudo -*)] 
           echo -ne "\ek$CMD\e\\"
       fi
    
   # and this code in order to reset the title when zsh gets the hand back
   if [[ "$TERM" == "screen" ]]; then
       PROMPT="$ PROMPT % ^[kzsh^[\\% "
   fi
Then, you can have in your .screenrc some dark margic like :
   bind s select zsh
which make Ctrl-A s find your first available shell (really nice). Make Shift+PgUp/PgDown work in screen well, this is complete dark magic, but it works :
   # tell screen that you term can scroll
   termcapinfo xterm ti@:te@
   # bind Shift+PgUp/PgDn
   bindkey -m "^[[5;2~" stuff ^b
   bindkey -m "^[[6;2~" stuff ^f
And another great setting is altscreen :
   # Support alternate screens so that, for example, when you
   # quit out of vi, the display is redrawn as it was before vi
   # redrew the full screen.
   altscreen on
Though, now, Shift-Tab doesn't work anymore in screen, and since in vimrc I have things like :
   "   Tab Key magic ...
   vmap <tab> >gv
   vmap <bs> <gv
   function! CleverTab()
       if strpart( getline('.'), col('.')-2, 1 ) =~ '^\s*$'
           return "\<Tab>"
       else
           return "\<C-P>"
       endif
   endfunction
   inoremap <Tab> <C-R>=CleverTab()<CR>
   inoremap <S-Tab> <Tab>
   "  
it's quite important that Shift+Tab works ... zsh does not eat non "\n" terminated lines I don't like the option
   setopt no_prompt_cr
that tells zsh no to print a "\r" before each prompt : I have a rprompt, and if a command (e.g. echo -n "f*****g command") is performed just before a shell prompt display, then my rprompt is wrapped, it's ugly. but printing a "\r" each time eats the line if no "\n" was present, which happens sometime, and makes you think the command you launched failed. I found that jewel on the zsh-users MailList :
   precmd()  
       local escape colno lineno
       IFS='[;' read -s -d R escape\?$'\e[6n' lineno colno
       (( colno > 1 )) && echo ''
    
Basically, it checks before writing the prompt if the current column position is 0, and if not, it prints an "\n". I guess it may exists some races if you have a background job, but for alldays use, it's perfect.

Clint Adams: Tonight, Johnny Cash sings Elvis Costello and Nick Cave

In the sack: eraser, but not Eberhard-Faber. Wet: eraser with a slight touch of paint thinner Dry down: OOS3 The touch: Oily, but not enough The feel: Eh. The magic of our lives: Fuck Glinda. Final verdict: What's the point?

Erich Schubert: XULRunner broke my flashblock :-(

Debian recently switched from heavyweight mozilla to XULRunner as rendering engine for Epiphany and Galeon. This is nice, because it removes the dependency on Mozilla, which you can uninstall now (well, maybe sometime soon - eclipse still depends on mozilla). On the other hand, flashblock no longer works for me in Galeon, which drove me crazy the first time I hit Flash ads again. I hate that shit... I really need to find a way to disable them again. Maybe I'll just uninstall Flash entirely... Oh, and typeahead find is broken in both Epiphany and Galeon, but I don't really know whether to file a bug agains them or aginst xulrunner... ;-) Oh, and I sometimes can't login to GMail any more with Galeon, sometimes I can... seems like we have some things to do... :-(

23 February 2006

Ross Burton: Contacts in Debian

I've just uploaded into Debian (and my local repository) a first-stab at packaging Contacts, the ulta-cool lightweight address book that uses Evolution Data Server. Hopefully Chris will get around to making a 0.2 release soon, I've packaged 0.1 as it's known to work, but the repository contains some kick-arse improvements.

21 February 2006

Simon Law: CodeCon 2006, Day 1


SUV Taxi
Originally uploaded by sfllaw.
I woke up on Friday morning and wondered what breakfast would be. Then I remembered that I was staying at the W and decided to forage for food elsewhere. I took a taxicab with [info]spider88, [info]enochsmiles, [info]maradydd. It was a strange hybrid SUV cab that was painted all yellow, I would later learn that Yellow Cab drivers were scary and that I should avoid them. We got to StudioZ and discovered that we didn't know how to get inside. We figured that out eventually and took stock of the situation. I started moving tables about and setting up chairs, because I abhor standing about with my hands in my pockets. Then I helped hang banners from the rafters. After I did that, I tried to see if I could do anything else. Since CodeCon is run on the cheap so that anybody can attend, drinks like coffee are not included in the conference fee. And since the conference was being held in a night club, there was a convenient bar that would be a good place to setup a concessions stand. So I put things in order and stood behind the counter. I got to see people walk in the door and after registering with [info]wealhtheow or Spider, they'd stand in bewilderment in front of my bar. It was a lot of fun to watch all sorts of people come through. And then I'd smile at them and offer to get them something to drink. We started Lance's talk a little late in order to let everyone settle in their seats. I met him the night before where he talked about his Apache module that has heuristics for detecting when a phisher is trying to clone your website. Or when your website has been cloned and the phisher is passing login requests through to you. This kind of thing is totally what financial institutions have to start doing. We got coffee from this place called Cafe Organica, which seems to have some mixed online reviews. Or rather, Jonathan did, in a big messenger bag filled with carafes. Since Jonathan doesn't actually drink coffee, it was left to me to decide whether it was any good. It seemed to be drip coffee that was thick, dark and strong. Very decent for something that was brewed hours ago. The customers didn't seem to mind, as we ran out of coffee every day.

Couch
Originally uploaded by sfllaw.
The next presentation was SiteAdvisor which takes an interesting tack on safely surfing the web. Instead of building security features into your browser, there's a central server that stores information about sites that you're visiting. But what was really interesting was how they got this information. They had an automated tool that went in pretending to be a real person, signed up for some e-mails, downloaded some programs, and examined what happened afterward. I missed the majority of the VidTorrent presentation, because I was busy chatting with people and offering them refreshments. Also, their demo didn't work because the wireless setup at the conference kept on going down. People were abusing the free Wireless network that Cliff was trying to keep up and running. Which is sad, because Cliff had basically volunteered to set that up on his own time. Tom came up after that to present Localhost, which is a unimaginatively named piece of software, but is interesting because it lets you browse a world-wide filesystem of torrents. What's interesting about his filesystem is that it uses a distributed hash table, so that even if there are files with the same name, you'll be able to distinguish the distinct copies. Which is useful if you want to tell whether you're downloading a legitimate and popular file, or some malicious file that someone's injected. The last talk of the day was Truman, which not only demonstrated an interesting piece of technology, but also quite educational. The tool itself is a specialised Linux distribution that can capture what happens inside itself and simulate a public connexion to the Internet. This is advantages, Joe tells us, because modern pieces of malware are smart enough to disable themselves when they detect sandboxed environments. After people filed out, we packed away everything into storage as StudioZ is a nightclub, so it was setting up for its nightclub crowd. Everyone else went next door to Loft11 where a party was being held, sponsored by [info]bramcohen's awesome company I went inside and bumped into Graydon and we tried to go about finding fellow Canadians. This was not so successful on the crowded downstairs floor, so we went upstairs to chat and catch up. I met some people who were at the speaker's reception and successfully remembered their names. Then I met a guy who was at the night club just waiting for his buddy, and I explained CodeCon to him. He thought it was a great idea.

Stack of Macs
Originally uploaded by sfllaw.
Len Sassaman and Bram got up to give a little speech, which I tried to take photographs of. But failed. Instead, I noticed that they were on this awesome glass ceiling which made me want to dance. I didn't do that though, because my feet hurt from standing all day. I poked my head into a room upstairs that was all white, which was very cool. Some people were playing a game of Werewolf which finished with the villagers winning. I hung out with some people like Eric, Pete, and Kelsey who told the story of her pink Barbie backpack. I also met Chloe and her husband, whose name I have forgotten. But Chloe is awesome because she is now independently wealthy so that she can pursue her dream of studying the nitrogen cycle in soil using post-doc maths. Impressive! I also met [info]akashayi who is not a professional computer programmer at all. She teaches martial arts by day, and slings code by night. She drove all the way from Los Angeles to attend CodeCon and was having the time of her life. I wistfully remember when I was that excited about computing, so just hanging out with her was awesome. She promised me a Kempo lesson if I ever made my way to L.A., which is an offer I intend to collect. I found Spider downstairs, sitting on a couch with Daniel. The night was getting long and we were totally exhausted, so we took a taxicab to the W. There, we went up to Enoch's room party where he treated us to $17 cheeseburgers. Now, I didn't think that cheeseburgers that expensive were worth it, but boy oh boy were those good. Spider and I took a cab to [info]kineticphoenix and [info]riseorbleed's place sometime past midnight and we dragged our luggage into their guest room. Which was really more of an awesome guest apartment. Hurray for knowing people in foreign cities! I don't remember much after that. I think I turned on a space heater before passing out.

Ross Burton: Help!

I have a ThinkPad T40p, with an ATI Radeon inside. It has got a nice shiny TV-out plug on the side, and I have a short cable that ends in a composite video plug. My TV has a composite video socket on the front. When I press Fn-F7 (switch display), nothing appears on the TV. I'm expecting lots of pain to get this working: so far I am running fglrx and have the following line in xorg.conf:
Section "Device"
        Identifier  "ATI Graphics Adapter 0"
        Driver      "fglrx"
        Option "VideoOverlay" "on"
        Option "OpenGLOverlay" "off"
        Option "DesktopSetup" "clone"
EndSection
Anyone know the magic to make this actually work? NP: Dreaming Wide Awake, Lizz Wright

19 February 2006

Mike Hommey: Is libpng crap ? and php ?

As I told before, I’ve been working for a few days on a way to display japanese characters on a web page when you don’t have japanese fonts locally. That involved taking japanese characters from a font file, and turning it into a png image. So I just wrote a small and simple program using libpng and freetype. Which works quite well. But that’s not the point. During this “development”, I lost 2 or 3 days trying to understand what was wrong with my code that made it work properly from a shell command and fail halfway when wrapped in a php script. I still don’t know what’s wrong with php, but it works well with a perl cgi wrapper, and it still fails if I raise the php memory limit. Interestingly, other libpng tools (such as pngtopnm) fail in the same way. It wouldn’t surprise me if it was libpng’s fault. The first thing i did to understand why it’d fail, was to run the program under valgrind. And what I saw was not encouraging. A lot of “Conditional jump or move depends on uninitialised value(s)”. I tried different combinations of code, using png_write_image or png_write_row, with large or small buffers… It turns out libpng can’t write a png file with a width smaller than 148 pixels without those “Conditional jump or move depends on uninitialised value(s)”, which happen, as the stack trace shows, in the zlib, called by png_write_row, but i doubt it to be a zlib issue. You would think it would be a buffer size issue, but if you use a larger buffer for each line you call png_write_row for, you still get the errors. If anyone has a clue, please leave a comment. Update: Thanks Mark for your comment, though I don’t get how it can be safe to have such accesses to uninitialized memory. Deuce, the php issue can’t be a timeout issue, the program runs in fractions of a second.

16 February 2006

Clint Adams: That guy is disturbingly bald

In the sack: Lestoil and citrus. Wet: Citrus and Lestoil. Dry down: Opted-out and slammed. The touch: Oilily fine. The feel:
Vous comprendrez
Qu'j'pr f re rester
Au fond d'mon lit
A m diter
Avec ma mie
Qu'est bonn' comm' du
Pain pas b ni
Du pain perdu
A la myrtille
Qu'j'pr f re visiter qu ques endroits
De paradis
Du bout des doigts
Dans des pays
Tout en dentelles
Et qui tout droit
Vous m nent au ciel.
The magic of our lives: The transcendence is not of itself. Final verdict: Too many variables spoil the objective.

Joey Hess: don't forget the MOOs

(This is a copy of my response to the LWN article Toward a free metaverse, which won't be freely available itself for another week or so.) There's an unconcious bias in this article toward 3d graphical worlds, and I think it's important to realise that that's not a necessary component of a virtual world, although it's certianly a component that will appeal to a lot of people and that fits in nicely with some current ways of working with computers -- ie, sitting in front of expensive screens weilding a mouse. Long ago we had MOOs, MUDs, etc, and they were text based. Just words, you know. And nearly all of them were free software. It might well be that text, or speech, or the like ends up being a better interface to virtual worlds of the future, especially if they are tightly integrated and layered on top of the real world. And I'm increasingly convinced that if these worlds don't integrate into the real world, if the ideas that have been bubbling up out of ADVENTURE and the MUCKs and the MMORPGs and such don't spread out and become something larger and more inclusive than their own little pretend world, then in the end that whole area has been nothing but pointless games. Which I hope it hasn't, but perhaps I'm getting old.. Speaking of freedom, there are levels and layers, and it's possible to build the free on top of the non-free. After all, I'm typing this on a device that is present in the er, First Life, which is not particularly free in its implementation; it has non-free firmware and BIOS, and is composed of atoms of some substances that are less easily available than air, and which follow some annoyingly inflexible physical laws, and it needs a constant input of metered electricity to run. But on top of all that is some free code that gives me a measure of freedom. Similarly, it would be possible to run free code in Second Life, and given how rare it is overall for such services to support coding at all, let alone explcitly give a program (or object's) creator the freedom to make it Free, that Second Life does so seems encouraging to me. If we get a distributed standardized free online world by 2010, I'll be happy indeed. (Disclaimer: I write text based MOOS, and have never used Second Life, though I chatted with someone there on the phone today.)

15 February 2006

Erich Schubert: When XSLT gets really messy...

XSLT is an outright ugly language. Thats why I often just hate it. In some (rare) cases it's very elegant, but most often incredibly clumsy. I've been redoing my homepage completely, and I'm using XSLT to render my data XML files to the XHTML output. That works quite well so far, but I hit more and more special cases. First I wanted to add a language chooser. This required finding out which lanuages my document supports (read: blocks with that language attribute exist) and check for uniqueness. Some things where rather easy to solve (with some experience in XSLT), so where extremely ugly. First of all, I want my template file to be a valid XHTML file, I don't want to have any layout parts in XSLT. Then I have a separate sitemap, needed for generating the menu. So I have to process three documents at the same time in XSLT. Ouch. But doable, using variables. Basically I have three modes - in one mode, the template is mostly copied over, unless I've specified some special rule, e.g. to insert the page title, meta information or content. A second mode uses the current chunk of the template document as template for the contents a couple of times to iterate over data chunks from the data source file (read: put text blocks from my source files into the output template format). The third mode does the same for the sitemap. Unfortunately, it started to get even messier... Big problem number one: Make a list of the available languages for the current page. Make this information reuseable throughout the page transformation. Part one: make a list of available languages by finding unique (!) @lang attributes. (usual approach: grab all nodes with @lang attributes, check if they have the same node id like the first occurence with this @lang value for uniquness, then output. Ugly as hell, but string magic sucks as much.) Big issue number two: Assume we now have a variable with en in there, access these nodes to transform them. Unfortunately, the generated nodes are "result nodes", and you cannot iterate over them with for-each. Luckily the exslt node-set extension to solve this. But now came the third big issue along... this is where I give up. I want my pages to have a nice modification date... my data pages are stored in subversion... Subversion has keywords expansion like CVS, which I can use nicely to automatically update the last modification date of the file. Unfortunately, the date will look like this: $Date: 2006-02-15 21:29:10 +0100 (Mi, 15 Feb 2006) $ Whereas in a web page meta information it's recommended to use ISO8601. Now if I only had regular expressions and proper date handling functions... I guess I'll stop writing ugly, hackish XSLT code and chose pretty Python code instead. Maybe use TAL or KID for XMLish templating...

Martin F. Krafft: A first glance at the Draytek Vigor 2900VG

I got myself the Draytek Vigor 2900VG, as announced, to handle my home office connection needs. I've been playing with the device all morning and am somewhat undecided as to whether I should keep it, or replace it with a tiny computer without moveable parts that runs Debian, simply for the benefit of greater control. But first, let me review the device. Don't get me wrong when I say that I am not sure whether I should keep it: the router seems solid and has a lot of functionality, and with few glitches, it mostly seems to work. Go read the specs yourself if you care, in the following I want to give my view on some of the pros and cons of the device after a few hours: The device is an all-in-one, combining WAN access (DHCP, PPPoE, PPTP) with NAT (with support for a DMZ), DHCP, VPN (PPTP, L2CAP, IPsec), a stateful packet filter, a 802.11g access point with support for WPA2 and 802.1x, VoIP gateway, a 4-port switch with VLAN and rate control, static routing and RIP, QoS, UPNP, dynamic DNS updates (e.g. no-ip.com), syslog or SMTP-based logging, and a printer server for USB printers. Basic HTTP URL and content filtering is provided, though most of it comes through the interface to SurfControl (no subscription included). Content control includes the most popular IM and P2P protocols. For all that functionality, the price is quite reasonable, if you ask me. Interaction is through a web interface that can be restricted to a couple of clients only, and is password protected (though in the clear). In any case, the device also comes with a telnet console that has a larger feature set than the web interface, but lacks documentation. Several forums exist, however, to fill this hole. The router also sports SNMP! The packet filter seems limited in what it can do: TCP, UDP, ICMP, IGMP, and only the basics for each (e.g. sockets for TCP). There are 12 filter sets with 7 rules each, and if/then logic can be implemented by branching to other filter sets. However, I can well imagine that the limit can be quickly reached. For QoS, you can define three classes, and to each assign services based on sockets and diffserv. That's it, but it should be enough for most basic use cases. VPN can be achieved with L2CAP, PPTP, or IPsec, but only pre-shared secrets are supported. Users can dial-in, up to 16 "Road Warrior" profiles can be created, and 32 LAN-to-LAN tunnels can coexist. A nice feature are the 16 schedules you can define and use throughout. For instance, certain filters can be restricted to only apply during working hours, some users may only be allowed to use the VPN to dial in during specific times, WLAN can be turned off at dusk, and VoIP devices can be routed based on the time of the day. NTP ensures this all happens accurately. I am really missing a RADIUS server on the device. As it stands, I am left to run a separate RADIUS server on the LAN, or resort to WPA2-PSK, which is a little less desirable but quite okay for my case. The device can separate LAN and WLAN clients and block any traffic between the two. I have not found a way to put LAN and WLAN into their own subnets and allow traffic inbetween. The DHCP server seems okay, it does not remember leases and will simply time out leases and use them for new requests. It is not possible to lock a MAC address to a specific IP through the web interface, one has to resort to the telnet prompt, and the limit is on 10 static leases. The device has no support for DNS updates for DHCP clients, nor is there any integration with a DNS server whatsoever. This means that for 10+ clients, you'll need ZeroConf stuff or you cannot use DNS between clients on the LAN/WLAN. All of the above are minor annoyances. I have also already found a bug (which has been known for more than a year now but remains unfixed in the latest firmware from December 2005): the device has a DNS relay without a cache (ugh!). If you request an A record, it all works. If you request an AAAA or MX record, it forgets to translate the source IP of the answer and feeds the upstream forwarder's packet straight throught. Thus, it is not possible to resolve AAAA or MX records without hard-coding the DNS servers to use in the DHCP server configuration to bypass the DNS relay. That's all for now. I have not gotten around to play with VoIP stuff yet, but one of these days...

Clint Adams: She might call it a Mischung, then she might call it a Gommi

In the sack: Talcum powder and jasmine In the sack: Eberhard Faber eraser and some flowers.
Wet: Jasmine and talcum powder Wet: Eberhard Faber eraser and some flowers.
Then the Gro w rterbuch. Dry down: Eberhard Faber eraser and jasmine The touch: Greasy goodness The feel: That guy needs to get off Elphaba's dick while I sing Edelweiss . The magic of our lives: Probably half the reagents. Final verdict: I do not have a cultivar.

Clint Adams: So when you wake up on a Saturday and you have to think of me

In the sack: Cocoa butter and sandalwood Wet: Sandalwood and eucalyptol Dry down: Sandalwood The touch: A solitary bud The feel: Staring into the mortality divide The magic of our lives: Fleeting. Final verdict: Robbed of a fair shake by environmental crisis.

14 February 2006

Joerg Jaspert: Another DVD image finished

Yesterday evening, around 17:00 UTC I finished building another DVD image after beeing up for almost 33hours. This time it is for the Cebit edition of the german Linux Magazin and Debian (we will have a booth there, see our Events page for more info, together with Credativ). If you are there you can grab the image there, or alternatively at the booth of Linux New Media/Linux Magazin. I built the image together with Alex (Tolimar), who did a great job keeping me focused on it, compiling stuff, helping with documentation, package selection and many other different things that needed to be done. We had our first big run with this image from (I think) Wednesday til Thursday, not taking any sleep in the night, to get it finished in time. Unfortunately we got the message that it needed some more changes, so we had the weekend to sort through it, and started again on Friday evening. Alex left on Sunday afternoon, where the image was basically nearly finished. Due to some little hickups it then needed until Monday 18:00 to really be final and sent out, which made me stay awake from Sunday, 09:30 til around Monday, 18:00 (local time). As usual (like the last 3 images I built for events in Germany) this is a multi-architecture image, again with i386, amd64 and powerpc included, ready to boot into our nice debian-installer for sarge. The kernel was updated to 2.6.12 for i386 and amd64, to support a few more newer machines. We also included a preseeding magic, so you can install a complete Debian Desktop only by deciding how to partition your harddisc and entering the username / password you want to use. You end up with a nice little Gnome-System, having a custom background, some links on the Desktop and bookmarks in Firefox and a disabled root account (use sudo :) ). This nearly automatic installation is available for german and for spanish, as we will bring some of these DVDs to the DebianDay in Mexico. For the spanish part Marga did a great job with the translation of all the various included Readme files to spanish in a normally much to short timeframe (we asked somewhere on Saturday IIRC), many thanks to her for that work. But it would be boring to have only those bits on this DVD, so we decided to include a few backports from backports.org too. There is a newer X, a newer OpenOffice, spamassassin and others included for at least i386. And still - we have included more. We included a recent build of openwrt and also the small edition of grml on this DVD. All in all users have around 45 - 50 different ways to boot from this DVD, which is a nice and big selection. Right now its hard to think of a collection that makes it “better/bigger/whatever” than that. Im sure there will be something with which we can outperform this, but right now its hard to imagine. Of course an etch d-i could be a point, maybe together with a Debian Livesystem (real Debian, not just “based on with random additions”), maybe many more preseeding configurations and not only one, we will see. If you have suggestions please mail me. If you want it: Yes, you can freely download the image, if you cant grab it on DVD while Cebit is running / from a LinuxMagazin, but this download will only be available after Cebit finished plus a few days more. Its never good to have a DVD for a magazine freely available before that magazine is public. :)

Erich Schubert: <tt>make bug</tt> with SERefpolicy

Aargh. Yesterday I spend hours trying to find out why SERefpolicy would not build. There was a suspicious message in the build process, about a circular dependency being removed, and it was obviously due to this dependency that the build did not work. But: I couldn't find anything like a circular dependency. The dependencies for this file were trivial, just two input files that are not being modified or generated or anything. Today I decided to downgrade make to the stable version (which unfortunately conflicts with current kernel-package...) - and now it compiles. Smells like "make bug" to me... You can grab the completely untested (last build didn't work, and my test machine is currently down) packages at http://selinux.alioth.debian.org/serefpolicy/ in case you want to try SERefpolicy yourself. I'd love to have a SELinux policy system which does not involve any such make and m4 black magic. The makefiles are a PITA to read, the whole thing is totally unmanageable IMHO.

Zak B. Elep: Speaking, Packaging, and Writing, All in One Week

Two days from now, I’ll be pushing for Legaspi to be a speaker for the Bicol Open Source Forum. I’m going to talk about general FOSS and Linux stuff. I’ll also meet up with fellow Ubuntero Irvin Piraman and give away some Ubuntu CDs together :D . If you’re anywhere near Aquinas University, drop me a line. On the Debian side, my updates for opendchub and dbacl have hit Sid, thanks to the great Florian Ragwitz :) I’ve still yet to see ecb, xshisen, and rccp sponsored though :( I’ve seen some hope for ecb, thanks to Bart Martens, who was very helpful and put the updated URL for the latest ecb source package on the ITA. As for the writing, I’m now doing some final school reports for the year-ender. Ooh, just a month more, and here comes summer!!! I just hope there’s something like a local Google Summer of Code…

Daniel Baumann: Debian Live Initiative

I already got some feedback about the "device driver check CD"-thing. People got confused about it, so I will tell you a bit more about my intentions (although I wanted to start doing this not until next week, duuh). What is wrong with current live systems? There are already several Debian-based live systems and they are doing a great job. But, from the Debian perspective, most of them have one or more of the following disadvantages: Why create our own live system? Debian is the Universal Operating System: IMHO we should have an official live system for showing arround and to officially represent the true, one and only Debian system with the following main advantages: Creating the Debian Live framework Such a life system framework would allow to create different images for different scenarios: The last one is this "confusing" thing I mentioned before. Wouldn't it be nice to have a live system to easy detect hardware? Imagine, you could take such an image, burn it on a CD or copy it on a USB-stick, go to your hardware shop and boot it. Since this system would use only official Debian packages, you can easily verify if your favourite piece of hardware is supported by Debian. Doubts like "it runs with Knoppix, so hopefully it runs with Debian too" are history by that. Maybe someone could implement then some sort of application which checks the hardware against Kenshis Debian GNU/Linux hardware compatibility list and displays some sort of report about the compatibility level of the tested hardware. I will definitely work on that goal. But first, I have to do a bit of research about the best techniques and create the framework arround it... Thanks to Myon for setting up the record live.debian.net.

13 February 2006

Ross Burton: More Avahi Love

Today's Avahi Love posting covers publishing SFTP servers. My NAS box runs SSH, so I can use the ssh: method in gnome-vfs to browse the filesystem (it uses SFTP). The magic service file is:
<?xml version="1.0" standalone='no'?>
<service-group>
  <name replace-wildcards="yes">Remote Files on %h</name>
  <service>
    <type>_sftp-ssh._tcp</type>
    <port>22</port>
  </service>
</service-group>
Restart Avahi and then with a suitable Avahi-enabled gnome-vfs, there will be entries in Places → Network Servers for each machine that file is installed on. Kick arse!

11 February 2006

Ross Burton: ZeroConf Bookmarks in Epiphany

Yesterday I noticed that Epiphany in Ubuntu (and probably Debian too) is now build with Zeroconf support, which means it will detect any web sites exported over Zeroconf and add them to the bookmarks. This totally rocks, as instead of having a number of bookmarks for various administration pages on my machines, the machines can export them over Zeroconf and when I am at home and those machines are on, they'll appear magically. The first step to having Zeroconf enlightenment is to ensure avahi-daemon is installed on all machines. It doesn't matter if there are some machines that it cannot be installed on (i.e. router running embedded software), as other machines can publish their name and services on their behalf. The first service I published is the web-based admin pages for my printer. The printer is connected to a small server called Melchett (a Buffalo LinkStation) which is running CUPS. By creating /etc/avahi/services/cups.service on Melchett with the following contents, the web site is published:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name>Epson Stylus Photo R220 Admin</name>
  <service>
    <type>_http._tcp</type>
    <port>631</port>
    <txt-record>path=/printers/epson-stylus-photo-r220</txt-record>
  </service>
</service-group>
Each .service file in /etc/avahi/services defines a group of services. A group has a name, and a set of services. Each service has a number of properties:
Type
Specifies what the type of the service is (_http._tcp is HTTP over TCP). There is a canonical list of types available. This is a required element.
Port
What port the service is listening on. This is a required element, there is no default port 80 for _http._tcp services.
Text Record
This sets arbitary key-value pairs, which are interpreted on a per-service manner. For _http._tcp services the valid keys are u (username), p (password) and path.
There are also domain-name and host-name properties, but these are not used in this service description as the service is on the local machine. In summary, you can see that I have specified that there is a web page accessible via HTTP on this machine, available on port 631 at the path /printers/epson-stylus-photo-r220. When other machines search the network for web pages they'll find this service entry (with the hostname properties filled in by Avahi), and generate the URL http://melchett.local:631/printers/epson-stylus-photo-r220 A quick pop into Epiphany shows that this is indeed the case, there is now a Local Sites category in the bookmarks containing Epson Stylus Photo R220 Admin. There is one other thing I need to explain: how to publish services on behalf of other machines. Until this afternoon this required something to run avahi-publish-address to give the machine a Zeroconf name, but this afternnon Trent committed static name mapping to Avahi. When this is in a released version, I'll continue this article.

Daniel Baumann: Eiffel packaging considered painful

Our Chair of Software Engineering at the ETH Zurich is addicted to the Eiffel programming language. Thus, a PhD student is working on an Eiffel Multimedia Framework, named EiffelMedia, and I'm doing the Debian packaging. After working the second year with Eiffel stuff now, I can say that packaging Eiffel programs (not the language itself) is a major PITA, with respect to the following two aspects: Eiffel is different Eiffel is non-free

There are not one... not two... but three incompatible Eiffel compilers arround. Oh yeah... Except from some fundamental programs like Gobo Eiffel or the Eiffel Wrapper Generator (they support both all three compilers), nearly all programs are written according to the current Eiffel specifcation. So there is no real alternative to the proprietary EiffelStudio. Beeing binary-only is a major drawback too: EiffelStudio on Linux/powerpc is dynamically compiled against glibc-2.3.5, but Sarge has glibc-2.3.4. So one needs a backport of glibc, which taints the system in an unneccessary and stupid way. Please: Eiffel Software, if you are reading this, open the sources of EiffelStudio now and turn it into free software, for the greater good of us all. Make additional ports to other architectures possible and allow us, the packagers and upstreams of Eiffel programs, to drop the cumbersome support for other ancient Eiffel compilers. Let's focus us to one, single implementation and improve it.

Next.

Previous.