Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
TRENDING TODAY
Home > News > Linux > Ubuntu Tips and Tricks

May 10th, 2008, 11:09 GMT · By

Encrypted Ubuntu 8.04

SHARE:

Adjust text size:

Encrypted Ubuntu 8.04
Enlarge picture
Data encryption is one of the best methods to protect your sensitive files, especially if you own a laptop. Unfortunately, on the Ubuntu operating system, it's only available in the text mode installer. But that's why this guide is here, to help you install a fully encrypted Ubuntu OS on your computer.
The whole process is completely safe and it is recommended to be used by anyone out there who wants to protect his/her sensitive data. To break it down to you: No more living in fear! Your data will NOT be stolen anymore!

OK, OK, so what are the advantages of this encryption?

■ In order not to reveal data you may consider confidential, everything on that disk (including the SWAP space) will be fully encrypted;
■ Pre-boot authentication support. This way, you can set GDM (the GNOME login manager) to automatically log-in the default user.

Any disadvantages I should know of?

■ Except the fact that the whole installation process is done in text mode and it will take a little longer than the usual graphical installation, there are no other disadvantages!

Things needed:

Ubuntu 8.04 Alternate CD

Let's begin, shall we? If you haven't already, get your copy of Ubuntu 8.04 Alternate CD right now from the above link, burn it on a blank CD with your favorite CD/DVD burning application, reboot your computer and boot from this newly created CD. Select your preferred language for the installation process...

Review image


Then, the Ubuntu boot menu will appear, select the first option 'Install Ubuntu' and hit Enter...

Review image


Choose your native language and region...

Review image

Review image


On the following screen, choose 'Yes' if you want to let the installer auto-detect your keyboard layout or choose 'No' to select a default layout from the next screen(s) (e.g. for a US English keyboard, select 'No', hit Enter, then on the second screen select 'U.S. English', hit Enter and on the third screen select 'U.S. English' again and hit Enter to continue)...

Review image

Review image

Review image


It will then detect some of your hardware components and configure the network with DHCP...

Review image

Review image


Enter a desired hostname when asked...

Review image


Configure the time zone...

Review image


Disk partitioning will start. Select the third option: Guided - use entire disk and set up encrypted LVM...

Review image


Choose the hard disk where Ubuntu will be installed...

Review image


Note: Please provide an MASTER (not SLAVE) empty hard drive for this installation, because all the data will be erased after you confirm the changes and in order to prevent the overwriting of the MBR (boot sector) in case you have another operating system installed.

Confirm the changes...

Review image


You'll be asked to enter a passphrase (a strong password; the longer, the better)...

Review image


Confirm the passphrase...

Review image


Note: Please write down the passphrase in case it's too long and you can't remember it!

Now, the partitioning tool will format the hard drive and create the default partitioning scheme. Confirm the changes...

Review image


The hard drive partitioning process will start:

Review image


And the base system will be installed...

Review image


Create a user and set up a password for it...

Review image

Review image

Review image


You will be asked to enter a proxy for the package manager. If you use a proxy, please enter it now. If not, just hit Enter on this screen...

Review image


The rest of the software will be installed now...

Review image


Then the GRUB boot loader will be automatically configured and installed...

Review image


Set the system clock to UTC...

Review image


The installation is complete now, hit 'Continue' to eject the CD and reboot the system...

Review image


When the system starts, you will be asked to input the passphrase that you've setup during the system's installation...

Review image


The system will continue to boot...

Review image


That's it folks, your whole Ubuntu 8.04 is now fully encrypted, like you've always dreamed of!

Review image



64,279 hits · 22 comments
Link to this article · Print article · Send to friend

MUST-READ RELATED ARTICLES:


One-Click Software Installation for Linux Mint 4.0

Ubuntu Weekly Report: 27th April - 3rd May, 2008

Ubuntu 8.10 Release Schedule

One-Click Software Installation for Ubuntu 8.04

Installing Ubuntu 8.04 LTS

READER COMMENTS:


Comment #1 by: JosephK on 15 May 2008, 09:53 UTC reply to this comment

znx for the article, it's great :) clear and simple... does it work when there is 1 partition with winxp and other empty on 1 songle disk and if I want to install ubuntu on than empty partition. tnx


Comment #2 by: Steve on 17 May 2008, 12:37 UTC reply to this comment

Like the idea of this installation, but no Safe Graphics installation mode exists. After installation, I could not read anything.


Comment #3 by: Wei Xiang on 27 May 2008, 18:38 UTC reply to this comment

I have compaq presario v3804 with amd turion 64 x2 tl-60. I can't continue the installation after i choose 'install ubuntu' option at the boot menu. I have tried to type 'irqpoll pci=noacpi noapic nolapic acpi=off' at the boot option, but it didn't work. Help me, please...

Comment #3.1 by: helpful on 29 Jun 2008, 22:57 GMT

In order to install the command line option, on the boot option screen, press F4 and it will let you choose the command line option.


Comment #4 by: Danny on 05 Jun 2008, 16:26 UTC reply to this comment

When clicking on the link above to download Ubuntu, be sure to choose one with 'Alternate' in the title.

I mistakenly downloaded one without 'Alternate' in the file name and it did not give me the option to encrypt. Only options was language and time zone.


Comment #5 by: Tom on 14 Jul 2008, 16:41 UTC reply to this comment

What to do if I want software RAID (level 1) under the encryption?


Comment #6 by: Henry on 30 Jul 2008, 10:33 UTC reply to this comment

Could You please post all information needed to evaluate the security offered by the encryption which You have added to Ubuntu. This means keysize, algorythm used, which encryption software is it based on, where are the passphrases stored...etc. Thanks


