How to Install Linux From Scratch
tony
@tony-btwAbout
I create Linux Tutorials for you to enjoy.
Latest Posts
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
You May Also Like
Essential Linux Setup Gear
AI-recommended products based on this video

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

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 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 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 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
![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]](https://m.media-amazon.com/images/I/911ujeCkGfL._AC_UL960_FMwebp_QL65_.jpg)
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 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]](https://m.media-amazon.com/images/I/71W2nK7LUrL._AC_UL960_FMwebp_QL65_.jpg)
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 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 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]](https://m.media-amazon.com/images/I/71lzXt4djxL._AC_UY654_FMwebp_QL65_.jpg)
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]

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

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

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

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

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 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 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

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
![[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](https://m.media-amazon.com/images/I/41FjGWUIKnL._AC_UL960_FMwebp_QL65_.jpg)
[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

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

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

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

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 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

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 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

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

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

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

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

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














