├── .gitignore ├── README.md ├── _config.yml ├── lfs-8.0-systemd-tasks-table ├── lfs-8.0-systemd ├── appendices │ ├── acknowledgments.html │ ├── acronymlist.html │ ├── creat-comm.html │ ├── dependencies.html │ ├── licenses.html │ └── mit.html ├── chapter01 │ ├── askforhelp.html │ ├── changelog.html │ ├── chapter01.html │ ├── how.html │ ├── resources.html │ └── whatsnew.html ├── chapter02 │ ├── aboutlfs.html │ ├── chapter02.html │ ├── creatingfilesystem.html │ ├── creatingpartition.html │ ├── hostreqs.html │ ├── introduction.html │ ├── mounting.html │ └── stages.html ├── chapter03 │ ├── chapter03.html │ ├── introduction.html │ ├── packages.html │ └── patches.html ├── chapter04 │ ├── aboutsbus.html │ ├── abouttestsuites.html │ ├── addinguser.html │ ├── chapter04.html │ ├── creatingtoolsdir.html │ ├── introduction.html │ └── settingenvironment.html ├── chapter05 │ ├── #toolchaintechnotes.html# │ ├── bash.html │ ├── binutils-pass1.html │ ├── binutils-pass2.html │ ├── bison.html │ ├── bzip2.html │ ├── changingowner.html │ ├── chapter05.html │ ├── check.html │ ├── coreutils.html │ ├── dejagnu.html │ ├── diffutils.html │ ├── expect.html │ ├── file.html │ ├── findutils.html │ ├── gawk.html │ ├── gcc-libstdc++.html │ ├── gcc-pass1.html │ ├── gcc-pass2.html │ ├── generalinstructions.html │ ├── gettext.html │ ├── glibc.html │ ├── grep.html │ ├── gzip.html │ ├── introduction.html │ ├── linux-headers.html │ ├── m4.html │ ├── make.html │ ├── ncurses.html │ ├── patch.html │ ├── perl.html │ ├── sed.html │ ├── stripping.html │ ├── tar.html │ ├── tcl.html │ ├── texinfo.html │ ├── toolchaintechnotes.html │ ├── util-linux.html │ └── xz.html ├── chapter06 │ ├── aboutdebug.html │ ├── acl.html │ ├── adjusting.html │ ├── attr.html │ ├── autoconf.html │ ├── automake.html │ ├── bash.html │ ├── bc.html │ ├── binutils.html │ ├── bison.html │ ├── bzip2.html │ ├── chapter06.html │ ├── chroot.html │ ├── coreutils.html │ ├── createfiles.html │ ├── creatingdirs.html │ ├── dbus.html │ ├── diffutils.html │ ├── e2fsprogs.html │ ├── expat.html │ ├── file.html │ ├── findutils.html │ ├── flex.html │ ├── gawk.html │ ├── gcc.html │ ├── gdbm.html │ ├── gettext.html │ ├── glibc.html │ ├── gmp.html │ ├── gperf.html │ ├── grep.html │ ├── groff.html │ ├── grub.html │ ├── gzip.html │ ├── iana-etc.html │ ├── inetutils.html │ ├── intltool.html │ ├── introduction.html │ ├── iproute2.html │ ├── kbd.html │ ├── kernfs.html │ ├── kmod.html │ ├── less.html │ ├── libcap.html │ ├── libpipeline.html │ ├── libtool.html │ ├── linux-headers.html │ ├── m4.html │ ├── make.html │ ├── man-db.html │ ├── man-pages.html │ ├── mpc.html │ ├── mpfr.html │ ├── ncurses.html │ ├── patch.html │ ├── perl.html │ ├── pkg-config.html │ ├── pkgmgt.html │ ├── procps-ng.html │ ├── psmisc.html │ ├── readline.html │ ├── revisedchroot.html │ ├── sed.html │ ├── shadow.html │ ├── strippingagain.html │ ├── systemd.html │ ├── tar.html │ ├── texinfo.html │ ├── util-linux.html │ ├── vim.html │ ├── xml-parser.html │ ├── xz.html │ └── zlib.html ├── chapter07 │ ├── chapter07.html │ ├── clock.html │ ├── console.html │ ├── etcshells.html │ ├── inputrc.html │ ├── introduction.html │ ├── locale.html │ ├── network.html │ ├── symlinks.html │ ├── systemd-custom.html │ └── udev.html ├── chapter08 │ ├── chapter08.html │ ├── fstab.html │ ├── grub.html │ ├── introduction.html │ └── kernel.html ├── chapter09 │ ├── chapter09.html │ ├── getcounted.html │ ├── reboot.html │ ├── theend.html │ └── whatnow.html ├── images │ ├── caution.png │ ├── chevron-bottom.png │ ├── chevron-left.png │ ├── chevron-right.png │ ├── chevron-top.png │ ├── grid-three-up.png │ ├── important.png │ ├── menu.png │ ├── note.png │ ├── tip.png │ ├── tux.png │ └── warning.png ├── index.html ├── legalnotice.html ├── longindex.html ├── md5sums ├── part1.html ├── part2.html ├── part3.html ├── part4.html ├── prologue │ ├── architecture.html │ ├── audience.html │ ├── errata.html │ ├── foreword.html │ ├── organization.html │ ├── package-choices.html │ ├── preface.html │ ├── prerequisites.html │ ├── standards.html │ └── typography.html ├── stylesheets │ ├── lfs-print.css │ └── lfs.css └── wget-list ├── lfs-8.0-tasks-table ├── lfs-8.0 ├── appendices │ ├── acknowledgments.html │ ├── acronymlist.html │ ├── creat-comm.html │ ├── dependencies.html │ ├── licenses.html │ └── mit.html ├── chapter01 │ ├── askforhelp.html │ ├── changelog.html │ ├── chapter01.html │ ├── how.html │ ├── resources.html │ └── whatsnew.html ├── chapter02 │ ├── aboutlfs.html │ ├── chapter02.html │ ├── creatingfilesystem.html │ ├── creatingpartition.html │ ├── hostreqs.html │ ├── introduction.html │ ├── mounting.html │ └── stages.html ├── chapter03 │ ├── chapter03.html │ ├── failed-download.md │ ├── introduction.html │ ├── packages.html │ └── patches.html ├── chapter04 │ ├── aboutsbus.html │ ├── abouttestsuites.html │ ├── addinguser.html │ ├── chapter04.html │ ├── creatingtoolsdir.html │ ├── introduction.html │ └── settingenvironment.html ├── chapter05 │ ├── bash.html │ ├── binutils-pass1.html │ ├── binutils-pass2.html │ ├── bison.html │ ├── bzip2.html │ ├── changingowner.html │ ├── chapter05.html │ ├── check.html │ ├── coreutils.html │ ├── dejagnu.html │ ├── diffutils.html │ ├── expect.html │ ├── file.html │ ├── findutils.html │ ├── gawk.html │ ├── gcc-libstdc++.html │ ├── gcc-pass1.html │ ├── gcc-pass2.html │ ├── generalinstructions.html │ ├── gettext.html │ ├── glibc.html │ ├── grep.html │ ├── gzip.html │ ├── introduction.html │ ├── linux-headers.html │ ├── m4.html │ ├── make.html │ ├── ncurses.html │ ├── patch.html │ ├── perl.html │ ├── sed.html │ ├── stripping.html │ ├── tar.html │ ├── tcl.html │ ├── texinfo.html │ ├── toolchaintechnotes.html │ ├── util-linux.html │ └── xz.html ├── chapter06 │ ├── aboutdebug.html │ ├── acl.html │ ├── adjusting.html │ ├── attr.html │ ├── autoconf.html │ ├── automake.html │ ├── bash.html │ ├── bc.html │ ├── binutils.html │ ├── bison.html │ ├── bzip2.html │ ├── chapter06.html │ ├── chroot.html │ ├── coreutils.html │ ├── createfiles.html │ ├── creatingdirs.html │ ├── diffutils.html │ ├── e2fsprogs.html │ ├── eudev.html │ ├── expat.html │ ├── file.html │ ├── findutils.html │ ├── flex.html │ ├── gawk.html │ ├── gcc.html │ ├── gdbm.html │ ├── gettext.html │ ├── glibc.html │ ├── gmp.html │ ├── gperf.html │ ├── grep.html │ ├── groff.html │ ├── grub.html │ ├── gzip.html │ ├── iana-etc.html │ ├── inetutils.html │ ├── intltool.html │ ├── introduction.html │ ├── iproute2.html │ ├── kbd.html │ ├── kernfs.html │ ├── kmod.html │ ├── less.html │ ├── libcap.html │ ├── libpipeline.html │ ├── libtool.html │ ├── linux-headers.html │ ├── m4.html │ ├── make.html │ ├── man-db.html │ ├── man-pages.html │ ├── mpc.html │ ├── mpfr.html │ ├── ncurses.html │ ├── patch.html │ ├── perl.html │ ├── pkg-config.html │ ├── pkgmgt.html │ ├── procps-ng.html │ ├── psmisc.html │ ├── readline.html │ ├── revisedchroot.html │ ├── sed.html │ ├── shadow.html │ ├── strippingagain.html │ ├── sysklogd.html │ ├── sysvinit.html │ ├── tar.html │ ├── texinfo.html │ ├── util-linux.html │ ├── vim.html │ ├── xml-parser.html │ ├── xz.html │ └── zlib.html ├── chapter07 │ ├── bootscripts.html │ ├── chapter07.html │ ├── etcshells.html │ ├── inputrc.html │ ├── introduction.html │ ├── network.html │ ├── profile.html │ ├── symlinks.html │ ├── udev.html │ └── usage.html ├── chapter08 │ ├── chapter08.html │ ├── fstab.html │ ├── grub.html │ ├── introduction.html │ └── kernel.html ├── chapter09 │ ├── chapter09.html │ ├── getcounted.html │ ├── reboot.html │ ├── theend.html │ └── whatnow.html ├── images │ ├── caution.png │ ├── chevron-bottom.png │ ├── chevron-left.png │ ├── chevron-right.png │ ├── chevron-top.png │ ├── grid-three-up.png │ ├── important.png │ ├── menu.png │ ├── note.png │ ├── tip.png │ ├── tux.png │ └── warning.png ├── index.html ├── legalnotice.html ├── longindex.html ├── md5sums ├── part1.html ├── part2.html ├── part3.html ├── part4.html ├── prologue │ ├── architecture.html │ ├── audience.html │ ├── errata.html │ ├── foreword.html │ ├── organization.html │ ├── package-choices.html │ ├── preface.html │ ├── prerequisites.html │ ├── standards.html │ └── typography.html ├── scripts │ ├── apds01.html │ ├── apds02.html │ ├── apds03.html │ ├── apds04.html │ ├── apds05.html │ ├── apds06.html │ ├── apds07.html │ ├── apds08.html │ ├── apds09.html │ ├── apds10.html │ ├── apds11.html │ ├── apds12.html │ ├── apds13.html │ ├── apds14.html │ ├── apds15.html │ ├── apds16.html │ ├── apds17.html │ ├── apds18.html │ ├── apds19.html │ ├── apds20.html │ ├── apds21.html │ ├── apds22.html │ ├── apds23.html │ ├── apds24.html │ ├── apds25.html │ ├── apds26.html │ ├── apds27.html │ ├── apes01.html │ ├── eudev-rules.html │ └── scripts.html ├── stylesheets │ ├── lfs-print.css │ └── lfs.css └── wget-list └── translate-agreement.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Jekyll and Ruby specific 2 | .sass-cache 3 | _site/* 4 | Gemfile.lock 5 | Gemfile 6 | 7 | # Bundler related 8 | .bundle 9 | vendor/bundle/ 10 | 11 | # Other 12 | *~ 13 | *.swp 14 | *.log 15 | *.tmp 16 | *.bak 17 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-slate -------------------------------------------------------------------------------- /lfs-8.0-systemd/appendices/licenses.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Appendix D. LFS Licenses 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | D. LFS Licenses 52 |

53 |

54 | This book is licensed under the Creative Commons 55 | Attribution-NonCommercial-ShareAlike 2.0 License. 56 |

57 |

58 | Computer instructions may be extracted from the book under the MIT 59 | License. 60 |

61 |
62 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/appendices/mit.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | D.2. The MIT License 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | D.2. The MIT License 51 |

52 |

53 | Copyright © 1999-2017 Gerard Beekmans 54 |

55 |

56 | Permission is hereby granted, free of charge, to any person obtaining 57 | a copy of this software and associated documentation files (the 58 | "Software"), to deal in the Software without restriction, including 59 | without limitation the rights to use, copy, modify, merge, publish, 60 | distribute, sublicense, and/or sell copies of the Software, and to 61 | permit persons to whom the Software is furnished to do so, subject to 62 | the following conditions: 63 |

64 |

65 | The above copyright notice and this permission notice shall be 66 | included in all copies or substantial portions of the Software. 67 |

68 |

69 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 70 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 71 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 72 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 73 | BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 74 | ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 75 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 76 | SOFTWARE. 77 |

78 |
79 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter01/chapter01.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 1. Introduction 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 1. Introduction 51 |

52 |
53 |

54 | Table of Contents 55 |

56 | 73 |
74 |
75 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter02/chapter02.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 2. Preparing the Host System 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 2. 52 | Preparing the Host System 53 |

54 |
55 |

56 | Table of Contents 57 |

58 | 82 |
83 |
84 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter02/introduction.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 2.1. Introduction 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 2.1. 52 | Introduction 53 |

54 |

55 | In this chapter, the host tools needed for building LFS are checked 56 | and, if necessary, installed. Then a partition which will host the 57 | LFS system is prepared. We will create the partition itself, create a 58 | file system on it, and mount it. 59 |

60 |
61 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter03/chapter03.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 第三章 软件包与补丁 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 3. 软件包与补丁 53 |

54 |
55 |

56 | 目录 57 |

58 | 69 |
70 |
71 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter04/chapter04.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 4. Final Preparations 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 4. Final 52 | Preparations 53 |

54 |
55 |

56 | Table of Contents 57 |

58 | 79 |
80 |
81 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter04/introduction.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 4.1. Introduction 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 4.1. 52 | Introduction 53 |

54 |

55 | In this chapter, we will perform a few additional tasks to prepare 56 | for building the temporary system. We will create a directory in 57 | $LFS for the installation of the 58 | temporary tools, add an unprivileged user to reduce risk, and create 59 | an appropriate build environment for that user. We will also explain 60 | the unit of time we use to measure how long LFS packages take to 61 | build, or SBUs, and give some information about 63 | package test suites. 64 |

65 |
66 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter05/introduction.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 5.1. 简介 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 5.1. 简介 52 |

53 |

54 | 本章节向您展示如何构建一个最小型的linux系统。该系统将正好包含足够的工具来构建第六章所述的最终版 LFS 系统,同时还提供了比最低限度环境更具备用户便利性的工作环境。 55 |

56 |

57 | 构建该系统分两步。第一步,构建一个新的并且独立与主机的工具链(编译器,汇编器,链接器,库和一些有用的工具)。第二步,使用这个工具链去构建其它基础工具。 58 |

59 |

60 | 本章节编译好的文件将会被安装在 $LFS/tools 路径下,这些文件会与下一章节安装好的文件以及宿主系统生成的目录分开。之所以这么做是因为这些编译好的包是临时文件,我们并不想让这些文件污染即将制作好的 LFS 系统。 61 |

62 |
63 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter05/stripping.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 5.36. Stripping 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 5.36. 51 | Stripping 52 |

53 |

54 | The steps in this section are optional, but if the LFS partition is 55 | rather small, it is beneficial to learn that unnecessary items can be 56 | removed. The executables and libraries built so far contain about 70 57 | MB of unneeded debugging symbols. Remove those symbols with: 58 |

