Techne

A practical knowledge base

User Tools

Site Tools


chimera-linux-installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

chimera-linux-installation [2026-02-23 18:57:24] – created hyperrealchimera-linux-installation [2026-03-14 20:21:07] (current) – removed hyperreal
Line 1: Line 1:
-===== Installation ===== 
- 
-==== Requirements ==== 
- 
-  * UEFI 
-  * LVM on LUKS with unencrypted ''%%/boot%%'' 
- 
-==== Disk partitioning ==== 
- 
-Use ''%%cfdisk%%'' to create the following partition layout. 
- 
-^Partition Type^Size           ^ 
-|EFI           |+600M          | 
-|boot          |+900M          | 
-|Linux         |Remaining space| 
- 
-Format the unencrypted partitions: 
- 
-<code bash> 
-mkfs.vfat /dev/nvme0n1p1 
-mkfs.ext4 /dev/nvme0n1p2 
-</code> 
- 
-Create LUKS on the remaining partition: 
- 
-<code bash> 
-cryptsetup luksFormat /dev/nvme0n1p3 
-cryptsetup luksOpen /dev/nvme0n1p3 crypt 
-</code> 
- 
-Create a LVM2 volume group for ''%%/dev/nvme0n1p3%%'', which is located at ''%%/dev/mapper/crypt%%'': 
- 
-<code bash> 
-vgcreate chimera /dev/mapper/crypt 
-</code> 
- 
-Create logical volumes in the volume group: 
- 
-<code bash> 
-lvcreate --name swap -L 8G chimera 
-lvcreate --name root -l 100%FREE chimera 
-</code> 
- 
-Create the filesystems for the logical volumes: 
- 
-<code bash> 
-mkfs.ext4 /dev/chimera/root 
-mkswap /dev/chimera/swap 
-</code> 
- 
-Create mount points for the chroot and mount the filesystems: 
- 
-<code bash> 
-mkdir /media/root 
-mount /dev/chimera/root /media/root 
-mkdir /media/root/boot 
-mount /dev/nvme0n1p2 /media/root/boot 
-mkdir /media/root/boot/efi 
-mount /dev/nvme0n1p1 /media/root/boot/efi 
-</code> 
- 
-==== Bootstrap ==== 
- 
-=== Chimera-bootstrap and chroot === 
- 
-<code bash> 
-chimera-bootstrap /media/root 
-chimera-chroot /media/root 
-</code> 
- 
-Update the system: 
- 
-<code bash> 
-apk update 
-apk upgrade --available 
-</code> 
- 
-Install kernel, cryptsetup, and lvm2 packages: 
- 
-<code bash> 
-apk add linux-stable cryptsetup-scripts lvm2 
-</code> 
- 
-=== Fstab === 
- 
-<code bash> 
-genfstab / >> /etc/fstab 
-</code> 
- 
-=== Crypttab === 
- 
-<code bash> 
-echo "crypt /dev/disk/by-uuid/$(blkid -s UUID -o value /dev/nvme0n1p3) none luks" > /etc/crypttab 
-</code> 
- 
-==== Initramfs refresh ==== 
- 
-<code bash> 
-update-initramfs -c -k all 
-</code> 
- 
-==== GRUB ==== 
- 
-<code bash> 
-apk add grub-x86_64-efi 
-grub-install --efi-directory=/boot/efi --target=x86_64-efi 
-</code> 
- 
-==== Post-installation ==== 
- 
-<code bash> 
-passwd root 
-apk add zsh bash 
-useradd -c "Jeffrey Serio" -m -s /usr/bin/zsh -U jas 
-passwd jas 
-</code> 
- 
-Add the following lines to ''%%/etc/doas.conf%%'': 
- 
-<code bash> 
-# Give jas access 
-permit nopass jas 
-</code> 
- 
-Set hostname, timezone, and hwclock: 
- 
-<code bash> 
-echo "falinesti" > /etc/hostname 
-ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime 
-echo localtime > /etc/hwclock 
-</code> 
- 
-==== Xorg and Xfce4 ==== 
- 
-<code bash> 
-apk add xserver-xorg xfce4 
-</code> 
- 
-Reboot the machine. 
- 
-==== Post-reboot ==== 
- 
-Login as ''%%jas%%''. Run ''%%startxfce4%%''. Connect to the internet via NetworkManager. 
- 
-Ensure wireplumber and pipewire-pulse are enabled: 
- 
-<code bash> 
-dinitctl enable wireplumber 
-dinitctl start wireplumber 
-dinitctl enable pipewire-pulse 
-dinitctl start pipewire-pulse 
-</code> 
- 
-Install CPU microcode: 
- 
-<code bash> 
-doas apk add ucode-intel 
-doas update-initramfs -c -k all 
-</code> 
- 
-==== Install other packages ==== 
- 
-<code bash> 
-doas apk add chrony 
-doas dinitctl enable chrony 
-doas apk add ... 
-</code> 
  
chimera-linux-installation.1771873044.txt.gz · Last modified: by hyperreal

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain