The Best OS: Install Gentoo Linux on an encrypted btrfs root with Sway WM.



In this video we install Gentoo, a source-based Linux operating system from installation media we created in a previous video. Our Gentoo system is a two-partition system with an encrypted BTRFS root, high levels of binary optimization, and a minimal package set, plus an optional Wayland-based tiling window manager: Sway. Our Sway environment includes Waybar, Foot, CMUS, MPV, IMV, Firefox, Nano, Ranger and nmtui.

This is an updated version of the old guide which rolls Gentoo and Sway installation into a single video. The key differences from the (now unlisted) originals are:
1. Installing and enabling sysklogd for logging, chronyd for time synchronization, and chronie for scheduled tasks.
2. Launching greetd via the `inittab` file, rather than a (dodgy) service.
3. Installing imv to view images from the terminal.

*Installation Media Creation:*
From a Linux environment:
From a Windows environment:

*Chapters*
00:00 Introduction
01:05 Installation Media Creation
01:25 Booting Into the Installer
01:57 Initializing the Installer
02:15 Partitioning Your Disk
04:14 Encrypting the Root
04:55 Creating & Mounting Filesystems
07:39 Connecting to WiFi
08:42 Downloading the Stage3
10:01 Verifying & Unpacking the Stage3
11:30 Localizing Your System
13:18 Creating your FS Table
14:35 Configuring Grub
15:44 Configuring Portage
25:41 Looking up Packages & USE Flags
27:08 Changing Root
28:32 Applying Localization Configuration
29:12 Setting CPU Flags
29:59 Recompiling Everything & Troubleshooting Portage
31:39 Emerging Rust
32:15 Emerging Core Packages
32:29 Configuring Doas
33:03 Configuring Greetd
34:07 Configuring Your Services
35:23 Creating & Managing Users
35:58 Compiling your Kernel
37:50 Installing the Grub Bootloader
38:15 Booting into Gentoo
38:40 Locking Root & Running NMTUI
38:57 Fixing the Logging Service
39:52 Installing Sway
42:40 Necessary Sway Config Changes
43:27 Emerging Firefox
43:58 Demoing Sway
49:50 Waybar Config
50:14 Foot Config
50:32 Outro

*Installed Packages:*

*Gentoo Base System:*
– sys-kernel/gentoo-sources (Linux Kernel source code)
– sys-kernel/genkernel (Linux Kernel compiler)
– sys-kernel/installkernel (Linux Kernel installer)
– sys-kernel/linux-firmware (Kernel firmware/drivers)
– sys-fs/cryptsetup (Disk encryption)
– sys-fs/btrfs-progs (BetterFS filesystem utilities)
– sys-boot/grub (Bootloader)
– sys-apps/sysvinit (Initialization System)
– sys-block/parted (Disk manager)
– sys-auth/seatd (Session provision)
– sys-apps/dbus (Session extension)
– sys-apps/pciutils (Hardware device utilities)
– app-admin/sysklogd (System logger)
– sys-process/cronie (Scheduled tasks)
– net-misc/chrony (Time synchronization)
– net-misc/networkmanager (Internet & WiFi management)
– app-admin/doas (Privilege escalation; ‘run as admin’)
– app-shells/bash-completion (Terminal autocompletion extensions)
– dev-vcs/git (Source code version control system)
– gui-libs/greetd (Login screen manager)
– gui-apps/tuigreet (Login screen)
– app-editors/nano (Text editor)
– app-portage/cpuid2cpuflags (CPU flag utility for Portage)

*Sway Window Environment:*
– sway (Tiling window manager)
– waybar (Status bar)
– fontawesome (Icon font for status bar)
– swaylock (Lock screen)
– swayidle (Inactivity timeouts)
– swaybg (Background configuration)
– suspend (Sleep)
– foot (Graphical terminal)
– ranger (File explorer)
– cmus (Music player)
– htop (Task manager)
– grim (Screenshot)
– slurp (Screenshot regions)
– wl-clipboard (Screenshot to clipboard)
– alsa-utils (Sound device manager)
– imv (Terminal-launched image viewer)
– mpv (Terminal-launched video player)
– pipewire (System sound provision)
– wireplumber (Pipewire controls)
– bemenu (App launcher)
– firefox (Graphical web browser)

[ad_2]

source

Exit mobile version