commit 1729a877781e022c2ddb28c5126b901e40cc9215 parent 734074cf714f793bd80018c9539a7fd35966325c Author: Julian Piribauer <julian@Julians-Air.fritz.box> Date: Mon, 16 Feb 2026 19:37:34 +0100 First version of arch install Diffstat:
| A | arch_install.md | | | 76 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 76 insertions(+), 0 deletions(-)
diff --git a/arch_install.md b/arch_install.md @@ -0,0 +1,76 @@ +# Arch install + +Boot from USB stick + +timedatectl set-ntp true + +parted /dev/sdb + +(parted) select /dev/sdX +(parted) mklabel msdos +(parted) mkpart primary ext2 1MB 512MB +(parted) mkpart primary ext4 512MB 100% +(parted) set 1 boot on +quit + +cryptsetup luksFormat /dev/sdb2 +cryptsetup open /dev/sdb2 crypt +pvcreate /dev/mapper/crypt +vgcreate vg /dev/mapper/crypt + +lvcreate -L 60G vg -n root +lvcreate -l 100%FREE vg -n home + +mkfs.ext4 /dev/mapper/vg-root +mkfs.ext4 /dev/mapper/vg-home + +mount /dev/mapper/vg-root /mnt +mount -m /dev/mapper/vg-home /mnt/home +mount -m /dev/sdb1 /mnt/boot + +pacstrap /mnt base base-devel linux linux-firmware lvm2 vim man networkmanager grub + +genfstab -U /mnt >> /mnt/etc/fstab + +arch-chroot /mnt + +ln -s /usr/share/timezone/Europe/Zurich /etc/localtime + +hwclock --systohc + +vim /etc/locale.gen +and uncomment de_CH.UTF-8 + +locale-gen + +vim /etc.locale.conf +and enter LANG=en_US.UTF-8 + +echo T420 > /etc/hostname + +vim /etc/mkinitcpio.conf +and enter in Hooks=(base udev autodetect keyboard keymap consolefont modconf block lvm2 encrypt filesystem fsck) + +grub-install /dev/sdb + +vim /etc/default/grub +enter GRUB_CMDLINE_LINUX="cryptdevice=UUID=yourUUID:x root=/dev/mapper/vg-root" +where yourUUID is the device that is is opened, i.e., here, /dev/sdb2 +and uncomment GRUB_ENABLE_CRYPTODISK + +grub-mkconfig -o /boot/grub/grub.cfg +mkinitcpio -P + +passwd +and set a root password + +useradd -m -G wheel julian + +passwd julian +set your password + +optional: +visudo +and uncomment %wheel ALL=(ALL) ALL for sudo rights after password + +reboot and hope!