[VIDEO] Arch Linux with full disk encryption in (about) 15 minutes August 18, 2016 on Drew DeVault's blog

After my blog post emphasizing the importance of taking control of your privacy, I’ve decided to make a few more posts going over detailed instructions on how to actually do so. Today we have a video that goes over the process of installing Arch Linux with full disk encryption.

This is my first go at publishing videos on my blog, so please provide some feedback in the comments of this article. I’d prefer to use my blog instead of YouTube for publishing technical videos, since it’s all open source, ad-free, and DRM-free. Let me know if you’d like to see more content like this on my blog and which topics you’d like covered - I intend to at least release another video going over this process for Ubuntu as well.

Download video (WEBM)

The video goes into detail on each of these steps, but here’s the high level overview of how to do this. Always check the latest version of the Install Guide and the dm-crypt page on the Arch Wiki for the latest procedure.

  1. Partition your disks with gdisk and be sure to set aside a partition for /boot
  2. Create a filesystem on /boot
  3. (optional) Securely erase all of the existing data on your disks with dd if=/dev/zero of=/dev/sdXY bs=4096 - note: this is a correction from the command mentioned in the video
  4. Set up encryption for your encrypted partitions with cryptsetup luksFormat /dev/sdXX
  5. Open the encrypted volumes with cryptsetup open /dev/sdXX [name]
  6. Create filesystems on /dev/mapper/[names]
  7. Mount all of the filesystems on /mnt
  8. Perform the base install with pacstrap /mnt base [extra packages...]
  9. genfstab -p /mnt >> /mnt/etc/fstab
  10. arch-chroot /mnt /usr/bin/bash
  11. ln -s /usr/share/zoneinfo/[region]/[zone] /etc/localtime
  12. hwclock --systohc --utc
  13. Edit /etc/locale.gen to your liking and run locale-gen
  14. locale > /etc/locale.conf - note this only works for en_US users, adjust if necessary
  15. Edit /etc/hostname to your liking
  16. Reconfigure the network
  17. Edit /etc/mkinitcpio.conf and ensure that the keyboard and encrypt hooks run before the filesystems hook
  18. mkinitcpio -p linux
  19. Set the root password with passwd
  20. Configure /etc/crypttab with any non-root encrypted disks you need. You can get partition UUIDs with ls -l /dev/disk/by-partuuid
  21. Configure your kernel command line to include cryptdevice=PARTUUID=[...]:[name] root=/dev/mapper/[name] rw
  22. Install your bootloader and reboot!

Have a comment on one of my posts? Start a discussion in my public inbox by sending an email to ~sircmpwn/public-inbox@lists.sr.ht [mailing list etiquette]

Articles from blogs I read Generated by openring

Status update, August 2020

Hi! Regardless of the intense heat I’ve been exposed to this last month, I’ve still been able to get some stuff done (although having to move out to another room which isn’t right under the roof). I’ve worked a lot on IRC-related projects. I’ve added a znc-i…

via emersion 2020-08-19 00:00:00 +0200 +0200

What's cooking on Sourcehut? August 2020

Another month passes and we find ourselves writing (or reading) this status update on a quiet, rainy Sunday morning. Today our userbase numbers 16,683 members strong, up 580 from last month. Please extend a kind welcome to our new colleagues! Thanks for read…

via Blogs on Sourcehut 2020-08-16 00:00:00 +0000 +0000

Go 1.15 is released

Today the Go team is very happy to announce the release of Go 1.15. You can get it from the download page. Some of the highlights include: Substantial improvements to the Go linker Improved allocation for small objects at high core coun…

via The Go Programming Language Blog 2020-08-11 11:00:00 +0000 +0000

North Pacific Logbook

The passage from Japan (Shimoda) to Canada (Victoria) took 51 days, and it was the hardest thing we've ever done. We decided to keep a logbook, to better remember it and so it can help others who wish to make this trip.Continue Reading

via Hundred Rabbits 2020-07-31 00:00:00 +0000 GMT