Search Results: "sto"

21 July 2006

Evan Prodromou: 3 Thermidor CCXIV

Last night's CC Salon in Montreal went extremely well. I spent the time haranguing Marcus and Tina Pipers (the co-director of Creative Commons Canada) about the evils of anti-DRM clauses in licenses. (See Free content and DRM for my opinionated take on this matter.) Apparently there was a lot of talk about this at the iCommons summit in Brazil. Amita June enjoyed the noise and attention and spent an inordinate amount of time patting one hacker's very long beard. We'll see what kind of psychological symptoms that develops into later. tags:

Ben Macintyre on Wiki It was kind of tiring to see Ben Macintyre's note on How wiki-wiki can get sticky in The Times Online.
  • Many years ago, I wrote a book about a Victorian crook called Adam Worth, a subject so obscure that no one had ever written a book about him before, or since. When I found an entry for Worth on Wikipedia, I was at first astonished, then flattered to find the book cited in the references, and then slightly infuriated: whoever had written the entry had plainly read my book and summarised it, but added several small but irritating errors.
Wikipedia isn't perfect and contains some errors? Oh, really? Boo hoo hoo. Yawn, turn the page. Wait, though; what's that last paragraph say?
  • At first, I ignored the mistakes. This was only Wikipedia, after all. But the landscape of knowledge has changed since then, and I have joined the club. Wikipedia should always be taken with a pinch of salt. But the more we contribute and revise, the less salt we will need. We are all Wikipedists now.
Huh. A mainstream journalist who realized the way to deal with errors in Wikipedia is to fix them? Am I dreamin'? tags:

Dirk Eddelbuettel: Undeleting from ext3

Kudos to Paul Wise who suggested late last night to try magicrescue to recover an OpenOffice file with meeting notes I had mistakenly deleted from the laptop before I even got to editing these very notes, or backing them up. And it worked -- despite the dire warnings from the ext3 FAQ about the near impossibility of undeleting from ext3 partitions. But a few things worked in my favour here: OpenOffice files are zip files 'under the hood', and magicrescue knows how to deal with certain file formats via its collection of 'recipes' (which one can extend), and zip is among the shipped recipes. Also, I still had the 'ls -l' session in one konsole tab so I knew the exact file size I was looking for. And I wasn't in a hurry. So this morning, after magicrescue had faithfully restored 4479 files in over four hours, its companion magicsort then filtered these into a handful of directories, one of which was 'OpenDocument Text' -- which contained a few files, including two versions of the desired file as well as copies of the version from the previous meeting. Nice. And OpenOffice gladly opened the file. Lastly, it cetainly helped that I happened to have a lurking debian-devel irc session open where --- where Paul not only caught my remark, but almost immediately suggested to try magicrescue. So here goes a well-earned Thank You to Paul!

Carlos Villegas: Now Parallel execution works better (SoC 2006)

A bug was found when doing parallel execution with startpar. The scripts seem to have been executing twice and it is being fixed by Petter Reinholdtsen. To compare the effect of the bug, the parallel execution boot time using startpar was compared with the one using "shell". The main difference between using CONCURRENCY=startpar and CONCURRENCY=shell in /etc/default/rcS is that the latter doesn't care about the order in which messages are printed to the screen.

The issue made me try things again and this time I didn't accept the default script reorder from insserv. Insserv seems to have the following reordering issues:

a)repeates scripts in /etc/rc2.d that were already started in /etc/rcS.d
b)doesn't reorder /etc/rcS.d
c)puts stop-bootlogd near the beginning in /etc/rc2.d and bootlogd while sysklogd and klogd are at the middle.
d)includes scripts present in /etc/init.d that were not previously executed at boot time.


