Search Results: "ag"

2 December 2007

Matthew Johnson: Passwordless Encrypted Root in Debian

If, like me, you wanted both an encrypted root filesystem and some form of bootsplash you may have discovered that this is tricky. You need to enter the decryption passphrase on the terminal which means exiting the bootsplash. I decided it must be possible to use a USB token with the key on it rather than a passphrase to decrypt the drive and while this seems supported upstream, it is not supported out of the box on Debian. This is a short howto explaining my solution. Pre-requisites You will need a USB hard disk and a computer using Debian with an encrypted root filesystem. I am assuming that you are using a stock kernel with an initramfs image and have a luks encrypted LVM containing the root filesystem. You will have to change some of the details below to match your specific system. In the examples below /dev/hda5 is the encrypted partition and /dev/sda2 is the partition on the USB disk holding the key. Setting up the key First we need to generate a random key and put it on the disk. To save having to mount things in the initramfs, I chose to use a partition at the end of the USB flash disk. This means repartitioning and reformatting your USB disk. I recommend allocating the last cylinder in fdisk to primary partition 2. Once you have the second, small partition (you are only going to use 1k, so as small a partition as possible) you can put a key on it. This is as simple as dd if=/dev/urandom of=/dev/sda2 bs=1M . Adding the key to the luks partition Next, you need to add your new key as able to decrypt the partition. Luks allows several keys to be able to unlock the partition. The real key is decrypted under each of the user keys or passphrases and stored in a key slot' in the partition. To add your key type:
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/keyfile
Note 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/loadkey 
The 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.

Simon Richter: Obvious

My flight got delayed. There is still a slim chance I will be home before midnight. Having a laptop would definitely be an advantage.

Brandon Holtsclaw: ugh

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 */

Julien Danjou: Testing out rebuildd 0.3.0

awesome beiing in rc state, that leaves me a small amount of spare time. I decided to spend it on rebuildd. I had started the 0.3.0 version back in August, but never touched it again until now. I was afraid because I did not remember in which state I left the code repository. And, good surprise, the code was in a quite good shape! I just implemented and fixed some stuff that were reported on the BTS, and then, I only had to test it out. For that I used the servers kindly provided by TuxFamily.org: I stored the MySQL database on whisky. filled it with rebuildd-job add-quinn-diff (new feature in 0.3.0) and then started rebuildd on each node. And then I saw the 2 hosts starting to grab, lock jobs, build packages on each side. Wonderful. That just works. :-) rebuildd-job stats says that 20 % of the archive is now built in less than 24h, seems fast, cool. Bad point is that I'm building and trashing logs into /dev/null because I've no QA idea to implement right now.

Brandon Holtsclaw: Brandon s Holiday Computer Fund

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.

Steve Kemp: to let the insects in

My migration to mercurial is now complete. I've completed the last step, which was the migration of all the $foo-commits mailing lists. It is at times like this that I remember two things: Right now I'm using ecartis for my mailing lists, primarily because it isn't mailman. (Long story). For making archives of mbox files I'm using hypermail. The latter I intend to change as soon as I can find something else to use. It isn't attractive, but it is in the Debian archive and seems reliable. Since I was changing things around already I've centralised the list-archive making, and started using the haschanged tool to avoid rebuilding the archives i there are no new posts. That works nicely.

1 December 2007

John Goerzen: Attention Junkmailers

We love to hear from you. I'm sure that's what you're thinking, anyway, as you prepare volumes of paper to send to our mailbox.

But just so you know, let me explain just how much we love the material you send us.

When we get one of your catalogs, it will get added to the junk mail pile. Every so often, I will go through this pile. I will contact the company behind each and every mailing, asking them to remove me from their list and not rent my name further. If I have extra time, I will probably also write that note on your postage-paid envelope and pop it in the mailbox. I will also add your name to my list of companies that send me junk mail, so I can avoid doing business with you in the future. If you have sent me junk mail in the past, rest assured that I will find some creatively enjoyable way of dealing with your refusal to honor my removal request.

After I have processed your piece of artfully-crafted handiwork, possibly trying to sell me pink laptops or a shirt with the word "femail" on it -- whatever that means -- I will deposit your catalog, along with dozens of other similar catalogs, on the kitchen floor.

This is when the real fun begins, because now it's Jacob's turn to process them.

He will usually start by ripping out every page from the catalog. He'll start slowly and carefully, ripping out pages one at a time, savoring the wonderful rrrrriiiiippppp noise as he goes. But then he'll get faster, going for two pages at a time, then more, until finally he just will lunge for paper by the handful to crush, tear, or otherwise mutilate.

After that, there are many things he might do to your fine piece of unsolicited advertising. Perhaps he will enjoy drooling on it -- a satisfying fate for your 4-color catalog, don't you think? Or perhaps he will grab some of your pages, carefully emblazoned with your logo, and tear them into as many tiny bits as he can. Or maybe he will simply gather your work together on the floor, then spin himself around on top of it, scattering the remnants as far and wide as possible, cackling all the while. He may also smear bits of food on them if he ate recently, or perhaps he will simply resume tearing pages apart.

