{"id":53324,"date":"2021-09-03T10:00:00","date_gmt":"2021-09-03T14:00:00","guid":{"rendered":"https:\/\/jumpcloud.com\/?p=53324"},"modified":"2024-08-14T17:03:32","modified_gmt":"2024-08-14T21:03:32","slug":"how-to-encrypt-ubuntu-20-04-desktop-post-installation","status":"publish","type":"post","link":"https:\/\/jumpcloud.com\/blog\/how-to-encrypt-ubuntu-20-04-desktop-post-installation","title":{"rendered":"How to Encrypt Ubuntu 20.04 Desktop Post Installation"},"content":{"rendered":"\n

Jump to Tutorial<\/a><\/p>\n\n\n\n

In a separate tutorial, we highlighted the process to deploy full disk encryption on Ubuntu Desktop 20.04<\/a> with LUKS encryption during installation. In practice, this is the recommended method to protect an Ubuntu device since it encrypts all disk partitions including the swap space and system partitions, thus achieving full disk encryption<\/em>. <\/p>\n\n\n\n

If you already have Ubuntu installed without any encryption, then full disk encryption with LUKS may not be an option; however, you could still encrypt the home directory and swap space without requiring a complete reinstallation of the operating system.<\/p>\n\n\n\n

By default, the home directory is the directory where most of your personal files reside. This can include documents, spreadsheets, music, videos, images, and any other files you may download. Swap space is the space on the hard drive that is used as virtual memory. When a Linux system is running out of RAM, the inactive pages are pushed to the swap space; while access time is a tad slower than the RAM, in doing so the swap space supplements the device\u2019s RAM when it is almost exhausted.<\/p>\n\n\n\n

Ubuntu provides a command-line tool for encrypting both the home directory and the swap space. Why encrypt the swap space as well? As mentioned earlier, the OS periodically swaps out some memory pages to the swap area when the RAM is almost depleted. The information moved to the swap area may contain personal information such as username and passwords which would prove valuable to hackers. It is therefore essential to encrypt the swap space as well.<\/p>\n\n\n\n

In this guide, we will explore post-installation encryption on Ubuntu 20.04. We will cover the encryption of both the home directory and swap space which is key in safeguarding personal and professional user data.<\/p>\n\n\n\n

NOTE: Encryption is a process that could result in data loss on your machine. Please backup your \/home folder prior to performing any of the steps below. Additionally, if you are using JumpCloud to manage the users on this machine, you may experience an unpleasant login loop if you reboot the machine prior to the user logging in with a new password.<\/em><\/strong><\/p>\n\n\n\n

\n