59 |
 60 | strip --strip-debug /tools/lib/*
 61 | /usr/bin/strip --strip-unneeded /tools/{,s}bin/*
 62 | 
63 |

64 | These commands will skip a number of files, reporting that it does 65 | not recognize their file format. Most of these are scripts instead of 66 | binaries. Also use the system strip command to include the strip 67 | binary in /tools. 68 |

69 |

70 | Take care not to use 71 | --strip-unneeded on the 72 | libraries. The static ones would be destroyed and the toolchain 73 | packages would need to be built all over again. 74 |

75 |

76 | To save more, remove the documentation: 77 |

78 |
 79 | rm -rf /tools/{,share}/{info,man,doc}
 80 | 
81 |

82 | At this point, you should have at least 3 GB of free space in 83 | $LFS that can be used to build and install 84 | Glibc and Gcc in the next phase. If you can build and install Glibc, 85 | you can build and install the rest too. 86 |

87 |
88 | 113 | 114 | 115 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter07/chapter07.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 7. System Configuration 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 7. System 52 | Configuration 53 |

54 |
55 |

56 | Table of Contents 57 |

58 | 90 |
91 |
92 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter07/etcshells.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 7.9. Creating the /etc/shells File 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 7.9. Creating 52 | the /etc/shells File 53 |

54 |

55 | The shells file contains a list of 56 | login shells on the system. Applications use this file to determine 57 | whether a shell is valid. For each shell a single line should be 58 | present, consisting of the shell's path, relative to the root of the 59 | directory structure (/). 60 |

61 |

62 | For example, this file is consulted by chsh to determine whether an 64 | unprivileged user may change the login shell for her own account. If 65 | the command name is not listed, the user will be denied of change. 66 |

67 |

68 | It is a requirement for applications such as GDM which does not populate the face browser if 70 | it can't find /etc/shells, or FTP 71 | daemons which traditionally disallow access to users with shells not 72 | included in this file. 73 |

74 |
 75 | cat > /etc/shells << "EOF"
 76 | # Begin /etc/shells
 77 | 
 78 | /bin/sh
 79 | /bin/bash
 80 | 
 81 | # End /etc/shells
 82 | EOF
 83 | 
84 |
85 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter08/chapter08.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 8. Making the LFS System Bootable 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 8. Making the 52 | LFS System Bootable 53 |

54 |
55 |

56 | Table of Contents 57 |

58 | 72 |
73 |
74 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter08/introduction.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 8.1. Introduction 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 8.1. Introduction 53 |

54 |

55 | It is time to make the LFS system bootable. This chapter discusses 56 | creating an fstab file, building a 57 | kernel for the new LFS system, and installing the GRUB boot loader so 58 | that the LFS system can be selected for booting at startup. 59 |

60 |
61 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter09/chapter09.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 9. 结束 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 9. 结束 51 |

52 |
53 |

54 | 目录 55 |

56 | 70 |
71 |
72 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter09/getcounted.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 9.2. 注册 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 9.2. 注册 51 |

52 |

53 | 既然已经阅读完这本书,那你算得上是LFS的用户吗?去这个网站 http://www.linuxfromscratch.org/cgi-bin/lfscounter.php 55 | ,输入你的名字和你使用的LFS第一个版本号进行注册。 56 |

57 |

58 | 现在,让我们重启LFS。 59 |

60 |
61 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/chapter09/theend.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 9.1. 结束 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 9.1. 结束 51 |

52 |

53 | 干得漂亮! 新的LFS系统已经被安装好了!我们希望你新通过使用崭新定制的Linux系统获得成功。 54 |

55 |

56 | 首先创建 /etc/os-release systemd需要的文件: 57 |

58 |
 59 | cat > /etc/os-release << "EOF"
 60 | NAME="Linux From Scratch"
 61 | VERSION="8.0-systemd"
 62 | ID=lfs
 63 | PRETTY_NAME="Linux From Scratch 8.0-systemd"
 64 | VERSION_CODENAME="<your name here>"
 65 | EOF
 66 | 
67 |

68 | 创建 /etc/lfs-release 文件。通过这个文件,你可以非常轻松地看出系统中安装的LFS是什么版本(对我们来说,可以看出你在哪里需要帮助)。 69 | 运行下面的语句创建文件: 70 |

71 |
 72 | echo 8.0-systemd > /etc/lfs-release
 73 | 
74 |

75 | 这也是个好主意,通过创建文件来显示你的系统相对Linux基础标准(LSB)的异同。通过下面的语句来创建文件: 76 |

77 |
 78 | cat > /etc/lsb-release << "EOF"
 79 | DISTRIB_ID="Linux From Scratch"
 80 | DISTRIB_RELEASE="8.0-systemd"
 81 | DISTRIB_CODENAME="<your name here>"
 82 | DISTRIB_DESCRIPTION="Linux From Scratch"
 83 | EOF
 84 | 
85 |

86 | 确保在字段'DISTRIB_CODENAME'设置你自己系统的名字。 87 |

88 |
89 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/caution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/caution.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/chevron-bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/chevron-bottom.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/chevron-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/chevron-left.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/chevron-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/chevron-right.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/chevron-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/chevron-top.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/grid-three-up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/grid-three-up.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/important.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/important.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/menu.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/note.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/tip.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/tux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/tux.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/images/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/images/warning.png -------------------------------------------------------------------------------- /lfs-8.0-systemd/legalnotice.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0-systemd/legalnotice.html -------------------------------------------------------------------------------- /lfs-8.0-systemd/md5sums: -------------------------------------------------------------------------------- 1 | a61415312426e9c2212bd7dc7929abda acl-2.2.52.src.tar.gz 2 | 84f58dec00b60f2dc8fd1c9709291cc7 attr-2.4.47.src.tar.gz 3 | 50f97f4159805e374639a73e2636f22e autoconf-2.69.tar.xz 4 | 9a1ddb0e053474d9d1105cfe39b0c48d automake-1.15.tar.xz 5 | 148888a7c95ac23705559b6f477dfe25 bash-4.4.tar.gz 6 | 5126a721b73f97d715bb72c13c889035 bc-1.06.95.tar.bz2 7 | 2869c9bf3e60ee97c74ac2a6bf4e9d68 binutils-2.27.tar.bz2 8 | c342201de104cc9ce0a21e0ad10d4021 bison-3.0.4.tar.xz 9 | 00b516f4704d4a7cb50a1d97e6e8e15b bzip2-1.0.6.tar.gz 10 | 9b90522b31f5628c2e0f55dda348e558 check-0.11.0.tar.gz 11 | d5aa2072f662d4118b9f4c63b94601a6 coreutils-8.26.tar.xz 12 | 3f7b013ce8f641cd4c897acda0ef3467 dbus-1.10.14.tar.gz 13 | 1fdc2eb0d592c4f89d82d24dfdf02f0b dejagnu-1.6.tar.gz 14 | 569354697ff1cfc9a9de3781361015fa diffutils-3.5.tar.xz 15 | 0bd1c74f357f6e9ae2ab6fa6229b9aea e2fsprogs-1.43.4.tar.gz 16 | 2f47841c829facb346eb6e3fab5212e2 expat-2.2.0.tar.bz2 17 | 44e1a4f4c877e9ddc5a542dfa7ecc92b expect5.45.tar.gz 18 | f35eaf05489ae566eafc4d26bb1dcd90 file-5.30.tar.gz 19 | 9936aa8009438ce185bea2694a997fc1 findutils-4.6.0.tar.gz 20 | a5f65570cd9107ec8a8ec88f17b31bb1 flex-2.6.3.tar.gz 21 | 4e7dbc81163e60fd4f0b52496e7542c9 gawk-4.1.4.tar.xz 22 | 677a7623c7ef6ab99881bc4e048debb6 gcc-6.3.0.tar.bz2 23 | 9ce96ff4c99e74295ea19040931c8fb9 gdbm-1.12.tar.gz 24 | df3f5690eaa30fd228537b00cb7b7590 gettext-0.19.8.1.tar.xz 25 | 1496c3bf41adf9db0ebd0af01f202eed glibc-2.25.tar.xz 26 | f58fa8001d60c4c77595fbbb62b63c1d gmp-6.1.2.tar.xz 27 | c1f1db32fb6598d6a93e6e88796a8632 gperf-3.0.4.tar.gz 28 | fa07c1616adeb9c3262be5177d10ad4a grep-3.0.tar.xz 29 | cc825fa64bc7306a885f2fb2268d3ec5 groff-1.22.3.tar.gz 30 | ab399fc6f74a97d66ff77f04b743149c grub-2.02~beta3.tar.xz 31 | f7caabb65cddc1a4165b398009bd05b9 gzip-1.8.tar.xz 32 | 3ba3afb1d1b261383d247f46cb135ee8 iana-etc-2.30.tar.bz2 33 | 87fef1fa3f603aef11c41dcc097af75e inetutils-1.9.4.tar.xz 34 | 12e517cac2b57a0121cda351570f1e63 intltool-0.51.0.tar.gz 35 | 44a8371a4b2c40e48e4c9f98cbd41391 iproute2-4.9.0.tar.xz 36 | c1635a5a83b63aca7f97a3eab39ebaa6 kbd-2.0.4.tar.xz 37 | 3cf469f40ec2ed51f56ba45ea03793e7 kmod-23.tar.xz 38 | 50ef46065c65257141a7340123527767 less-481.tar.gz 39 | 6666b839e5d46c2ad33fc8aa2ceb5f77 libcap-2.25.tar.xz 40 | e54590ec68d6c1239f67b5b44e92022c libpipeline-1.4.1.tar.gz 41 | 1bfb9b923f2c1339b4d2ce1807064aa5 libtool-2.4.6.tar.xz 42 | de43a1a9e3a1ad97467c9a413bcdf896 linux-4.9.9.tar.xz 43 | 730bb15d96fffe47e148d1e09235af82 m4-1.4.18.tar.xz 44 | 15b012617e7c44c0ed482721629577ac make-4.2.1.tar.bz2 45 | 2948d49d0ed7265f60f83aa4a9ac9268 man-db-2.7.6.1.tar.xz 46 | 91c721409bbf823d8f62bee3a1fe8ae3 man-pages-4.09.tar.xz 47 | d6a1d5f8ddea3abd2cc3e98f58352d26 mpc-1.0.3.tar.gz 48 | c4ac246cf9795a4491e7766002cd528f mpfr-3.1.5.tar.xz 49 | ee13d052e1ead260d7c28071f46eefb1 ncurses-6.0.tar.gz 50 | e3da7940431633fb65a01b91d3b7a27a patch-2.7.5.tar.xz 51 | 178ee0e8fa544dbc76d99cf041e2c9f0 perl-5.24.1.tar.bz2 52 | f739a28cae4e0ca291f82d1d41ef107d pkg-config-0.29.1.tar.gz 53 | 957e42e8b193490b2111252e4a2b443c procps-ng-3.3.12.tar.xz 54 | 935c0fd6eb208288262b385fa656f1bf psmisc-22.21.tar.gz 55 | 205b03a87fc83dab653b628c59b9fc91 readline-7.0.tar.gz 56 | e0c583d4c380059abd818cd540fe6938 sed-4.4.tar.xz 57 | c06f8c2571b44899e60662f9ad259dd6 shadow-4.4.tar.xz 58 | 281604885d5a87f0359244f6f84037cb systemd-232.tar.xz 59 | a1802fec550baaeecff6c381629653ef tar-1.29.tar.xz 60 | 98ebf13bbd90257e006c219369dd5f67 tcl-core8.6.6-src.tar.gz 61 | 32baefe5c7080dfb512a4eac5ce67b2a texinfo-6.3.tar.xz 62 | db361d005ac8b30a2d18c5ca38d3e8ab tzdata2016j.tar.gz 63 | 0cbb6d16ab9c5736e5649ef1264bee6e util-linux-2.29.1.tar.xz 64 | 457543a7754b0d3c1c0aa4d4c3bb4070 vim-8.0.069.tar.bz2 65 | af4813fe3952362451201ced6fbce379 XML-Parser-2.44.tar.gz 66 | 60fb79cab777e3f71ca43d298adacbd5 xz-5.2.3.tar.xz 67 | 85adef240c5f370b308da8c938951a68 zlib-1.2.11.tar.xz 68 | e3d5bf23a4e5628680893d46e6ff286e bash-4.4-upstream_fixes-1.patch 69 | 877e81fba316fe487ec23501059d54b8 bc-1.06.95-memory_leak-1.patch 70 | 6a5ac7e89b791aae556de0f745916f7f bzip2-1.0.6-install_docs-1.patch 71 | e1f87b10b23d66344e5e99e7fabfa7a2 coreutils-8.26-i18n-1.patch 72 | 9a5997c3452909b1769918c759eff8a2 glibc-2.25-fhs-1.patch 73 | f75cca16a38da6caa7d52151f7136895 kbd-2.0.4-backspace-1.patch 74 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/part1.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Part I. Introduction 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 44 |
45 |

46 | I. Introduction 47 |

48 |
49 |

50 | Table of Contents 51 |

52 | 77 |
78 |
79 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/part4.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Part IV. Appendices 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 44 |
45 |

46 | IV. Appendices 47 |

48 |
49 |

50 | Table of Contents 51 |

52 | 75 |
76 |
77 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/prologue/errata.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Errata 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 47 |
48 |

49 | ix. Errata 50 |

51 |

52 | The software used to create an LFS system is constantly being updated 53 | and enhanced. Security warnings and bug fixes may become available 54 | after the LFS book has been released. To check whether the package 55 | versions or instructions in this release of LFS need any 56 | modifications to accommodate security vulnerabilities or other bug 57 | fixes, please visit http://www.linuxfromscratch.org/lfs/errata/systemd/ 59 | before proceeding with your build. You should note any changes shown 60 | and apply them to the relevant section of the book as you progress 61 | with building the LFS system. 62 |

63 |
64 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/prologue/organization.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Structure 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 46 |
47 |

48 | viii. Structure 49 |

50 |

51 | This book is divided into the following parts. 52 |

53 |
54 |

55 | Part I - Introduction 56 |

57 |

58 | Part I explains a few important notes on how to proceed with the 59 | LFS installation. This section also provides meta-information about 60 | the book. 61 |

62 |
63 |
64 |

65 | Part II - Preparing for the Build 66 |

67 |

68 | Part II describes how to prepare for the building 69 | process—making a partition, downloading the packages, and 70 | compiling temporary tools. 71 |

72 |
73 |
74 |

75 | Part III - Building the LFS System 76 |

77 |

78 | Part III guides the reader through the building of the LFS 79 | system—compiling and installing all the packages one by one, 80 | setting up the boot scripts, and installing the kernel. The 81 | resulting Linux system is the foundation on which other software 82 | can be built to expand the system as desired. At the end of this 83 | book, there is an easy to use reference listing all of the 84 | programs, libraries, and important files that have been installed. 85 |

86 |
87 |
88 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/prologue/preface.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Preface 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 36 |
37 |

38 | Preface 39 |

40 |
41 |

42 | Table of Contents 43 |

44 | 74 |
75 |
76 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /lfs-8.0-systemd/stylesheets/lfs-print.css: -------------------------------------------------------------------------------- 1 | /* 2 | $LastChangedBy: bdubbs $ 3 | $Date: 2015-08-10 10:53:57 -0700 (Mon, 10 Aug 2015) $ 4 | */ 5 | @import url(lfs.css); 6 | 7 | .navfooter, .headerlinks { 8 | display: none; 9 | } 10 | 11 | div.navheader { 12 | position: absolute; 13 | } 14 | 15 | div.navheader ul, 16 | div.navheader ul{ 17 | display: none; 18 | } 19 | -------------------------------------------------------------------------------- /lfs-8.0/appendices/licenses.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Appendix F. LFS Licenses 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | F. LFS Licenses 52 |

