Search Results: "agi"

12 January 2007

Erich Schubert: DBus user hooks

Andreas Schuldei asked how to hook into gnome-power-manager. I'm assuming you want to do some user hooks, too; the solutions using the low level hooks in /etc won't help you then. Using a small user daemon that listens for DBus events is much nicer (though you won't be able to have the suspend process wait for you to finish...) - because every user can setup his own stuff. It would be cool to extend the following to a more general solution. I could imagine a combination of a dbus-monitor (logging incoming signals) and a general event handler. You could then either type in the signal you want to hook or choose one of the logged signals, setup some properties (e.g. the SSID you just connected to) and setup reactions (start VPN script etc.). I havn't hooked gnome power manager yet, but I've been doing this for NetworkManager. Here's a python script:
#!/usr/bin/python
import dbus, dbus.glib
 
def device_now_active(path, ssid=None):
  pass
 
def device_no_longer_active(path):
  pass
 
sysbus = dbus.SystemBus()
nm_obj = sysbus.get_object('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager')
nm_if = dbus.Interface(nm_obj, 'org.freedesktop.NetworkManager')
 
nm_if.connect_to_signal('DeviceNowActive', device_now_active)
nm_if.connect_to_signal('DeviceNoLongerActive', device_no_longer_active)
 
mainloop = gobject.MainLoop()
mainloop.run()
To hook to gnome-power-manager, use dbus-monitor to find out the appropriate signals to connect to. I've been using this to start a VPN client when connecting to some wireless networks, and to have gaim automatically logon when network is available:
sesbus = dbus.SessionBus()
gaim_obj = sesbus.get_object("net.sf.gaim.GaimService", "/net/sf/gaim/GaimObject")
gaim = dbus.Interface(gaim_obj, "net.sf.gaim.GaimInterface")
 
# then use
gaim.GaimConnectionsDisconnectAll()
# or
accounts = gaim.GaimAccountsGetAllActive()
for account in accounts:
  gaim.GaimAccountConnect(account)
Dynamic languages like python can be very sweet to use.

Ian Murdock: Babies, bath water and open platforms

Steve Jobs: “You don t want your phone to be an open platform.” More Steve Jobs: “These are devices that need to work, and you can t do that if you load any software on them. That doesn t mean there s not going to be software to buy that you can load on them coming from us. It doesn t mean we have to write it all, but it means it has to be more of a controlled environment.” It’s widely understood that Microsoft beat Apple in the PC game because Apple was a tightly integrated, closed platform, whereas Microsoft was an open ecosystem where anyone could play (albeit at their own peril). Clearly, the strategy has not adapted well to digital media players. Why? Because people are tired of products that don’t work. Anyone who has ever had to glue a PC back together for a family member knows what I mean. Does “open” have to mean “poorly integrated” though? Clearly, I don’t think so, given how much I’ve invested in Linux over the years and how much I’m investing in the LSB now. And the job the distributions do in the Linux world is nothing short of amazing, if you think about it—taking thousands of moving parts written by thousands of different people and crafting them into what appears, for the most part, to be an orchestrated whole. Personal experience bears this out too—it’s not that the entire Windows Media ecosystem produces bad products (iTunes pales in comparison to Rhapsody), it’s that the integration points are extremely fragile (e.g., I tried Rhapsody To Go with a Plays For Sure device, which was an awful experience). In other words, just like a chain, an open ecosystem is only as strong as its weakest link, because it’s the links where things break. Sure, there are bad products. I’ve owned no less than two MP3 players in the last few years, and they were pretty terrible. It’s the very, very simple things too. For example, I listen to a lot of podcasts. There’s (gasp!) a Podcasts menu on the iPod, whereas on every other device I’ve owned, podcasts are interspersed with the music, making them difficult to find and, adding insult to injury, mixing gobbledygook into my otherwise well organized collection. Furthermore (gasp!), the iPod keeps track of which podcasts I listen to, and in concert with iTunes, automatically deletes the ones I’m done with. Them’s lasers! Ah, iTunes. Despite the fact that anyone in the world can write a podcatcher (it’s just RSS with enclosures, fer godsakes), the only one I’ve ever used that works worth a damn is iTunes. Everything else is just “integrated” with bailing wire—create a Windows Media playlist, drop it in this directory, etc. The situation on Linux is a bit better, but guess what—Rhythmbox, Banshee, etc. didn’t work with either of the open media players I owned, even though the integration point for one of them was the file system. No, the players on Linux support the iPod best because that’s what everyone has, and if I’m going to pay extra for the iPod, aren’t I primarily buying the integrated experience? (On a related note, I’ve never understood why people pay top dollar for Macs and install Linux on them. But I digress..) Once you taste the fruit of the integrated experience, it’s easy to get sucked in all the way. I eventually tired of all the wasted time and money trying to use an open media player and broke down and bought an iPod. Not too long after, I canceled my Rhapsody subscription. Why? Because I couldn’t use it with my iPod. My overall music experience is diminished (I’m a big believer in the celestial jukebox), but I want one music platform, not two. And the iPod is the one with critical mass. Anything else is swimming upstream. Are open platforms doomed then? I think that’s, as they say, throwing the baby out with the bath water. The key is to have open interfaces, and the key to having open interfaces that work is cooperation between the vendors that implement them. Perhaps surprisingly, the iPod is a good example of how it can be done. The biggest reason for my iPod purchase: I can hook it directly into my car stereo instead of using an FM transmitter. Apple isn’t getting into the car business—it’s decided to cooperate with other companies to make this work. And you don’t hear too much about people calling their technophile relatives to come glue their cars back together. (And talk about the importance of not crashing..) The lesson here, it seems to me, is that an ecosystem is never the sum of its parts—it’s either a whole lot more or a whole lot less. Furthermore, it’s the responsibility of the vendors (and community) that make up that ecosystem to ensure the result comes up on the right side of the equation in the final analysis.

Erinn Clark: Sweet & Sour

According to this blog, I am one of the top 10 living girl geeks! How flattering. In other news, Robert Anton Wilson has died. He's one of my favorite authors, and I found this news to be rather tragic and upsetting, but it seems he remained in good spirits until the end. May he rest in peace.

11 January 2007

Manoj Srivastava: Mail Filtering with CRM114: Part 2

Or, Cleanliness is next to godliness The last time when I blogged about Spam fighting Mail Filtering With CRM114 Part 1, I left y'all with visions of non-converging learning, various ingenious ways of working around a unclean corpus, and perhaps a sinking feeling that this whole thing was more fragile than it ought to be. During this eriod of flailing around, trying to get mailtrainer to learn the full corpus correctly, I upgraded to an unpackaged version of crm114. Thanks to the excellent packaging effort by the maintianers, this was dead easy: get the debian sources using apt-get source crm114, download tghe new tarball from crm114 upstream, cp the debian dir over, and just edit the changelog file to reflect the new version. I am currently running my own, statically linked 20061103-Blame Dalkey.src-1. Cleaning the corpus made a major difference to the quality of discrimination. As mentioned earlier, I examined every mail that was initially incorrectly classified during learning. Now, there are two ways this can happen: That the piece of mail was correctly placed in the corpus, but had a feature that was different from those learned before; or that it was wrongly classified by me. When I started the chances were almost equally likely; I have now hopefully eliminated most of the misclassifications. When mailtrainer goes into cycles, retraining on a couple of emails round after round, you almost certainly are trying to train in conflicting ways. Cyclic retraining is almost always a human's error in classification. Some of the errors discovered were not just misclassifications: some where things that were inappropriate mail, but not Spam; for instance there was the whole conversation where someone one subscribed debian-devel to another mailing list, there was the challenge, the subscription notice, the un-subscription, challenge, and notice -- all of which were inappropriate, and interrupted the flow, and contributed to the noise -- but were not really Spam. I had, in a fit of pique, labelled them as Spam; but they were really like any other mailing list subscription conversations, which I certainly want to see for my subscriptions. crm114 did register the conversations as Spam and non-Spam, as requested, but that increased the similarity between Spam and non-Spam features -- and probably decreased the accuracy. I've since decided to train only on Spam, not on inappropriate mails; and let Gnus keep inappropriate mails from my eyes. I've also waffled over time about whether or not to treat newsletters from Dr. Dobbs Journal or USENIX as Spam or not -- now my rule of thumb is that since I signed up for them at some point, they are not Spam -- though I don't feel guilty about letting mailagent squirrel them away mostly out of sight. A few tips about using mailtrainer:

Brett Parker: The Apple iPhone: Good thing or not?

So, the Apple iPhone has been launched, it was brought to my attention as actually being announced by the MD at work, who appears to have become a complete apple freak (poor bastard... or is that rich bastard to be able to afford apple's mediocre offerings and be happy about it?). Anyways - from reading the story from BBC News and the official website, here's my conclusions. First off, when marketing a phone, how about you actually mention it's phone capabilities as the number one priority? I'd like to know about the sound capabilities, the battery life, the overall user feel for it as a phone... maybe I'm odd, but a phone has a purpose, it should make and receive calls, and it should do that job *well*, with good quality voice, a decent (filtering) microphone (it's a mobile, you'll be walking whilst speaking on it, reducing the background noise is a selling point), but apple appear to have mostly avoided talking about this. Instead, the first thing that you're told about from the news story is the unique user interface - great, so we have a touchscreen "whoop, de, do!". Worse still, from the official site, the first thing that springs out is that it's a "Wide Screen iPod" - it's a phone, if I wanted an iPod I'd buy a damned iPod - as it stands, for my music needs I have an iAudio M3 which suits my portable music experience really rather well. I choose that on the basis that it provided ogg support out of the box, didn't require any magical software (I run linux on my machines, it presenting itself as nothing more than a USB hard disk was fantastic, and means that I can use it for other things when needs arise). For a phone I want something that actually behaves like a phone, looking at the iPhone it's primary purpose appears to actually be a media player - that's not good. With the iPhone only having a touch screen interface, and from everything that I've read there's no stylus and the "finger is the ultimate pointing device", I'm just expecting that within the first 2 weeks you're going to have a scratched or smudged screen from usage alone, add in the fact that it's a mobile phone, and therefore generally treated with contempt (neccessity rather than luxery), and that most people carry mobiles in their pockets without any form of protection (easy and fast access) and you've got a recipe for disaster! The touch screen is going to be hit (wether you like it or not) whilst the phone is in your pocket, it will wear - there's no question in my mind about it. Touchscreens aren't designed to be smacked around 24/7, they're touchscreens - they respond to touch! So, assuming that you're shiny new iPhone is sitting in your pocket a lot of the time that's a lot of usage of the touchscreen - they're not designed for constant pressure (think about what happens to pockets in trousers when you sit down...), so I don't think that, overall, the sensitivity of the screen is going to last very long. It's only got a fairly narrow screen too, so what about those of us with not entirely slender fingers? When composing SMS messages on it with the on screen qwerty keyboard, do you really think that you're going to get the right keys every time? Small, on screen, buttons and pubs do not mix - and I'd hasten a bet there's a fair number of SMS messages sent from, or on the way back from, the pub, with a predictive text system at least you can almost work out what the heck the person was trying to say - this is a whole new ball game. The iPhone also makes the phone functionality only available after you've hit the part of the screen that says "Phone", now, I don't know about other people, but if I'm being given a number, I tend to just start hitting the right buttons on the phone, I can store the number later (via the call register or whatever) and hit call, now there's an extra step to getting in touch with people. From the official site we have the words """ iPhone also introduces an entirely new user interface based on a large multi-touch display and pioneering new software, letting you control everything with just your fingers. """" - now, err, just when did a phone require you to use anything other than your fingers? Please tell me, I'm dying to know - I've never yet needed to use my feet to operate my phone, have you? This is marketing gone insane - and what worries me is that people actually believe this bullshit. Apple may have "revolutionised" the computer industry with "Mac OS X" (this is actually not something that I believe, and OS X actually makes me more frustrated than being sat infront of a windows desktop - and believe me, that's difficult), but this is a phone, how about they try making it about the phone first, and the next generation tart audio player second? I'm willing to be convinced that I'm wrong, but I definately won't be going out of my way to aquire an iPhone just because the marketing spiel looks good.

9 January 2007

Erich Schubert: Scripting with NetworkManager and network/interfaces

Debians /etc/network/interfaces is a powerful way to setup multiple profiles; NetworkManager is a pretty UI for managing your network. However they don't play well together: NetworkManager will ignore devices managed via network/interfaces. However, NetworkManager lacks a couple of important options, including static IPs and several wireless options; I can't connect to my universities WAP2 network using NetworkManager because of some missing options. This is why I wrote this small script:
#!/bin/sh
# disable network manager:
dbus-send --system \
  --dest=org.freedesktop.NetworkManager \
  /org/freedesktop/NetworkManager \
  org.freedesktop.NetworkManager.sleep
sudo ifup eth1=eth1-lrz
My /etc/network/interfaces contains a working setup for my wireless named "eth1-lrz"; since this differs from the real device name, this works fine. Running this script will tell NetworkManager to disconnect and instead setup the wireless for my university network. When connecting to a different network, I only have to do "ifdown eth1" and then click on the NetworkManager applet to enable it again. (would be "org.freedesktop.NetworkManager.wake")

8 January 2007

Maximilian Attems: Unbreakable IBM

Three letters corporations don't inspire confidence (junk code, big tactics, ..). Nevertheless Thinkpads i will miss you. My current workhorse is a x41 Thinkpad. The default model has a bad battery life. Yeah the x40 are cool and with much better battery life out of the box, but they need this mad atheros binary hal junk (the ath free replacement goes nowhere right now :(. No i won't taint the running kernel. So just buy a battery upgrade and be happy.
In August cycling i got badly hit by a car. Making a cool stunt on asphalt with a crashed helmet and hurt everywhere. The laptop being unprotected in backpack. No complaints from the X41. Throw it across rooms and it happily boots. Exposing it to dust did not cause any high pitch noise like some earlier Vaio.
As Thinkwiki will tell you the Hitachi hdd are not really worth to put data on them. I got mine easily exchanged 2x. I wouldn't care less thanks to git, imapd and frequent backups.
As you can probably imagine the story of unbreakable doesn't stop here, but i won't leak current experiences "nancy" had to endure. Anyway i wanted to join in the Thanks to all the peoples that make Debian the pleasure to hack and work on! Big props to the Release Team for coordinating the fine Etch product.

John Goerzen: Christmas Memories, Part 4

In my other posts about Christmas, I wrote about my memories of Christmas awhile back.

In this final post, some more recent memories.

Terah and I don't really have a Christmas tradition yet -- things seem to keep changing.

Our first Christmas after being married was in Indianapolis. Our church there didn't have a Christmas Eve service, so we went to a different one. We also bought a tree from Tree Classics that year:



The next year, we moved to Kansas. Our church has a children's program on Christmas Eve, but Terah likes the more meditative lessons and carols service that her church used to have on Christmas Eve, so sometimes we've gone to a different church that evening -- or even to two different services.

This year, we're in an apartment, and we've got Jacob. That makes everything more fun. Here he is in a festive holidy mood:



Of course, the one thing that a festive holiday mood is sure to lead to in a 3-month-old is a not-so-festive holiday bout of fussiness.



Our tree this year is borrowed. Ours, along with all of our Christmas decorations, lights, and wrapping paper, is in storage. So some of our gifts aren't wrapped. But that's OK -- we enjoyed Christmas all the same.



In this, my last post on Christmas for this season, I wanted to follow up on my earlier post about my Grandpa Klassen. I wrote:

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

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


Well, here's the photo:

7 January 2007

Evan Prodromou: 16 Niv se CCXV

Amita June is reaching a point in her life where it's time for us to start weaning her from breastfeeding. Most parents do this much earlier, if they breastfeed at all, but we've been devotees of attachment parenting for a while, and we wanted to give her as much time nursing as possible. But at 15 months, she's ready to start doing things like sleep through the night on her own, drink only cow's milk, and be a little more independent. So, this month we're starting to do some night weaning. What does this mean? First of all, Maj is no longer nursing the baby to bed. She now is doing the main pre-sleep prep work (a bath), does a short nursing period, and then hands the baby off to me for some reading, songs, and walking down to sleep. This will gradually move into fewer, shorter nursings before sleep, and ultimately to none. Once that connection has been broken, I think the main point of nursing will be occasional comfort nursing during the day. Gradually, that will fade out. And then there will be none. It's kind of exciting to be the Primary Sleep Guy for the baby. We're re-connecting in a way that we haven't in a while -- I was only putting her to bed occasionally for a quite a while. It's also been pretty successful so far, which has been good. tags:

Souper Bruncher When Maj and I first moved to Montreal, we had help from some friends who we'd known from before. After we moved into our apartment, we invited them all over for dinner to say thanks. In order to get to know people in our new hometown, we also asked each person to bring someone we didn't know, so we could make new friends. The event was so successful, and we met so many new people, that we made it a regular occasion. For almost three years, every Tuesday night we invited friends over to our home for dinner (or souper in Quebecois French), with an open invitation to meet new friends and interesting people. It was a great way to meet interesting folks in Montreal, and most of our best friends here we met through these dinners. We were even profiled in Elle Quebec as a model for how to make new friends. But when the baby was born, we just couldn't manage to organize dinners any more every week. Cooking for 20+ people isn't that expensive, especially since we're pescevegetarians and that kind of food just isn't that costly. But it does take a lot of time and energy, and with a newborn baby we just didn't have either. Now, with Amita a little more than a year old, we're trying to start up our regular home parties on a more manageable scale. We're doing brunch at our house on Sunday afternoons around 3PM, with a much smaller list of invitees, requests for RSVPs, and a clear indication that the event only goes until bedtime. (Our Tuesday night dinners would occasionally stretch until dawn.) It seems to be working pretty well; we've had a lot of fun at the last couple of brunches we've had. And brunch is a much more laid-back meal than a dinner party, anyways. (Although John Usher asks incredulously, "By what stretch of the imagination is 3PM between breakfast and lunch?") I'm looking forward to our next brunch (tomorrow) a lot, and I hope to get many more friends over to our home in the next few months of Sundays. tags:

6 January 2007

Martin F. Krafft: Adam's Apples

I've been away from Zurich for a while, and one of the things I missed the most was my favourite cinema. So last night, I didn't need my arm twisted much (by Hanspeter) to go and see the Danish film Adam's Apples (warning: Flash content). Imagine a church community made up of four people: Ivan, the reverend, who lives Jesus' philosophy to offer the other cheek when slapped on one. Ivan is father to Christoffer, a spastic-retard, and widow to his late wife, who killed herself not being able to handle the retardation of their child. Ivan, of course, denies all this and treats Christoffer like a regular, jovial and energetic child, and lulls over the loss of his wife in an accident. If someone get too close to Ivan, he'll bleed from his ear. Ivan is played by Mads Mikkelsen, who also plays Le Chiffre in the latest Bond movie "Casino Royale" (which I'll cover in another post). Then there's Sarah, a dosser who got off with a man she didn't know or love and now expects a child. Because of her drinking problem, the child is said to have a 40% chance of being disabled. She cannot handle it and runs to Ivan for advice. Khalid is a Saudi who's on parole at the church after plenty of armed robberies of Statoil stations as part of his mission to destroy the Statoil empire. He speaks broken Danish (wonderfully translated in the subtitles), seems extreme at most of his actions, but all he really wants it is to return to Saudi Arabia. He's been at the church way longer than his parole, saving money but also just enjoying the innocence. Gunnar is a massively obese ex-tennis player who turned to overeating and alcohol after a ball of his was wrongfully judged to be out, causing him to lose an important game. He's at the church on parole for small-scale thievery and plays a role somewhat reminiscent of Lenny in "Of Mice and Men:" stupid but kind. He is also way beyond the end of his parole. There's also a doctor who seems to be the only one with a firm grasp of reality, but his sarcasm overshadows that completely. One day, Adam arrives. Adam's a misanthropic neo-nazi on parole, sent to the church to be cured. Adam calls himself evil and seems to be just that: he cannot deal with niceness, especially not the straioght-up, disarming kind displayed by Ivan in fact, he's the kind of guy who'd slap the other cheek even if not offered. Adam's task is to care for the apple tree (which is everyone's pride) and bake a cake from the harvest. As the story develops, Adam's fight against Ivan's benevolence reaches hilarious heights as the characters seem to exchange exactly those sentences that the other didn't want to hear. When later a group of neo-nazis join the battle, as well as what would have to be called God, everyone (characters and movie-goers) are left wondering who's after whom, and sundry other questions on morale. The film was once again a great display of Scandinavian cinematography, which I've grown to like a lot over the years of being a regular at this cinema. Despite the somewhat flat story and the surreal element of God in one scene (and only one), I can hartily recommend it. The actors are doing an amazing job, and in the end, the movie is primarily funny, not because of jokes or forced humour, but because of the dryness and darkness of what's happening between what seems to be average people like you and me on the screen. NP: The Flower Kings / Paradox Hotel

Stefano Zacchiroli: ocamlnet 2.2 in experimental

Ocamlnet 2.2: test it by yourself from experimental A couple of days ago I finally managed to complete the packaging work of Ocamlnet 2.2. This upstream version is a (r)evolutionary release in which it aggregate in a single source package libraries who used to be distributed separately, namely: equeue, ocaml-rpc, netclient, and ocamlnet itself. I've been quite surprised to discover that upstream is explicitly nice with us packages and provides guidelines on how to split the various libraries in binary packages addressing both dependency and licensing problems (e.g. for nethttpd which is GPL and can't be shamelessly linked with other components which are MIT/X11-licensed). The packages are in experimental but need NEW-processing, as well as cryptgps (a pure-OCaml implementation of some symmetric crypto algorithms, which is a new build-dep of Ocamlnet). Hence to ease testing I set up an apt-gettable repo here:
deb http://people.debian.org/~zack unstable ocaml

