touch /tmp/keyfile chmod 600 /tmp/keyfile dd if=/dev/sda2 bs=1k count=1 of=/tmp/keyfile cryptsetup luksAddKey /dev/hda5 /tmp/keyfile wipe /tmp/keyfileNote the careful handling of the temporary key file (luksKeyAdd won't read from stdin, whereas luksOpen will), I recommend storing it on a ramdisk and you should certainly use wipe rather than rm if you don't. Once you have added your USB key you could remove the passphrase from the key list with luksDelKey, but if for any reason you lose the USB hdd you will be unable to decrypt the partition; I recommend leaving both keys available. Booting automatically In order to boot using the USB key we need to provide a couple of helper scripts in order for the initramfs to work. We also need to set some parameters on the kernel command line. In Debian these scripts can be added to the initramfs by putting them in /etc/initramfs-tools/. The first script is a helper script used when building the initramfs. This writes a second script into the initramfs itself which takes the partition as a parameter and prints the key on stdout. This should be written to /etc/initramfs-tools/hooks/cryptkey (executable) and contain:
#!/bin/sh -- PREREQ="" prereqs() echo "$PREREQ" case $1 in prereqs) prereqs exit 0 ;; esac . /usr/share/initramfs-tools/hook-functions cat > $ DESTDIR /bin/loadkeyThe second script runs immediately before the cryptsetup script in the initramfs and ensures that the USB disk is available. This will cause the boot sequence to block until the USB disk is inserted and the device nodes created by udev. It can be provided directly in /etc/initramfs-tools/scripts/local-top/00ensureusb (executable) and should contain:
#!/bin/sh --
PREREQ=""
prereqs()
echo "$PREREQ"
case $1 in
prereqs)
prereqs
exit 0
;;
esac
if ! grep cryptopts /proc/cmdline >/dev/null; then return; fi
. /scripts/functions
log_begin_msg "Waiting for USB to become available..."
modprobe usbcore
modprobe uhci_hcd
modprobe ehci_hcd
modprobe usb_storage
while [ ! -b /dev/sda2 ]; do
sleep 1
done
log_end_msg
exit 0
The cryptsetup script itself reads configuration from the kernel command
line. Here you can give it a script which will read the key and the
source for the key to read. Edit your grub or lilo config and append
the following to the kernel command line:
cryptopts=keyscript=/bin/loadkey,key=/dev/sda2,source=/dev/hda5,target=hda5_crypt,lvm=hecate-root
You will obviously have to change the name of your lvm root partition
(volumegroup-logicalvolume). I recommend having two entries in the
boot menu, one with the cryptopts and one without to allow easy
decryption using the passphrase instead.
Conclusion
That should be everything. Boot your computer and inset the usb hdd.
When the boot process passes decryption you can remove it again. You
may have to replug it if you boot with it inserted to start with.
fabbione why oh why did you upload openssl097 UNPATCHED when there were known security issues with this version, with the fix even linked to in the bug?
This software was removed from Gutsy for a reason, if its going to be added back it should ATLEASTE be patched, as it stands right now anyone who installs vmware-server via Canonical’s Partner Repository is remote exploitable and it was known prior to the upload, is this a case of $$ from VMware means more than security? I’m sorry but this is simply not acceptable from Canonical as far as I’m concerned. It isnt a case where VMware is distributing it, its us, or atleaste Canonical distributing it to STABLE releases.
At this point a patch to fix the issue will simply not be enough, I want to know why this happened. And whats going to be done to ensure the Distribution I spend many hours for volunteering isnt going to allow this to happen again.
I Love Ubuntu and hate to see things like this happen, lets ensure they dont.
/* annoyed */
I’m a developer, and my primary tool is my computer. Unfortunately, about 3 months ago, my computer died an untimely death, and I have resorted to using a pentium 200MHz machine with 256MB Ram, which lets me keep up with regular communications, but significantly slows the pace of development.
As a computer is a big purchase, and represents most of what I want to receive for the holidays, I’ve set up a fundraiser so that people who wanted to help towards this gift could do so without needing to purchase the entire thing (and to avoid the all too common problem of receiving 8 video cards and no RAM).
www.fundable.com allows me to accept pledges via paypal but NOT collect any unless the goal is met, so if you feel giving and pledge something, it will only be charged if the goal is met ( this is set at $250, which seems to be the minimum for a decent system, if more is collected, I can look at something better). You can read more about how fundable works from www.fundable.com/faq, and I’m more than happy to answer any questions via email, IRC, Jabber, etc.
Matt Asay: “[F]ocus on maximizing abundance, and then sell value around minimizing the complexity inherent in abundance.. The old model was to assume that the value was in the software itself and to therefore lock it up. It turns out, however, as Tim O’Reilly notes, that data is the real value, not bits and bytes. You don’t discover or, rather, uncover, that value until you have abundance.”