Issues (a) and (c) were corrected and the boot time was 2 seconds faster than without insserv(See bootcharts).
While testing parallel execution, using CONCURRENCY=startpar, there was no improvement (the bug hasn't been fixed) and while testing with CONCURRENCY=shell there was a 4 second time improvement from the original system without insserv. (See bootcharts)

20 July 2006

Biella Coleman: Debian History

I have made it to South Africa and the official part of the Law and Society conference has come, sadly, to an end. It has been an amazing experience for reasons that deserve a lot more attention than I have right now so I will wait to write some about it when I have more time. But before I forget, Lars has been thoughtful enough to put the Debian History Roundtable Discussion on the Debian Wiki. I organized this roundtable at Debconf4 and while there is a good chunk of information from the discussion, there is a lot missing and perhaps even wrong, so please make changes and additions.

Evan Prodromou: 2 Thermidor CCXIV

I talked with Raymond King and Mark Dilley at RecentChangesCamp in February (uh... I mean Pluvi se) about their plans to develop Mark's excellent SwitchWiki wiki directory into something... more. I'm glad to see that WikiIndex is really picking up steam. It's becoming my first-stop for getting information on what's wiki, what's not, and who's doing what. The site uses MediaWiki, but the principles and community are very much rooted in the traditions of Ward's Wiki, MeatballWiki and CommunityWiki. I really hope this site keeps up it's momentum and growth. tags:

CC Salon in Montreal Tonight is the first Creative Commons Salon in Montreal. The get-together is at Caf l tranger, 680 Sainte-Catherine Ouest (at Alymer) at 19h30. More details on the Creative Commons Canada blog: http://creativecommons.ca/blog/?p=185 . Maj and I are trying to get a sitter for the event -- Amita June is starting to get grumpier and grumpier about going to sleep after 8PM. But I'll be there regardless. tags:

Great camping Website So, maybe I just haven't been camping a lot in other places outside Quebec in a while, but I'm extremely impressed with the quality of the S paq Web site. You can search the entire network for available campsites based on various criteria (size of tent vs. RV, for example), and then use a map-based interface to browse possible sites. The maps go down to the individual site level, and have popup descriptions of each and every site -- how much sun, how close to water, how private, etc. It's really nice. I have my quibbles -- we tend to do road-trip camping, where we'll stay in a different campground each night for a few days. It'd be nice to do all those reservations at once, but the site doesn't support that. And there are some search criteria I'd like to be able to specify (number of neighbors, access by car) that aren't possible. But as far as it goes, this is a real good site. tags:

Wikispam lockdown I've been having a real problem with Wikispam on my site lately -- several of my pages have nothing-to-sniff-at wp:PageRank values of 6 or 7, and I think that attracts a certain spammity crowd. I think that dealing with Wikispam is something most wiki sites do very well-- an active community is the best counter-measure against spam. And there are lots of good tools, like regexp filters, per-page locking, email and IM notification, and ip blocking that make it easier to maintain a site. But I don't have an active community working on this site -- it's pretty much just me. And WiLiKi, as beautiful and Scheme-y as it is, doesn't have many of the anti-spam tools that users of other wiki engines take for granted. I plan on building more anti-spam tools into the site, but for now I've just been locking the site up when I'm not writing something. It's not as wiki-ish, but it does keep my writing up more often. I'd feel pretty bad about it, but it looks like Alex locks up CommunityWiki for days at a time. tags:

Amazon man at the door Just got an order from Amazon in... full of CDs and books. When I used to live in my car (long story, there), I had my 100 favorite CDs in a box in the back. It was safe there in tons of cities -- wt:Chicago, wt:Saint Louis, wt:New York City, even wt:Monterrey and wt:Guanajuato. But I parked it about a block from It's Tops in San Francisco one night while visiting home, and one of my windows was smashed and the discs were taken. Devastating. Slowly but surely I've been re-stocking my music collection, but it's painful to buy the same album twice (and, yes, I know... I shoulda made backups! I do that now). Today's shipment contained a lot of stuff I re-bought: ''wp:The Last Waltz'', a bunch of wp:Neil Young (including the DVD of wp:Greendale), and one of my favorite albums ever, the eponymous first album from Lamb. Also in the box were a bunch of Lost paperbacks ("inspired by the hit series") and the hardback copy of Bad Twin, the mystery novel supposedly written by one of the people who died in the crash of Flight 815. Yeah, I know -- but I like the show, dangit. tags:

Best thing ever Vaguely reminiscent of the very fine Good or Bad? feature from Brunching Shuttlecocks, bestthing.info, by the enigmatic but talented xkcd, is a good way to waste a few minutes. tags:

Arnaud Vandyck: Everybody wants to open source

It’s strange to follow state of minds of big companies about open source (they rarely speak about Free Software but that’s another story;-)). Dalibor Topic, Mark Wielaard and all friends from GNU Classpath spent a lot of time talking with Sun to try to open source Java (or even just be able to get the tools to make open source java virtual machines and API). They are some moves in that direction and people like Tom Marble is working hard to make Sun’s JDK license DFSG compatible and integrate Sun’s JDK in the Debian distribution. Robert Brewin, co-CTO of Sun Microsystems’ software group, said: “I believe that we will have components of Java released into open source within the year,” meaning by next June, Brewin said. “I think [release of] the whole thing will take a little bit longer.” One more step. Another amazing interview is the one of David Kaefer, director of Business Development, Intellectual Property and Licensing at Microsoft who called the open source software movement a “very powerful force in the industry.” He also wants us to believe that Microsoft will be more and more open… Wait and See ;-)

Evan Prodromou: 1 Thermidor CCXIV

Happy 1 Thermidor to everyone -- I'm sure you're all busy meditating on the virtues of epeautre (wp:einkorn wheat), the wild grain to which this day is dedicated on the French Revolutionary Calendar. Thermidor is best known for wp:Lobster Thermidor, but also for the so-called wp:Thermidorian Reaction, a revolt by moderate revolutionaries during the French Revolution against the bloody excesses of the Committee for Public Safety. I think about this because I've just been reading Bob Sutton's blog today based on the reference in Ross Mayfield's blog. Sutton is the author of an upcoming book called the No Asshole Rule (pardon my French, but that's just the name of the book). It's about how poisonous, unhealthy personalities can ruin a workplace, and how beneficial it is to support your reasonable, human employees by kicking out the jerks. They're happier, more productive, and more loyal if you show some compassion and get rid of the a-holes. Coincidentally, I also saw the Top 5 reasons why The Customer Is Always Right is wrong on reddit. It also recommends against allowing unpleasant people to ruin your workplace environment -- but here, the culprits are the customer, not other employees. I especially liked the stories from Southwest Airlines. I think I'm going to have to pick up this Nuts! book about SWA business theories. Why all the thoughtifying about jerks and meanies in business? Because I think the same principles might be applicable to Open Source and Open Content projects. Specifically, with Debian, we've had a few personalities who generate a lot of discussion and attract a lot of attention, causing some real Excedrin headaches. The project as a whole has tended to bend over backwards to respect these individual's rights and personal values and blah blah blah, but maybe it's best to just say, "You're causing more conflict that you are providing value and no matter whose fault it is, we as a group will do our job better if you leave." In another realm -- that of wikis -- I know that I personally lean on longtime Wikitravel administrators, experienced users, etc. to be "the bigger person" and treat obnoxious personalities with respect and decorum. The theory is that every user counts, and any contribution is worthwhile. But maybe it's better sometimes to show some loyalty to the established contributors with a proven track record, and let the occasional mouth-foaming weirdo go wander off and bother someone else. We've got a real conflict-averse culture at WT, but sometimes it might be good to say, "We welcome everyone's input -- except yours." tags:

19 July 2006

Erich Schubert: Stupid Israelis, stupid Hisbollah

Neither of them can win this war. It will only cause more hatred. Killing civilians has always and will always be a bad idea. So please stop this stupid war. The only way of winning by military means would be genocide. Or more likely, geocide, since you'd need to get rid of all relatives and friends of your opponents around the world... Not really an option, is it? The thing which bothers me is that the Israelis should know better. They've been trying this for years and it didn't help. Now why are they doing such a large military operation again? I mean, what is the true reason? Read a statement by UNICEF and the WHO.
The psychological impact is serious, as people, including children have witnessed the death or injury of loved ones and destruction of their homes and communities.
Guess what, these will probably devote their life now to attacking Israel. So no peace for Israel and the middle east for the next 20 years either... Apparently both the U.S. and Israel like to use the excuse of fighting "terrorists, and not countries" to not follow international humanitarian laws. Which doesn't make any sense; if you want to fight terrorism, you must go way beyond what humanitarian laws enforce.

Erich Schubert: Google and the semantic web