But whatever he does, rest assured that he will treat your catalog with the care and attention it deserves. No catalog will survive intact, and as many pages as possible will be ripped apart and left in bits. He does, after all, have a great attention to detail.

After Jacob is done, we will gather up what remains and put it all in our recycling container.

Oh, and under no circumstances will we actually make a purchase from your catalog.

Here are two pictures of the scene.

img_4160.jpg

Notice the careful concentration in this photo. Obviously he knows that Dell has been ignoring my removal requests for some time, and is taking note to tear their pages into the smallest possible bits.

But it's not all hard work -- processing your catalogs is fun, too.

img_4163.jpg

John Goerzen: Visiting Indiana

It was two weeks ago now that we hopped on an Amtrak train in the middle of Kansas at the bright and early hour of 3AM, bound for Indiana.

This has been our third trip with Jacob. He's 14 months old now. We never really enjoyed long car or airplane trips before we had a baby, and haven't really had the desire to try a long car trip since. So we try to take the train, or if time is short, fly.

Jacob enjoys the train. There's lots to see and do. The one thing he doesn't like doing is waiting for food to arrive in any situation, so when we have sit-down meals in the diner, things can get challenging.

We arrived in Indiana the same evening and spent a few days with Terah's dad out at the farm.

Jacob enjoyed grandpa and grandma:

img 3944

img 3961

Jacob got his first ever ice cream there. Despite the concerned "unknown food alert" look, he opened up quick for another bite.

img 3946

The big hit of the visit there were chickens. I've never seen Jacob so thrilled about watching something before. He was so excited he was just moving his arms all around, almost jumping up and down. Here he is watching them:

img 3977

img 3984

Terah wants us to get chickens now. Just because we still have a chicken house left...

On Tuesday, we went north to spend a few days with Terah's mom. On the way up, it became overcast. Terah's mom calls it the winter "permacloud", which is the best description of it I've heard yet. I didn't believe Terah at first when she said that they don't see the sun for 3 months in winter up there, but I believe her now.

Jacob found a rocking chair just his size there, and was able to make it rock. But the big hit of this stop were refrigerator magnets, at Jacob height.

img 4023

He spent a long time with them, and got pretty good at working with them, too.

He also thought he ought to check out the camera in great detail. So of course, the camera checked him out.

img 4032

Terah's mom wanted to spend some time with Jacob, so on Wednesday, Terah and I headed up to Niles, MI to visit some antique shops. We found some postcards from small towns in Kansas dating back to the 1930s, an old metal fan (still works), a wooden "apothecary box" with pull-out drawers, and some furniture we might have purchased if we were closer to home.

For the first time ever, Terah was the first one to say "aren't you done shopping yet?" She was getting tired, so we started heading back. Magically her energy returned as we approached the road leading to the South Bend Chocolate Co. factory and retail store, so we headed in that direction. The next tours didn't start for almost an hour, so we bought some chocolate, looked around a bit, and then left.

Terah's mom had a good time with Jacob while we were gone.

img 4053

Thursday was the O'Connor Thanksgiving. Terah's grandma and some other relatives were there. Here's Jacob with his great grandma:

img 4064

Jacob enjoyed Thanksgiving dinner, and managed to keep finding things to munch on all afternoon.

That evening, we went over to Terah's Yoder grandparents and spent a few days there. Not long after we arrived, Terah's uncle showed up and brought his adopted greyhound with him. Jacob was very excited about this, though the dog wasn't so sure about Jacob.

Eventually the greyhound calmed down and Jacob got to see him up close and pet him. Jacob didn't even mind getting his whole face licked.

img 4107

The next morning at breakfast, Terah's grandma had set out the high chair that she used as a girl for Jacob to eat in. I got some pictures, but Jacob was far more interested in asking to have food ready to eat.

img 4110

Here's Jacob with his Yoder great grandparents:

img_4129.jpg

Later Friday, it was the Yoder Thanksgiving. Jacob got plenty of attention. He also was looking VERY CAREFULLY for Waldo.

img_4151.jpg

Jacob wasn't feeling the best all week, but despite having a busy week and feeling not so good, he did really well. He has been walking with help now, holding on to one adult finger with each hand. He really enjoys that, but is short enough that adults have to bend over a bit to help him. I imagine several people had sore backs after the week was over, including us.

On the train trip home, I took him to the lounge car to go walking. Usually he likes to walk as fast as he can for as long as he can, but there he would only go a little bit at a time. He'd stop at each group of chairs to look at the people, and most of them were really happy to see him, too. After he was done with the lounge car, we walked back through the coaches to our seat. As long as he kept walking, he again would stop at each row of seats to make friends with anybody that wanted to.

