I will be traveling so I decided to encrypt my home directory just in case my laptop is lost or stolen.
- Log in as target user
- Install required packages
- sudo apt-get install ecryptfs-utils
- Create a temporary admin user
- Log out target user
- Log in as temporary admin user
- Encrypt target user home directory
- sudo ecryptfs-migrate-home -u target_user
- Encrypt swap partition
- sudo ecryptfs-setup-swap
- Log out temporary admin user
- Log in as target user
- Record encryption passphrase
- ecryptfs-unwrap-passphrase
- Reboot then log in as target user. Check if everything is working.
- Clean up by removing the backup folder and temporary admin user.