53 |

54 | This book is licensed under the Creative Commons 55 | Attribution-NonCommercial-ShareAlike 2.0 License. 56 |

57 |

58 | Computer instructions may be extracted from the book under the MIT 59 | License. 60 |

61 |
62 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /lfs-8.0/appendices/mit.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | F.2. The MIT License 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | F.2. The MIT License 51 |

52 |

53 | Copyright © 1999-2017 Gerard Beekmans 54 |

55 |

56 | Permission is hereby granted, free of charge, to any person obtaining 57 | a copy of this software and associated documentation files (the 58 | "Software"), to deal in the Software without restriction, including 59 | without limitation the rights to use, copy, modify, merge, publish, 60 | distribute, sublicense, and/or sell copies of the Software, and to 61 | permit persons to whom the Software is furnished to do so, subject to 62 | the following conditions: 63 |

64 |

65 | The above copyright notice and this permission notice shall be 66 | included in all copies or substantial portions of the Software. 67 |

68 |

69 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 70 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 71 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 72 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 73 | BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 74 | ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 75 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 76 | SOFTWARE. 77 |

78 |
79 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /lfs-8.0/chapter01/chapter01.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 第一部分 介绍 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 1. 介绍 51 |

52 |
53 |

54 | 目录 55 |

56 | 73 |
74 |
75 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /lfs-8.0/chapter02/chapter02.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 2. Preparing the Host System 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 2. 52 | Preparing the Host System 53 |

54 |
55 |

56 | Table of Contents 57 |

58 | 82 |
83 |
84 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /lfs-8.0/chapter02/introduction.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 2.1. Introduction 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 2.1. 52 | Introduction 53 |

54 |

55 | In this chapter, the host tools needed for building LFS are checked 56 | and, if necessary, installed. Then a partition which will host the 57 | LFS system is prepared. We will create the partition itself, create a 58 | file system on it, and mount it. 59 |

60 |
61 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /lfs-8.0/chapter03/chapter03.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 第三章 软件包与补丁 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 3. 软件包与补丁 53 |

54 |
55 |

56 | 目录 57 |

58 | 69 |
70 |
71 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /lfs-8.0/chapter03/failed-download.md: -------------------------------------------------------------------------------- 1 | ##ftp.yzu.edu.tw镜像站,大陆用户无法访问下载,需用梯子。 2 | http://ftp.yzu.edu.tw/nongnu/libpipeline/libpipeline-1.4.1.tar.gz 3 | http://ftp.yzu.edu.tw/nongnu/man-db/man-db-2.7.6.1.tar.xz 4 | http://ftp.yzu.edu.tw/nongnu/sysvinit/sysvinit-2.88dsf.tar.bz2 5 | 6 | (译者注:该软件包在ftp.yzu.edu.tw。大陆用户无法下载需用梯子) 7 | -------------------------------------------------------------------------------- /lfs-8.0/chapter03/introduction.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 3.1. 简介 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 3.1. 简介 51 |

52 |

53 | 本章列出了一个需要下载的软件包列表,它们用来构建一个基本的 Linux 系统。所列出来的版本号对应着该软件的确定可以正常工作的版本,本书是以它们为基础的。我们强烈反对使用更新一些的版本,因为某个版本能用的编译指令可能并不适用于新版本。最新的软件包也可能会有问题而需要做些修补。我们会在本书的开发版本中解决这些问题并固定下来。 54 |

55 |

