Re: [gentoo-user] crypted key for dm-crypt

2005-08-07 Thread Christian Hoenig
Hi, 

 Well, I have dm-crypt configured and running. It encrypts tha swap, a
 loopback for /tmp (with a random key), all this using the
 standard /etc/conf.d/cryptfs.
 Now I'd like to encrypt my home with a key instad of a passphrase, place
 that key on my pen drive after etcrypting it with a key, my questions are:
 - How do I generate the key ?

I have restricted my key to printable letters. 
So an easy way to generate a key without uuencode or stuff is something like 
this:
cat /dev/random |sed -e s/[^a-zA-Z0-9]//g


 - How do I en/decrypt it ?

Encrypt your just generated key? I thought you wanted to get rid of 
passphrases. 
You can use the key like it is to en/decrypt your data by just putting it on 
you pendrive and doing stuff with cryptsetup:

cryptsetup -d KEY-FILENAME ...

HTH a little bit.

take care, have fun
/christian


pgp2I1tuWFepb.pgp
Description: PGP signature


Re: [gentoo-user] Uncluttering my world file

2005-06-08 Thread Christian Hoenig
Hi,

On Wednesday 08 June 2005 17:34, Kevin O'Gorman wrote:
 My world file seems remarkably long to me at 129 lines.
 I know I've added some stuff, but many of these entries
 ring no bells in my memory.

 I think a big part of what has happened is that in various
 throes of dealing with portage, I've emerged particular
 things without the --oneshot flag -- I had this system for
 quite a while before I even knew about that flag.

 So: is there an easy way to find out if a package can
 be removed from world because it is already in there
 as a dependency or because of the profile?  I'd like
 to pare world down to just the things that make a
 difference.

Yes, the tool available in [1] does this job pretty good!

Check the -sw switch for that.



take care, have fun
/christian

[1] http://forums.gentoo.org/viewtopic-t-260866-highlight-unclepine.html







pgpsahQJZE2Ui.pgp
Description: PGP signature