This morning, my laptop was stolen from my parked car while I was jogging. I do not want to make a big deal out of it.
Still, even though I am sure it was not targetted at my data (three other people at least were reporting similar facts in the same area), and the laptop's disk will probably just be reformatted, I am trying to limit the possible impact of my cryptographic identification being in somebody else's hands.
GPG makes it easy: I had on that machine just my old 1024D key, so it is just matter of generating a revocation certificate. I have done that, and uploaded it to the SKS keyservers - Anyway, here is my revocation certificate:
-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: A revocation certificate should follow iHIEIBEIADIFAkyaOZwrHQJBIGNvbXB1dGVyIGNvbnRhaW5pbmcgdGhpcyBrZXkg d2FzIHN0b2xlbgAKCRDYDvNai7UnrzWAAKC34eF76JQjxrZqSjNwcC0dU/5VbACg gMIMmYg91Sl3y8KsZXdGj/rV7UE= =rdlT -----END PGP PUBLIC KEY BLOCK-----But What worries me more is access to the computers my ssh key works for. Yes, the ssh key uses a nontrivial passphrase, but still SSH keys cannot be revoked (and this makes sense, as SSH should not add the delay, or potential impossibility, to check with a remote infrastructure whenever you want to start a session). So, I generated a new key (and stored it at ~/.ssh/id_rsa.new / ~/.ssh/id_rsa.new.pub) and came up with this snippet:
$ OLDKEY=xyHywJuHD3nsfLh03G1TqUEBKSj6NlzMfB1T759haoAQ $ for host in $(cat .ssh/known_hosts cut -f 1 -d \ cut -f 1 -d , sort uniq); do echo == $host ssh-copy-id -i .ssh/id_rsa.new.pub $host && ssh $host "perl -n -i -e 'next if /$OLDKEY/;print' .ssh/authorized_keys" done
/[, ]/, but... I didn't think of that. Besides, the savings would be just for academic purposes ;-)
In the realm of Real Databases, PostgreSQL has made their
long-awaited 9.0 release. It comes with a bunch of interesting new
features, not the least of which is builtin replication, and another
bunch of interesting improvements to already-existing features.
My personal favourite:
LISTEN/NOTIFY now support a payload. Previously, I'd done things like
storing a changelog in a table and then calling NOTIFY, or hackery with
a NOTIFY string that included the primary key encoded somehow, resulting
in the need for many LISTEN strings. But this is just so much
easier, and much more, well, reasonable.
Also:
EXPLAIN enhancements. The output is now available in JSON, XML, or YAML format, and includes buffer utilization and other data not previously available.Cute.
Although the modifications described in my last blog post about refactoring the GuruPlug resulted in a well working GuruPlug, I've decided to give it some more air to breath at the top of the case. The large round piece of plastic in the middle asked to be removed - and now a shiny 60mm fan grill protects the board from the bad world outside of the case.
From the 17th to the 19th of September in Perugia, Italy, it took place the 5th edition of the Italian Debian Community Conference, which has been attended by many contributors and users.
For the first time, the event has been organized in collaboration with the Italian Ubuntu community, as to create a new joint conference in order to foster shared contributions and emphasizing the large common ground of our projects. This new experimental kind of mini-conference was then labeled DUCC-IT, to reflect both the local profile and the mutual collaboration.
After the initial social night, spent discussing of several ongoing free software efforts and having dinner all together, the conference official opening started on Saturday, temporarily housed at University of Perugia, with a series of talks and hands-on session aimed at recruiting new contributors to work on development, translations, documentation writing and marketing. It has been a good opportunity to celebrate the Software Freedom Day too, in collaboration with FSUG Italia and the participation of some local schools.
The event been also attended by some members of the Debian Women and Ubuntu Women teams (whose goal is to promote women participation in both projects), who organized a round-table debate taking the Italian panorama as a study case. The discussion embraced different topics, ranging from the wide difference in numbers, to the deep causes of this phenomenon and how to improve the situation. With the help of the hacklab staff (hosting the debate), an audio/video streaming has been made available in real-time, and many remote participants joined us with comments and questions.
This new kind of collaboration between our communities was found to be really positive and more events has already been drafted for the next year, including a translation sprint and a contributors meeting.
We encourage worldwide local communities to try and engage in a similar experiment: organizing and joining a DUCC event will be pure fun.
A detailed report of the conference will be soon available, completed by photos, participants comments, video records and slides for the talks.
We d really like to thank the Math Department of University of Perugia, the Projectz On Island hacklab, FSUG Italia, the Ubuntu-it community and everyone who contribute to this event.
Once in a time when looking at my Debian Developer's Packages Overview, I just start to think there is way too much bug reports for phpMyAdmin package in Launchpad. Today the threshold was 30 :-).
Managing them is usually not that hard, because vast majority of them are just duplicates of same issue. Basically all problems come with the fact that dbconfig-common really does not behave nicely when database server is not configured and user tries to configure it. I know people should just answer no to first question, whether to use dbconfig-common, but they don't and it then horribly fails.
Today I finally decided to ignore all errors from dbconfig-common in our packaging scripts, so you will get an error, but the package will be installed. As it seems that this is what most Ubuntu users expect after all.
This also shows huge difference between Debian and Ubuntu users - such bug has never appeared in Debian bug tracker, but has zillions of duplicates in Launchpad in various incarnations (LP#618852, LP#621569 and the most favorite LP#456674).
I m putting together a list of email server features that you should look for. I m thinking:
I got pulled up on my password policy yesterday; I don't tell other people my passwords. The context was arranging that a friend could use my laptop while I was away at work - instead of telling her my login details so she could use that I created a new account. This provoked a "Don't you trust me?" response. I couldn't quite manage to successfully articulate the fact that I did trust her, I was aware that unsupervised physical access meant that it was easy enough to gain access anyway but that I just wouldn't hand over my password. It's not like there's anything confidential or that isn't backed up on there. The password is for that machine only. My GPG key doesn't live on it, so the biggest effort if it was attacked would be rolling the SSH key (that has a passphrase, of course) for that machine. And yet I couldn't bring myself to do it. This is nothing unique to this instance; I spent 13 years with Katherine and she never knew my passwords nor had root access to any of my machines. I can imagine situations where I'd share root, but even then I wouldn't share my personal password.
![]() |
Apparently, live.com thinks that any browser coming from a ppc architecture is a mobile device. This sucks for the users of the hundreds of thousands of powerpc desktops still in service. I don't use hotmail myself, but i do support people who use it. I set one of my clients up with debian squeeze on their PPC machine because all the proprietary vendors have basically given up on that architecture -- debian represents the best way to get modern tools on these machines (and other machines too, but that's a different argument). However, this client couldn't get to their hotmail account, despite using the latest version of iceweasel (3.5.12). They were directed to a crippled interface that didn't include the ability to attach files, and was a gross waste of the desktop screen space. It appears to be the "mobile" version of live.com's services. However, the same version of iceweasel on an i686 test machine could access the standard version of hotmail with no trouble. My friend jeremyb helpfully suggested fiddling with the User Agent string exported by the browser. Some experimentation shows that the presence of the string "ppc" within any parenthetical expression in the UA makes live.com show the crappy interface. You can try it yourself (if you have a hotmail account) on your x86 or amd64 machine by adding (ppc) to the default valule of general.useragent.extra.firefoxComment in about:config. Stupid stupid stupid. I'd like to have fixed this by overriding the browser's reported architecture (or simply by removing it -- why does a web server need to know the hardware architecture of my client?). But there doesn't appear to be a way to do that with the way that mozilla constructs the UA. Instead, i needed to add a new string key named general.useragent.override which is not exposed by default in about:config. This raises some questions:
The Debian policy dictates that package upgrades must take care of preserving user changes to configuration files. This article will explain you how most packages ensure this. This is important knowledge for anyone who has to manage upgrades: knowing how it works lets you easily automate most of it and deal correctly with the fallout.
How dpkg manages configuration files
Most packages rely on dpkg to properly install configuration files. Dpkg keeps a checksum of the last installed version of configuration file. When it must install a new version, it calculates the checksum of the currently installed file and if it doesn t match anymore, it knows that the user has edited the file. In that case, instead of overwriting the configuration file, it asks the user what to do. You probably already have seen those questions, they look like this:
Configuration file /etc/bash.bashrc'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** bash.bashrc (Y/I/N/O/D/Z) [default=N] ?
In this specific example, if you answer Y or I (for yes or install ), dpkg will install the new version of /etc/bash.bashrc but it will also backup the current version in /etc/bash.bashrc.dpkg-old. If you answer N or O (for no or old ), dpkg will install the new version in /etc/bash.bashrc.dpkg-dist and /etc/bash.bashrc is left untouched. The two other answers allow you to examine the differences before taking a decision. Note that if you choose to start a shell, the new version is currently available as /etc/bash.bashrc.dpkg-new (and since Squeeze there are convenient environment variables $DPKG_CONFFILE_OLD and $DPKG_CONFFILE_NEW in case you want to create a custom review script).
All configurations files managed by dpkg are called conffiles because that s the name of the field where they are recorded in the dpkg database. You can display the list of conffiles for any package:
$ dpkg --status bash [...] Conffiles: /etc/skel/.profile ecb6d3479ac3823f1da7f314d871989b /etc/skel/.bashrc 2afdd6c53990f2387a7ef9989af0bc07 /etc/skel/.bash_logout 22bfb8c1dd94b5f3813a2b25da67463f /etc/bash.bashrc 5b3c3bc73d236e4e1b6f9b6c1ed5964e [...]The command
dpkg-query --showformat='$ Conffiles \n' --show bash can give you the same information if you need to retrieve only that field. The 32 characters after the filename are the MD5 checksum of the original configuration file provided by the package.
Avoiding the conffile prompt
Every time that dpkg must install a new conffile that you have modified (and a removed file is only a particular case of a modified file in dpkg s eyes), it will stop the upgrade and wait your answer. This can be particularly annoying for major upgrades. That s why you can give predefined answers to dpkg with the help of multiple --force-conf* options:
--force-confold: do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix. With this option alone, even configuration files that you have not modified are left untouched. You need to combine it with --force-confdef to let dpkg overwrite configuration files that you have not modified.--force-confnew: always install the new version of the configuration file, the current version is kept in a file with the .dpkg-old suffix.--force-confdef: ask dpkg to decide alone when it can and prompt otherwise. This is the default behavior of dpkg and this option is mainly useful in combination with --force-confold.--force-confmiss: ask dpkg to install the configuration file if it s currently missing (for example because you have removed the file by mistake).$ apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgradeYou can also make those options permanent by creating
/etc/apt/apt.conf.d/local:
Dpkg::Options "--force-confdef"; "--force-confold";Bringing up the conffile prompt at any time The conffile prompt is only displayed when dpkg detects that the package provides an new version of the conffile. Thus reinstalling the same package will not bring up the prompt. But you can instruct dpkg to ask nevertheless with the
--force-confask option. This is a new feature in Debian Squeeze. It will only ask for files that are locally modified.
If you want to read more articles like this one, click here to subscribe to my free newsletter. You can also follow me on Identi.ca, Twitter and Facebook.
Okay, adding comments lead exactly to the expected situation of spam comments, so I just added fccv and started using typepad to help me in fighting with spam. I hope it will catch most of it (it would catch all I've had to delete manually so far) and will avoid false positives.
For some time (probably since upgrade to 1.0) it looks like my Piwik installation did not log URLs and page titles from visitors. Simply all URLs and page titles logged were blank.
While I still postponed the investigation of this, I was pretty sure it must be some configuration issue and not a bug, so I felt reluctant to report this.
Today I finally found time and copied upstream global.ini.php to my installation and it seems to do the trick. I should better care of upgrading next time :-).
PS: Any volunteer for packaging piwik for Debian?
Another one, just not to forget it, since I'm just starting to
play with grsecurity. When building package under
pbuilder/cowbuilder and using
a grsec kernel,
you have some stuff to tune. I built my grsec kernel with
the sysctl options enabled, so it's easier to fix.
The first thing I needed, not directly related to building
packages, is the permission for my user to execute stuff in
untrusted folder (since I really
need to be able to run stuff from my home). I've configured
Trusted Path Execution with:
corsac@hidalgo: sudo sysctl -a grep
kernel.grsecurity.tpe
kernel.grsecurity.tpe = 1
kernel.grsecurity.tpe_gid = 500
kernel.grsecurity.tpe_invert = 1
kernel.grsecurity.tpe_restrict_all = 1
So what I need from there is to add my user to that group:
corsac@hidalgo: sudo addgroup --gid 500
grsec-tpe
Adding group grsec-tpe' (GID 500) ...
Done.
corsac@hidalgo: sudo adduser corsac grsec-tpe
Adding user corsac' to group grsec-tpe' ...
Adding user corsac to group grsec-tpe
Done.
That works fine for general usage (at the cost of less
protection for my user).
When trying to build stuff in pbuilder, the first problem I hit
was during dependencies installation:
[81903.221359] grsec: From 127.0.0.6: denied chmod
+s
of /home/corsac/debian/pbuilder/build/cow.8616/usr/local/share/sgml/stylesheet
by /home/corsac/debian/pbuilder/build/cow.8616/bin/chmod[chmod:10424]
uid/euid:0/0 gid/egid:0/0,
parent /home/corsac/debian/pbuilder/build/cow.8616/var/lib/dpkg/info/sgml-base.postinst[sgml-base.posti:10421]
uid/euid:0/0 gid/egid:0/0
grsec enforces some more protection when in a chroot,
and especially forbids some operations in there. So I add an
exception, using sysctl. For that, a convenient
/etc/sysctl.conf.d/grsec.conf will help:
# we need to do stuff in chroots for package
building
kernel.grsecurity.chroot_deny_chmod=0
# lock grsec sysctl
# kernel.grsecurity.grsec_lock=1
The last one is still in comment since I know I'll have to tune
further the sysctl.
With this, the build-deps install fine, but when starting the
build itself, it fails because I can't execute stuff inside
chroot, and especially not debian/rules:
Sep 20 19:43:24 hidalgo kernel: [87339.510137]
grsec: From 127.0.0.6: denied untrusted exec of
/home/corsac/debian/pbuilder/build/cow.26657/tmp/buildd/evolution-data-server-2.30.3/debian/rules
by
/home/corsac/debian/pbuilder/build/cow.26657/usr/bin/fakeroot-sysv[fakeroot:10916]
uid/euid:1234/1234 gid/egid:1234/1234,
parent
/home/corsac/debian/pbuilder/build/cow.26657/usr/bin/fakeroot-sysv[fakeroot:10895]
uid/euid:1234/1234 gid/egid:1234/1234
That's again because of TPE. Because, inside the
chroot, the pbuilder user (uid 1234) doesn't belong to the
grsec-tpe group (which doesn't even exist). So the correct
fix here is to create a 500 group inside the chroot, and add the
pbuilder user:
corsac@hidalgo: sudo cowbuilder --login
--save-after-login
-> Copying COW directory
[ ]
root@hidalgo:/# sudo addgroup --gid 500
grsec-tpe
Adding
group grsec-tpe' (GID 500) ...
Done.
root@hidalgo:/# sudo adduser pbuilder
grsec-tpe
Adding
user pbuilder' to group grsec-tpe' ...
Adding user pbuilder to group
grsec-tpe
Done.
Et voil
!
I've just released a new Blog::Spam module to CPAN.
The Blog::Spam module is 99% of the code behind the blog & forum spam detection service.
On the whole I'm pleased with the way that development has gone, and although I'm going to keep tinkering it is essentially "complete".
Now I need to go back and fix bugs in chronicle, asql, and rinse.
ObSubject: "You are just an ordinary man in a cape!" - Batman Begins.
Richard Darst has been writing about DebConf organisation and
wrote about DebCamp.
Thought I'd give my story about where the idea for DebCamp came from,
for some context.
DebConf2 in Toronto was my first DebConf. I
had sadly missed DebConf1 due to EPASSPORT despite having sponsored tickets;
something I still kick myself about. Things were not as well organised back
then. Anyway, since Ottowa Linux Symposium was the week before DebConf,
some of us were in Canada early for that, and needed to find something to
do in the time between conferences.
My thought was, find someplace to camp. It'd be a cheap way to see more of
Canada and decompress. I posted this plan to debian-private and Andreas
Schuldei and I spent several days canoing around
Algonquin park. Of course, we'd
never met before. I'd met probably less than five European debian
developers before that point. We experienced big scary lakes that
challenged our limited canoe skills, portaged and camped, and even saw a
moose.
Later during DebConf2, I distinctly remember mentioning our camping trip and
saying "we could have a DebCamp before the next DebConf". And sure enough,
before DebConf3 there was a DebCamp[1]. In the
days we hacked on d-i and stuff. We camped out in the gym of a primary school
in Oslo, and hung out through the long evenings out front. Some people even
brought tents.
Since then, DebCamp has developed into the integral warmup for DebConf
that Richard describes. I'd rather see it more ad-hoc and scruffy, but
you can't argue with the purpose it serves.
So, are there any good places to camp near
Banja Luka?
[1] Even then the DebConf orga team made it seem that easy.
One of reasons of recent move my blog to custom Django based application was use of comments. Today I've finally found time to enable support for them, so you can provide me feedback directly without mailing me or reposting on some planet where my blog is syndicated.
I hope it will not turn into fight with spam bots, for now I'm using only protection Django has built-in.
Next.