We tried to find a nice place to go for lunch during our layover in Chicago. But let me tell you, downtown Chicago -- at least the part near Union Station -- is dead on Sunday and the fact that it was just after Thanksgiving probably didn't help. We wound up finding a place in Union Station to eat. Jacob fussed for awhile, then went to sleep on my lap (he rarely manages to go to sleep while being held). Then on our connecting train back to Kansas.

It was a fun and busy week, but it's nice to be home too. Our train arrived in Kansas at 3:15AM Monday morning. So we went home to catch a few more hours sleep before going to work. As I went outside that morning, we had a gorgeous Kansas sunrise. As the sun was coming up, it was lighting the underside of the clouds with a vibrant deep red and orange color. The whole sky to the east was lit up like that, and felt so warm and inviting on a bitterly cold morning.

Christian Perrier: Heading to FOSS.in

Tomorrow morning, I'll leave for Bangalore to attend FOSS.in, the major FLOSS event in India (for BLR people, my arrival time is 07:30 on Monday). That will be my first time in India, so probaly a lot to discover and learn. Also, of course, many online friends to meet in real life, which is always something one enjoys. I'll have two talks (in a row!) there. One is my first time talking about "Contrbuting to Debian". I hope I will make it interesting for attending people. The main goal is explaining that there are much much more ways to contribute to Debian than one would imagine, and roughly say that becoming a DD is far from being the only way to contribute. The other talk is my standard i18n talk, slightly more focused on localization for languages from India (yes, with the maps, of course). Sam Hocevar is also coming and giving talks. I cross fingers for people there to not be bored about our damn French accent. I'll be really delighted to share this with Sam who is someone I really appreciate (and, actually, even more since he is doing good job as DPL). Of course, I know that the most interesting will be BOFs and informal discussions as well as booths visits and the like. Everybody knows that India is the paradise for people working in i18n: so many languages to cope with! I already know it will be too short, I'm afraid, but see you in BLR !

Stefano Zacchiroli: pts face lift

PTS: face lifting (i.e. tell me what PTS layout you like) My personal PTS small marathon is almost over. The latest addition is a shiny new look and feel. The rationale for that is partly aesthetic (the proposed new colors are mimicking wiki.debian.org and should be more debianish, thanks H01ger for the suggestion!) but mostly functional (the current layout is too "large" and too few information fits on a single average physical screen). So, here are some screenshots you can actually see:
  1. current version . You can see this layout in action on whatever package in the PTS;
  2. tighter layout (smaller fonts, less padding, wiki.d.o-like colors). You can see this layout in action on whatever package in the PTS since the CSS is listed as alternate: just access a page and (assuming you're using firefox) do "View > Page Style > Compact rendering";
  3. tighter and reorganized layout (as for the point above + 3 columns layout, thanks MadCoder for the latter!). Unfortunately you can't try this out by yourself, as it isn't yet committed ... trust the screenshot then :-)
So, question type, what do you like more of the above 3? I'm all for the latter (tighter and 3 columns) and plan to commit it RSN. If you have other preferences please mail me them; also suggestions for improvement are, of course, welcome.

Joey Hess: my mpd setup

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.

Joey Hess: lego vs programming

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.

Christian Perrier: Chimney Fire

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".

Benjamin Mako Hill: Me++

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.

Raphael Geissert: I'm in!

I just went to a meeting where I received the results of the university admission exam I did some weeks ago.
And I'm in! :)

Romain Francoise: More Vcs-* statistics

Expanding on my previous post, this time with a graph:

The first package to add a Vcs field was amule on June 7th, 2006. And it was Bzr.

Rodrigo Gallardo: Nasty microscopic life (?) forms

This week I ought to have posted about how Gunnar and I met somewhere along the Ciclotón and had amazing amounts of fun. But I can’t, because we didn’t, because I was stuck in bed, with a 39C fever, all through Sunday and Monday and half of Tuesday. And weak and tired and with a big, nasty, unsuferable headache the other half of Tuesday and Wednesday and half of yesterday. So, instead, all I can do is apologize to santiago, who nominated me for DM, and damog, who seconded the nomination, and anibal who caught my silly mistake of not mentioning that I (of course) love and accept the DFSG in my response, for being silent and unresponsive. And to the people who reported bugs in my packages and got no response. And to oliver, for whom I was supposed to fix some JavaScript issues yesterday. I hate viruses.

30 November 2007

Martin Michlmayr: N2100 network troubles due to r8169 bug

Daniel Smolik reported problems with NFS on a Thecus N2100 a few days ago. I confirmed the bug with 2.6.18 and 2.6.22 but found that the problem didn't occur with 2.6.23. I started a git bisect and a few hours later located a fix that Francois Romieu, the maintainer of the r8169 driver, had put in. Apparently the driver had some confusion regarding hardware and IP header alignment. The good news is that the patch is very small and can easily be backported to our 2.6.18 kernel in stable. Also, packages of 2.6.23 were uploaded today and should be in the archive soon.

Christian Perrier: Chimney Fire

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"?)

Romain Francoise: Shared links for 2007-11-30

Next.

Previous.