Worth reading: article on Googles Peter Norvig and Tim Berners-Lee over the Semantic Web. While Google is obviously right about "millions of web masters" who will have trouble adopting to these new standards - thats why we're writing software. The days when you were hand-writing HTML code will be over some day. Already now - as Google acknowledged - many people fail to write proper HTML. But HTML isn't becoming easier to write. In fact, it gets much more complex with different character encodings, new CSS versions, raised bars for layouting, more dynamic web pages, Ajax, ... More and more people won't write HTML themselves anymore, but use some software. People used to write bad HTML; now people use tools such as Wordpress which are at least expected to produce valid markup. They start using visual editors, which will eventually stop using tags such as <i /> and use the "more semantic" <em /> instead. Without actually being aware of that. And their blog software also does generate RSS for them. How many people have ever written RSS by hand? So it's mostly a matter of the tools we offer them; with better tools we can push the use of better ("semantic") formats which then make data reuseable for others as well. For example, tons of people hope that friendster, openbc, linkedin and all these will help them in one way or another to keep contact with some people, sell some products, find new jobs. What these web pages basically collect is FOAF data. (And, btw, if any of these web sites were true Web 2.0, they would actually export FOAF files via some API!) They have a UI people understand; now all they would need to do is share their data, and we'd have a large body of "semantic web ready" FOAF data. Similar things apply to other "semantic" formats. Think calendards. Ical is pretty much the standard and widely used. Almost noone uses web pages which are only readable by humans. The semantic web isn't dead or anything. It just takes some time to be widely adopted, but that was to be expected. And having tools to generate semantic data that are maybe even easier to use than non-semantic tools - after all, the computer should be able to assist you more with semantic data - is the key thing to success. I'm also looking forward to Semantic wikis such as IkeWiki, that try hard to make entering semantic data as easy as editing a non-semantic wiki page. In large wikis such as Wikipedia, making useful links is not as easy as typing [MagicWord], because you first have to look up the magic word. A semantic wiki can assist you by suggesting appropriate links based on the information you've already entered. (e.g. if you mark a page as biology, it won't suggest you it might be a computer part).

Matthew Garrett

Mark:

You've been somewhat disingenuous in your quoting. The full phrase is "Since Debian has no authority to hold money or property, any donations for the Debian Project must be made to SPI, which manages such affairs". That is, the "Any donations for the Debian Project must be made to SPI" isn't saying "Money must be given to SPI because we don't trust anyone else", it's saying "Money must be given to SPI because we can't accept money ourselves". It's a historical bug, much like "Debian's Developers are currently members of SPI by virtue of their status as Developers" (untrue and the sort of thing that you'd normally complain about".

it looks to me like the DPL endorsing someone not approved by SPI maybe isn't a properly-made decision

"SPI has no authority regarding Debian's technical or nontechnical decisions" could be used to argue against that, since it clearly indicates that the approval (or not) of SPI can't be used to block decisions made by the rest of the project. Perhaps this section of the constitution was badly written? Good Lord, etc.

Advocating expulsion! For wanting to avoid involvement with an unethical, buggy business venture of some UK DDs!

Or, alternatively, for going on and on and on and on and on and on and on about an argument that you've already lost and wasting absolutely no opportunity to bring it up in any possible new vaguely related forum. Sort of like your "religious hate campaign" and "violation of the UN human rights declaration" routines. Entirely coincidentally, I've been facing the latter from a co-worker who keeps accusing me of having stolen her Windows XP CD. I mention this merely as an amusing aside.

I would have commented rather than making a post of my own, except that you don't seem to have any mechanism for providing publically viewable comments. Coincidentally, this is the same reason that I didn't comment to say that I didn't like the way you fold your posts.

(Edited to fix spelling)

Ian Murdock

Cote’: “If only Google would charge for GMail and GCal, and thus be accountable when things go wrong, they’d be a viable option for enterprise messaging.” Why oh why does Google need to charge for GMail and GCal to be accountable when things go wrong?? I just don’t understand that. Am I not already a customer? There’s a new business model in town..

David Pashley: Killall sshd considered stupid

I was using our Fedora 3 server and decided to restart sshd running in a chroot:
[root@winky /]# /etc/init.d/sshd restart
Stopping sshd:/etc/init.d/sshd: line 212: kill: (1483) - No such process
Connection to winky closed by remote host.
Connection to winky closed.
mimsy david% ssh winky -l root
ssh: connect to host winky port 22: Connection refused
Thank you very much Fedora.

Erich Schubert: nofollow followup.

Micah Dubinko blogs on rel="nofollow" being a failure. I have to agree that this doesn't really stop comment spammers currently. I still believe that it will help on the long run, since most blog software will now use it by default. And people have to upgrade from time to time due to the lastest PHP security issue... However, I would like Google or other search engines to offer some "spam submission". It would be best if they had a common submission server. Then we could use the moderation tools of our blogs to submit these bad URLs to Google, who in turn could take measures to strip them off their index (e.g. by moderating indexing for these URLs, reducing their pagerank, freezing their ranking for some weeks etc.) I'm of course aware of abuse possibilities (e.g. spam with your competitors URL); but most comment spam I've seen so far uses new sites anyway. I think you can detect these by charcteristical URLs, site contents, incoming links etc. As for myself, I've never enabled comments on my blog for the very reason that I'm not willing to moderate all that spam. In my guestbook (which is mostly to reduce the number of emails I get because of certain popular contents of my german web page; people will happily post in my guestbook instead of sending me an email now), I've recently enabled a very simple filter. It will just reject any entry which contains http:// anywhere. My users don't need that, and it has reduced spam to 0 again. And I don't care for the entries there anyway. ;-)

Daniel Stone: [travel/ols2006] oh ell ess

'The internet is wrong.' -- Dave Airlie

18 July 2006

Jordi Mallach: Seventy years of the Spanish Civil War and the Spanish Revolution

A few months ago I wrote about the 75th anniversary of the proclamation of the Second Spanish Republic which was celebrated throughout the state. That weekend I visited a fantastic exposition of Republican and Revolutionary war propaganda posters, in Segorbe.

Today, Spain remembers the beginning of the end. During the evening of the 17th of July and morning of the 18th, a group of generals of the Spanish regular army raised against the democratically elected left-wing government of the Republic. History says that the murdering of Calvo-Sotelo, a right-wing leader, was what finally provoked the conflict. It was no secret that the same right-wing and some elements in the army had been conspiring for weeks about an uprise. The only question was when, but the government was fooled by general Mola and didn't take really effective measures to prevent it.


Warning from sanitary authorities against venereal diseases Mola and Sanjurjo planned to start taking over official buildings and army quarters and quickly seize control of the major cities. During the first hours of their rebelion, they managed to take over most of the southern regions in Andalusia, Extremadura and parts of the Northwest, plus most of the islands and the Moroccan protectorate area. Meanwhile, the Republic did not manage to react quickly due to the weakness of the government, and in the first days of the crisis, the government changed a few times. Finally, the Republican parties decided that to defend the state they should give arms to the unions, and soon after many militia groups were getting organised in the cities, and columns sent off to liberate other towns.


Solidarity of Catalunya to the Basque front The insurrection was suffocated in Barcelona after some heavy fighting against the military in the Montju c castle; the Anarchists of the CNT grew strong in Catalunya and Arag n, and offered good resistance in those fronts. After the first days of the coupe d'etat, it was clear neither the legitimate government or the rebels calculated how things would go after the first days. The government was confident in being able to end the rebelion as they did four years before; the fascists thought they would have quickly brought down the government with a successful coup. But after the first week, the country was divided in two halves, and both sides of the conflict were keen on fighting, due to the big social fracture during the last months of the government. The Republic asked for help to the League of Nations, but the United Kingdom and France decided not to intervene, scared about the conflict trespassing the Spanish borders and becoming another bloody war in European fields. The only official external aid came from the USSR and the International Brigades, formed by volunteers of more than 50 nations. Some well-known personalities like Ernest Hemingway or George Orwell came to aid as well. Orwell wrote about his life-changing experience in a Barcelona immerse in the social revolution, where he joined the anti-stalinist socialist party POUM. Badly wounded in the neck, he left the front and went back to Barcelona, and witnessed the assault of the Telef nica by the communists against the anarchists, during the fets de maig, after which the POUM was declared illegal. Orwell captured his experiences in the frontline and Barcelona in his book Homage to Catalonia.


To defend Madrid is to defend Catalunya Franco and Mola, aided by the Northafrican troops and soon after by their fascist allies of Italy and Germany, didn't have big problems seizing the Basque Country and Asturies in the North, but not before making the town of Gernika disappear below the nazi Condor Legion bombing, in what would be a test for the massive aereal bombings of Word War II. The battle for Madrid was fierce, and the city wasn't occupied until the very last days of the war. The long defence of the capital made was immortalised in the famous phrase No pasar n.


Madrid's No pasar n During the war, anarchist groups controlling fields and towns in Arag n and Catalunya managed to bring a Social Revolution to the area. The people collectivised the land and industries, administered by local assemblies. This experience is regarded as the time when Libertarian Communism has been successful. The experience ended dramatically when the anarchists were treasoned and blocked by the communists, and eventually defeated by Franco at the front.


Each bullet for a target After the first and a half years, the fronts had stabilised in Madrid and the East of Andalusia, until early in 1939, Barcelona fell in Franco's hands, after the bloody Batalla de l'Ebre, being followed by Girona and the rest of Catalunya. The fate of the democratic state was clear. Two months later, Madrid fell and Val ncia and the small area still under Republican control surrended.


Robert Capa's Muerte de un miliciano Franco declared a totalitarian regime to, according to the fascists, reconcile the two Spains. In the first five years of the regime, up to 100.000 were executed in the franquist repression, including the Catalan president, Llu s Companys and many intellectuals. The dictatorship continued executing people until two months before Franco's death, 36 years later. Hundreds of thousands also had to exile in M xico, France and other destinations, leaving Spain in ashes, road gutters full of scattered bodies and the population facing famine. The cultural elite left the country, making the state's clock go back at least a decade. Their reconciliation really meant humiliation and repression. Many people were also murdered during the war behind republican and rebel lines, but the genocide of the aftermath had was unmatchable.


The Republic promoted education among the troups It is a bit late to restore the dignity of the victims, but not too late. Some associations have been fighting since the end of Franco's regime to get some kind of public recognition for their suffering, for their priceless fight for the legal and democratically elected Republic, for the people who didn't make it.


Excellent anarchist poster rejecting the politisation
of children by any of the three loyal groups Other people reject these efforts banning them of "revisionism". Not too surprisingly, these are the sons or grandsons of the people who won the war. The current government is about to pass a Historic Memory law which aims to give recognition to all these people who gave their lives for an ideal and freedom. Unfortunately, due to pressures from the right, it is probable that the text will be ammended to make it more acceptable by them. I fear it will end up not pleasing the victims at all. I have a passion for Spanish Civil War related matters, and in the last years I tried to use any opportunity to listen to my Catalan grandmother talk about war affairs in Barcelona, and my grandfather, from a town in the middle of the Republican side of the Teruel front, but born in a very catholic family, about how the war went on in Vall and the nearby mountains.


From the defensive No pasar n to the encouraging Pasaremos! I know my grandfather only told me the less compromising stories, like how he was sent to dig refuges until he was 16 and apt to fight in the Front, or how he was put in charge of hiding the church's valuable relics in a few barns. He never told me about how life was after the war in the small town. It is dramatic to see that all the people who were old enough to have a sense of what was going on at the time are so old that these unvaluable memories and stories will be mostly gone in ten years. (Most of the pictures are taken from the Sociedad Ben fica de Historiadores Aficionados y Creadores' website, which has a huge documented catalog)

