View previous topic :: View next topic |
Author |
Message |
Iced-Tux Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Southpark/South_Park_-_Timmy.jpg)
Joined: 14 Apr 2004 Posts: 183 Location: Germany, Cologne
|
Posted: Wed Aug 13, 2008 4:11 pm Post subject: Automagically mount LUKS encrypted USB device w/o GNOME |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Iced-Tux Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Southpark/South_Park_-_Timmy.jpg)
Joined: 14 Apr 2004 Posts: 183 Location: Germany, Cologne
|
Posted: Mon Aug 18, 2008 10:46 am Post subject: |
|
|
*BUMP*
Nobody knows or nobody cares ? _________________ !! The road to hell is full of good intentions !! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
RoundsToZero Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/20524394954466907c19d4d.jpg)
Joined: 17 Nov 2003 Posts: 478 Location: New York, NY
|
Posted: Mon Aug 18, 2008 4:28 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Iced-Tux Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Southpark/South_Park_-_Timmy.jpg)
Joined: 14 Apr 2004 Posts: 183 Location: Germany, Cologne
|
Posted: Tue Aug 19, 2008 12:56 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|