Search Results: "uwe"

20 April 2006

Uwe Hermann: Server/client bookmarks a la del.icio.us

Jesus Climent asks for a "client/server solution for my bookmarks", which I read as "del.icio.us clone". As the comment feature is not available on his blog, I answer with another blog post. I know of the following Free Software del.icio.us clones:
  1. Scuttle (PHP, GPL)
  2. Rubric (Perl, Artistic license + GPL)
  3. Insipid (Perl, GPL)
I haven't tested recent versions of any of those, but I'll give scuttle another try soon, as I have wanted my own local del.icio.us for quite a while...

18 April 2006

Uwe Hermann: Why disk-encryption is not only useful for paranoid computer geeks

According to this (German) spiegel.de article, thieves have stolen a hard drive from the recording studio of the quite popular German band Rosenstolz. Among the contents of the drive are unreleased songs from the past six years and two songs which should be released on a new single in a few weeks. Apparently those two songs on the drive were the only instance they had, off-site backups only contained older "beta" versions of the songs. As the band is touring at the moment (i.e. no time for re-recording the songs), it's unclear whether the single can be released in time. Lessons learned: (via Fefe) [1] Well, I am a paranoid computer geek, and I'm probably not a normal person, but you get the point ;-)
[2] Oh, and if the thieves are stupid enough they will get caught while uploading the files ;-)

Uwe Hermann: Debian packages release names

The "I'm bored" release.

nice -n 19 find /usr/share/doc -name changelog.Debian.gz -exec zgrep "\* The .* [Rr]elease" \; sort uniq bogosort -n head -40
* The "Crack-smoking Squirrel" release.
* The "I should not have got out of bed yesterday" release
* The "Wohoo-we-are-going-to-main" release.
* The "And I thought IE had security bugs!" release.
* The "First snow in Finland" release.
* The "please buy me a brain" release
* The "I speak better English than this villian Bush" release.
* The "Brief Return From The Hell" release.
* The "Stoned Monkey" release.
* The "Let's do it cleaner" release.
* The "Fuck Me Harder" release.
* The "All or Nothing" release
* The "What's my name? Say my name, bitch!" release.
* The "next time I will buy myself a powerpc" release.
* The "I'm in such a hurry" release!
* The "I *hate* when that happens" release.
* The 'DOH!' release.
* The "laptop envy (damn tbm for having a nicer one than me)" release.
* The "Drunken Iceweasel" release.
* The "Follow the white rabbit" Release.
* The "someone should take my compiler away from me" release
* The "Ooops, I did it again" release
* The "Argh-I-took-the-wrong-version" release.
* The "Friday before Christmas" Release :-)
* The 'Yes, I need more sleep, and also to test my releases' release.
* The "you can't get sunburn at Finland" release.
* The "Chainsaw Psycho" release.
* The "Son of Drunken Iceweasel" release.
* The "Perl Sucks" release.
* The "I fucking hate libtool" release.
* The 'No, I don't use CVS' release.
* The "Throwing stuff away like mad and seeing if it still builds" release.
* The "This Space Intentionally Left Blank" Release
* The "From now on all of my world-killing weapons will be kept a TOTAL SECRET!" release.
* The "Lesbian Seagull" release.
* The "Oh my God, they killed Python, you bastards!" release.
* The "Evil Bitch Monster of Death" release.
* The "Pain as bright as steel" release.
* The "I've been hiding under a rock for two weeks" release.
* The "Suddenly the Dungeon collapses!! - You die..." release
I didn't bother to run it on the whole Debian archive on one of the Debian developer machines, as that would have probably pissed off some admins... (via Jonathan Carter)

Uwe Hermann: Unintended Consequences: Seven Years under the DMCA

The EFF has published a paper called "Unintended Consequences: Seven Years under the DMCA". It contains a huge list of things which went wrong since the DMCA was introduced. The conclusion:
Years of experience with the "anti-circumvention" provisions of the DMCA demonstrate that the statute reaches too far, chilling a wide variety of legitimate activities in ways Congress did not intend. As an increasing number of copyright works are wrapped in technological protection measures, it is likely that the DMCA's anti-circumvention provisions will be applied in further unforeseen contexts, hindering the legitimate activities of innovators, researchers, the press, and the public at large.
(via Symlink)

14 April 2006

Uwe Hermann: Debian Lessons

I've stumbled over Lars Wirzenius' article Debian Lessons (Subtitle: Project management lessons from the Debian project) today. The article is from 2000 (updated 2004), but is still very, very relevant nowadays. Here's the table of contents (reading this alone would already help many projects out there, I think): Make sure to read the whole article. This compilation of tips should prove useful for many community-driven Free Software project out there.

12 April 2006

Uwe Hermann: Invoke 9/11

I stumbled over this video (5.2 MB) today, while watching videoblogs in democracyplayer (for which I'm preparing a Debian package at this very moment). The video seems to be a bit older, and I have no idea who the original author is or what license applies to it. Anyways, it's funny, scary and very very true at the same time. Watch it.

Uwe Hermann: How to hijack an already running X11 application via ssh -X?

Dear Lazyweb, I have always wondered whether it is possible to "hijack" an already running X11 application on a remote server... Say I have a box at home which has a running X11 server with many applications, e.g. Firefox, xchat, xmms, whatever. Now, say I'm somewhere else with my laptop and login with "ssh -X" into my home box. I can now start X11 applications and they will be shown on my laptop screen. So far so good. But... how can I get one of the applications that were already running before I logged in from remote to be displayed on my laptop screen? Is it possible? How? Just curious.

10 April 2006

Uwe Hermann: Stuff

7 April 2006

Uwe Hermann: The Underhanded C Contest 2006

The Underhanded C Contest 2006 has started.
We hereby announce our second annual contest to write innocent-looking C code implementing malicious behavior. In many ways this is the exact opposite of the Obfuscated C Code Contest: in this contest you must write code that is as readable, clear, innocent and straightforward as possible, and yet it must fail to perform at its apparent function. To be more specific, it should do something subtly evil.
This year's challenge: ridiculous performance degradation
For this year's challenge, imagine you are an application developer for an OS vendor. You must write portable C code that will inexplicably taaaaaake a looooooong tiiiiime when compiled and run on a competitor's OS. The program is supposed to read a set of words on stdin, and print a frequency count of unique words in lexicographical order. Essentially the output should match the command line tr "[:space:]" "[\n*]" sort awk 'length($0)>0' uniq -c Try to write a simple C program that does this, but produces as wide a disparity as possible between its runtime on one platform and runtime on another (your "competitor.")
This sounds like a lot of fun ;-) I have participated last year and will most probably do so this year... Deadline: July 4th, 2006

5 April 2006

Uwe Hermann: Help prevent software patents! Again!

Speak up on Software Patents Oh great, the software patent debate is back. After a long and disgusting campaign where pro-software-patents lobbyists employed all kinds of semi-legal and undemocratic filthy tricks in order to introduce software patents in the EU behind our backs, the European Parliament decided by a large majority to reject the directive "on the patentability of computer implemented inventions" (a.k.a. software patents) in July 2005. Rightly so. It is beyond my imagination how a certain pro-software-patents commissioner (Charlie McCreevy) dares to restart the whole debate after such a clear defeat. Consultation and "public hearing" He has organized a "Consultation and public hearing on future patent policy in Europe" which pretends to collect your views on the software patent issue (which he's trying to introduce through the "Community Patent" backdoor). Alas, the "questionnaire" is inaccessible (it's only available in 5 languages, instead of all 25 (+2) languages of the EU member states), biased towards software patents, very obfuscated and unreadable for the general public. There's no independent working group which conducts or oversees the consultation, no independent studies and reading materials, no mentions of the negative implications of software patents, no public debate, nothing. Now, who would have expected that? The FSF Europe has published a response to the Patent Consultation Questionnaire, which highlights many of the problems. Similarly, the FFII has questioned the validity of the consultation procedure, and gives a very detailed explanation of all the serious flaws of the process. What can I do? Software patents suck (in case you didn't already know) Let me quote Donald Knuth on this:
I strongly believe that the recent trend in patenting algorithms is of benefit only to a very small number of attorneys and inventors, while it is seriously harmful to the vast majority of people who want to do useful things with computers.
(via MJ Ray)

3 April 2006

Uwe Hermann: HOWTO: Disk encryption with dm-crypt / LUKS and Debian

