Encryption when reinstalling
Ubuntu Version 12.10, the ability to encrypt the System with a new installation. During the Installation you will be asked how you want to install the System.
- Here you can choose "erase disk and install Ubuntu". You can also select "encrypt The new Ubuntu Installation for security".
- Now select a security key that must be entered each time the system start. You can select the key and, if necessary, in a safe place keep.
- Your System is now installed encrypted.

Ubuntu's encryption
Encryption with an existing Ubuntu Installation
You already have an existing Ubuntu System, then there are two possibilities: Either you encrypt only the directory of the user, or encrypt the entire home directory. In both variants, you must first install the missing files:
- To do this, press [CTRL]+[ALT]+[T] to the Terminal and type the command "sudo apt-get install ecryptfs-utils".
- You will be asked for your password and in the next step, confirm that the appropriate package can be downloaded and installed.
- You want to encrypt only your private directory, type the command "ecryptfs-setup-private". Ubuntu now creates an encryption which consists of the user's password and the Passphrase.
- Each time you log on and off is now encrypted in your private directory automatically. Not read to be cautious with the Passphrase, otherwise you come in an emergency to your data!

Terminal under Ubuntu
Encryption of the home directory on Ubuntu
First, you need to create a new user. From this, you will act with Root privileges and encrypt your home directory.
- Now enter the command "sudo adduser user" and then "sudo adduser user sudo". This gives it root rights.
- Log out and navigate to the newly created user. The following to open the global Terminal with [CTRL]+[ALT]+[F1] and use the Login data from the new user.
- The graphical user interface with "/etc/init.d/lightdm stop" to be completed.
- Then, you encrypt the directory. This can be done with: "sudo ecryptfs-migrate-home -u "
- Now you just have to switch back to the graphical interface to start and then. This is done with "/etc/init.d/lightdm start" and pressing the key combination [CTRL]+[ALT]+[F7].
- Log in again in your proper user account before you shut down the System!
- Your home directory is now encrypted and you can delete the user "user" again. In practice, the tip of the "user account under Ubuntu delete - so's" we will explain this in more detail.
The Version used by Ubuntu 16.04, which you also find in our Download area you can find. You want to your Ubuntu Version to read, then we will show you in this practice tip as you work.
