Search Results: "ag"

5 June 2006

Uwe Hermann: CC Hits [Update]

I stumbled over CC Hits today, which looks like an interesting site with great potential. It's basically a digg-like site (implemented using ning.com, it seems) which doesn't list articles, but rather Creative Commons licensed songs. You can vote for the songs you like, just like you vote for articles on digg.com. The site seems to be quite new, and there's not too much traffic yet, but I imagine it could become a very useful resource to find high-quality Creative Commons music. Which is similar to what I'm doing with my Creative Commons music podcast (subscribe here, yadda yadda), and most of the other CC music podcasts do, for that matter. There's just too much CC music of varying quality out there by now — it's not so much a problem anymore to find some freely and legally available CC music (like it used to be a few years ago). It's more an issue of finding good music and/or music of certain genres you like... Anyways, I'm surely going to checkout CC Hits and use it to find new CC artists and songs for my podcast. Oh, and if you have any suggestions for more sources for good CC music, please leave a comment. </spam> Update 2006-06-05: On a related note, here's a song for all the geeks reading this: Code Monkey (MP3, 3.6 MB) by Jonathan Coulton, Creative Commons licensed, of course.

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?

Martin F. Krafft: Even easier?

Erich, claiming that "it's even easier" when our two approaches basically do exactly the same (mine requires less keystrokes to confirm) is kind of exaggerating, no? I must admit I am very interested in pyroman since I like Python, and "firewall" and "programming" are closely related topics for me. I'll have to do quite a bit of thinking before I can claim that it's easier to speard Python commands across several files as opposed to composing a firewall ruleset in the way it is later processed: line by line.

Erich Schubert: How to avoid locking yourself out via iptables...

Martin F. Krafft blogged about how to rollback firewall changes in the case you managed to lock yourself out from the box It's even easier if you use my Pyroman firewall config tool. (apt-get install pyroman). If you run pyroman safe it will execute the new firewall rules - and if you don't type OK within 30 seconds, it will undo all changes. Note that it can also restore to a configuration set by a different firewall app. (It just restores the old iptables state and feeds it back to iptables - it will support anything your iptables version does.) Oh, and it's much faster than the other firewall scripts I've tested so far, since it doesn't spawn hundreds of iptables processes, but only one iptables-restore for setting the new rules in one transaction. Check the web page for other benefits; should just work on any Linux distribution with iptables and python (read: every). [Update: Martin, I was referring to the instructions you gave, to adding an at job and then running atrm to accept the changes. Yeah, what you script does is basically the same what mine does for rollback.]

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.

Tollef Fog Heen: Hackergotchi for Robot101

Since I'm impatient and Robot101 didn't respond within ten minutes of me pinging him on IRC, I'm just posting the result of his request for a hackergotchi. Robot101 Above is JPEG, but there's an XCF available too, with full transparency goodness, etc. Next time, it'd be useful to have a starting image where the head is bit more than 180x230 pixels since doing cropping and resizes and such tend to end with the image not being great. Also, my space bar is failing and I'll have to call IBM when I get home. I'm actually quite disappointed that I seem to have worn out the space bar in about a year and a half.

Decklin Foster: Irony Alert

The other day I went back to the West Hartford library for some more DVDs and stopped by the New Non-Fiction shelf. This book caught my eye. It claimed to be a lexicon of euphemisms, doublespeak , and other language used in the US to disguise one s true opinion, assumptions, or political agenda (you know how we love politics over here). An Ambrose Beirce for the talking head set, if you will. So I flipped through it for a bit, and to be fair, the authors did do a commendable job of pointing out some of the subtle presumptions of many words that I myself think I use completely innocently. Even if I try to directly combat this tendency in my own way, one could certainly argue that ideas like systemic bias or jargon themselves implicate or demonize certain groups. But that's why we need something like this book, right? Have to keep on our toes. Then I landed on H. The first entry was hacktivism . ...which, it read, like hacking, is illegal...

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

Dirk Eddelbuettel: Sunburst Races Marathon 2006