Comment #7 by: nebux on 18 Aug 2008, 09:04 UTC reply to this comment

how do you make a /home partition like in debian before installing


Comment #8 by: Taras on 10 Sep 2008, 17:05 UTC reply to this comment

Lovely tutorial, i am just wondering how actually strong the encryption is ? does anyone know ?


Comment #9 by: mark on 12 Sep 2008, 19:59 UTC reply to this comment

Is there any way that you can use different partitions instead of the entire disk,
and can you use Kubuntu 8.10 any help would be appreciated.


Comment #10 by: Ted on 13 Sep 2008, 23:18 UTC reply to this comment

Encrypted systems can always break at a pace that depends upon encryption algorithm. Is there any way for the end user to decrypt his fs if he makes a mistake? How about the overall speed and system resources?


Comment #11 by: blah on 22 Sep 2008, 15:51 UTC reply to this comment

Hey, i also want to thank the author for this article, even if its not so new it is still very good for beginners.

I read some questions, not knowing how good the skills of all of you are i collected some intel, maybe not very useful, but hopefully it is:

The encryption of the ubuntu alternate cd should be pretty strong,
it uses LUKS (Linux Unified Key Setup), google for that to get some info,
Couldnt figure out though what strenght the key has,
but i guess it beats your sister, even if she's hacking your hd using gfx-cards ^^
If thats not enough security try OpenBSD, but then again...

Well, and yes, you can make partitions after installing/encrypting, but dont forget to do your backups of course!

If you want to encrypt your hd without installing ubuntu, you can do that by getting the packages and the fitting frontend, google for stuff,

There should be no way of getting back your system, once you forgot your passphrase.
The only place reachable is /boot afaik, so make double sure you dont lose it!

Speed is definetly no problem when you are using an average pc, i.e. 2x2ghz.
But dont expect your pc to work as a gamestation or renderfarm, it does slow down.
There should be some benchmarks about this, google again.

So i am using ubuntu for some time now, but i am am not really a hight-tech-geek user,
since i find it very hard to get some real answers to this encryption stuff, i also would really appreciate to get to know more about how stuff works with this alternate release, which - by the way - i am using, in encrypted mode! thanks ^^


Comment #12 by: Alexandre Vieira on 15 Dec 2008, 15:06 UTC reply to this comment

I Don´t know what Ubuntu CD to donwload. I386, AMD64, powerPC?
Could you help?


Comment #13 by: Marius Nestor on 15 Dec 2008, 15:31 UTC reply to this comment

For Alexandre Vieira: What processor do you have?


Comment #14 by: Alexandre Vieira on 07 Jan 2009, 15:43 UTC reply to this comment

I think my processor is a Intel Pentiun 1.73GHz in a laptop ( DELL Latitude - D510 ). I friend told me to use the Alternate I386 Ubuntu CD. Is it this?


Comment #15 by: Marius Nestor on 07 Jan 2009, 15:55 UTC reply to this comment

For Alexandre Vieira: This is the file...

http://releases.ubuntu.com/8.04.1/ubuntu-8.04.1-alternate-i386.iso


Comment #16 by: Alexandre Vieira on 26 Feb 2009, 16:06 UTC reply to this comment

Thank´s Marius Nestor.
The install was sucessfull.

Now other question: In this tutorial the encrypted Ubuntu was installed on the entired HD. I would like to use with windows ( dual boot ). I tried but on the Manual Partiotioning I can´t use the encrypting function.
Someone knows how to do this?


Comment #17 by: Mit on 31 Mar 2009, 13:40 UTC reply to this comment

Why the warning to provide a master drive and not a slave drive? Why does that matter?

Comment #17.1 by: Alexandre Vieira on 19 May 2009, 13:29 GMT

Thank you Mit.

But I have only a hard drive. I don´t have a master hd and another slave hd to install. I using a laptop. Because of this I want to use the Manual Partiotining. But before the partiotining I can´t to use the encrypting install of the Ubuntu.


Comment #18 by: dave on 31 Aug 2009, 03:48 UTC reply to this comment

...easy set-up for those now wanting to properly encrypt their disk ...first of all the installer does not dd /dev/urandom to your disk...THAT IS BAD! an attacker will know exacly what to attack...also if installed over an uncrypted installation any idiot can recover your old files....also what algorithim does the defualt use? mode of operation? hashing? keysize? if any one of those is insecure your whole setup is!
i recommend aes256, serpent256, or twofish256 for the algorithm, SHA512, or Whirlpool for hashing (SHA256 should be ok for another year or so) and the XTS mode of operation with a 512 bit keysize
do not trust automated crypto installers! contact the ubuntu developers and ask how it is set up .... they bypassed dding the drive to urandom....god only knows what else
.at the very least before doing this do these 2 commands from liveCD
1)a sudo shred -zfv /dev/sda (or/dev/disktoshred) that will zero the drive...i sujjest using it if your drive had data on it before the install..espically if it was uncrypted....1b) for more paranoid and security concious users sudo shred -zfv -n 7 /dev/sda that meets the DOD and NSA standard for securely wiping data. The final pass of the shred will be zeros masking shredding.
2) sudo dd if=/dev/urandom of=/dev/sda -- writes random data to your hard disk... if you just want your wife not to see your porn, bypass step 1


Comment #19 by: John on 18 Oct 2009, 21:54 UTC reply to this comment

Great guide - better than anything on the Ubuntu site.

Many thanks!


Comment #20 by: David on 04 Jun 2010, 12:15 UTC reply to this comment

It seems to me that a potential disadvantage is disaster recovery is more difficult. Data loss is easier.

Copyright © 2001-2013 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM