4
4
I'm interested how you can setup disk-encryption for Ubuntu, with as few hassle as possible.
4
4
I'm interested how you can setup disk-encryption for Ubuntu, with as few hassle as possible.
6
I just did this last week. It is really easy if you're not dual booting or anything. I went with all default settings, and my hibernate/suspend work properly with my LUKS
If you don't mind reinstalling the OS, then it's super easy from the alternate install CD. You'll have to download the alternate install CD for whatever architecture (i386 or amd64, e.g. 32 bit or 64 bit) you want to install.
BEGIN ASIDE
If you haven't already, make sure you do so because you're about to wipe your hard drive completely. Obviously you will want to back up your home folder and all other important data! And if you want a handy list of programs you had installed, you can run the command
dpkg --get-selections
If you want to output it to a file in your home folder, you can run
dpkg --get-selections > ~/filename
Where filename is the name of your text file. I usually call it "installed packages 20090901" or something like that. Then make sure you include that in your backup. When you restore it'll be easy to reinstall all your previously installed packages, especially if you're not changing versions. Use this command:
dpkg --set-selections < ~/filename
END ASIDE
Anyway, here's an easy method to get full disk encryption with LUKS using the alternate install CD:
I have been intentionally vague with this answer because I think it's very important to understand exactly what you're aiming for, why, and how you're going to accomplish your goal if you're going to be doing full disk encryption. If you need something different (keyfile instead of passphrase, dual boot, customized partitions, etc.), we can discuss that, too.
Yeah, that sounds fine, I will try it out. Can I not use entire disk, but only home-partition for encryption? Anyways, if this option isn't existent, I'm fine with the encryption of the full disk. – Mnementh – 2009-09-01T11:04:02.577
You can - it's a different option on the alternate install CD. I think it comes up as an option immediately after you set up your partitions. – Shane – 2009-09-01T12:36:38.003
Just an update: I was setting up a new laptop and wanted to install Ubuntu with full disk encryption using LUKS. I found the detailed tutorial here very helpful. The tutorial is for 10.10 (lucid) but it is exactly the same for 11.04 (maverick) and 11.10 (natty) and thus still valid.
– snap – 2011-09-22T15:10:56.1671
Ubuntu offers something potentially more convenient than home-partition encryption: per-user home directory encryption. You have the option during a normal install to set up an encrypted home directory for each user, which is decrypted upon login.
0
If you don't need a full-blown entire-disk encryption and even a per-user encryption would be too much, Cryptkeeper allows you to encrypt stuff on per-directory basis. It is very easy to setup at least in Ubuntu 10.04. Just install the Cryptkeeper package (make sure you have Universe repository enabled).
Then you just launch Applications -> System Tools -> Cryptkeeper and click the keys icon which just appeared in your task bar. There you can create new encrypted folders just by clicking with your mouse. Mounting your encrypted folder happens just by again clicking on the keys icon, choosing the folder you want and entering your password.
After you have finished your work, porn surfing or whatever you want to encrypt for, you can just as easily unmount your encrypted folder.
there are a lot of options. what are your goals in setting this up? – quack quixote – 2009-10-04T20:31:40.613
Have a look at Full disk encryption with Ubuntu (9.04 Jaunty or newer), LVM and LUKS.
– None – 2010-08-30T05:24:53.070