Please try it and give feedback to debian-ocaml-maint@l.d.o. In all my tests the upgrade from ocamlnet pre-2.2 has been smooth: the (too many) transitional packages I had to create did their dirty job. The only "issue" non-addressed (and I don't know how to actually) is that the nethttpd library used to be distributed in libocamlnet-ocaml-dev and is now distributed in libnethttpd-ocaml-dev. Since the former package is entirely useful without the latter there is no dep among the two and it's possible that upon upgrades an user ends up without a working nethttpd library on the system. I added a Recommends in the hope it's enough, let's see how many complaints I will receive ...

5 January 2007

Russell Coker: core files

The issue of core file management has come up for discussion again in the SE Linux list.

I believe that there are two essential security requirements for managing core files, one is that the complete security context of the crashing process is stored (to the greatest possible extent), and the other is that processes with different security contexts be prevented from discovering that a process dumped core (when attacking a daemon it would be helpful to know when you made one of it's processes dump core).

The core file will have the same UID and GID as the process that crashed. It's impossible to maintain the complete security context of the crashing process in this manner as Unix permissions support multiple supplementary groups and Unix filesystems only support one GID. So the supplementary groups are lost.

There is also a sysctl kernel.core_pattern which specifies the name of the core file. This supports a number of modifiers, EG the value "core.%p.%u.%g" would give a file named "core.PID.UID.GID". It would be good to have a modification to the kernel code in question to allow the SE Linux context to be included in this (maybe %z).

To preserve the SE Linux context of the crashing process with current kernel code we need to have a unique type for each process that dumps core, this merely requires that each domain have an automatic transition rule for creating files in the directory chosen for core dumps. In the default configuration we have core files dumped in the current directory of the process. This may be /tmp or some other common location which allows an attacker to discover which process is dumping core (due to the directory being world readable) and in the case of SE Linux there may be multiple domains that are permitted to create files in /tmp with the same context which gets in the way of using such a common directory for core files.

The traditional Unix functionality is to have core files dumped in the current directory. Obviously we can't break this by default. But for systems where security is desired I believe that the correct thing to do is to use a directory such as /var/core for core files, this can be easily achieved by creating the directory as mode 1733 (so that any user can create core files but no-one but the sys-admin can read them) and then setting the core_pattern sysctl to specify that all core files go in that directory. The next improvement is to have a poly-instantiated directory for /var/core such that each login user has their own version. That way the user in question could see the core files created by their own processes while system core files and core files for other users would be in different directories. Poly-instantation is easier to implement for core files than it is for /tmp (and the other directories for which it is desirable) because there is much less access to such a directory. When things operate correctly core files are not generated, and users never need to access each other's core files directly (they are mode 0600 so this isn't possible anyway).

This area will require a moderate amount of coding before it works in the ideal manner. I aim to briefly describe the issues only in this post.

Wouter Verhelst: Vista's Content "protection"

There seems to be a bit of a fuss around Vista's Content "protection" mechanism going around the 'Net these days; someone made some review of it in terms of the effects this will have on the hardware industry, which was mentioned by a few people on Planet Debian, and also on Bruce Schneier's blog. The argument, basically, goes like this: Personally, I don't buy that argument. "Premium Content" (really, Crippled Content) will only be available to those users who actually have hardware and software which is capable of viewing Crippled Content. While it might be a problem for home users not to be able to view Crippled Content, I can't think of any reason why you would want to be able to view Crippled Content on your enterprise desktops. As a result, Enterprise users will continue to buy the cheapest hardware available that still accomodates their needs, much as they do now (I have yet to see the first enterprise desktop with one of those extreme 3D-capable cards...). And if just one manufacturer decides that the Enterprise market is enough of a market for them not to support Crippled Content with (a subset of) their hardware, then I can't imagine there being a problem in finding affordable hardware anymore. Eventually, people will understand that Crippled Content is much more of a trouble than it is worth—a DVD player is just as cheap, and doesn't require you to have a humming, noisy PC in the living room—and Vista's Crippled Content will go the way of the dinosaur. Where it belongs.

Clint Adams: Grangers on a pane

Rudy told James that he was going to be in Tainbridge the following Saturday and asked if he would like to have dinner or drinks and catch up. James agreed to dinner and they met at a very mediocre Italian restaurant that incited a mild bit of regret in the both of them. Though they hadn't spoken in seven years, there was not much catching up. Rudy announced that he was moving to Tainbridge soon, and James's heart lept. Then somewhat abruptly, he asked if James had a boyfriend. James replied in the affirmative, and Rudy's heart sank. Somewhat upset, Rudy called Carlo, then asked James if he would like to have dessert with Carlo downtown. James did not particularly want to have dessert with Carlo, so he replied in the affirmative. Presently they came to be having dessert, and Carlo excitedly chattered about how he was getting Rudy a job at his firm and how everyone's lives were going to be fantastic. James developed a slight melancholy and went home to his boyfriend, Chaim. Rudy moved to Tainbridge, began working at Carlo's firm, and started spending as much time at Carlo's house as Carlo spent at Rudy's. After about a month, he began to lose hope that work began tolerable, and life started to wear him down. Carlo knew that Rudy did not want him very much, but swore to win him over, no matter what it took. Carlo was very devoted to him, but the constant doting did not make him happy. James called him to chat, and Rudy asked about his boyfriend again. James changed the subject, and Rudy jokingly suggested that James buy him a new phone. James laughed, and suggested that they get together. Rudy said that he was far too busy with work at the moment, but perhaps that would change in the future. Then a spark of hope ignited within Rudy's soul, and he began to fantasize. Rudy would leave Carlo and run to James when given the new phone which would be imbued with so much unspoken meaning. So too, a dream nagged at James's mind. Finally, in a moment of weakness, he bought a new phone which he imagined Rudy would like. Rudy was afraid, so he continued to say that he was too busy to spend any time with James. James continued to grow frustrated until at last Rudy was free for dinner. So they made a date, and James gift-wrapped the phone and brought it along. Just a few minutes before their scheduled rendezvous, Rudy called and asked if it would be acceptable if Carlo joined them for dinner. James did not want Carlo to join them, so he answered in the affirmative. Rudy avoided any opportunity for him to be alone with James, and James grew increasingly frustrated. When the bill arrived, everyone just stared at it contentiously until Carlo finally announced begrudgingly that he would pay for everyone. Carlo and Rudy returned to Rudy's house, and James retired to his. James became more downcast and berated himself for being pathetic enough to buy the phone. Rudy became even more impatient, finally losing control and calling James to scream at him for being so inconsiderate as to make Carlo pay for the dinner. James was very defensive, and their relationship grew very strained. One day, Rudy called James and invited him to dinner immediately after work. James accepted, and headed to the restaurant. When he got there, Rudy was alone. James groaned, for he did not have the phone with him. They had a very civil dinner, Rudy paid for both of them, and then they went home. Rudy gave up all hope that James would buy him a phone. They never saw each other again.

4 January 2007

Benjamin Mako Hill: Reflecting on the Definition of Definition

In his latest talk Lawrence Lessig spends time defending the use of non-commericial use clauses and goes into detail about how the free culture movement does not need and should not have definitions of freedom. In doing so, he was referring to a public discussion the two of us had most recently in September. While my name was not mentioned until the questions, he implicitly criticized both my freedom definition and my call for any definition at all. As usual, his criticism has made me think a lot about what it is that I'm trying to do. I've been thinking about a conversation I had with Aaron Swartz recently where he was also criticizing me for focusing too much on definitions. He was skeptical about my assertion that social movements and freedom movements needed "definitions." I thought about it and told him then that I thought I'd been making a mistake by saying I want free culture movements to have definitions. More accurately, what I want are goals, standards, or ideals. I want to be able to say, "music when will be free when every producer can do A, B, and C and every listener can do X, Y, and Z." I want the possibility of a shared utopianism. I want these kinds of goals because I believe that these images of what what things might be like if we win is what motivates us to win in the first place. I believe that the idea that, "things might be better" is simply never as powerful as a strong, perhaps even unattainable, ideal that challenges people and gives them something to strive for. The leaders of other successful social movements I know can tell you exactly what they are trying to achieve -- although few of them ever will realize it completely. No free culture movement leader can do this with any authority. For reasons I've talked about in the past, I think that fact may ultimately make us less successful. In the free software movement, our most important goal (free software itself) is documented in the Free Software Definition. Even the most ethically motivated among us aren't perfect -- most of us use some proprietary software -- but we have an ideal to hold our behavior up to and a method by which we can always improve. Inspired by free software, I unimaginatively said that I thought free culture needed a "definition." I probably could have found a better way to describe what I wanted and I'll do so in the future. I suppose I should have thought a little more about the definition of definition.

31 December 2006

Paul van Tilburg: What Etch Will Bring

With 2006 almost finished, I can look back at a succesful year for the Debian/Ruby Extras team. The infrastructure was set up and we gained 12 new team members and a lot of packages. With Etch frozen, I can now almost certainly say what Etch will bring Ruby-wise: I am proud of what we have accomplished, good work everyone! Not team related is the change that the whole Ruby stdlib is now bundled in libruby(1.8) and is no longer split up! So you all can remove those Debian-specific messages about having to “do extras things when using Debian”. ;) Future plans for Lenny Future plans for Lenny include updating and extending the Ruby Policy. Focus points will be package versioning, improving documentation. Also we intend to package even more Ruby libraries and applications and ask current Ruby lib/app developers to join us. A third matter I’d like to address is Gem support.

Russell Coker: memes that damage debian

The Debian project is afflicted with several damaging memes. One that is causing problems at the moment is the idea that life should be fair. Unfortunately life is inherently unfair, it's not fair that those of us who were born in first-world countries (the majority of Debian developers) have so many more opportunities than most people who are born in "developing" countries, and things just continue to be unfair as you go through life. Unfair things will happen to you, deal with it and do what is necessary to have a productive life!

When one developer has regular long-term disputes with many other developers the conclusion is that the one person who can't get along is at fault. We can debate about whether one or two significant disputes are a criteria for this or whether having a dozen developers disagreeing with them is the final point. But the fact is that if there is a large group of people who work together well and an individual who can't work with any of them then there is only one realistic option, the individual needs to go find some people that they can work with - they can resign or be expelled. The fact that something slightly unfair might have happened a year ago is no reason for pandering to an anti-social developer. The fact that expelling a developer for being anti-social is unfair to them is no reason for damaging the productivity of all Debian developers.

Another problemmatic meme is the idea that we have to tolerate everyone - even those who are intolerant (known as the Limp Liberal meme). When someone has no tolerance for others (EG being racist or practicing sexual discrimination) then they have no place in a community such as Debian. They need to be removed sooner rather than later. All Debian developers know the problems caused by deferring such expulsion.

The final damaging meme that I have observed is you can't force a volunteer to do any work. On it's own that statement is OK, but the interpretation commonly used in Debian is you can't take their job away from them either. The most common example of this is when a developer is not maintaining a package and someone else does an NMU (non-maintainer upload) to fix a bug, the developer then flames the person who did this (usually to fix a severe bug). It seems to be believed that a Debian developer owns their packages and has a right to prevent other people from working on them. This attitude also extends to all other aspects of Debian, there are many positions of responsibility in Debian that are not being adequately performed and for which volunteers are offering to help out but being refused.

The idea of the GPL is that when a program is not being developed adequately it can be taken over by another person. However when that program is in a Debian package the developer who owns it can refuse to allow this.

30 December 2006

Russell Coker: more about vista security

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

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

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

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

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

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

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

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

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

29 December 2006

Randall Donald: Ack! We need 9631!


Ok. Since I have uploaded 1.0.9746 I need to make a packaging change regarding the 1.0.9631 drivers which are now another legacy version, but not as legacy as 7184 if that makes sense. 7184 might become something like -ancient if it still be kept around.

If you need 1.0.9631 you can find it here http://snapshot.debian.net/archive/2006/12/08/debian/pool/non-free/n/nvidia-graphics-drivers/
for now.

Gustavo Franco: Debian Desktop - call for tests

What is Debian Desktop?
Debian Desktop is a Debian's subproject created to be a joint effort of
all groups involved or related with the desktop to give our users a
better environment to use and easier to install experience.

Actually we've members from: pkg-gnome, pkg-kde, pkg-xfce, pkg-galago,
tasksel and utnubu. We count with help from d-i and debian-cd members too.
The initiative merged the former Debian Desktop development page, debian-desktop
mailing list for the discussions and debian-desktop alioth project - its svn actually
hosts the desktop-base source package.

We did our best to deliver for our users a interesting desktop experience (including
laptop users) and it includes GNOME, KDE or Xfce (that's your choice) in our upcoming release: 4.0 (Etch).

What will be into Debian Etch Desktop ?
The desktop (task: desktop, installable through aptitude or tasksel):
It also includes a simple window manager (twm), zeroconf (avahi), printing (cups) and scanning (sane) support

GNOME desktop (task: gnome-desktop, also installable through aptitude or tasksel):
It also includes bluetooth (bluez-gnome) support, multimedia in the browser support (totem mozilla plugin), bittorrent support (gnome-btdownload)

KDE desktop (task: kde-desktop, also installable through aptitude or tasksel):
We tried to add all the gnome task features into kde task too. KDE itself already contains a lot of them, if you find something missing please tell us at debian-desktop@lists.debian.org for a better next release, and wait your contribution enter Lenny.

Xfce desktop (task: xfce-desktop, also installable through aptitude or tasksel):
It also includes multimedia support and xfce goodies.

What if i've Debian testing or sid installed using GNOME or KDE or Xfce?
Open a terminal, check your /etc/apt/sources.list and run as root:
aptitude update
aptitude install desktop $foo-desktop

Please replace $foo with GNOME, KDE, Xfce - e.g: aptitude install desktop gnome-desktop

Note that desktop and $foo-desktop aren't metapackages - packages that usually contains just a few files (the required) to be installed in the system and its main feature is depend, conflict, recommend or suggest other packages. desktop and $foo-desktop are tasks and are in the tasksel source package, maintained by the tasksel team. The debian-installer uses tasksel to install a set of packages, and you should too.

How can i download Debian Desktop for tests?
The easier way to install is downloading a CD or DVD image from http://www.debian.org/devel/debian-installer . Please download
Debian Etch RC1 images or later for GNOME and something newer
(eg: weekly builds) for KDE or Xfce. Please note that DVD usage
is preferred, if you're going to use a CD broadband is recommended.

There are special first CDs images containing not GNOME key packages
but KDE or Xfce, look for debian-testing-i386-$foo-CD-1.iso (don't worry,
we've at least amd64 and powerpc images too) at:
http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-cd/

How can i install Debian Desktop GNOME?
The first DVD image contains the entire GNOME set of packages, just
follow the installer and after the base system install select "default
desktop environment", if the system doesn't suggests it for you and
proceed - no network is required during installation.

The first CD image doesn't contains the entire GNOME set of packages,
just follow the installer and after the base system install select
"default desktop environment", if the system doesn't suggests it for
you and proceed - broadband connection is recommended.

How can i install Debian Desktop KDE?
Before the installer boots, please type:
install tasks=kde-desktop

* The first DVD image contains the entire KDE set of packages - no
network is required during installation.

* The first CD image doesn't contains the entire KDE set of packages -
broadband connection is recommended.

Note: Alternative first CD is available (see above).

How can i install Debian Desktop Xfce?
Before the installer boots, please type:
install tasks=xfce-desktop

* The first DVD image doesn't contains the entire Xfce set of packages
- broadband connection is recommended.

* The first CD image doesn't contains the entire Xfce set of packages
- broadband connection is recommended.

Note: Alternative first CD is available (see above).

Next.

Previous.