A few weeks ago I published a small HOWTO for using loop-aes to encrypt your hard drive, usb thumb drive etc. As I have bought a new 300 GB external USB disk drive on Friday, I have tried something new this time: disk encryption using dm-crypt / LUKS. It has been suggested to me multiple times that dm-crypt is superior to loop-aes, however I didn't get a real reason. Yes, it doesn't require any kernel patches and is easier to setup. But has any serious cryptographer looked at it sharply, yet? Did it withhold his eye contact? Anyways, here's how I encrypted my 300 GB drive. I largely followed the guide at the EncryptedDeviceUsingLUKS wiki page...
  1. Make sure you run Linux 2.6.16 or better. Previous versions suffer from an implementation problem which affects the security of dm-crypt, see Linux Kernel dm-crypt Local Cryptographic Key Disclosure.
  2. Enable the following options in your kernel:
    • Code maturity level options
      • Prompt for development and/or incomplete code/drivers
    • Device Drivers -> Multi-device support (RAID and LVM)
      • Device mapper support
      • Crypt target support
    • Cryptographic options
      • AES cipher algorithms
  3. Overwrite the whole drive with random data in order to slow down attacks on the encryption. At the same time perform a bad blocks scan to make sure the hard drive is not going to die too soon:
    badblocks -c 10240 -s -w -t random -v /dev/sdb
    Replace /dev/sdb with whatever is correct on your system. If you're really paranoid, and are willing to wait one or two days, do this:
    dd if=/dev/urandom of=/dev/sdb
  4. Install the required packages:
    apt-get install cryptsetup hashalot
    The current cryptsetup in Debian already supports LUKS, which was not the case a while ago, if I'm not mistaken.
  5. Create one or more partitions on the drive:
    cfdisk /dev/sdb
    I created one big 300 GB partition, /dev/sdb1.
  6. Setup LUKS:
    cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb1
    Enter a good passphrase here. Don't spoil the whole endeavour by chosing a stupid or short passphrase.
  7. Open the encrypted device and assign it to a virtual /dev/mapper/samsung300gb device:
    cryptsetup luksOpen /dev/sdb1 samsung300gb
  8. Create a filesystem on the encrypted device:
    mkfs.ext3 -j -m 1 -O dir_index,filetype,sparse_super /dev/mapper/samsung300gb
    I used ext3 with some optimizations, see mke2fs(8).
  9. Mount the encrypted partition:
    mkdir /mnt/samsung300gb
    mount /dev/mapper/samsung300gb /mnt/samsung300gb
    That's it. Everything you write to /mnt/samsung300gb will be encrypted transparently.
  10. For unmounting use:
    umount /mnt/samsung300gb
    cryptsetup luksClose /dev/mapper/samsung300gb
After unmounting, nobody will be able to see your data without knowing the correct passphrase. Drive is stolen? No problem. Drive is broken, and you want to send it in for repair without the guys there poking in your data? No problem. You leave the USB drive at home and some jerk breaks into your house, steals your drive, rapes your wife, and kills your kids? No problem. Well, sort of, but you get the idea ;-) There's more things you can do, thanks to LUKS: have multiple passphrases which unlock your data, change/add/remove passphrases as you see fit, etc. Comments?

1 April 2006

Uwe Hermann: Linus Torvalds is a Debian developer now

Linus Torvalds is a Debian developer now. No, really.

30 March 2006

Uwe Hermann: TRUE and FALSE

Mhh, Andrew Morton cleans up the Linux kernel code...
We have no less than 65 implementations of TRUE and FALSE in the tree [...] The patch implements TRUE and FALSE in include/linux/kernel.h and removes all the private versions. The patch also kills off a few private implementations of NULL.
(via Stuart Yeates)

28 March 2006

Uwe Hermann: People should not be afraid of their governments. Governments should be afraid of their people.


Voil ! In                                                       view, a humble
 vaudevillian                                                  veteran, cast 
  vicariously as both                                         victim and
   villain by the                                            vicissitudes of Fate. This 
    visage, no mere                                         veneer of
     vanity, is a                                          vestige of the
      vox populi, now                                     vacant,
       vanished, as the once                             vital
        voice of the                                    verisimilitude now
         venerates what they once                      vilified. However, this 
          valorous                                    visitation of a bygone
           vexation stands                           vivified, and has
            vowed to                                vanquish these 
             venal and                             virulent                   Remember, remember the 5th of November
              vermin                              vanguarding
               vice and                          vouchsafing the
                violently                       vicious and
                 voracious                     violation of
                  volition. The only          verdict is 
                   vengeance; a              vendetta held as a 
                    votive, not in          vain, for the
                     value and             veracity of such shall one day
                      vindicate the       vigilant and the
                       virtuous.         Verily, this 
                        vichyssoise of  verbiage 
                         veers most    verbose
                          vis- -vis an introduction,
                           and so it is my
                            very good honor
                             to meet you
                              and you may
                               call me
                                  V.
