Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automagically mount LUKS encrypted USB device w/o GNOME
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Iced-Tux
Apprentice
Apprentice


Joined: 14 Apr 2004
Posts: 183
Location: Germany, Cologne

PostPosted: Wed Aug 13, 2008 4:11 pm    Post subject: Automagically mount LUKS encrypted USB device w/o GNOME Reply with quote

Hi there,

when I put in my LUKS encrypted USB device, gnome automagically pops up a password dialogue.
I would like to have this very nifty feature on my other boxes, which DO NOT RUN GNOME ;)
On these boxes I am running a very lightweighted desktop with openbox and ivman.

My question is: Can I simulate this behaviour without having to install a hell load of gnome dependencies?

Thx in advance

iced-tux
_________________
!! The road to hell is full of good intentions !!
Back to top
View user's profile Send private message
Iced-Tux
Apprentice
Apprentice


Joined: 14 Apr 2004
Posts: 183
Location: Germany, Cologne

PostPosted: Mon Aug 18, 2008 10:46 am    Post subject: Reply with quote

*BUMP*
Nobody knows or nobody cares ;)?
_________________
!! The road to hell is full of good intentions !!
Back to top
View user's profile Send private message
RoundsToZero
Guru
Guru


Joined: 17 Nov 2003
Posts: 478
Location: New York, NY

PostPosted: Mon Aug 18, 2008 4:28 pm    Post subject: Reply with quote

You can try inotify-tools which is a simple way to monitor for filesystem activity. Basically you monitor for /dev/sda or whatever your USB device is to be created. Or if you want to be fancy you wait for /dev/disk/by-id/your-drive's-id or whatever. You just have a script run in the background waiting for this device to show up. When it does you can mount it and have your script call cryptsetup luksOpen. Then your script waits for the drive to be removed (the device file to be deleted by udev) then it loops around and starts waiting for insert again.

Although it seems like this would be easier if you did it through ivman based on my understanding of what ivman does, I'm not sure how to do it with ivman. The inotify thing is what I used to unlock my root partition on boot, when nothing else is running yet.
Back to top
View user's profile Send private message
Iced-Tux
Apprentice
Apprentice


Joined: 14 Apr 2004
Posts: 183
Location: Germany, Cologne

PostPosted: Tue Aug 19, 2008 12:56 pm    Post subject: Reply with quote

Thx for your reminder to look at ivamn again ;)

I'll let you know if I come up with somthing.

Thx again.

iced-tux
_________________
!! The road to hell is full of good intentions !!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum