How to Install Linux From Scratch

tony October 30, 2025
Video Thumbnail
tony Logo

tony

@tony-btw

About

I create Linux Tutorials for you to enjoy.

Video Description

This is a slow and painful guide on how to install Linux from Scratch (10k subscriber special) *LFS Book:* https://www.linuxfromscratch.org/lfs/view/stable/ *Written Article:* https://www.tonybtw.com/tutorial/linux-from-scratch/ *Discord:* https://discord.gg/5w54SuE26V *Music:* https://www.youtube.com/watch?v=RPrgNFnbAhQ https://www.youtube.com/watch?v=Jy7FMagiTFk Chapters 0:00 Intro 1:04 Load up ISO / Enable SSH 3:15 Chapter 2: Host Requirements 4:40 Partition Disks + Create Filesystems 8:00 Chapter 3: Packages 9:30 Prepare wget-list and md5sums 11:40 Confirm Packages with md5sum check 13:49 Chapter 4: Final Preparations 15:00 Create LFS Filesystem (FHS Compliant) 16:50 Create LFS User/Group 21:20 Chapter 5: Compiling Cross-Toolchain 24:58 GCC Pass 1 (3.8 SBU's) 28:27 Linux API Headers 29:26 Glibc Pass 1 + Libstdc++ 34:40 Chapter 6: Cross Compiling Temporary Tools 35:49 M4 Micro Processor, Ncurses, Bash 40:00 Coreutils (GNU), Diffutils 43:10 File, Findutils, Gawk 46:00 Grep, Gzip, Make, Patch, Sed 50:12 Tar, Xz, Binutils Pass 2, Gcc Pass 2 54:48 Chapter 7: Chroot + Additional Tools 1:00:22 Gettext, Bison, Perl, Python3 1:03:14 Python3, Texinfo, Util-linux 1:07:07 Chapter 8: Building LFS System 1:09:12 Man Pages, Iana-Etc, GlibC pass 2 1:18:30 Zlib, Bzip, Xz, Lz4, Zstd 1:25:07 File, Readline, M4 (3/3), Bc, Flex 1:30:17 Tcl, Expect, DejaGNU, Pkgconf, Binutils (3/3) 1:38:29 GMP, MPFR, MPC, Attr, Acl, Libcap 1:45:20 Libxcrypt, Shadow, GCC (3/3) 1:55:12 Ncurses, Sed, Psmisc, Gettext, Bison, Grep 2:02:11 Bash, Libtool, GDBM, Gperf, Expat, Inetutils 2:07:33 Less, Perl, XML, Intltool, Autoconf, Automake 2:14:40 OpenSSL, LibElf, Libffi, Python, Flit, Packaging 2:22:53 Wheel, SetupTools, Ninja, Meson, Kmod, Coreutils 2:28:21 Diffutils, Gawk, Findutils, Groff, Grub (EFI) 2:40:48 Gzip, IPRoute, Kbd, Libpipeline, Make, Patch 2:45:33 Tar, Texinfo, Vim, MarkupSafe, Jinja2, Udev 2:53:37 ManDB, Procps, Util, Udev, Syslog, Sysvinit 3:01:34 Chapter 9: System Configuration 3:03:48 General Network Config 3:07:13 Configuring SysVinit / Locales 3:10:10 Chapter 10: Making LFS Bootable (Fstab) 3:12:28 Configuring Generic Kernel 3:20:45 Configuring and Installing Grub 3:25:28 First Reboot and Obligatory Neofetch #linux #lfs

Essential Linux Setup Gear

AI-recommended products based on this video

Loading...
MeLE Quieter DL Mini PC Windows 11 Home, N100 4GB 128GB, 2.5G Dual LAN,IoT Industrial Desktop Computer Support Windows 10 11 Linux Ubuntu Debian 4K Triple Display, Dual HDMI, All-in-One USB-C

MeLE Quieter DL Mini PC Windows 11 Home, N100 4GB 128GB, 2.5G Dual LAN,IoT Industrial Desktop Computer Support Windows 10 11 Linux Ubuntu Debian 4K Triple Display, Dual HDMI, All-in-One USB-C

(170)
$239.99
PrimeFREE delivery Sat, Jun 14
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
BrosTrend Linux WiFi Adapter for Ubuntu, Mint, Debian, Lubuntu, Xubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, 1200Mbps, 5GHz/2.4GHz, Long Range 2 X 5dBi External Antennas, USB3.0

