David Welton: Linux in Sardinia
This was a pleasant surprise:
La Sardegna adotta il software libero
What that means is that the region of Sardinia (Sardegna, in Italian) will be adopting "software libero" for their IT infrastructure.
Bjorn mentions that he
doesn't want the nokia internet tablet, because it doesn't have a phone
and he doesn't want to carry two devices with him.
Bottom left, my portable media player. 4G solid-state storage, plays
movies (the display shows a scene from Star Trek: Deep Space Nine that I
converted from DVD), audio, FM radio, and after a firmware update can do
games and some random applications. Does bluetooth. Does not do phone
calls.
Upper right, my cell phone. A simple Nokia 6021. Does bluetooth,
makes phone calls, and (as the display somewhat shows) can do
calendaring, too. With SyncML, I can synchronize it with my laptop.
Together, they perform anything I'd possibly want from a smartphone
(and don't anyone tell me 'SSH', because doing ssh on any screen smaller
than, 7" and without decent keyboard is laughable).
Together, they're smaller and weigh less than a smartphone.
Together, they're less expensive than a smartphone ( 125 for the
phone, 85 for the portable media player).
Why does anyone buy a smartphone?
In addition to my last post, here some information about the current number
of release critical bugs.
Yes, it is true, that our official bug
tracker lists the next release has still 264 bugs1. And
some wonder, when Lennywill be released. It's a little bit difficult to work with that page, let's look at the
unofficial rc bug thingyI already mentioned in my previous post. As you might have noticed it supports several filters mechanism the official bts don't have. At the very bottom of the detailed list you'll see the overall number of the bugs matching your selected filter. So let's have a look at the number of bugs, which are already fixed in the unstable branch and need to propagate to
Lenny. Currently that are 118 RC bugs. Of those 264 preventing us to release, 118 are already fixed; the fix just hasn't arrived in
Lenny, yet. Okay, but there are still 147 rc Bugs open in both
Lennyand
Sid. So let's take a look at them. By using the filters at the top, you can calculate, that 19 already have a patch. 14 are marked pending (so they are already fixed, but the maintainer hasn't uploaded the package yet). 15 of these bugs have been reported multiple times and have been merged. Oh, and 3 are about packages in non-free and contrib. Granted, for some of them, there is a patch, but the patch needs to be tested, or the bug has been marked pending by mistake. But still: If you ignore all these types of bugs, there are only 104 bugs left. one-hundred-and-four! Summary: So the only thing left (beside the points I mention in my previous post) to do, is to migrate 118 fixes to
Lennysomehow, get the 33 fixes for the probably fixed bugs uploaded, and fix the remaining 104 bugs. Yes, that's still a lot of work to do... So let's get things rolling, shall we? 1: You might further notice, that the current stable release is affected by more than 700 bugs. However many of them are false counts, e.g. when a specific package doesn't build with a newer version of a compiler. The package in the current stable release is of course affected, so there it is kind of buggy. However, we can ignore these kind of bugs, since the newer version of the compiler isn't shipped in the current stable release at all. Those bugs should actually be tagged
sidand
lenny...
Our webmaster cooperative is just switching from a building society to a cooperative bank because of support for free software and web standards in their online banking - I’ve just given up waiting for it. That’s disappointing, but the building society has given pretty good service over the years and were early accepters of our LLP company type. For comparison, look at this list of building societies which converted to banks late last century, which have been in the news lately:-
I bought an EEE 901. More on that later.
ghostscript, the bounding box detection is dreadfully slow, anything from one to ten seconds for a single page ! When you have a 60 pages article to print, it can be quite tedious...
Well, I've just discovered that the --trim option of pdfnup can do very similar things too. It removes a given amount of margins on the side, with the syntax 'left bottom right top'. Most of the time, a well-thought pdfnup --trim ... will work as well as pdfcrop while in the meantime being much faster...
Please feel free to make constructive suggestions as to how we can meet Mozilla’s requirements while improving the user experience. It’s not constructive to say “WTF?”, nor is it constructive to rant and rave in allcaps. Your software freedoms are built on legal grounds, as are Mozilla’s rights in the Firefox trademark. To act as though your rights are being infringed misses the point of free software by a mile.This is a bit surprising, and a bit disappointing. Both the decision itself, and Mark’s take on it, are quite wrong. One of the most important benefits of free software is the legal agreement you work in. You don’t have to agree to some long contract every time you need to do something new on your system, or sometimes even when you get a “critical update” to something you’re already doing. You don’t have to read pages of legalese, or go through some long process with your company’s legal department, or just click the “make it go away” button with this vague unease that you’ve just signed your first-born child away to the Devil. Most importantly, you feel like you actually own your computer when you run free software on it. When you enter a situation where you always have to ask permission to do things, and have to be constantly reminded of the rules, you don’t feel comfortable. Clearly, the thing in front of you is not yours, whatever your credit card bill might say; if it were, there wouldn’t be all this stress over you doing something the real owners don’t like. Free software returns your computer to you, by guaranteeing that you don’t have to enter into all these contracts before you can use it. Well, unless that “free” software is Firefox 3.0.2 or later, it seems. It’s “free” by a technical definition (you can strip the Firefox trademark rather easily, and get rid of the EULA as well). But when users fire up Ubuntu, and decide to do some browsing, and get confronted with pages of legal garbage and ALL CAPS, they will ask: “What’s so different about this open source stuff? I thought I was getting rid of all this legal crap.” And, suddenly, they’re slogging through the same drudgery they had to endure with every Windows service pack, and they wonder what they’ve gained. Perhaps there is a price we should be willing to pay to help Mozilla preserve their trademarks, but this price is too great. Mozilla should never have asked this of us, and Ubuntu should never have decided, on our behalf, that this price was acceptable. Debian has already turned its back on Firefox, and I have yet to have a problem with Iceweasel (the branding Debian chose for its Firefox-alike) that was caused by the branding change. But I’m tempted to bring it back, in Debian’s “non-free” software repository. Perhaps we could provide Firefox, complete with nasty EULA, but launch Iceweasel instead of Firefox if the user clicks “No”. There are probably all kinds of reasons why this is a bad idea, but I’m still drawn to the idea of illustrating how silly and useless click-through EULAs are. But it would be much more productive for Mozilla to back down, and not ask us to sacrifice such a large part of our identity on the altar of their sacred mark. UPDATE: First, I notice I was remiss in not giving a hat tip to Slashdot. Second, Mark has posted another comment on the bug. I encourage people to read the whole comment, but here’s a telling part:
For example, at the moment, we’re in detailed negotiations with aOn the one hand, yes, I believe that the Canonical people have earned our trust, and I do appreciate the utility of quiet persuasion with a proprietary software company that doesn’t understand our community. On the other hand, I had been under the impression that Mozilla was not a proprietary software company, and didn’t need persuasion and secret negotiations to see our point of view. Is Mozilla still a free software company, or not? UPDATE 2: Cautious optimism is appropriate, I think. Mitchell Baker, Mozilla chair:
company that makes a lot of popular hardware to release their drivers as
free software - they are currently proprietary. It would not be possible
to hold those negotiations if every step of the way turned into a public
discussion. And yet, engaging with that company both to make sure Ubuntu
works with its hardware and also to move them towards open source
drivers would seem to be precisely in keeping with our community values. In this case, we have been holding extensive, sensitive and complex
conversations with Mozilla. We strongly want to support their brand
(don’t forget this is one of the few companies that has successfully
taken free software to the dragons lair) and come to a reasonable
agreement. We want to do that in a way which is aligned with Ubuntu’s
values, and we have senior representatives of the project participating
in the dialogue and examining options for the implementation of those
agreements. Me. Matt Zimmerman. Colin Watson. Those people have earned
our trust.
We (meaning Mozilla) have shot ourselves in the foot here given the old, wrong content. So I hope we can have a discussion on this point, but I doubt we ll have a good one until we fix the other problems.The actual changes aren’t available yet, and I wonder how much of this had been communicated to Canonical beforehand. Still, it’s a good sign.
We're heading off on a vacation, the first real "put our feet up" kind of
vacation since our belated honeymoon a couple of years ago.
Our ultimate destination is the Seychelles, a tiny set of islands off the
east coast of Africa, near Madagascar. Sarah's aunty and uncle live here.
Her uncle's the deputy commissioner for the United Nations Indian Ocean Tuna
Commission.
Getting there is pretty heinous. We're flying to Houston, then to Dubai,
then to the Seychelles. Originally we were leaving tomorrow, but Sarah
noticed that we only had an hour to transfer in Houston, and when she
checked with the airline, they agreed (despite them booking the entire trip
in the first place). So now we've changed to a flight today, with a night in
a hotel in Dubai. Emirates only fly to the Seychelles a couple of times a
week, so we really don't want to miss the Dubai-Seychelles leg. The flight
from Houston to Dubai is 15 hours. That's worse than San Francisco to
Sydney. Not looking forward to sitting on a plane for that long.
Flying on September 11 is an interesting experience so far. It seems that
the airlines are "randomly selecting" all passengers who aren't US citizens
for secondary inspections at the security checkpoints. I was vaguely aware,
but had largely forgotten, that if they print SSSS in the bottom corner of
your bording pass, then you've been randomly selected. The TSA guy was very
apologetic, as he proceeded to completely dismantle our carry-on luggage.
The other fun aspect is that hurricane Ike is busy making its way towards
Houston. It's not supposed to make landfall until Saturday, but since
they've already evacuated some cities south of Houston, I'm really hoping it
doesn't bugger up our flights.
We're in the Seychelles for 10 days, and then we're going to spend 3 days in
Dubai on the way back. It'll be during Ramadan, which is apparently an
unpopular time for Westerners, so all of the hotels are nice and cheap. It
looks like it's going to be pretty hot as well.
News reports have described the use of forced child labour for cotton harvesting in Uzbekistan, which is then used in t-shirts and so on, including those sold by some major shops in England like Asda/Wal-Mart, as I mentioned on the debian-project email list last autumn. When you buy badly-produced T-shirts to support free software projects, you may be helping provide freedom for more software users in your country, but you may also be helping to enslave vulnerable workers in other countries.
If you buy Debian T-shirts from the UK, you’re probably OK. This is something that the Debian UK Society seems to do right. Their buyer (and current Debian Project Leader) Steve McIntyre wrote:
“[Fruit of the Loom premium Ts, Kustom Kit Augusta/405 polo shirts ...] both FotL and KK have ethics statements that describe their standards. The KK one is linked off the front page of their website; the FotL details I have in .doc format that I’ll pass on if people would like to see them.” (original)I also asked my local perl mongers group to do similar but there’s been no response to that yet (or any t-shirts AFAIK). I’ve been told that all of the FSF Europe gear is Fair Trade but it doesn’t say that on their web shop. How about other free software projects? Have you asked about your T-shirts? Is there a central site for this sort of information?
While sitting on a bench in Hyde Park, watching the leaves fall from the trees, thinking that fall is just around the corner, I started to write on the back of an old receipt. One that says 108,- for a Banana Passion Split and a bottle of Coca Cola. It’s just something I do when I’m nervous, excited, lonely, happy or all of the above.
Sometimes I spend so long thinking about how to express myself, that I forget what I was going to write. I spend too long trying to find the right adjectives. And I wish I could find the right words to describe some of the best moments. My trip to London was more than just Big Ben, The London Eye, Madame Tussauds and Oxford Street. A lot more.
Another receipt says 590,- for a haircut. It’s from July 15th, 2008. My ramblings on the back, blue ink, some words crossed out, some misspelled; at least 1 of the 268 Underground stations has a staircase with 78 steps, a shop on Oxford Street sells salt from the Dead Sea, and some very big soap bubbles were seen in Camden Town.
There are some keywords at the bottom of the second receipt. Just to remember all the other things that happened. Like the time we almost got lost on the Underground, the elevator with no buttons, the Kanye West sunglasses in white and pink, and the lack of a proper breakfast - even though I don’t mind white bread and strawberry jam.
There was just one small thing I wasn’t too happy about; you can’t write on receipts from Tesco. They have THANK YOU FOR SHOPPING WITH US printed all over it. And it took me a while to find that piece of paper in my bag. This time I saw fall in London, and a white pigeon. I will make sure I have my notebook with me next time.
Three replies to things I saw today on Planet Debian on blogs of people that don’t have fully-working web comment systems:-
When you have a server on the Internet, you get lots of "brute force"
attacks on the SSH daemon, trying plausible logins with a variety of
passwords. Even with good passwords, these attacks might eventually
succeed (and they're annoying even when they don't), so you want to
thwart them.
One way is to use fail2ban, a script that monitors the failed
connections, and sets up firewall rules (for instance) blocking
further connections from the attacking IP addresses. It's good, but
it fills your logs with messages about IPs getting banned and unbanned
after a while. And you're still at risk that the multiple connections
crash the SSH daemon, or trigger a bug in it, or whatever.
A second layer of protection can be to block all SSH connection
attempts except when they come from known IP addresses, but that
doesn't work when you're away from home, and you're locked out. Been
there, done that.
So, some wise people have devised a trick called "port-knocking".
It's similar to only opening the door to people who use a special
knock (think "That's all, folks"): the firewall stays closed, but it
opens a tiny targeted hole to some IP addresses for a limited length
of time, based on a secret handshake. The window for attack is
therefore very small, and the SSH daemon stays idle most of the time.
And you can still log on your hosted server when you're attending
conferences. There are a variety of implementations for this concept.
Some could be web-based (you need to submit the right password to a
web page), some could use other services or a dedicated daemon.
But when I started investigating port-knocking, I wanted something
simple, preferably with no dependencies on a daemon that would need to
be exposed to the net and potentially crash. I found an
article on the
Debian Administration
website, but I wasn't entirely satisfied with it. The principles
appealed to me (netfilter-only, secret handshake in the form of
opening connections to secret ports), though, so I evolved it into my
own implementation, which I proudly present to you today.
The goals of this implementation were:
dc
to be installed, for big-integer arithmetic):
Okay. So this function calculates ports, now what? Now we're going to define a few chains by which netfilter will store states of IP addresses as they progress through the handshake:calc_knock_ports () secret=$1 bottomport=$2 topport=$3 nbports=$(( $topport - $bottomport + 1 )) hash=$(TZ=UTC date +%Y-%m-%d-%H-$secret md5sum awk ' print $1 ' tr a-z A-Z) num=$(echo 16i $hash f dc) pk_port1=$(echo $num $nbports 0 ^ / $nbports % $bottomport + f dc) pk_port2=$(echo $num $nbports 1 ^ / $nbports % $bottomport + f dc) pk_port3=$(echo $num $nbports 2 ^ / $nbports % $bottomport + f dc) pk_port4=$(echo $num $nbports 3 ^ / $nbports % $bottomport + f dc) pk_port5=$(echo $num $nbports 4 ^ / $nbports % $bottomport + f dc)
These chains use thesetup_portknocking_tables () iptables -N portknock_into_phase1 iptables -A portknock_into_phase1 -m recent --name PK_PHASE1 --set # iptables -A portknock_into_phase1 -j LOG --log-level notice --log-prefix "INTO PK_PHASE1: " iptables -N portknock_into_phase2 iptables -A portknock_into_phase2 -m recent --name PK_PHASE1 --remove iptables -A portknock_into_phase2 -m recent --name PK_PHASE2 --set # iptables -A portknock_into_phase2 -j LOG --log-level notice --log-prefix "INTO PK_PHASE2: " iptables -N portknock_into_phase3 iptables -A portknock_into_phase3 -m recent --name PK_PHASE2 --remove iptables -A portknock_into_phase3 -m recent --name PK_PHASE3 --set # iptables -A portknock_into_phase3 -j LOG --log-level notice --log-prefix "INTO PK_PHASE3: " iptables -N portknock_into_phase4 iptables -A portknock_into_phase4 -m recent --name PK_PHASE3 --remove iptables -A portknock_into_phase4 -m recent --name PK_PHASE4 --set # iptables -A portknock_into_phase4 -j LOG --log-level notice --log-prefix "INTO PK_PHASE4: " iptables -N portknock_into_phase5 iptables -A portknock_into_phase5 -m recent --name PK_PHASE4 --remove iptables -A portknock_into_phase5 -m recent --name PK_PHASE5 --set iptables -A portknock_into_phase5 -m recent --name PK_ESTABLISHED --set # iptables -A portknock_into_phase5 -j LOG --log-level notice --log-prefix "INTO PK_PHASE5: " iptables -N portknock_accept iptables -A portknock_accept -m limit -j LOG --log-level notice --log-prefix "ACCEPTED AFTER PORTKNOCKING: " # iptables -A portknock_accept -m recent --name PK_PHASE5 --remove iptables -A portknock_accept -j ACCEPT iptables -N portknocking
recent module, which seems to be commonly
available in standard kernels. You'll notice how, as one packet goes
through these rules, its originating IP address moves from one set of
"recent" addresses to the next. But no logic exists yet to make the
packet actually go through these rules, so here comes the glue:
Right. This function adds rules to therefresh_portknocking () calc_knock_ports f00b4r 10000 10999 iptables -F portknocking iptables -A portknocking -p tcp --dport $pk_port1 -m state --state NEW -j portknock_into_phase1 iptables -A portknocking -p tcp --dport $pk_port2 -m state --state NEW -m recent --rcheck --name PK_PHASE1 --seconds 5 -j portknock_into_phase2 iptables -A portknocking -p tcp --dport $pk_port3 -m state --state NEW -m recent --rcheck --name PK_PHASE2 --seconds 5 -j portknock_into_phase3 iptables -A portknocking -p tcp --dport $pk_port4 -m state --state NEW -m recent --rcheck --name PK_PHASE3 --seconds 5 -j portknock_into_phase4 iptables -A portknocking -p tcp --dport $pk_port5 -m state --state NEW -m recent --rcheck --name PK_PHASE4 --seconds 5 -j portknock_into_phase5 # echo clear > /proc/net/ipt_recent/PK_DONE echo clear > /proc/net/ipt_recent/PK_PHASE1 echo clear > /proc/net/ipt_recent/PK_PHASE2 echo clear > /proc/net/ipt_recent/PK_PHASE3 echo clear > /proc/net/ipt_recent/PK_PHASE4 echo clear > /proc/net/ipt_recent/PK_PHASE5
portknocking chain. A
packet injected into this ruleset will, depending on its destination
port and whether its source IP address has already been seen, end up
in one of the PK_PHASE* sets. All we have to do now is therefore to
send some packets to this portknocking chain, and use the
port-knocking sets to decide whether to accept incoming connections or
not:
This example only mentions accepting incoming SSH connections, but it's in no way a limitation: a server of mine uses similar rules to DNAT certain ports to internal IP addresses. And there we have it for the server part: incoming SSH connections are usually ignored (well, handled by the rest of the firewall script, but let's assume that it drops these packets by default), but if one IP address knows the appropriate ports and sends a connection attempt to them in order, then it'll be able to open SSH connections for a little while after that. Of course, it's going to be boring if one has to send these packets by hand, but it can be easily automated by a script. Here's aiptables -A INPUT -j portknocking iptables -A INPUT -m recent --rcheck --seconds 5 --name PK_PHASE5 -m state --state NEW -p tcp --dport ssh -j portknock_accept
~/bin/portknock.sh I have:
It's designed to be called with two parameters, a host and a port, and it needs#! /bin/sh host=$1 port=$2 calc_knock_ports () [...] calc_knock_ports f00b4r 10000 10999 for i in $pk_port1 $pk_port2 $pk_port3 $pk_port4 $pk_port5 ; do nc -w 1 $host $i < /dev/null > /dev/null 2>&1 done nc $host $port
netcat in addition to dc. Why the last line, I hear you
cry? Because then I can just add the following lines to my
~/.ssh/config:
...and SSH will automagically tunnel its network socket through the script, which will in turn happily tunnel that throughHost blahblah IdentityFile foobar ProxyCommand /home/roland/bin/portknock.sh %h %p
netcat after
completing the secret handshake.
And when I type ssh myserver on my laptop, interesting stuff happens
behind the scenes, and a special, just-for-me hole is opened in the
server firewall, just for the few seconds I need to establish the SSH
session (packets belonging to established TCP sockets are allowed by
the firewall's connection tracking).
Note: This article is deliberately short on details and
ready-to-run scripts. Firstly because firewall scripts vary wildly so
any script would have to be adapted anyway, but mostly because
security is best handled with one's brain switched on. Fiddling with
a firewall can easily open gaping holes or lock everyone out. So
please make sure you understand what goes on before blindly pasting
stuff into your own setup. Some of the lines that are commented out
may also be of interest, and were left as an exercise for the reader.
Other lines were not included, and are also left as a rather important
exercise to the reader; note in particular how the netfilter rules as
currently established do not mitigate the replay attacks...
Jimmy Kaplowitz writes:
“Software in the Public Interest, Inc., will hold a public board of directors meeting on Wednesday, August 20, 2008, 19:00 UTC. [...] SPI meetings are held on the OFTC IRC network, irc.oftc.net, in #spi. [...] Agenda“A couple of weeks ago, I asked why people do and don t join SPI? The answers I got can be grouped into a few headings:-
“I admit that I was unaware of SPI. However seeing its age, a few familiar names on the board and also on the project list it looks like a solid organisation.”
“I too am unfamiliar with your organization”
“I guess I would be yet aother person who was not aware of this group.”
“Lack of awareness of SPI is probably the biggest hurdle. I too, was unaware of SPI. I am aware of the Linux Foundation and the FSF and others, but how does SPI differentiate itself and its goals from those organizations?”
“The membership page on the SPI website is buried at the bottom of a secondary menu. One has to really go looking for it. And this definitely gives the impression that adding members is not a very high priority.”
“I ve been looking a while for how to join, is not the first time, I did before and never found it until now”
“Even as an open source software advocate, I have not joined SPI because my particular interest and focus is on Plone. The Plone Foundation handles largely the same functions that SPI does for smaller, independent groups.”
“Why, what’s in it for me? The betterment of mankind or bragging rights when a corporations steals all of my work and gets rich off of it.”
“If you are someone who is very interested FOSS (free and open source software) rights and licenses, you are probably more inclined to become a part of the FSF (Free Software Foundation) or the OSI (Open Source Initiative).”
I've thought on and off that it would be nice for the graphical
version of aptitude to have decent hyphenation.
Word-wrapping descriptions looks OK, but when the text area is thinner
than the entire screen, it can look a little ragged on the right-hand
side. For instance, take this rendering of the description of the toy
program bb:
Not too bad, but if I render it in LaTeX, here's how it
comes out:
Of course, for very thin text columns (and the above is arguably
pushing it), hyphenation and text justification aren't what you want.
But it would be nice to be able to at least see what it looked like.
Figuring that GTK+ might have some support for this, I delved into
Google. I found this:
Line breaking Line breaking adds additional layers of complexity. For one, all potential line breaks must be identified, including discretionary hyphens for Latin scripts, and word boundaries in (???). Secondly, inserting hyphens may require reshaping. Third is the line breaking algorithm itself, which may be nontrivial. -- Pango 0.1 proposal, Raph Levien, 1999and this:
Future plans for Pango include support for high quality printing, better hyphenation support, full justification, and the ability to handle vertical text such as Chinese and Japanese. -- Pango: Text handling for the World, LWN (Forrest Cook) 2001and also this:
I've been working on code to do hyphenation, hopefully to add to
Pango. My new code is faster than libhnj and groff and uses less
memory.
-- Hyphenation Design (Was Re: Possible Pango 1.4 ideas),
Damon Chaplin, post to org.gnome.gtk-i18n-list.
But no sign that any work has been done on hyphenation recently.
The one intriguing thing I noticed, although it's not GTK+ at all, was
the libhyphen0 library, which might be useful.
Unfortunately, it's a bit more complicated than just flipping a switch
in GTK+: the library is documentation-free, so to figure out how to use it I'll need to read through its source code and deduce the expected interface from that. Meh. Probably something to stick way at the bottom of the priority list.
Sure, that sounds fairly formal to send a report for holidays, doesn't it?
Anyway, as I have a few (often Debian/FLOSS related) friends around
the world who are reading my blog entries, this might interest them so that's indeed a report..:-)...and I have time for it, so...
I'm currently going back from Cahors to Maurepas (home), on my way to Debconf. We spent 10 days in Cahors with Elizabeth and the girls, finally joined by Jean-Baptiste on Sunday. We had great time over there, enjoying the richness of Quercy:
Next.