56 | 下载位置可能不会一直有效。如果在本书发布后下载位置变了,Google (http://www.google.com/)提供的搜索引擎可以找到大多数软件包。如果搜不到,试试这里 http://www.linuxfromscratch.org/lfs/packages.html#packages提到的其他下载地址。 57 |

58 |

59 | 下载好的软件包和补丁需要保存在某个地方,以方便在整个构建过程中都能有效访问。另外还需要一个工作目录用于解压源代码并执行编译。可以用目录 60 | $LFS/sources 保存软件包和补丁,同时作为工作目录。放到这个目录,所有需要的元素都在 LFS 分区中,因此在构建过程中的所有阶段都可以访问。 61 |

62 |

63 | 在开始下载任务之前,先用 64 | root 用户执行下面的命令创建这个目录: 65 |

66 |
 67 | mkdir -v $LFS/sources
 68 | 
69 |

70 | 设置目录的写权限和粘滞位。 粘滞位意思是就算有多个用户对某个目录有写权限,只有该文件的主人才能删除一个粘滞位目录里的文件。下面的命令可以设置写权限和粘滞位模式: 72 |

73 |
 74 | chmod -v a+wt $LFS/sources
 75 | 
76 |

77 | 下载所有软件包和补丁的一个简单方式是使用 wget-list 作为 78 | wget的输入。例如: 79 |

80 |
 81 | wget --input-file=wget-list --continue --directory-prefix=$LFS/sources
 83 | 
84 |

85 | 另外,从 LFS-7.0 开始,这儿有一个单独的文件 86 | md5sums, 可以用来在开始前校验所有的文件是否都正确。 87 | 将这个文件拷贝到 $LFS/sources 并执行: 88 |

89 |
 90 | pushd $LFS/sources
 91 | md5sum -c md5sums
 92 | popd
 93 | 
94 |
95 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /lfs-8.0/chapter04/chapter04.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 4. Final Preparations 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 4. Final 52 | Preparations 53 |

54 |
55 |

56 | Table of Contents 57 |

58 | 79 |
80 |
81 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /lfs-8.0/chapter04/introduction.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 4.1. Introduction 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 4.1. 52 | Introduction 53 |

54 |

55 | In this chapter, we will perform a few additional tasks to prepare 56 | for building the temporary system. We will create a directory in 57 | $LFS for the installation of the 58 | temporary tools, add an unprivileged user to reduce risk, and create 59 | an appropriate build environment for that user. We will also explain 60 | the unit of time we use to measure how long LFS packages take to 61 | build, or SBUs, and give some information about 63 | package test suites. 64 |

65 |
66 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /lfs-8.0/chapter05/bison.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 5.17. Bison-3.0.4 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 47 |
48 |

49 | 5.17. Bison-3.0.4 50 |

51 |
52 |

53 | The Bison package contains a parser generator. 54 |

55 |
56 |
57 |
58 | Approximate build time: 59 | 0.3 SBU 60 |
61 |
62 | Required disk space: 63 | 32 MB 64 |
65 |
66 |
67 |
68 |
69 |

70 | 5.17.1. Installation of Bison 71 |

72 |

73 | Prepare Bison for compilation: 74 |

75 |
 76 | ./configure --prefix=/tools
 77 | 
78 |

79 | Compile the package: 80 |

81 |
 82 | make
 83 | 
84 |

85 | To test the results, issue: 86 |

87 |
 88 | make check
 89 | 
90 |

91 | Install the package: 92 |

93 |
 94 | make install
 95 | 
96 |
97 |
98 |

99 | Details on this package are located in Section 6.29.2, 102 | “Contents of Bison.” 103 |

104 |
105 |
106 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /lfs-8.0/chapter05/introduction.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 5.1. 简介 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 5.1. 简介 52 |

53 |

54 | 本章节向您展示如何构建一个最小型的linux系统。该系统将正好包含足够的工具来构建第六章所述的最终版 LFS 系统,同时还提供了比最低限度环境更具备用户便利性的工作环境。 55 |

56 |

57 | 构建该系统分两步。第一步,构建一个新的并且独立与主机的工具链(编译器,汇编器,链接器,库和一些有用的工具)。第二步,使用这个工具链去构建其它基础工具。 58 |

59 |

60 | 本章节编译好的文件将会被安装在 $LFS/tools 路径下,这些文件会与下一章节安装好的文件以及宿主系统生成的目录分开。之所以这么做是因为这些编译好的包是临时文件,我们并不想让这些文件污染即将制作好的 LFS 系统。 61 |

62 |
63 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /lfs-8.0/chapter05/stripping.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 5.36. Stripping 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 5.36. 51 | Stripping 52 |

53 |

54 | The steps in this section are optional, but if the LFS partition is 55 | rather small, it is beneficial to learn that unnecessary items can be 56 | removed. The executables and libraries built so far contain about 70 57 | MB of unneeded debugging symbols. Remove those symbols with: 58 |

59 |
 60 | strip --strip-debug /tools/lib/*
 61 | /usr/bin/strip --strip-unneeded /tools/{,s}bin/*
 62 | 
63 |

64 | These commands will skip a number of files, reporting that it does 65 | not recognize their file format. Most of these are scripts instead of 66 | binaries. Also use the system strip command to include the strip 67 | binary in /tools. 68 |

69 |

70 | Take care not to use 71 | --strip-unneeded on the 72 | libraries. The static ones would be destroyed and the toolchain 73 | packages would need to be built all over again. 74 |

75 |

76 | To save more, remove the documentation: 77 |

78 |
 79 | rm -rf /tools/{,share}/{info,man,doc}
 80 | 
81 |

82 | At this point, you should have at least 3 GB of free space in 83 | $LFS that can be used to build and install 84 | Glibc and Gcc in the next phase. If you can build and install Glibc, 85 | you can build and install the rest too. 86 |

87 |
88 | 113 | 114 | 115 | -------------------------------------------------------------------------------- /lfs-8.0/chapter06/aboutdebug.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 6.71. 关于调试标志 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 6.71. 51 | 关于调试标志 52 |

53 |

54 | 大部分软件和库默认是带调试选项编译的(像 gcc-g 选项)。这意味着调试带有调试信息的程序或库时,调试器不仅可以给出内存地址,还能显示程序和变量的名称。 57 |

58 |

59 | 但是包含这些调试标志编译会显著增加程序或库的体积。下面的例子显示了这些调试标志有多占空间: 60 |

61 |
62 | 86 |
87 |

88 | 程序大小或许取决于所使用的编译器和库,但带调试标志编译通常比不带调试标志编译出的程序大二到五倍。 89 |

90 |

91 | 由于大部分用户永远不会用到他们系统软件的调试器,我们可以通过去除调试标志来节省磁盘空间。下一部分将会展示如何清除所有程序和库的调试标志。 92 |

93 |
94 | 119 | 120 | 121 | -------------------------------------------------------------------------------- /lfs-8.0/chapter06/strippingagain.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 6.72. 再次清理 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 6.72. 再次清理 53 |

54 |

55 | 如果目标客户不是程序员或不会对系统软件做任何调试,则可以通过移除二进制文件和库的调试标志来减少大约 90MB 的系统空间。除了无法完全调试软件之外,这不会造成任何不便。 56 |

57 |

58 | 大部分使用下面提及的命令的人不会遇到任何困难。但这很容易出现打字错误导致新系统不可用,所以在运行 strip 命令前,为目前的 LFS 系统做一个备份是个好主意。 60 |

61 |

62 | 在执行清理之前,请特别注意需要清理的二进制文件没有在运行。如果不确定用户是否通过第 6.4 节 64 | “进入 Chroot 环境” 给出的命令进入了 chroot ,请先退出 chroot: 65 |

66 |
 67 | logout
 68 | 
69 |

70 | 然后通过以下命令重新进入: 71 |

72 |
 73 | chroot $LFS /tools/bin/env -i            \
 74 |     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
 75 |     PATH=/bin:/usr/bin:/sbin:/usr/sbin   \
 76 |     /tools/bin/bash --login
 77 | 
78 |

79 | 现在二进制文件和库可以被安全清理: 80 |

81 |
 82 | /tools/bin/find /usr/lib -type f -name \*.a \
 83 |    -exec /tools/bin/strip --strip-debug {} ';'
 84 | 
 85 | /tools/bin/find /lib /usr/lib -type f -name \*.so* \
 86 |    -exec /tools/bin/strip --strip-unneeded {} ';'
 87 | 
 88 | /tools/bin/find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \
 89 |     -exec /tools/bin/strip --strip-all {} ';'
 90 | 
91 |

92 | 大量文件会被报告它们的文件格式不能被识别。可以安全地忽略这些警告。这些警告指出这些文件是脚本而不是二进制文件。 93 |

94 |
95 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /lfs-8.0/chapter07/chapter07.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 7. System Configuration 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 7. System 52 | Configuration 53 |

54 |
55 |

56 | Table of Contents 57 |

58 | 88 |
89 |
90 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /lfs-8.0/chapter07/etcshells.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 7.9. Creating the /etc/shells File 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 7.9. Creating 52 | the /etc/shells File 53 |

54 |

55 | The shells file contains a list of 56 | login shells on the system. Applications use this file to determine 57 | whether a shell is valid. For each shell a single line should be 58 | present, consisting of the shell's path, relative to the root of the 59 | directory structure (/). 60 |

61 |

62 | For example, this file is consulted by chsh to determine whether an 64 | unprivileged user may change the login shell for her own account. If 65 | the command name is not listed, the user will be denied of change. 66 |

67 |

68 | It is a requirement for applications such as GDM which does not populate the face browser if 70 | it can't find /etc/shells, or FTP 71 | daemons which traditionally disallow access to users with shells not 72 | included in this file. 73 |

74 |
 75 | cat > /etc/shells << "EOF"
 76 | # Begin /etc/shells
 77 | 
 78 | /bin/sh
 79 | /bin/bash
 80 | 
 81 | # End /etc/shells
 82 | EOF
 83 | 
84 |
85 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /lfs-8.0/chapter07/usage.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/chapter07/usage.html -------------------------------------------------------------------------------- /lfs-8.0/chapter08/chapter08.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 8. Making the LFS System Bootable 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 8. Making the 52 | LFS System Bootable 53 |

54 |
55 |

56 | Table of Contents 57 |

58 | 72 |
73 |
74 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /lfs-8.0/chapter08/introduction.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 8.1. Introduction 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | 8.1. Introduction 53 |

54 |

55 | It is time to make the LFS system bootable. This chapter discusses 56 | creating an fstab file, building a 57 | kernel for the new LFS system, and installing the GRUB boot loader so 58 | that the LFS system can be selected for booting at startup. 59 |

60 |
61 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /lfs-8.0/chapter09/chapter09.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Chapter 9. 结束 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 9. 结束 51 |

52 |
53 |

54 | 目录 55 |

56 | 70 |
71 |
72 | 97 | 98 | -------------------------------------------------------------------------------- /lfs-8.0/chapter09/getcounted.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 9.2. 注册 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 9.2. 注册 51 |

52 |

53 | 既然已经阅读完这本书,那你算得上是LFS的用户吗?去这个网站 http://www.linuxfromscratch.org/cgi-bin/lfscounter.php,输入你的名字和你使用的LFS第一个版本号进行注册。 55 |

56 |

57 | 现在,让我们重启LFS。 58 |

59 |
60 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /lfs-8.0/chapter09/theend.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | 9.1. 结束 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | 9.1. 结束 51 |

52 |

53 | 干得漂亮! 新的LFS系统已经被安装好了!我们希望你新通过使用崭新定制的Linux系统获得成功。 54 |

55 |

56 | 首先创建 /etc/lfs-release 文件。通过这个文件,你可以非常轻松地看出系统中安装的LFS是什么版本(对我们来说,可以看出你在哪里需要帮助)。 58 | 运行下面的语句创建文件: 59 |

60 |
 61 | echo 8.0 > /etc/lfs-release
 62 | 
63 |

64 | 这也是个好主意,通过创建文件来显示你的系统相对Linux基础标准(LSB)的异同。通过下面的语句来创建文件: 65 |

66 |
 67 | cat > /etc/lsb-release << "EOF"
 68 | DISTRIB_ID="Linux From Scratch"
 69 | DISTRIB_RELEASE="8.0"
 70 | DISTRIB_CODENAME="<your name here>"
 71 | DISTRIB_DESCRIPTION="Linux From Scratch"
 72 | EOF
 73 | 
74 |

75 | 确保在字段'DISTRIB_CODENAME'设置你自己系统的名字。 76 | 77 |

78 |
79 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /lfs-8.0/images/caution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/caution.png -------------------------------------------------------------------------------- /lfs-8.0/images/chevron-bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/chevron-bottom.png -------------------------------------------------------------------------------- /lfs-8.0/images/chevron-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/chevron-left.png -------------------------------------------------------------------------------- /lfs-8.0/images/chevron-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/chevron-right.png -------------------------------------------------------------------------------- /lfs-8.0/images/chevron-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/chevron-top.png -------------------------------------------------------------------------------- /lfs-8.0/images/grid-three-up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/grid-three-up.png -------------------------------------------------------------------------------- /lfs-8.0/images/important.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/important.png -------------------------------------------------------------------------------- /lfs-8.0/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/menu.png -------------------------------------------------------------------------------- /lfs-8.0/images/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/note.png -------------------------------------------------------------------------------- /lfs-8.0/images/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/tip.png -------------------------------------------------------------------------------- /lfs-8.0/images/tux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/tux.png -------------------------------------------------------------------------------- /lfs-8.0/images/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/images/warning.png -------------------------------------------------------------------------------- /lfs-8.0/legalnotice.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinuxStory/lfs-8.0-Chinese/1b6d7e0028b176fa31f9a3f44eecc0c812914ba3/lfs-8.0/legalnotice.html -------------------------------------------------------------------------------- /lfs-8.0/md5sums: -------------------------------------------------------------------------------- 1 | a61415312426e9c2212bd7dc7929abda acl-2.2.52.src.tar.gz 2 | 84f58dec00b60f2dc8fd1c9709291cc7 attr-2.4.47.src.tar.gz 3 | 50f97f4159805e374639a73e2636f22e autoconf-2.69.tar.xz 4 | 9a1ddb0e053474d9d1105cfe39b0c48d automake-1.15.tar.xz 5 | 148888a7c95ac23705559b6f477dfe25 bash-4.4.tar.gz 6 | 5126a721b73f97d715bb72c13c889035 bc-1.06.95.tar.bz2 7 | 2869c9bf3e60ee97c74ac2a6bf4e9d68 binutils-2.27.tar.bz2 8 | c342201de104cc9ce0a21e0ad10d4021 bison-3.0.4.tar.xz 9 | 00b516f4704d4a7cb50a1d97e6e8e15b bzip2-1.0.6.tar.gz 10 | 9b90522b31f5628c2e0f55dda348e558 check-0.11.0.tar.gz 11 | d5aa2072f662d4118b9f4c63b94601a6 coreutils-8.26.tar.xz 12 | 1fdc2eb0d592c4f89d82d24dfdf02f0b dejagnu-1.6.tar.gz 13 | 569354697ff1cfc9a9de3781361015fa diffutils-3.5.tar.xz 14 | 49f71f6c271ffa95b3c20d757d45c2e5 eudev-3.2.1.tar.gz 15 | 0bd1c74f357f6e9ae2ab6fa6229b9aea e2fsprogs-1.43.4.tar.gz 16 | 2f47841c829facb346eb6e3fab5212e2 expat-2.2.0.tar.bz2 17 | 44e1a4f4c877e9ddc5a542dfa7ecc92b expect5.45.tar.gz 18 | f35eaf05489ae566eafc4d26bb1dcd90 file-5.30.tar.gz 19 | 9936aa8009438ce185bea2694a997fc1 findutils-4.6.0.tar.gz 20 | a5f65570cd9107ec8a8ec88f17b31bb1 flex-2.6.3.tar.gz 21 | 4e7dbc81163e60fd4f0b52496e7542c9 gawk-4.1.4.tar.xz 22 | 677a7623c7ef6ab99881bc4e048debb6 gcc-6.3.0.tar.bz2 23 | 9ce96ff4c99e74295ea19040931c8fb9 gdbm-1.12.tar.gz 24 | df3f5690eaa30fd228537b00cb7b7590 gettext-0.19.8.1.tar.xz 25 | 1496c3bf41adf9db0ebd0af01f202eed glibc-2.25.tar.xz 26 | f58fa8001d60c4c77595fbbb62b63c1d gmp-6.1.2.tar.xz 27 | c1f1db32fb6598d6a93e6e88796a8632 gperf-3.0.4.tar.gz 28 | fa07c1616adeb9c3262be5177d10ad4a grep-3.0.tar.xz 29 | cc825fa64bc7306a885f2fb2268d3ec5 groff-1.22.3.tar.gz 30 | ab399fc6f74a97d66ff77f04b743149c grub-2.02~beta3.tar.xz 31 | f7caabb65cddc1a4165b398009bd05b9 gzip-1.8.tar.xz 32 | 3ba3afb1d1b261383d247f46cb135ee8 iana-etc-2.30.tar.bz2 33 | 87fef1fa3f603aef11c41dcc097af75e inetutils-1.9.4.tar.xz 34 | 12e517cac2b57a0121cda351570f1e63 intltool-0.51.0.tar.gz 35 | 44a8371a4b2c40e48e4c9f98cbd41391 iproute2-4.9.0.tar.xz 36 | c1635a5a83b63aca7f97a3eab39ebaa6 kbd-2.0.4.tar.xz 37 | 3cf469f40ec2ed51f56ba45ea03793e7 kmod-23.tar.xz 38 | 50ef46065c65257141a7340123527767 less-481.tar.gz 39 | 7ee67b16b345b43cd34ed481792169ed lfs-bootscripts-20150222.tar.bz2 40 | 6666b839e5d46c2ad33fc8aa2ceb5f77 libcap-2.25.tar.xz 41 | e54590ec68d6c1239f67b5b44e92022c libpipeline-1.4.1.tar.gz 42 | 1bfb9b923f2c1339b4d2ce1807064aa5 libtool-2.4.6.tar.xz 43 | de43a1a9e3a1ad97467c9a413bcdf896 linux-4.9.9.tar.xz 44 | 730bb15d96fffe47e148d1e09235af82 m4-1.4.18.tar.xz 45 | 15b012617e7c44c0ed482721629577ac make-4.2.1.tar.bz2 46 | 2948d49d0ed7265f60f83aa4a9ac9268 man-db-2.7.6.1.tar.xz 47 | 91c721409bbf823d8f62bee3a1fe8ae3 man-pages-4.09.tar.xz 48 | d6a1d5f8ddea3abd2cc3e98f58352d26 mpc-1.0.3.tar.gz 49 | c4ac246cf9795a4491e7766002cd528f mpfr-3.1.5.tar.xz 50 | ee13d052e1ead260d7c28071f46eefb1 ncurses-6.0.tar.gz 51 | e3da7940431633fb65a01b91d3b7a27a patch-2.7.5.tar.xz 52 | 178ee0e8fa544dbc76d99cf041e2c9f0 perl-5.24.1.tar.bz2 53 | f739a28cae4e0ca291f82d1d41ef107d pkg-config-0.29.1.tar.gz 54 | 957e42e8b193490b2111252e4a2b443c procps-ng-3.3.12.tar.xz 55 | 935c0fd6eb208288262b385fa656f1bf psmisc-22.21.tar.gz 56 | 205b03a87fc83dab653b628c59b9fc91 readline-7.0.tar.gz 57 | e0c583d4c380059abd818cd540fe6938 sed-4.4.tar.xz 58 | c06f8c2571b44899e60662f9ad259dd6 shadow-4.4.tar.xz 59 | c70599ab0d037fde724f7210c2c8d7f8 sysklogd-1.5.1.tar.gz 60 | 6eda8a97b86e0a6f59dabbf25202aa6f sysvinit-2.88dsf.tar.bz2 61 | a1802fec550baaeecff6c381629653ef tar-1.29.tar.xz 62 | 98ebf13bbd90257e006c219369dd5f67 tcl-core8.6.6-src.tar.gz 63 | 32baefe5c7080dfb512a4eac5ce67b2a texinfo-6.3.tar.xz 64 | db361d005ac8b30a2d18c5ca38d3e8ab tzdata2016j.tar.gz 65 | c2d6b127f89261513b23b6d458484099 udev-lfs-20140408.tar.bz2 66 | 0cbb6d16ab9c5736e5649ef1264bee6e util-linux-2.29.1.tar.xz 67 | 457543a7754b0d3c1c0aa4d4c3bb4070 vim-8.0.069.tar.bz2 68 | af4813fe3952362451201ced6fbce379 XML-Parser-2.44.tar.gz 69 | 60fb79cab777e3f71ca43d298adacbd5 xz-5.2.3.tar.xz 70 | 85adef240c5f370b308da8c938951a68 zlib-1.2.11.tar.xz 71 | e3d5bf23a4e5628680893d46e6ff286e bash-4.4-upstream_fixes-1.patch 72 | 877e81fba316fe487ec23501059d54b8 bc-1.06.95-memory_leak-1.patch 73 | 6a5ac7e89b791aae556de0f745916f7f bzip2-1.0.6-install_docs-1.patch 74 | e1f87b10b23d66344e5e99e7fabfa7a2 coreutils-8.26-i18n-1.patch 75 | 9a5997c3452909b1769918c759eff8a2 glibc-2.25-fhs-1.patch 76 | f75cca16a38da6caa7d52151f7136895 kbd-2.0.4-backspace-1.patch 77 | 0b7b5ea568a878fdcc4057b2bf36e5cb sysvinit-2.88dsf-consolidated-1.patch 78 | -------------------------------------------------------------------------------- /lfs-8.0/part1.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Part I. Introduction 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 44 |
45 |

46 | I. Introduction 47 |

48 |
49 |

50 | Table of Contents 51 |

52 | 77 |
78 |
79 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /lfs-8.0/prologue/errata.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Errata 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 47 |
48 |

49 | ix. Errata 50 |

51 |

52 | The software used to create an LFS system is constantly being updated 53 | and enhanced. Security warnings and bug fixes may become available 54 | after the LFS book has been released. To check whether the package 55 | versions or instructions in this release of LFS need any 56 | modifications to accommodate security vulnerabilities or other bug 57 | fixes, please visit http://www.linuxfromscratch.org/lfs/errata/8.0/ 59 | before proceeding with your build. You should note any changes shown 60 | and apply them to the relevant section of the book as you progress 61 | with building the LFS system. 62 |

63 |
64 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /lfs-8.0/prologue/organization.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Structure 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 46 |
47 |

48 | viii. Structure 49 |

50 |

51 | This book is divided into the following parts. 52 |

53 |
54 |

55 | Part I - Introduction 56 |

57 |

58 | Part I explains a few important notes on how to proceed with the 59 | LFS installation. This section also provides meta-information about 60 | the book. 61 |

62 |
63 |
64 |

65 | Part II - Preparing for the Build 66 |

67 |

68 | Part II describes how to prepare for the building 69 | process—making a partition, downloading the packages, and 70 | compiling temporary tools. 71 |

72 |
73 |
74 |

75 | Part III - Building the LFS System 76 |

77 |

78 | Part III guides the reader through the building of the LFS 79 | system—compiling and installing all the packages one by one, 80 | setting up the boot scripts, and installing the kernel. The 81 | resulting Linux system is the foundation on which other software 82 | can be built to expand the system as desired. At the end of this 83 | book, there is an easy to use reference listing all of the 84 | programs, libraries, and important files that have been installed. 85 |

86 |
87 |
88 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /lfs-8.0/prologue/preface.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Preface 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 36 |
37 |

38 | Preface 39 |

40 |
41 |

42 | Table of Contents 43 |

44 | 74 |
75 |
76 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /lfs-8.0/scripts/apds18.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | D.18. /etc/rc.d/init.d/reboot 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 50 |
51 |

52 | D.18. 53 | /etc/rc.d/init.d/reboot 54 |

55 |
 56 | #!/bin/sh
 57 | ########################################################################
 58 | # Begin reboot
 59 | #
 60 | # Description : Reboot Scripts
 61 | #
 62 | # Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
 63 | #               DJ Lucas - dj@linuxfromscratch.org
 64 | # Update      : Bruce Dubbs - bdubbs@linuxfromscratch.org
 65 | #
 66 | # Version     : LFS 7.0
 67 | #
 68 | ########################################################################
 69 | 
 70 | ### BEGIN INIT INFO
 71 | # Provides:            reboot
 72 | # Required-Start:
 73 | # Should-Start:
 74 | # Required-Stop:
 75 | # Should-Stop:
 76 | # Default-Start:       6
 77 | # Default-Stop:
 78 | # Short-Description:   Reboots the system.
 79 | # Description:         Reboots the System.
 80 | # X-LFS-Provided-By:   LFS
 81 | ### END INIT INFO
 82 | 
 83 | . /lib/lsb/init-functions
 84 | 
 85 | case "${1}" in
 86 |    stop)
 87 |       log_info_msg "Restarting system..."
 88 |       reboot -d -f -i
 89 |       ;;
 90 | 
 91 |    *)
 92 |       echo "Usage: ${0} {stop}"
 93 |       exit 1
 94 |       ;;
 95 | 
 96 | esac
 97 | 
 98 | # End reboot
 99 | 
100 |
101 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /lfs-8.0/scripts/apds19.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | D.19. /etc/rc.d/init.d/halt 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 50 |
51 |

52 | D.19. /etc/rc.d/init.d/halt 53 |

54 |
 55 | #!/bin/sh
 56 | ########################################################################
 57 | # Begin halt
 58 | #
 59 | # Description : Halt Script
 60 | #
 61 | # Authors     : Gerard Beekmans - gerard@linuxfromscratch.org
 62 | #               DJ Lucas - dj@linuxfromscratch.org
 63 | # Update      : Bruce Dubbs - bdubbs@linuxfromscratch.org
 64 | #
 65 | # Version     : LFS 7.0
 66 | #
 67 | ########################################################################
 68 | 
 69 | ### BEGIN INIT INFO
 70 | # Provides:            halt
 71 | # Required-Start:
 72 | # Should-Start:
 73 | # Required-Stop:
 74 | # Should-Stop:
 75 | # Default-Start:       0
 76 | # Default-Stop:
 77 | # Short-Description:   Halts the system.
 78 | # Description:         Halts the System.
 79 | # X-LFS-Provided-By:   LFS
 80 | ### END INIT INFO
 81 | 
 82 | case "${1}" in
 83 |    stop)
 84 |       halt -d -f -i -p
 85 |       ;;
 86 | 
 87 |    *)
 88 |       echo "Usage: {stop}"
 89 |       exit 1
 90 |       ;;
 91 | esac
 92 | 
 93 | # End halt
 94 | 
95 |
96 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /lfs-8.0/scripts/apds20.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | D.20. /etc/rc.d/init.d/template 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 50 |
51 |

52 | D.20. /etc/rc.d/init.d/template 53 |

54 |
 55 | #!/bin/sh
 56 | ########################################################################
 57 | # Begin scriptname
 58 | #
 59 | # Description :
 60 | #
 61 | # Authors     :
 62 | #
 63 | # Version     : LFS x.x
 64 | #
 65 | # Notes       :
 66 | #
 67 | ########################################################################
 68 | 
 69 | ### BEGIN INIT INFO
 70 | # Provides:            template
 71 | # Required-Start:
 72 | # Should-Start:
 73 | # Required-Stop:
 74 | # Should-Stop:
 75 | # Default-Start:
 76 | # Default-Stop:
 77 | # Short-Description:
 78 | # Description:
 79 | # X-LFS-Provided-By:
 80 | ### END INIT INFO
 81 | 
 82 | . /lib/lsb/init-functions
 83 | 
 84 | case "${1}" in
 85 |    start)
 86 |       log_info_msg "Starting..."
 87 |       start_daemon fully_qualified_path
 88 |       ;;
 89 | 
 90 |    stop)
 91 |       log_info_msg "Stopping..."
 92 |       killproc fully_qualified_path
 93 |       ;;
 94 | 
 95 |    restart)
 96 |       ${0} stop
 97 |       sleep 1
 98 |       ${0} start
 99 |       ;;
100 | 
101 |    *)
102 |       echo "Usage: ${0} {start|stop|restart}"
103 |       exit 1
104 |       ;;
105 | esac
106 | 
107 | exit 0
108 | 
109 | # End scriptname
110 | 
111 |
112 | 139 | 140 | 141 | -------------------------------------------------------------------------------- /lfs-8.0/scripts/apds21.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | D.21. /etc/sysconfig/modules 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 50 |
51 |

52 | D.21. /etc/sysconfig/modules 53 |

54 |
 55 | ########################################################################
 56 | # Begin /etc/sysconfig/modules
 57 | #
 58 | # Description : Module auto-loading configuration
 59 | #
 60 | # Authors     :
 61 | #
 62 | # Version     : 00.00
 63 | #
 64 | # Notes       : The syntax of this file is as follows:
 65 | #          <module> [<arg1> <arg2> ...]
 66 | #
 67 | # Each module should be on its own line, and any options that you want
 68 | # passed to the module should follow it.  The line deliminator is either
 69 | # a space or a tab.
 70 | ########################################################################
 71 | 
 72 | # End /etc/sysconfig/modules
 73 | 
74 |
75 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /lfs-8.0/scripts/apds22.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | D.22. /etc/sysconfig/createfiles 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 50 |
51 |

52 | D.22. 53 | /etc/sysconfig/createfiles 54 |

55 |
 56 | ########################################################################
 57 | # Begin /etc/sysconfig/createfiles
 58 | #
 59 | # Description : Createfiles script config file
 60 | #
 61 | # Authors     :
 62 | #
 63 | # Version     : 00.00
 64 | #
 65 | # Notes       : The syntax of this file is as follows:
 66 | #         if type is equal to "file" or "dir"
 67 | #          <filename> <type> <permissions> <user> <group>
 68 | #         if type is equal to "dev"
 69 | #          <filename> <type> <permissions> <user> <group> <devtype> 
 70 | #             <major> <minor>
 71 | #
 72 | #         <filename> is the name of the file which is to be created
 73 | #         <type> is either file, dir, or dev.
 74 | #               file creates a new file
 75 | #               dir creates a new directory
 76 | #               dev creates a new device
 77 | #         <devtype> is either block, char or pipe
 78 | #               block creates a block device
 79 | #               char creates a character deivce
 80 | #               pipe creates a pipe, this will ignore the <major> and 
 81 | #           <minor> fields
 82 | #         <major> and <minor> are the major and minor numbers used for 
 83 | #     the device.
 84 | ########################################################################
 85 | 
 86 | # End /etc/sysconfig/createfiles
 87 | 
88 |
89 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /lfs-8.0/scripts/apds23.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | D.23. /etc/sysconfig/udev-retry 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | D.23. 52 | /etc/sysconfig/udev-retry 53 |

54 |
 55 | ########################################################################
 56 | # Begin /etc/sysconfig/udev_retry
 57 | #
 58 | # Description : udev_retry script configuration
 59 | #
 60 | # Authors     :
 61 | #
 62 | # Version     : 00.00
 63 | #
 64 | # Notes       : Each subsystem that may need to be re-triggered after mountfs
 65 | #               runs should be listed in this file.  Probable subsystems to be
 66 | #               listed here are rtc (due to /var/lib/hwclock/adjtime) and sound
 67 | #               (due to both /var/lib/alsa/asound.state and /usr/sbin/alsactl).
 68 | #               Entries are whitespace-separated.
 69 | ########################################################################
 70 | 
 71 | rtc
 72 | 
 73 | # End /etc/sysconfig/udev_retry
 74 | 
75 |
76 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /lfs-8.0/scripts/apes01.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | E.1. 55-lfs.rules 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | E.1. 55-lfs.rules 52 |

53 |
54 | # /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
55 | 
56 | # Core kernel devices
57 | 
58 | # This causes the system clock to be set as soon as /dev/rtc becomes available.
59 | SUBSYSTEM=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
60 | KERNEL=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
61 | 
62 | # Comms devices
63 | 
64 | KERNEL=="ippp[0-9]*",       GROUP="dialout"
65 | KERNEL=="isdn[0-9]*",       GROUP="dialout"
66 | KERNEL=="isdnctrl[0-9]*",   GROUP="dialout"
67 | KERNEL=="dcbri[0-9]*",      GROUP="dialout"
68 | 
69 |
70 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /lfs-8.0/scripts/eudev-rules.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Appendix E. Udev configuration rules 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 48 |
49 |

50 | E. Udev configuration rules 51 |

52 |

53 | The rules in this appendix are listed for convenience. Installation 54 | is normally done via instructions in Section 6.65, 57 | “Eudev-3.2.1”. 58 |

59 |
60 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /lfs-8.0/scripts/scripts.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | Appendix D. Boot and sysconfig scripts version-20150222 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 49 |
50 |

51 | D. Boot and sysconfig scripts 52 | version-20150222 53 |

54 |

55 | The scripts in this appendix are listed by the directory where they 56 | normally reside. The order is /etc/rc.d/init.d, /etc/sysconfig, /etc/sysconfig/network-devices, and /etc/sysconfig/network-devices/services. Within 61 | each section, the files are listed in the order they are normally 62 | called. 63 |

64 |
65 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /lfs-8.0/stylesheets/lfs-print.css: -------------------------------------------------------------------------------- 1 | /* 2 | $LastChangedBy: bdubbs $ 3 | $Date: 2015-08-10 10:53:57 -0700 (Mon, 10 Aug 2015) $ 4 | */ 5 | @import url(lfs.css); 6 | 7 | .navfooter, .headerlinks { 8 | display: none; 9 | } 10 | 11 | div.navheader { 12 | position: absolute; 13 | } 14 | 15 | div.navheader ul, 16 | div.navheader ul{ 17 | display: none; 18 | } 19 | -------------------------------------------------------------------------------- /translate-agreement.md: -------------------------------------------------------------------------------- 1 | ##翻译标准化 2 | 3 | 1. 可参考 CLReq https://www.w3.org/TR/clreq 4 | 2. 简单约定:A)专有名词的大小写、连字符等请保持跟原名或注册商标一致;B)一般情况下使用中文全角标点,但是文件名,版本号等其中出现的符号用保持用原来英文半角符号。C)待补充 5 | 3. 对于不确定的专有名词翻译,请及时拿出来讨论,发github issue或者微信、邮件 6 | 4. 项目中使用到的术语、专业名词,请更新到术语表中 https://github.com/LinuxStory/StoryTranslation/blob/master/Dictionary.md 7 | 5. 编辑器请统一使用 UTF-8 无BOM,Windows 下尽量使用 Notepad++,Linux 和 Mac 不做约束 8 | 6. 术语尽量保证和已翻译的一致,也可以查询[微软术语搜索](http://www.microsoft.com/Language/zh-cn/Search.aspx) 9 | 7. 具体页面中出现的 "Prev","Next","Home","Up"统一翻译为:“上一页”“下一页”“首页”和“返回” 10 | 8. 出现第** 章章节名称统一成类似的格式 "第六章 安装基本系统软件",中间是一个半角空格 11 | 9. 章节的名称中如果是数字,比如5.4.2. 中间的点号,保持原来的英文半角点号 12 | 10. 提交翻译好的内容以页面为单位,建议一整个页面翻译完后,先自我查一遍,包括编码,回车换行符,大小写等等,然后再做提交。 13 | 11. 每个翻译的页面,请手动将编码由 ISO-8859-1 改成 UTF-8 14 | 12. 换行符统一为 LF(0x10 \n) 15 | 13. 不遵守英文原文档80个字符就必须换行的束缚 16 | 14. 英文单词前后各空一个半角空格,比如"刚发布的 Linux 内核版本" 17 | 15. 文档中出现这四个单词,请统一按如下对应词语来翻译 18 | 19 | > Note 注意 20 | 21 | > Important 重要 22 | 23 | > Caution 当心 24 | 25 | > Warning 警告 26 | --------------------------------------------------------------------------------