BrosTrend Linux WiFi Adapter for Ubuntu, Mint, Debian, Lubuntu, Xubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, 1200Mbps, 5GHz/2.4GHz, Long Range 2 X 5dBi External Antennas, USB3.0

(1,644)
$46.99
FREE delivery Sun, Jun 22
Loading...
BrosTrend 650Mbps Linux WiFi Adapter for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Xubuntu, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10/8/7/XP 5G/2.4G

BrosTrend 650Mbps Linux WiFi Adapter for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Xubuntu, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10/8/7/XP 5G/2.4G

(1,832)
$29.99
FREE delivery Sun, Jun 22 on your first order
Loading...
BrosTrend Linux USB WiFi Adapter 1200Mbps Supports Ubuntu, Mint, Debian, Kubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, USB3.0 Wireless Dual Band Wi-Fi 5GHz/867Mbps + 2.4GHz/300Mbps

BrosTrend Linux USB WiFi Adapter 1200Mbps Supports Ubuntu, Mint, Debian, Kubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, USB3.0 Wireless Dual Band Wi-Fi 5GHz/867Mbps + 2.4GHz/300Mbps

(1,977)
$37.99
FREE delivery Sun, Jun 22
Loading...
SAMSUNG 870 EVO SATA SSD 500GB 2.5” Internal Solid State Drive, Upgrade PC or Laptop Memory and Storage for IT Pros, Creators, Everyday Users, MZ-77E500B/AM [Canada Version]

SAMSUNG 870 EVO SATA SSD 500GB 2.5” Internal Solid State Drive, Upgrade PC or Laptop Memory and Storage for IT Pros, Creators, Everyday Users, MZ-77E500B/AM [Canada Version]

(41,678)
$74.97
FREE delivery Wed, Jun 18
400+ bought in past month
Loading...
SAMSUNG 870 EVO SATA III SSD 4TB 2.5” Internal Solid State Drive, Upgrade PC or Laptop Memory and Storage for IT Pros, Creators, Everyday Users, MZ-77E4T0B/AM [Canada Version]

SAMSUNG 870 EVO SATA III SSD 4TB 2.5” Internal Solid State Drive, Upgrade PC or Laptop Memory and Storage for IT Pros, Creators, Everyday Users, MZ-77E4T0B/AM [Canada Version]

(41,656)
$399.97
FREE delivery Tue, Jun 17
100+ bought in past month
Loading...
Samsung 990 EVO Plus - 4TB PCIe Gen4. X4, Gen5. X2 NVMe 2.0 - M.2 Internal SSD, Speed Up to 7,250 MBs, Upgrade Storage for PC-Laptops, HMB Technology and Intelligent Turbowrite (MZ-V9S4T0B/AM)

Samsung 990 EVO Plus - 4TB PCIe Gen4. X4, Gen5. X2 NVMe 2.0 - M.2 Internal SSD, Speed Up to 7,250 MBs, Upgrade Storage for PC-Laptops, HMB Technology and Intelligent Turbowrite (MZ-V9S4T0B/AM)

(1,811)
$359.99$341.99
FREE delivery Tue, Jun 17
100+ bought in past month
Loading...
SAMSUNG EVO Select Micro SD-Memory-Card + Adapter, 128GB microSDXC 160MB/s Full HD & 4K UHD, UHS-I, U3, A2, V30, for Android Smartphones, Tablets, Nintendo-Switch (MB-ME128SA/AM) [Canada Version]

SAMSUNG EVO Select Micro SD-Memory-Card + Adapter, 128GB microSDXC 160MB/s Full HD & 4K UHD, UHS-I, U3, A2, V30, for Android Smartphones, Tablets, Nintendo-Switch (MB-ME128SA/AM) [Canada Version]

(12,472)
$19.99$18.59
FREE delivery Sun, Aug 10 on your first order
400+ bought in past month
Loading...
Acer Nitro V 15.6" FHD 165Hz Gaming Laptop, Intel i5-13420H, 16GB RAM, 512GB SSD, NVIDIA GeForce RTX 5050 8GB GDDR7, Copilot, Backlit Keyboard, Wi-Fi 6, Win 11, Black, 1TB Docking Station Set

Acer Nitro V 15.6" FHD 165Hz Gaming Laptop, Intel i5-13420H, 16GB RAM, 512GB SSD, NVIDIA GeForce RTX 5050 8GB GDDR7, Copilot, Backlit Keyboard, Wi-Fi 6, Win 11, Black, 1TB Docking Station Set