Went to South Bend, Indiana, on Friday for the 2006 Sunburst Marathon yesterday morning. This is a smallish marathon with 600 runners, embedded in a half-marathon, 10k and 5k all of which start at the College Football Hall of Fame and end in the Notre Dame football stadium. Early 6:00am start, made worse by the fact that it is one time zone earlier too so I got up at 3:30am 'my time. Ouch. The race almost didn't start as a hazardous materials spill was announced right at start time. Luckily, that got taken care of and we were off and running at 6:15am. The first ten to twelve miles went pretty well and fast, and I slowed down a little afterwards. I started to pay for the fast first half with some oncoming cramps starting around mile 18. Somehow I managed to suppress the cramps with a combination of walking water stops, gatorade, gu (handed out by the race organisers a four or five water stops -- nice!) and sheer stubbornness and some more walking when needed. I had aimed to beat my Boston qualifying time of 3:20 -- and I did with a chip time of 3:17:48, which is also another PR and a nice improvement over the previous three marathons. So on to Boston for the one hundred eleventh Boston Marathon next April!

Andre Luis Lopes: First post and already tired

Well, I have just finished setting up my virtual machine in a hosting provider which offers a very nice virtual machine plan called VPS. It’s very nice because they give you full root access so you can install whatever you want to install. Also, it’s Debian based and even the control panel they provide is as I like things to be : minimalist and easy to use. Sure, it works like a charm also. I’m tired because I was fighting the blog system I installed for a long time trying to convince it to get installed in a proper VirtualHost but it kept giving me trouble everytime I tried to access its root page. I gave up and installed it in a directory under my default page and then it worked as expected. Someday I need to take a closer look at it and find out what really went wrong. Well, actually, I know what went wrong and I even knew how one could fix the issue as I already fixed issues like this one lots of time in the past, but this time my tricks didn’t helped. Anyway, mail setup is already working, complete with SSL-based IMAP/POP, SMTP-AUTH through SASL and all the basic services I wanted to have are already working. Now I think I can have some sleep a it’s past 4:00AM. Well, enough for a first post.

Michael Janssen: Pet Peeve #2: Microsoft Excel and Unicode

Recently I was working on an application for ICRA2006 and I needed to output some data to be read by Excel. This would seem like an easy problem, just output in CSV and Excel can open the text just fine. Unfortunately Excel has one of the most backwards implementations of international character support that I have ever worked with. Being nieve to this, I simply tried UTF-8. I was greeted with multiple strange characters in the place of my normal umlauted and tilde-d letters. A quick search turned up that when Excel reads a CSV, it assumes that it is in ASCII or . However, you can import the CSV as a text file and select it as unicode. This is where my real pet peeve is: You can't select the character set of a CSV in Excel. You have to rename the file as a .TXT file and go through a wizard, basically spelling out that yes, it is comma separated and yes, this is the data I want to import. There's one drop down box which specifies the character set. Of course Unicode is supported there.

In the search for a solution to this problem which didn't involve a 10-step process for the customer, I discovered the Unicode marker which is supported by Wordpad, but amazingly, does nothing but add a bit of garbage in Excel. The sad part is that I can be almost certain that the next version of Office will continue to have this problem. My only hope is that somehow the XML format will be open enough to just create a native Excel file.

3 June 2006

Erich Schubert: SELinux support is a release goal for etch