John Goerzen: Multipath is working

Yesterday, we got multipath working with our HP MSA1500cs SAN. We have a fully redundant setup with redundant controllers, fibre channel switches, and two FC controllers per host.

We had been having a lot of trouble getting things to work right with active/passive controllers. We could get failover to work in some cases, but getting everything to communicate correctly in the event of a failure was difficult, since every machine would have to flip over to the passive controller simultaneously.

With a firmware upgrade, the MSA 1500cs can support active/active controllers. With the dual-active setup, both controllers are active simultaneously and both are valid paths.

Despite HP support's indications to the contrary, HP does have information on using built-in multipathd in Linux instead of their proprietary multipath solution. It's document c00635587, part AA-RW8RA-TE.

We've configured multipathd.conf like this:


path_grouping_policy multibus
path_checker tur
failback immediate
no_path_retry 60
path_selector "round-robin 0"


Just put that in your default block and it should work.

Erich Schubert: Use CSS folds

/me too hates folded blogs. It's like "I'd like to know that I've blogged, but I don't want you to actually read it"... *rant* Now for some constructive things: Add "max-height: 30em; overflow: auto" to the CSS file, and overly long entries (such as Enricos recent posts) will not take over planet as much. (Pick an appropriate 30em). Untested for vertical limits; I've however been using this for clipping overly wide <pre/> sections before. With next to no drawbacks to the readers that is. Folds suck. But if you are actually using a web browser to read planet, you'll be able to use the scroll bars I guess. Otherwise contribute a Javascript to un-limit the blog postings size. Should be a one-liner. [Updated: overflow auto is better, since otherwise you'd always have scroll bars. Also increased to 30em. Thanks Daniel Silverstone for testing. See his blog entry on how to do this client-side with mozilla based browsers]

