Skip to content

Instantly share code, notes, and snippets.

@tjcim
tjcim / gist:f275d5d85e6c5dda875032a732f164ca
Last active August 22, 2020 17:57
2020 Archlinux on Intel NUC10i7 - 2 Harddrives - UEFI/GPT - LVM on LUKS
###########################################
We will use GPT and grub as the bootloader.
# First Hard drive (nvme0n1)
The ESP will reside in the first partition mounted to /efi.
The kernel and initramfs will be the second partition and will be mounted to /boot
The third partition on nvme0n1 will be encrypted with Luks with a password.
The encrypted partition on the first drive will always require a password to be manually entered on boot.
# Second Hard drive (sda)
@tjcim
tjcim / gist:86e553532b37d78ad76505ac68fe5ad5
Last active October 13, 2019 04:16
Archlinux - GPT and Grub2 on one disk
# Download and verify iso
gpg --verify archlinux-2017.01.01-dual.iso.sig
# Burn iso to USB
dd if=archlinux-*.iso of=/dev/sdX bs=16M && sync
# Boot usb image and set root passwd (this is a temp password used for install only)
passwd
# Ensure time is correct
@tjcim
tjcim / gist:33df05f834a453beac1931d3c6574af9
Created November 17, 2017 21:22
dd overwrite with ETA and Progress
# Shows progress indicator and ETA for dd
sudo dd if=/dev/zero | pv -s 4T | sudo dd iflag=fullblock of=/dev/sdc oflag=direct bs=4096
@tjcim
tjcim / Arch Linux - UEFI 2 HDDs Install
Last active December 9, 2017 06:27 — forked from HardenedArray/Efficient Encrypted UEFI-Booting Arch Installation
How I install a new computer for a workstation
# Download and verify iso
gpg --verify archlinux-2017.01.01-dual.iso.sig
# Burn iso to USB
dd if=archlinux-*.iso of=/dev/sdX bs=16M && sync
# Boot usb image and set root passwd (this is a temp password used for install only)
passwd
# Ensure time is correct