My speakers run Debian. And are made out of lego. Don't all point and say
"geek!" at the same time, plz.
Details
I'm really tired of people pushing the adoption of svn because it's a better CVS. The only people who that argument hasn't swayed are those who don't care what vcs they use, and that's because they don't care about the argument. Despite its name, svn is the status quo now, so do try to compare it to systems that it hasn't already made obsolete.
--author
option for commit.
One of the hard things about getting started with mpd is that there seems
to be little documentation about the details of how other people use it.
Instead you're given a collection of great tools and an excellently
designed system, and expected to build your own personal music playing
setup out of them with little direction. So I thought I'd document mine.
There are several computers around the house that run mpd. One in my
office, one has speakers in the bedroom. My laptop, of course. And I put a
nslu2 in the living room in a fun lego case that embeds the little computer
into a remote controlled speaker (photos when I find a camera). All of
these machines have their music libraries synchronised using unison.
I use sonata as a graphical frontend and browser. I keep one instance of
sonata running on my desktop in the office, so I can go there to change
music if my laptop's not on. Also so guests can change the music.
I like to listen to whole albums at a time, and sonata doesn't make this
especially easy in its user interface. I eventually realised that the best
way to do it, for me, was to create a separate playlist for each album.
Sonata does make it really easy to click on a playlist and start playing
it. I wrote mpgenplaylists to automatically generate those playlists for
me.
I wrote a set of commands that I can use to transfer state between my mpd
daemons. The easiest to use and most useful of these is mpswap, which
swaps the state of two daemons. Generally I only have one mpd playing at a
time, and the others are paused, though it'll also swap the states of two
running mpds. So if I run "mpswap dodo dragon", the music that had been
playing in my bedroom starts coming out the speakers in the office. Same
song, not a single missed note. That's pretty handy. Or I can run "mpswap
dodo" to swap state with my laptop, and carry the music out of the
house with me. (This would be more seamless if I carried some bluetooth
wundergadget so my computers knew where I am, but I think I'll pass.)
Another tool I wrote is mpstore, which dumps the mpd daemon state out to
stdout, so it can be saved to a file and later loaded with mpload. I
use this when I'm listening to audiobooks, to store my place. Another one
is mpfade, that can wake me up by slowly fading in music. Or slowly
fade out and stop. Writing these little hacks is addictive, but I won't
bore you with the rest.
On some of the servers I run mpd-dynamic, a daemon that watches the
playlist and makes sure it always has 10 unplayed items in it, chosing new
items at random. It also removes old played items from the playlist.
This is nice if I want music going without the bother of picking what.
I typically add some albums to the playlist, and then when they're done, it
keeps playing random stuff until I manually add something else. I do want
to find something that can more intelligently pick things to play. I
tried lastfmpdqc, but didn't like its results.
Switching to mpd has meant that the filenames of mp3s matter again, since
mpd UIs expose the filenames (a pity). I used exfalso to clean up all my
file names based on the music's tags. I also added ReplayGain information
to all my music so mpd can use it to normalise volume.
BTW, after all this, I'll probably still only listen to music for an
average of 3 hours per week.
mpd-dynamic is in the Audio::MPD perl module.
mpdswap, mpdstore, mpfade, mpgenplaylists, and more are in
mpdtoys.
I spent about four hours this evening building something out of lego,
something I'd not done seriously in a good many years.
I was suprised how much it felt like starting writing a program from
scratch, and how many parallels I kept finding between snapping the bricks
together and writing code. Here are just a few of them.
We just had a chimney fire tonight at home...
Nothing grave, indeed. I was just hacking close to the wood stove we use to heat the house during winter and I suddenly hear a kind of whoooosh noise in the chimney.
Fortunately, I had of these devices you can throw in the fire and make a lot of smoke that help cooling down the fire, then I poured water inside the stove (which is exactly what's to be done, said the firemen later).
Then I call firemen who came in about 10 minutes....and basically had nothing to do except survey the chimney for a while (the exit of the stove to the chimney was bright red for about 1 hour)....and dirty half of the house..:-)
Noone hurt, nothing broken in the house, but that was kind of a fear. Man, the chimney was to be cleaned next Wednesday....just a little bit too late, but last cleaning was in May...:-
I think it'll be quite a while since a light that wood stove again....
Update: thanks to Eric Cooper, I now know about "wood stove" or "wood-burning stove".
My birthday is Sunday, December 2nd. To celebrate, my friends in Zagreb
have organized a party for me at the club and cafe Kset at 20:00. It
should be low-key and lots of fun. Since I don't actually know too many
people here, other folks reading this should definitely feel free to
drop by if they'd like to meet up.
Rumor has it that we'll have another party at the Acetarium after I
get back to Cambridge on the evening of Saturday, December 8th. Let us
know if you want to drop by for that one.
We just had a chimney fire tonight at home...
Nothing grave, indeed. I was just hacking close to the wood oven we use to heat the house during winter and I suddenly hear a kind of whoooosh noise in the chimney.
Fortunately, I had of these devices you can throw in the fire and make a lot of smoke that help cooling down the fire, then I poured water inside the oven (which is exactly what's to be done, said the firemen later).
Then I call firemen who came in about 10 minutes....and basically had nothing to do except survey the chimney for a while (the exit of the oven to the chimney was bright red for about 1 hour)....and dirty half of the house..:-)
Noone hurt, nothing broken in the house, but that was kind of a fear. Man, the chimney was to be cleaned next Wednesday....just a little bit too late, but last cleaning was in May...:-
I think it'll be quite a while since a light that wood oven again....
(for the french around, do you have something better than "wood oven" for po le bois"?)
My tool to query apache logfiles via SQL seems suprisingly popular.
Just as a recap the process goes like this:
alias refers SELECT distinct(referer) FROM logsThen in the future the 'refers' command will be available and will run the named query. Neat. Now that I'm comfortable with SQL queries it just seems so natural, easy, and right to query logfiles this way. I guess that makes me strange.

Is (X) innovative?I occasionally find myself reading these discussions; they have the same sort of macabre fascination for me that's often ascribed to train wrecks, messy divorces, and Usenet. Of course, the outcome (or rather the lack of one) is always predetermined. The only variable is how many pixels will be mutilated and how many absurd postures will be struck before the dust settles. Why do I say the outcome is predetermined? Because in not one of these discussions does the person posing the question precisely define what innovation is. If the discussion concerned, say, whether an object was blue, or made of concrete, or 5 meters by 6 meters, this would not be a real problem: while any hair can be split, there are commonly accepted definitions of
blue,
concrete, and
meterthat are sufficient for an informal discussion. But
innovationis not
blue,
concrete, or
meter. Different people have subtly, even radically different views of what constitutes
innovationand how to measure it. Hence, any discussion involving more than one person quickly devolves into chaos. One person will say,
X is innovative because of such-and-such, and another will reply,
X is not innovative because of such-and-such unrelated reason. Both writers are correct by their own definitions of innovation; they are answering different questions, and so they end up talking past one another. Although these discussions never go anywhere, I think it's entertaining and enlightening to catalogue some of the definitions of
innovationthat the participants use. I've listed some popular definitions below; feel free to email me with more suggestions and I'll update the list. Of course, since people rarely bother to define their terms, most of these meanings have been inferred from the statements people have made about what is and is not innovative. As a result, some of them are fairly absurd and may not accurately reflect the opinions of the speakers, had the speakers stopped to think about what they were saying. Caveat lector. Conventions: Below, personal pronouns such as
Iand
merefer to the speaker. The words
product,
idea, and
techniqueare used interchangeably and as appropriate to refer to the thing whose innovativeness is in dispute.
goodis another ambiguous term with many definitions, one of which appears to be
innovative; the fun never stops!)
sideto affiliate themselves with, then search for arguments that will tend to support their side or undercut the opposition. Facts and logic are largely irrelevant, except as weapons with which to smack one's opponents, and a dismissive put-down is as good as or better than a reality-based analysis. Actually changing your mind based on the evidence presented shows weakness, and is to be avoided at all costs. If you have to assert that up is down, do it. In this environment, using vague terms appears to be a bonus, since it gives you more wiggle room and opportunities to play
gotcha!. If someone responds to your post with facts that rebut you based on the definition you were using, you can pick any other definition and say
...but what about..?Which is why these
discussions(in which no-one is actually discussing anything) are both a fascinating window into human nature and a depressing commentary on human nature, and why I keep finding myself reading them.
debtree 0.7.2.
The main change in this release is a much better display of virtual
packages in dependency graphs.
debtree now shows which virtual
packages are provided by the requested package, as can be seen in
this example for debconf
which provides debconf-2.0.debtree "feature complete" when it comes
to the information that is displayed in the graphs. A quick summary:
Pre-Depends, Depends, Recommends and
unversioned Conflicts, and any Provides for the requested packageSuggests and versioned ConflictsBuild-Depends and Build-Depends-Indep for build
dependency graphs, and takes into account (or displays) architecture
conditions in build dependenciesRelaces, Obsoletes and Enhances
relationships. If there's demand for it, adding them should be trivial.
If you haven't yet, take a few minutes to look at the example graphs on
the debtree website.
What's next for debtree?
You may remember that I filed an ITP when
0.7.1 was released
but obviously its not in the archive yet.
One reason is that debtree is completely redundant, at least if you
consider the original reason I wrote
it:
to list how a package depends on another package. Just after the release
of 0.7.1 I found out that aptitude why <package> <package> already
provides that functionality!debtree, and Enrico
really is supposed to know such things [1]! Luckily debtree now produces
such nice dependency graphs to justify its existence :-)
Anyway, I think that option should probably just be stripped out of
debtree now. And if that is done, maybe it should be renamed to
debgraph or apt-graph...
I also discovered that beside apt-cache there was already another utility
that produces dependency graphs:
apt-rdepends. While, just like
apt-cache, it lacks most of the features of debtree, it is quite fast
and, because it is written in Perl, I could possibly port debtree to Perl
myself using apt-rdepends as an example.
Another reason is that a few people commented that maybe it should not be
a separate package. I somewhat agree with that, but also would not like it
to disappear in something non-descriptive like
debian-goodies. I'd very
much prefer it to eventually see it included in apt itself, or maybe in
apt-utils.
So basically I've been holding back a bit on uploading debtree to allow
me to consider all this. The next task definitely is a rewrite in a
better language and thereby give debtree a performance boost.
[1] To his (and my) defence: that feature was only recently introduced in
aptitude.
Using qmail-ldap for quite some time (first because of my employer and then because I was used to it), the DJB license was a major pain, qmail-ldap patch is under BSD, but the original qmail was non-free. Yes, was. Yesterday DJB released qmail under Public Domain, and based on a GoogleVideo, he is going to change the license for all his existent software and for all his future works.
For some strange reason the URL direct to the video doesn't work, but if you do a search you are able to use the Watch video here option.
Yes, I know. I'm not going to say sorry, I should post more, this last three months were not exactly the best ones, and I thought about writing something about what I was doing for Debian and other projects here but ended up being consumed by University, Work, Real Life and "Other Stuff (tm)".
One of the important things on the way is the Debian i18n Extremadura Meeting to be held on December, when we expect to work on i18n.debian.net, change from CVS to SVN, improve DDTP and ddtss and work with Pootle related stuff and infrastructure.
In the meantime, we are also changing our Primary Push Server for volatile.debian.org from durin to verdi (don't worry, a proper announcement will be made on an announcement list close to you). :-)
Thanks for everybody that had the patient to wait for my replies and/or my actions, and the ones that calmly understood my undergoing situation, giving me support and offering help. Thank you very much!
Next.