Linux from Scratch Linux from Scratch
Total Page:16
File Type:pdf, Size:1020Kb
Linux From Scratch Linux From Scratch Table of Contents Linux From Scratch............................................................................................................................................1 Gerard Beekmans.....................................................................................................................................1 Dedication............................................................................................................................................................2 Preface................................................................................................................................................................10 Who would want to read this book..................................................................................................................11 Who would not want to read this book...........................................................................................................12 Organization......................................................................................................................................................13 Part I − Introduction...............................................................................................................................13 Part II − Installation of the LFS system.................................................................................................13 Part III − Appendixes.............................................................................................................................13 I. Part I − Introduction.....................................................................................................................................14 Chapter 1. Introduction....................................................................................................................................15 Introduction.......................................................................................................................................................16 How things are going to be done......................................................................................................................17 Book versions.....................................................................................................................................................18 Acknowledgements...........................................................................................................................................19 Changelog..........................................................................................................................................................20 Mailinglists and archives..................................................................................................................................27 lfs−discuss..............................................................................................................................................27 lfs−config...............................................................................................................................................27 lfs−apps..................................................................................................................................................27 lfs−announce..........................................................................................................................................28 linux.......................................................................................................................................................28 alfs−discuss............................................................................................................................................28 How to subscribe?..................................................................................................................................28 How to unsubscribe?..............................................................................................................................29 Mail archives..........................................................................................................................................29 Contact information..........................................................................................................................................30 Chapter 2. Important information..................................................................................................................31 About $LFS........................................................................................................................................................32 i Linux From Scratch Table of Contents How to download the software.........................................................................................................................33 How to install the software...............................................................................................................................34 II. Part II − Installing the LFS system............................................................................................................36 Chapter 3. Packages you need to download...................................................................................................37 Chapter 4. Preparing a new partition.............................................................................................................40 Introduction.......................................................................................................................................................41 Creating a new partition..................................................................................................................................42 Creating a ext2 file system on the new partition............................................................................................43 Mounting the new partition.............................................................................................................................44 Creating directories..........................................................................................................................................45 Chapter 5. Preparing the LFS system.............................................................................................................46 How and why things are done..........................................................................................................................47 Installing Bash...................................................................................................................................................48 Installation of Bash................................................................................................................................48 Contents.................................................................................................................................................48 Description.............................................................................................................................................48 Installing Binutils..............................................................................................................................................49 Installation of Binutils...........................................................................................................................49 Description.............................................................................................................................................49 Description.............................................................................................................................................49 ld...............................................................................................................................................49 as...............................................................................................................................................49 ar...............................................................................................................................................49 nm.............................................................................................................................................49 objcopy......................................................................................................................................50 objdump....................................................................................................................................50 ranlib.........................................................................................................................................50 size............................................................................................................................................50 strings........................................................................................................................................50 strip...........................................................................................................................................50 c++filt.......................................................................................................................................51 addr2line...................................................................................................................................51