Yes, I've seen V for Vendetta today. Very impressing movie, highly recommended! Makes you start to think...

27 March 2006

Uwe Hermann: Google Vim?

Google has hired Bram Moolenaar, author of vim. I bet the next beta-service Google announces will be "Google Vim" ;-) Or maybe not... (via digg.com)

Uwe Hermann: Technical Editor of a German Drupal book

Recently, I've had the pleasure to try out something new - reviewing a book before it is published. I have been acting as technical editor/reviewer (or whatever that's called in English) for the first German book about Drupal, written by Hagen Graf: "Drupal: Community-Websites entwickeln und verwalten mit dem Open Source-CMS". The book covers the Drupal 4.7-beta series and is a good introduction to Drupal and it's concepts. It's a nice book for people who want to learn more about creating websites with Drupal. More details in this post over at drupal.org. Reviewing books is a lot of fun - I might do that more often in future ;)

24 March 2006

Uwe Hermann: Linux 2.6.16 Upgrade [Update]

I have upgraded my kernel to Linux 2.6.16 today with some consequences: Update 2006-03-24: The loop-aes v3.1c patches apply just fine. I almost forgot to mention the NVIDIA changes...

22 March 2006

Uwe Hermann: Debian on a Sun Sparc Ultra 10 - Lessons Learned

I recently had trouble installing/running Debian on my Sun Sparc Ultra 10. Lessons learned:
  1. There seems to be a huge crowd of people out there who own SPARCs (lots more than I would have expected)! I received tons of helpful comments, thanks everyone!
  2. Booting into single-user mode with "boot -s" requires you to enter the root password. However, you can use "boot -b", an undocumented feature, to do the equivalent of "init=/bin/sh". It doesn't quite work for me, I get "Cannot write to /foo/bar" errors (and I'm then asked to provide the root password, very funny), but that might be an unrelated problem...
  3. The problems I experienced (screen turns black, nothing happens) had a simple reason: there are two video cards in the box, but I only had a monitor attached to one of them. As things go, the bootloader used exactly the one where the screen was attached, but as soon as Debian started to boot, it would use the other video card. Which had no monitor attached. Hence I would not see anything. The installer was waiting for me to choose a keyboard layout and I was waiting for the installer to do just something... I suck. Solution: attach second monitor. Smarter solution: use some boot parameters to choose the video card I want to use (todo).
  4. None of the Debian boot images come with cfdisk or just plain fdisk (I tested businesscard, netinst, and the full install CD). Why? Do you use some other tool on SPARCs? Which?
  5. I cannot seem to mount my disks. There's no /dev/hda* (should I create them with mknod?) and trying to mount /dev/ide/* fails with some strange errors. I guess I need to read more docs, both SPARC-related as well as udev-related.
In related news: Sun has released the design of the OpenSparc T1 under the terms of the GPL. Great news, thanks Sun!

21 March 2006

Uwe Hermann: Computer Forensics Wiki

For everyone who might be interested in computer forensics, data recovery (e.g. ext2/vfat undelete), file system internals, digital evidence, or just playing around with dd, The Sleuth Kit or similar tools: Checkout Simson Garfinkel's Forensics Wiki which gathers information on the above topics and many more. The content is licensed under the Creative Commons Attribution-ShareAlike 2.5 license. Contributors welcome!

19 March 2006

Wouter Verhelst: Ultra 10

Uwe is having issues with booting Debian GNU/Linux on a Sun Ultra10. Uwe, if your box has a Creator3D card, it might be that the Linux framebuffer is, by default, sending its output there. If you have no monitor, it stops when the screen turns black. There's a kernel boot option to switch the default framebuffer from the Creator3D to the ATI something-64 (can't remember the name; the atyfb framebuffer is what drives it), so that you'll see something again; apart from that, it should work. Interestingly, the 2.4 kernel works differently; if you boot with linux-2.4 instead of linux, you'll get a working installation.

Next.

Previous.