SELinux is an official release goal for etch. However, we're currently far from that. So far, very few developers are actually using SELinux (if any), or even testing it. I won't be doing anything on SELinux for the next 6 weeks at least, more likely 6 months. So currently I don't see how we can manage this goal, unless more DDs (and of course users; you don't need to be allowed to upload packages) help getting SELinux properly integrated. (You can run SELinux on etch without having to recompile any software I think, but you'll have to do quite a bit of customizing yourself right now.) For a coordinated effort to get SELinux into shape for etch, there are Debian SELinux mailing lists, but so far they're basically unused. [Update: yes, one option is to remove SELinux from the etch release goals. I was in fact rather surprised to see SELinux listed there.] [Update #2: It was pointed out, that the first occurence of "release goals" in that mail is prefixed by "pet". Don't ask me what the difference between a release goal and a pet release goal is, though. I guess something like being in an official wishlist...]

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 Welton: Details, details

While working on Hecl, it has sometimes really surprised me how much it's possible to delve into seemingly trivial details. Just for starters, we've been talking about what to call string commands. Originally, I'd used names like slen and sindex to have something quick and easy to write, but no one seemed to like them that much. Wolfgang implemented a bunch of new string commands (very much appreciated!), and took the Tcl approach of command subcommand, like string index, and also suggested some other things like str.index. I am strongly opposed to the string length style commands though, because I think that's just too much typing for a language that's supposed to get you up and running quickly. The compromise I proposed and implemented was to use more 'C style' commands like strlen, strindex, strfind, and so on. I'm not a big PHP fan, but they seem to have taken a similar approach. It's not too verbose, but you can tell more or less what the command is for. Even more seemingly trivial - indexes for strings and arrays. Hecl takes the Lisp approach rather than the C approach, and utilizes commands instead of syntax, even for list and string access, so to get the second character of the string "foo", you would do: strindex "foo" 1 . Like C, Hecl indexes start at 0. Where things get tricky is in calculating indexes "from the end" - how do you tell the language to "fetch the last character from the string 'foo'"? Tcl lets you write a string like "end" or "end-1", which is handy compared to the process you would go through in a language that doesn't help you out: take the length of the string, and subtract from that as needs be. I prefer the approach that I first saw in Python, though, use -1 for the last character:
>>> "abcde"[-1]
'e'
Ruby takes the same approach. It's nice to be able to just insert a -1 rather than have "end-1", which sort of looks like an expression, but isn't really (Hecl doesn't even have normal infix expressions), especially because you can easily calculate the -1 and insert it as is, instead of having to do some string interpolation like "end-$foo". Where things get tricky is when you want to do something like specify a range, say from the 3rd letter to the end of the string. In Python, they use syntax, specifically by simply not including the end of the range:
>>> "abcde"[3:]
'de'
That doesn't work really well with Hecl - I suppose we could pass in a blank string instead of a number, like so:
strrange "abcde" 3 ""
But that's not very clear, and IMO it's slighly ugly to pass in a string where you want to use a number. I had a look at Ruby's behavior, and found it more to my liking:
irb(main):001:0> "abcde"[3..-1]
=> "de"
The difference with Python is that the second index is inclusive, whereas Python includes the character at the first index, and excludes the second:
>>> "abcde"[3:-1]
'd'
I decided the Ruby approach worked best for Hecl, so now we have:
hecl> strrange abcde 3 -1
de
If you're still reading this, I guess you see what I mean by how much one must delve into what must seem like very unimportant minutiae to... well... normal people!

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

Filippo Giunchedi: all your setuid are belong to us

today #370045 has been filed against the (in)famous netselect. The postinst was not setting the setuid bit even the user said otherwise, after a bit of investigation it turned out that chown (or better, the kernel) clears the setuid bit as a security measure as explained by Mike Stone.
Nice security measure, oddly enough I've never noticed that effect (that is, netselect's postinst was correctly working for me) so it must be new or I was being hitted by some bug or it's been there for years and I'm the last one to know. Or all the previous options.
Anyhow, netselect -8 is on its way with two postinst lines swapped.

Evan Prodromou: 15 Prairial CCXIV

I've got yet another microformat implemented on my site. The newest one is Vote Links, which adds a relationship to a link to indicate the author's approval/disapproval of the thing at the other end of the link. WiLiKi's nice macro system has worked for me again; it took me about 20 minutes to implement and test this macro.

Jonathan McDowell: Hello? Is there a problem with the line?

My E3 is currently sitting running KPhone/Pi under OPIE. Annoyingly I currently have to have a USB mouse attached due to lack of a suitable pointing device on the E3, but I'm sure that's solvable in time. More disappointing is the fact that it doesn't really work. :( I can successfully SIP register with my local Asterisk instance, and dial voicemail successfully. I only hear a fragment of the "Chameleon mail" prompt and attempting to send DTMF to choose a mailbox doesn't work either - I don't know if this is because I leave it too late or if they don't get sent at all. OpenEmbedded doesn't have any other OPIE based SIP or IAX clients, nor anything text mode that I can see. I found ZiaxPhone but it seems to be closed source so I can't rebuild it. Guess I'll have to find a text mode client and try to work out if it's KPhone, the audio driver or the E3 not being fast enough that's the problem.

Gunnar Wolf: More != better

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

Next.

Previous.