(1,689)
$1,349.00
FREE delivery Feb 24 - Mar 5Only 7 left in stock.
Loading...
DreamQuest Mini PC Win11 Pro,Intel N95 (Up to 3.4GHz) 16GB RAM 512GB SSD, Mini Desktop Computers with 2xType-C(10GB/s) /4xUSB 3.2/Dual LAN/4K Dual HDMI Display/WiFi 5+BT5 for Home Office Use

DreamQuest Mini PC Win11 Pro,Intel N95 (Up to 3.4GHz) 16GB RAM 512GB SSD, Mini Desktop Computers with 2xType-C(10GB/s) /4xUSB 3.2/Dual LAN/4K Dual HDMI Display/WiFi 5+BT5 for Home Office Use

(173)
$269.99
FREE delivery Sat, Jan 3
Loading...
KAMRUI Hyper H2 Mini PC, i5-14450HX Processor Mini Gaming PC (Up to 4.8GHz, 10C/16T), 16GB RAM 512GB SSD Mini Desktop Computers, Triple 4K Display 6*USB3.2, USB-C, HDMI, DP, WiFi6, BT5.2, Office Home Global Recycled Standard

KAMRUI Hyper H2 Mini PC, i5-14450HX Processor Mini Gaming PC (Up to 4.8GHz, 10C/16T), 16GB RAM 512GB SSD Mini Desktop Computers, Triple 4K Display 6*USB3.2, USB-C, HDMI, DP, WiFi6, BT5.2, Office Home Global Recycled Standard

(210)
$602.65
Prime
Loading...
Mini PC, Intel Twin Lake N150 (Beat N100/N95, up to 3.6GHz), 16GB RAM 512GB SSD Dual LAN, Mini Desktop Computers Windows 11, 4K Triple Display, Type-C/WiFi 6/BT5.2/Micro PC for Home Office Business

Mini PC, Intel Twin Lake N150 (Beat N100/N95, up to 3.6GHz), 16GB RAM 512GB SSD Dual LAN, Mini Desktop Computers Windows 11, 4K Triple Display, Type-C/WiFi 6/BT5.2/Micro PC for Home Office Business

(162)
$339.00
FREE delivery Sat, Jan 3
Loading...
Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

(48,912)
$15.99$12.79
FREE delivery Wed, Feb 18 on your first order
1K+ bought in past month
Loading...
Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

(35,879)
$49.99$44.99
FREE delivery Mon, Jan 26
1K+ bought in past month
Loading...
Logitech K400 Plus Wireless Touch TV Keyboard With Easy Media Control and Built-in Touchpad, HTPC Keyboard for PC-connected TV, Windows, Android, Chrome OS, Laptop, Tablet - Black
Best Seller

Logitech K400 Plus Wireless Touch TV Keyboard With Easy Media Control and Built-in Touchpad, HTPC Keyboard for PC-connected TV, Windows, Android, Chrome OS, Laptop, Tablet - Black

(38,516)
$39.98$35.98
FREE delivery Thu, Sep 4
500+ bought in past month
Loading...
Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black
Best Seller

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

(17,871)
$27.98$22.38
FREE delivery Tue, Oct 14 on your first order
500+ bought in past month
Loading...
[Apple MFi Certified] Lightning to HDMI Adapter for iPhone, 1080P Digital AV Adapter iPhone HDMI Adapter Video HDMI Sync Screen Connector Compatible with iPhone 14/13/12/X/8 NO Need Power Supply

[Apple MFi Certified] Lightning to HDMI Adapter for iPhone, 1080P Digital AV Adapter iPhone HDMI Adapter Video HDMI Sync Screen Connector Compatible with iPhone 14/13/12/X/8 NO Need Power Supply

(431)
$15.29
FREE delivery Fri, Oct 3 on your first order
500+ bought in past month
Loading...
Mcbazel Wii to HDMI Converter Output Video Audio Adapter for Wii (NTSC 480I, 480P, PAL 576I) -Support All Display Modes
Best Seller

Mcbazel Wii to HDMI Converter Output Video Audio Adapter for Wii (NTSC 480I, 480P, PAL 576I) -Support All Display Modes

(1,399)
$7.99
FREE delivery Tue, Jun 17 on your first order
500+ bought in past month
Loading...
ABLEWE RCA to HDMI,AV to HDMI Converter, 1080P Mini RCA Composite CVBS Video Audio Converter Adapter Supporting PAL/NTSC for TV/PC/ PS3/ STB/Xbox VHS/VCR/Blue-Ray DVD Players

ABLEWE RCA to HDMI,AV to HDMI Converter, 1080P Mini RCA Composite CVBS Video Audio Converter Adapter Supporting PAL/NTSC for TV/PC/ PS3/ STB/Xbox VHS/VCR/Blue-Ray DVD Players

(45,819)
$16.99
FREE delivery Tue, Apr 7 on your first order
1K+ bought in past month
Loading...
USB C Docking Station Dual Monitor for Dell Hp,15-in-1 Laptop Docking Station 3 Monitors USB C Hub with Dual 4K HDMI,8K DP,Button,PD Charging,Ethernet,6 USB A&C,SD/TF, Audio USB-C Multiport Adapter

USB C Docking Station Dual Monitor for Dell Hp,15-in-1 Laptop Docking Station 3 Monitors USB C Hub with Dual 4K HDMI,8K DP,Button,PD Charging,Ethernet,6 USB A&C,SD/TF, Audio USB-C Multiport Adapter

(1,359)
$67.98
FREE delivery Sun, Aug 24
100+ bought in past month
Loading...
TP-Link AC1300 USB WiFi Adapter (Archer T3U) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, MU-MIMO WiFi Dongle, USB 3.0, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.14

TP-Link AC1300 USB WiFi Adapter (Archer T3U) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, MU-MIMO WiFi Dongle, USB 3.0, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.14

(19,238)
$19.99$15.96
FREE delivery Sun, Jun 22 on your first order
500+ bought in past month
Loading...
TP-Link WiFi 6 AX3000 PCIe WiFi Card Archer TX55E - Bluetooth 5.2, 802.11AX Dual Band Wireless Adapter with MU-MIMO, OFDMA, Ultra-Low Latency, Supports Windows 11, 10 (64bit) only
Best Seller

TP-Link WiFi 6 AX3000 PCIe WiFi Card Archer TX55E - Bluetooth 5.2, 802.11AX Dual Band Wireless Adapter with MU-MIMO, OFDMA, Ultra-Low Latency, Supports Windows 11, 10 (64bit) only

(9,902)
$37.99$34.19
FREE delivery Sun, Jun 22
400+ bought in past month
Loading...
TP-Link AC1300 High Gain WiFi USB Adapter (Archer T4U)- Dual Band Wireless Network Adapter for Desktop with 2.4GHz/5GHz High Gain Antennas, MU-MIMO, Support Windows 10/8.1/8/7/XP, Mac OS

TP-Link AC1300 High Gain WiFi USB Adapter (Archer T4U)- Dual Band Wireless Network Adapter for Desktop with 2.4GHz/5GHz High Gain Antennas, MU-MIMO, Support Windows 10/8.1/8/7/XP, Mac OS

(47,080)
$24.99$21.17
FREE delivery Sun, Jun 22 on your first order
100+ bought in past month
Loading...
TP-Link Mini - AC600 USB 2.0 Wifi Adapter (Archer T2U Nano) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, Mini Travel Size, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.15

TP-Link Mini - AC600 USB 2.0 Wifi Adapter (Archer T2U Nano) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, Mini Travel Size, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.15

(19,191)
$14.99$13.52
FREE delivery Thu, Sep 4 on your first order
300+ bought in past month
Loading...
10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
Bonsai Starter Kit – 1x Bonsai Tree | Complete Indoor Starter Kit for Growing Plants with Bonsai Seeds, Tools & Planters – Gardening Gifts for Women & Men
Best Seller

Bonsai Starter Kit – 1x Bonsai Tree | Complete Indoor Starter Kit for Growing Plants with Bonsai Seeds, Tools & Planters – Gardening Gifts for Women & Men

(243)
$19.99
FREE delivery Sat, Jun 14 on your first order
300+ bought in past month
Loading...
10 Herb Garden Planter Indoor Kit, 44pcs Complete Kitchen Herb Starter Set Including Burlap Pots, Markers, Soil Discs, Gardening Tools, Unique Easter/Birthday/Christmas Gift Ideas for Women, Mom

10 Herb Garden Planter Indoor Kit, 44pcs Complete Kitchen Herb Starter Set Including Burlap Pots, Markers, Soil Discs, Gardening Tools, Unique Easter/Birthday/Christmas Gift Ideas for Women, Mom

(72)
$74.84$74.68
FREE delivery Jun 11 - 13