Linux from Scratch
Total Page:16
File Type:pdf, Size:1020Kb
Linux From Scratch Version 3.3 Gerard Beekmans Copyright © 1999−2002 by Gerard Beekmans This book describes the process of creating a Linux system from scratch from an already installed Linux distribution, using nothing but the sources of the software that we use. Copyright (c) 1999−2002, Gerard Beekmans All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: • Redistributions in any form must retain the above copyright notice, this list of conditions and the following disclaimer. • Neither the name of "Linux From Scratch" nor the names of its contributors may be used to endorse or promote products derived from this material without specific prior written permission. • Any material derived from Linux From Scratch must contain a reference to the "Linux From Scratch" project. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Dedication This book is dedicated to my loving and supportive wife Beverly Beekmans. Linux From Scratch Table of Contents Preface..................................................................................................................................................................1 1. Foreword..............................................................................................................................................1 2. Who would want to read this book......................................................................................................1 3. Who would not want to read this book................................................................................................2 4. Organization.........................................................................................................................................2 4.1. Part I − Introduction.............................................................................................................2 4.2. Part II − Installation of the LFS system...............................................................................3 4.3. Part III − Appendixes...........................................................................................................3 I. Part I − Introduction.............................................................................................................................3 Chapter 1. Introduction......................................................................................................................................4 1.1. Acknowledgments.............................................................................................................................4 1.2. How things are going to be done......................................................................................................4 1.3. Conventions used in this book..........................................................................................................5 1.4. Book version.....................................................................................................................................6 1.5. Mirror sites........................................................................................................................................6 1.5.1. HTTP Mirrors...................................................................................................................6 1.5.2. FTP Mirrors......................................................................................................................7 1.6. Changelog.........................................................................................................................................7 1.7. Mailing lists and archives...............................................................................................................14 1.7.1. lfs−support......................................................................................................................14 1.7.2. lfs−dev............................................................................................................................14 1.7.3. lfs−announce...................................................................................................................14 1.7.4. lfs−security.....................................................................................................................15 1.7.5. lfs−book..........................................................................................................................15 1.7.6. lfs−chat...........................................................................................................................15 1.7.7. alfs−discuss.....................................................................................................................15 1.7.8. blfs−dev..........................................................................................................................15 1.7.9. blfs−book........................................................................................................................15 1.7.10. blfs−support..................................................................................................................15 1.7.11. Mail archives.................................................................................................................16 1.7.12. How to post to a list......................................................................................................16 1.7.13. How to subscribe?.........................................................................................................16 1.7.14. How to unsubscribe?.....................................................................................................16 1.7.15. Other list modes............................................................................................................17 1.7.16. Digests..........................................................................................................................17 1.7.17. Vacation........................................................................................................................17 1.8. News server.....................................................................................................................................18 1.9. FAQ................................................................................................................................................18 1.10. Contact information......................................................................................................................18 Chapter 2. Important information..................................................................................................................19 2.1. About $LFS.....................................................................................................................................19 2.2. How to download the software.......................................................................................................19 2.3. How to install the software.............................................................................................................20 2.4. Which Platform?.............................................................................................................................21 2.5. How to ask for help.........................................................................................................................21 2.5.1. Basic Information...........................................................................................................21 i Linux From Scratch Table of Contents 2.5.2. Configure problems........................................................................................................22 2.5.3. Compile problems...........................................................................................................22 II. Part II − Installing the LFS system...................................................................................................22 Chapter 3. Packages that need to be downloaded..........................................................................................26 3.1. Introduction.....................................................................................................................................26 3.2. Packages that need to be downloaded.............................................................................................26 Chapter 4. Preparing a new partition.............................................................................................................33 4.1. Introduction.....................................................................................................................................33 4.2. Creating a new partition..................................................................................................................33