Martin-&#201;ric Racine: USB mass storage support in Linux sucks!

After an extremely frustrating afternoon of seeing the Linux UHCI driver repeatedly shut itself down, following several successive I/O errors while accessing USB mass storage (a 512Mb Compact Flash connected via a USB card reader, in one case, and a 512Mb USB stick, in the other), I spent an even more frustrating evening surfing the Internet for a solution. Conclusion: USB mass storage support in Linux sucks! Several mailing lists and user forums report similar failures using USB 2.0 devices on Linux UHCI or EHCI drivers, down to the exact same error messages that I get. Some even report the whole USB subsystem going down, leaving the user without any keyboard or mouse on USB-only systems (this matches my findings on one particular hardware platform that happens to be at the core of a project I'm working on). The suspected cause, in all cases, apparently boils down to either or all these:
  • The SCSI subsystem upon which USB (and Firewire) mass storage is built is utter crap that would need a complete rewrite. The issue has been known for ages, it's even a proverbial elephant in the corner that nobody wants to see, but rewriting the subsystem for a standard that barely has any real-life application left means opening a big can of worms.
  • None of the Linux kernel's HCI are capable of anticipating the quirks present in some implementations of the USB hardware specifications, so they simply panic and commit suicide in syslog-flooding glory.
  • There is apparently a hard-coded limit of 1000 units (blocks?) that, when exceeded, will make the mass storage driver reset itself! Doesn't sound like Willliam Gates the Third's often-mentioned "Nobody needs more than 640k" now, does it?
I can feel for the average user who is just trying to extract a few pictures off a USB stick and who simply ends up reinstalling $commercial_os in frustration. Wasting a couple of days trying to debug support for what is supposedly a well-documented industry standard should never happen. There is no excuse for a broken USB mass storage on Linux. Let's fix it!

Enrico Zini: Fifth day in Addis

Setting up a mail server
Background Some terminology:
MTA
Mail Transport Agent
MUA
Mail User Agent
MDA
Mail Delivery Agent
SMTP
Simple Mail Transfer Protocol
MX
Mail eXchange
POP
Post Office Protocol
IMAP
Internet Message Access Protocol
With SMTP you connect to a server and send two things: envelope and message. The envelope looks like this:
MAIL FROM: <enrico@enricozini.org>
RCPT TO: <rms@fsf.org>
RCPT TO: <linus@linux.org>
The message looks like this:
From: <enrico@enricozini.org>
To: <rms@fsf.org>
Cc: <linus@linux.org>
Message-ID: <1234567@enricozini.org>
Subject: Test mail
Hi Richard,
this is a test mail.  I'm also writing
Linus to show how to send to more people.
Cheers,
Enrico
There is no authentication. There is no encryption. Two usual types of access control:
  1. Outbound e-mail is normally only accepted from an internal network
  2. Inbound e-mail is normally accepted from anywhere
The DNS is used to find the SMTP server to use to send a message:
$ host -t MX yahoo.com
yahoo.com MX 10 smtp1.yahoo.com
yahoo.com MX 20 smtp2.yahoo.com
yahoo.com MX 20 smtp3.yahoo.com
The process of sending an E-Mail:
  1. Enrico writes an E-Mail:

    From: Enrico Zini <enrico@enricozini.org>
    To: Richard Stallman <rms@fsf.org>
    Subject: Hello from Addis
    Hi Richard,
    Addis is a wonderful city, even if
    it rains a lot.
    Bye,  Enrico
    
  2. Enrico's MUA connects to the SMTP server (for example, port 25 of smtp.aau.edu.et):

    HELO enricozini.org
    200 OK Hello enricozini.org
    MAIL FROM: <enrico@enricozini.org>
    200 OK Mail from enrico@enricozini.org
    RCPT TO: <rms@fsf.org>
    
    Here, the SMTP server performs relay control: "do we relay mail to rms@fsf.org?":
    • Outbound e-mail is normally only accepted from an internal network
    • Inbound e-mail is normally accepted from anywhere
    A target address could be refused:
    413 ERR I don't relay for rms@fsf.org
    
    In this case, the destination is not local but the recipient is accepted because I'm inside the local network:
    200 OK Destination rms@fsf.org
    DATA
    200 OK Please send message body
    From: Enrico Zini <enrico@enricozini.org>
    To: Richard Stallman <rms@fsf.org>
    Subject: Hello from Addis
    Date: Mon, 17 Jul 2006 09:49:45 +0300
    Message-ID: <124372643@enricozini.org>
    Hi Richard,
    Addis is a wonderful city, even if
    it rains a lot.
    Bye,  Enrico
    .
    200 OK Message accepted
    QUIT
    200 OK Bye.
    
  3. The SMTP server needs to find out where to send the message, using the DNS:

    $ host -t MX fsf.org
    fsf.org MX 10 mail.fsf.org
    fsf.org MX 20 mail.gnu.org
    
  4. So the SMTP server tries the first one and connects to port 25 of mail.fsf.org:

    HELO smtp.aau.edu.et
    200 OK Hello smtp.aau.edu.et
    MAIL FROM: <enrico@enricozini.org>
    200 OK Mail from enrico@enricozini.org
    RCPT TO: <rms@fsf.org>
    
    The destination is accepted because it's for a local user:
    200 OK Destination rms@fsf.org
    DATA
    200 OK Please send message body
    From: Enrico Zini <enrico@enricozini.org>
    To: Richard Stallman <rms@fsf.org>
    Subject: Hello from Addis
    Date: Mon, 17 Jul 2006 09:49:45 +0300
    Message-ID: <124372643@enricozini.org>
    Received: by mail.aau.edu.et
      on Mon, 17 Jul 2006 09:55:53 +0300
      from 10.4.15.158
    Hi Richard,
    Addis is a wonderful city, even if
    it rains a lot.
    Bye,  Enrico
    .
    200 OK Message accepted
    QUIT
    200 OK Bye.
    
  5. Now, mail.fsf.org will invoke a MDA to write the mail in Richard Stallman's mailbox.

Example of problems with mail handling:
  • Accepting inbound connections:
    • Malicious input:
      • logic errors
      • buffer overflows
      • DoS (Denial Of Service) attacks
      • Connection floods
  • Performing outbound connections:
    • Programming errors:
      • Flooding of connections
  • Performing routing:
    • Unauthorised relays
    • Mail loops
  • Writing to the local hard drive:
    • Filling up the hard drive
    • Writing to the wrong files
  • Writing to the local hard drive as root:
    • In case of error or attack, any file in the system can potentially be compromised
RFC-822 is the original standard for E-mail. RFCs are standard Internet documents. Have a look at RFC documents released the 1st of April.
postfix Common setup: "Internet site with smarthost". More difficult to maintain: "Internet site". A smarthost is a machine that will relay e-mail for you. Questions asked with "Internet site with smarthost":
  • Mail name: aau.edu.et (name used to publicly identify the mail server)
  • Smarthost name: smtp.telecom.net.et (SMTP server that will relay our e-mail)
To test a mail server:
$ telnet localhost 25
HELO me
MAIL FROM: <a@b.c>
RCPT TO: <mail@of.a.local.user>
DATA
hi
.
QUIT
By default, you find locally delivered mail in /var/mail/username. Postfix configuration files:
/etc/postfix/master.cf
configures how all the postfix components run together (man 5 master)
/etc/postfix/main.cf
Main postfix configuration (man 5 postconf)
To rewrite addresses:
  1. In /etc/postfix/main.cf:

    canonical_maps = hash:/etc/postfix/canonical
    
  2. Then in /etc/postfix/canonical you can add the rewrite rules, like:

    enrico   enrico@enricozini.org
    
  3. When /etc/postfix/canonical is modified you need to regenerate the index:

    sudo postmap canonical
    
    (same is when you change the alias file: sudo postalias /etc/aliases)
(see file:///usr/share/doc/postfix/html/ADDRESS_REWRITING_README.html) Manipulating the message queue:
mailq - List the mail queue.
Example:
mailq
postqueue - Postfix queue control
Examples:
# Like mailq
postqueue -p
# Tries to send every message in the queue
postqueue -f
# Tries to send every message in the queue for that site
postqueue -s site
postsuper - Postfix superintendent
Examples:
# Deletes one message
sudo postsuper -d 7C4D2EC0F5D
# Deletes all messages held in the queue for later delivery
sudo postsuper -d ALL deferred
Different mail queues in postfix:
incoming
mail who just entered the system
active
mail to be delivered
deferred
mail to be delivered later because there were problems
hold
mail that should not be delivered until released from hold
Mail logs are in:
/var/log/mail.log
/var/log/mail.err
/var/log/mail.info
/var/log/mail.warn
Mail delivery Mailbox formats:
  • mbox: single file, mail separated by "From " lines
  • maildir: one directory per folder, one file per mail
  • mh: similar to maildir, but not really used
Alternate MDA: procmail: allows to filter mail automatically into different folders. Mail forwarding with ~/.forward: allows to redirect mail to a different address: just put the address you want to send to in the file ~/.forward.
POP or IMAP server Installation:
apt-get install dovecot
Configuration is in:
/etc/dovecot/dovecot.conf
The main thing that is needed is to enable the mail protocols you want:
protocols = imaps
Server monitoring To make all sorts of graphs:
apt-get install munin munin-node
Example: http://munin.ping.uio.no To compute more statistics:
  • anteater
  • isoqlog
  • mailgraph
Monitor system logs: logcheck:
  • sends you mail with abnormal log lines
  • It's important to customize what is normal and you do it with regular expressions
Filtering viruses and spam clamav - Virus scanner Virus scanning:
  • Postfix gives the mail to clamav that scans it and gives it back if it's clean.
  • Strategies for infected mail:
    • silently delete it
    • refuse the mail and send a notification to the sender
    • refuse the mail and send a notification to the receiver
    • quarantine the e-mail
    • refuse delivery with a SMTP error
    • deliver with an extra header that says that it's a virus
spamassassin - Spam filter Spam scanning:
  • Postfix gives the mail to spamd that scans it and gives it back with some spam information.
  • Strategies for spam mail:
    • silently delete it
    • refuse the mail and send a notification to the sender
    • refuse the mail and send a notification to the receiver
    • quarantine the e-mail
    • refuse delivery with a SMTP error
    • deliver with an extra header that says that it's spam
  • New techniques:
    • greylisting: when you receive a mail from a host you've never seen before, refuse it with a temporary error, and accept it the second time (after some time delay). Spammers normally don't retry, and implementing retry would increase their cost of sending e-mail.
    • crossassassin: if more than some amount of your users receive a mail with the same message ID, throw it away. Sending mails with different headers would increase the cost of sending e-mail.
Man pages and sections Man pages are divided in sections:
  • man man shows all the sections of the manpages
  • man 5 postconf shows the postconf manpage in the "configuration file" section
  • Normally manpages are referred as manpage(section) (e.g. postconf(5) )

John Goerzen: Reactions to Israel and Lebanon

I was surprised by the reactions to my story Saturday on Israel and Lebanon. Several pro-Israel posters are apparently in complete denial about what the Israeli military forces are doing.

Today, the American network ABC reported that Israel had bombed a Kleenex manufacturer, numerous farms, and all the major roads out of Lebanon. And they showed pictures of all of these during their evening newscast.

I find it highly unlikely that ABC is making this up.

One person asked, essentially, "do you really think a democracy could do this?" Yes. It's happened many times before. The United States and Britain did this sort of thing when they destroyed tens of thousands of homes and killed over 25,000 people, most of them civilians, in the bombing of Dresden. The United States also was responsible for the nuclear bombs dropped over japan, killing 140,000 people instantly and countless more due to the effects of the atomic weapon.

Being a democracy is no guarantee against extremism. Some Israel supporters need to take a hard look at what their military is doing.

As I explained, none of this is to defend the attacks against Israel, which of course are also terrible.

But I think Israel's strategy is going to wind up costing them -- they are creating huge numbers of angry Lebanese, that perhaps didn't have the motivation to attack Israel before, but now do. (Of course, the same error could be attributed to their enemy)

And both sides are catching innocent civilians more than military targets.

It's very sad.

Next.

Previous.