Changeset 55851d6
- Timestamp:
- 05/29/2004 08:00:54 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 05616e2
- Parents:
- d44a965
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/administrativa.xml
rd44a965 r55851d6 27 27 ask that you've at least checked the LFS FAQ (see above) and the mailing list 28 28 archives (see below) for the answer to your question. You can find the IRC 29 network at < emphasis>irc.linuxfromscratch.org</emphasis> or30 < emphasis>irc.linux-phreak.net</emphasis> port 6667. The support channel is29 network at <uri>irc.linuxfromscratch.org</uri> or 30 <uri>irc.linux-phreak.net</uri> port 6667. The support channel is 31 31 named #LFS-support.</para> 32 32 … … 37 37 <title>Mailing lists</title> 38 38 39 <para>The < emphasis>linuxfromscratch.org</emphasis> server is hosting a number39 <para>The <uri>linuxfromscratch.org</uri> server is hosting a number 40 40 of mailing lists used for the development of the LFS project. These lists 41 41 include, among others, the main development and support lists.</para> … … 50 50 <title>News server</title> 51 51 52 <para>All the mailing lists hosted at < emphasis>linuxfromscratch.org</emphasis>52 <para>All the mailing lists hosted at <uri>linuxfromscratch.org</uri> 53 53 are also accessible via the NNTP server. All messages posted to a mailing list 54 54 are copied to the corresponding newsgroup, and vice versa.</para> 55 55 56 56 <para>The news server can be reached at 57 < emphasis>news.linuxfromscratch.org</emphasis>.</para>57 <uri>news.linuxfromscratch.org</uri>.</para> 58 58 59 59 </sect2> -
chapter01/askforhelp.xml
rd44a965 r55851d6 34 34 </itemizedlist> 35 35 36 < para>(Note that saying that you've deviated from the book doesn't mean36 <note><para>Saying that you've deviated from the book doesn't mean 37 37 that we won't help you. After all, LFS is about choice. It'll just 38 help us to see other possible causes of your problem. )</para>38 help us to see other possible causes of your problem.</para></note> 39 39 40 40 </sect2> … … 60 60 As an example, here is some screen output from make:</para> 61 61 62 <screen> gcc -DALIASPATH=\"/mnt/lfs/usr/share/locale:.\"62 <screen><computeroutput>gcc -DALIASPATH=\"/mnt/lfs/usr/share/locale:.\" 63 63 -DLOCALEDIR=\"/mnt/lfs/usr/share/locale\" -DLIBDIR=\"/mnt/lfs/usr/lib\" 64 64 -DINCLUDEDIR=\"/mnt/lfs/usr/include\" -DHAVE_CONFIG_H -I. -I. … … 74 74 make[1]: *** [all-recursive] Error 1 75 75 make[1]: Leaving directory `/lfs/tmp/make-3.79.1' 76 make: *** [all-recursive-am] Error 2</ screen>76 make: *** [all-recursive-am] Error 2</computeroutput></screen> 77 77 78 78 <para>In this case, many people just include the bottom section where it 79 79 says:</para> 80 80 81 <screen> make [2]: *** [make] Error 1</screen>81 <screen><computeroutput>make [2]: *** [make] Error 1</computeroutput></screen> 82 82 83 83 <para>and onwards. This isn't enough for us to diagnose the problem because it -
chapter02/creatingfilesystem.xml
rd44a965 r55851d6 17 17 <para>To create an ext2 file system on the LFS partition run the following:</para> 18 18 19 <screen><userinput>mke2fs /dev/ xxx</userinput></screen>19 <screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen> 20 20 21 <para>Replace < filename>xxx</filename> with the name of the LFS partition21 <para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS partition 22 22 (something like <filename>hda5</filename>).</para> 23 23 24 24 <para>If you created a (new) swap partition you need to initialize it as a 25 25 swap partition too (also known as formatting, like you did above with 26 < userinput>mke2fs</userinput>) by running:</para>26 <command>mke2fs</command>) by running:</para> 27 27 28 <screen><userinput>mkswap /dev/ yyy</userinput></screen>28 <screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen> 29 29 30 <para>Replace < filename>yyy</filename> with the name of the swap30 <para>Replace <replaceable>[yyy]</replaceable> with the name of the swap 31 31 partition.</para> 32 32 -
chapter02/creatingpartition.xml
rd44a965 r55851d6 29 29 a swap partition.</para> 30 30 31 <para>Start a disk partitioning program such as < userinput>cfdisk</userinput>32 or < userinput>fdisk</userinput> with an argument naming the hard disk upon31 <para>Start a disk partitioning program such as <command>cfdisk</command> 32 or <command>fdisk</command> with an argument naming the hard disk upon 33 33 which the new partition must be created -- for example 34 34 <filename>/dev/hda</filename> for the primary IDE disk. Create a Linux native 35 35 partition and a swap partition, if needed. Please refer to the man pages of 36 < userinput>cfdisk</userinput> or <userinput>fdisk</userinput> if you don't yet36 <command>cfdisk</command> or <command>fdisk</command> if you don't yet 37 37 know how to use the programs.</para> 38 38 -
chapter02/mounting.xml
rd44a965 r55851d6 11 11 the partition. For that, we need to mount it, and have to choose a mount 12 12 point. In this book we assume that the file system is mounted under 13 <filename >/mnt/lfs</filename>, but it doesn't matter what directory13 <filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory 14 14 you choose.</para> 15 15 … … 22 22 23 23 <screen><userinput>mkdir -p $LFS 24 mount /dev/ xxx$LFS</userinput></screen>24 mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen> 25 25 26 <para>Replace < filename>xxx</filename> with the designation of the LFS26 <para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS 27 27 partition.</para> 28 28 29 29 <para>If you have decided to use multiple partitions for LFS (say one for 30 <filename >/</filename> and another for <filename>/usr</filename>), mount31 them like this:</para>30 <filename class="directory">/</filename> and another for 31 <filename class="directory">/usr</filename>), mount them like this:</para> 32 32 33 33 <screen><userinput>mkdir -p $LFS 34 mount /dev/ xxx$LFS34 mount /dev/<replaceable>[xxx]</replaceable> $LFS 35 35 mkdir $LFS/usr 36 mount /dev/ yyy$LFS/usr</userinput></screen>36 mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen> 37 37 38 <para>Of course, replace < filename>xxx</filename> and <filename>yyy</filename>39 with the appropriate partition names.</para>38 <para>Of course, replace <replaceable>[xxx]</replaceable> and 39 <replaceable>[yyy]</replaceable> with the appropriate partition names.</para> 40 40 41 41 <para>You should also ensure that this new partition is not mounted with -
chapter03/introduction.xml
rd44a965 r55851d6 32 32 that is conveniently available throughout the entire build. You'll also need a 33 33 working directory in which to unpack the sources and build them. A scheme that 34 works well is to use <filename >$LFS/sources</filename> as the place to store34 works well is to use <filename class="directory">$LFS/sources</filename> as the place to store 35 35 the tarballs and patches, <emphasis>and</emphasis> as a working directory. 36 36 This way everything you need will be located on the LFS partition and available -
chapter04/aboutlfs.xml
rd44a965 r55851d6 23 23 24 24 <para>Having this variable set means that if you are told to run a command like 25 < userinput>mkdir $LFS/tools</userinput>, you can type it literally. Your shell26 will replace "$LFS" with "/mnt/lfs" (or whatever you set the variable to) when27 it processes the command line.</para>25 <command>mkdir $LFS/tools</command>, you can type it literally. Your shell 26 will replace <quote>$LFS</quote> with <quote>/mnt/lfs</quote> (or whatever 27 you set the variable to) when it processes the command line.</para> 28 28 29 29 <para>Don't forget to check that <quote>$LFS</quote> is set whenever you leave and 30 reenter the environment (as when doing a n<quote>su</quote> to root or another user).30 reenter the environment (as when doing a <quote>su</quote> to root or another user). 31 31 </para> 32 32 -
chapter04/aboutsbus.xml
rd44a965 r55851d6 9 9 10 10 <para>Most people would like to know beforehand approximately how long it 11 takes to compile and install each package. But "Linux from Scratch"is built11 takes to compile and install each package. But <quote>Linux from Scratch</quote> is built 12 12 on so many different systems, it is not possible to give actual times that are 13 13 anywhere near accurate: the biggest package (Glibc) won't take more than -
chapter04/addinguser.xml
rd44a965 r55851d6 20 20 <para>The meaning of the switches:</para> 21 21 22 <itemizedlist> 23 <listitem><para><userinput>-s /bin/bash</userinput>: This makes 24 <userinput>bash</userinput> the default shell for user 22 <variablelist> 23 <varlistentry> 24 <term><parameter>-s /bin/bash</parameter></term> 25 <listitem><para>This makes 26 <command>bash</command> the default shell for user 25 27 <emphasis>lfs</emphasis>.</para></listitem> 28 </varlistentry> 26 29 27 <listitem><para><userinput>-m</userinput>: This creates a home 30 <varlistentry> 31 <term><parameter>-m</parameter></term> 32 <listitem><para>This creates a home 28 33 directory for <emphasis>lfs</emphasis>.</para></listitem> 34 </varlistentry> 29 35 30 <listitem><para><userinput>-k /dev/null</userinput>: This parameter 36 <varlistentry> 37 <term><parameter>-k /dev/null</parameter></term> 38 <listitem><para>This parameter 31 39 prevents possible copying of files from a skeleton directory (default 32 is <filename >/etc/skel</filename>) by changing the input location to40 is <filename class="directory">/etc/skel</filename>) by changing the input location to 33 41 the special null device.</para></listitem> 34 </itemizedlist> 42 </varlistentry> 43 </variablelist> 35 44 36 45 <para>If you want to be able to log in as <emphasis>lfs</emphasis>, then give … … 56 65 <screen><userinput>su - lfs</userinput></screen> 57 66 58 <para>The <quote>< command>-</command></quote> instructs <command>su</command> to67 <para>The <quote><parameter>-</parameter></quote> instructs <command>su</command> to 59 68 start a <emphasis>login</emphasis> shell.</para> 60 69 -
chapter04/creatingtoolsdir.xml
rd44a965 r55851d6 39 39 40 40 <para>The created symlink enables us to compile our toolchain so that it always 41 refers to <filename >/tools</filename>, meaning that the compiler, assembler41 refers to <filename class="directory">/tools</filename>, meaning that the compiler, assembler 42 42 and linker will work both in this chapter (when we are still using some tools 43 43 from the host) <emphasis>and</emphasis> in the next (when we are <quote>chrooted</quote> to -
chapter04/settingenviron.xml
rd44a965 r55851d6 13 13 <filename>.bash_profile</filename>:</para> 14 14 15 <screen><userinput>cat > ~/.bash_profile << "EOF"</userinput>15 <screen><userinput>cat > ~/.bash_profile << <quote>EOF<quote> 16 16 exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash 17 <userinput>EOF</userinput></screen>17 EOF</userinput></screen> 18 18 19 19 <para>Normally, when you log on as user <emphasis>lfs</emphasis>, … … 33 33 <filename>.bashrc</filename> file instead. Create this latter file now:</para> 34 34 35 <screen><userinput>cat > ~/.bashrc << "EOF"</userinput>35 <screen><userinput>cat > ~/.bashrc << <quote>EOF<quote> 36 36 set +h 37 37 umask 022 … … 40 40 PATH=/tools/bin:/bin:/usr/bin 41 41 export LFS LC_ALL PATH 42 <userinput>EOF</userinput></screen>42 EOF</userinput></screen> 43 43 44 44 <para>The <command>set +h</command> command turns off … … 69 69 everything will work as expected in the chroot environment.</para> 70 70 71 <para>We prepend <filename >/tools/bin</filename> to the standard PATH so71 <para>We prepend <filename class="directory">/tools/bin</filename> to the standard PATH so 72 72 that, as we move along through this chapter, the tools we build will get used 73 73 during the rest of the building process.</para> -
stylesheets/lfs.css
rd44a965 r55851d6 130 130 131 131 /* Admonitions */ 132 div. note, div.tip{132 div.admonition { 133 133 background-color: #fffff6; 134 border: 2px solid #dbddec;134 border: medium solid #600; 135 135 width: 90%; 136 136 margin: .5em auto; 137 }138 139 div.important, div.warning, div.caution {140 background-color: #fffff6;141 border: medium solid #400;142 width: 90%;143 margin: 1.5em auto;144 color: #600;145 font-size: larger;146 }147 148 div.important h3, div.warning h3, div.caution h3 {149 color: #900;150 137 } 151 138 … … 163 150 } 164 151 165 div.important em, div.warning em, div.caution em {166 color: #000;167 font-weight: bold;168 }169 170 div.important tt, div.warning tt, div.caution tt {171 font-weight: bold;172 }173 174 152 /* variablelist & segmentedlist */ 175 153 dl { … … 188 166 padding: 0; 189 167 } 190 191 168 div.variablelist dd { 192 169 margin-bottom: 1em; … … 195 172 div.variablelist dd p { 196 173 margin-top: 0px; 197 }198 199 dl.materials dt, div.installation dt, div.configuration dt, div.sect2 dt {200 display: list-item;201 174 } 202 175 … … 223 196 } 224 197 225 pre. screen{198 pre.userinput { 226 199 color: #101310; 227 200 background-color: #e5e5e5; … … 232 205 } 233 206 207 pre.screen { 208 background-color: #e9e9e9; 209 border: 1px solid #050505; 210 padding: .5em 1em; 211 margin: 0 2em; 212 } 213 234 214 /* Sections */ 235 215 div.wrap h1 { 236 216 background: #f5f6f7; 237 padding: 1em 0 0.5em 0;217 padding: 0.5em 0 0.5em 0; 238 218 margin: 0px auto; 239 219 } … … 242 222 background: #f5f6f7; 243 223 border-bottom: 0.2em solid #dbddec; 244 padding: 0 .5em0.5em 0.3em 0.5em;224 padding: 0 0.5em 0.3em 0.5em; 245 225 margin: 0px auto; 246 226 } … … 261 241 background: #f5f6f7; 262 242 border-top: 0.2em solid #dbddec; 263 padding: 0.5em 0.5em 1em 0.5em;243 padding: 0.5em 0.5em 0.5em 0.5em; 264 244 margin: 0.5em 0 .5em 0; 265 245 } -
stylesheets/xhtml/lfs-mixed.xsl
rd44a965 r55851d6 8 8 <xsl:template match="screen"> 9 9 <xsl:choose> 10 <!-- Temporally hack -->11 10 <xsl:when test="child::* = userinput"> 12 <pre class=" {name(.)}">11 <pre class="userinput"> 13 12 <kbd class="command"> 14 13 <xsl:value-of select="."/>
Note:
See TracChangeset
for help on using the changeset viewer.