Changeset 9cb6b64 for final-preps
- Timestamp:
- Jul 1, 2006, 12:48:39 PM (18 years ago)
- Children:
- 8018c66
- Parents:
- 2ce8e8a
- Location:
- final-preps
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
final-preps/aboutlfs.xml
r2ce8e8a r9cb6b64 9 9 <?dbhtml filename="aboutlfs.html"?> 10 10 11 <title>About $ LFS</title>11 <title>About $CLFS</title> 12 12 13 13 <para>Throughout this book, the environment variable <envar>LFS</envar> will … … 16 16 Check that the <envar>LFS</envar> variable is set up properly with:</para> 17 17 18 <screen><userinput>echo $ LFS</userinput></screen>18 <screen><userinput>echo $CLFS</userinput></screen> 19 19 20 20 <para>Make sure the output shows the path to the CLFS partition's mount … … 26 26 27 27 <para>Having this variable set is beneficial in that commands such as 28 <command>install -dv $ LFS/tools</command> can be typed literally. The shell29 will automatically replace <quote>$ LFS</quote> with28 <command>install -dv $CLFS/tools</command> can be typed literally. The shell 29 will automatically replace <quote>$CLFS</quote> with 30 30 <quote>/mnt/lfs</quote> (or whatever the variable was set to) when it 31 31 processes the command line.</para> 32 32 33 <para>If you haven't created the <filename class="directory">$ LFS</filename>33 <para>If you haven't created the <filename class="directory">$CLFS</filename> 34 34 directory, do so at this time by issuing the following commands:</para> 35 35 36 <screen><userinput>install -dv $ LFS</userinput></screen>36 <screen><userinput>install -dv $CLFS</userinput></screen> 37 37 38 <para>Do not forget to check that <envar>$ LFS</envar> is set whenever38 <para>Do not forget to check that <envar>$CLFS</envar> is set whenever 39 39 you leave and reenter the current working environment (as when doing a 40 40 <quote>su</quote> to <systemitem class="username">root</systemitem> or -
final-preps/addinguser.xml
r2ce8e8a r9cb6b64 79 79 80 80 <para>Grant <systemitem class="username">lfs</systemitem> full access to 81 <filename class="directory">$ LFS/cross-tools</filename> and82 <filename class="directory">$ LFS/tools</filename> by making <systemitem81 <filename class="directory">$CLFS/cross-tools</filename> and 82 <filename class="directory">$CLFS/tools</filename> by making <systemitem 83 83 class="username">lfs</systemitem> the directorys' owner:</para> 84 84 85 <screen><userinput>chown -v lfs $ LFS/tools86 chown -v lfs $ LFS/cross-tools</userinput></screen>85 <screen><userinput>chown -v lfs $CLFS/tools 86 chown -v lfs $CLFS/cross-tools</userinput></screen> 87 87 88 88 <para>If a separate working directory was created as suggested, 89 89 give user <systemitem class="username">lfs</systemitem> ownership of this directory:</para> 90 90 91 <screen><userinput>chown -v lfs $ LFS/sources</userinput></screen>91 <screen><userinput>chown -v lfs $CLFS/sources</userinput></screen> 92 92 93 93 <para>Next, login as user <systemitem class="username">lfs</systemitem>. -
final-preps/creatingcrossdir.xml
r2ce8e8a r9cb6b64 9 9 <?dbhtml filename="creatingcrossdir.html"?> 10 10 11 <title>Creating the $ LFS/cross-tools Directory</title>11 <title>Creating the $CLFS/cross-tools Directory</title> 12 12 13 13 <para>The cross-binutils and cross-compiler built in 14 14 <xref linkend="chapter-cross-tools"/> will be installed under 15 <filename class="directory">$ LFS/cross-tools</filename> to keep them15 <filename class="directory">$CLFS/cross-tools</filename> to keep them 16 16 separate from the host programs. The programs compiled here are 17 17 cross-tools and will not be a part of the final CLFS system or the … … 22 22 <systemitem class="username">root</systemitem>:</para> 23 23 24 <screen><userinput>install -dv $ LFS/cross-tools</userinput></screen>24 <screen><userinput>install -dv $CLFS/cross-tools</userinput></screen> 25 25 26 26 <para>The next step is to create a <filename … … 29 29 Run this command as <systemitem class="username">root</systemitem> as well:</para> 30 30 31 <screen><userinput>ln -sv $ LFS/cross-tools /</userinput></screen>31 <screen><userinput>ln -sv $CLFS/cross-tools /</userinput></screen> 32 32 33 33 <para>The symlink isn't technically necessary (though the book's 34 34 instructions do assume its existence), but is there mainly for 35 consistency (because /tools is also symlinked to $ LFS/tools) and to35 consistency (because /tools is also symlinked to $CLFS/tools) and to 36 36 simplify the installation of the cross-compile tools.</para> 37 37 -
final-preps/creatingtoolsdir.xml
r2ce8e8a r9cb6b64 9 9 <?dbhtml filename="creatingtoolsdir.html"?> 10 10 11 <title>Creating the $ LFS/tools Directory</title>11 <title>Creating the $CLFS/tools Directory</title> 12 12 13 13 <para>All programs compiled in <xref linkend="chapter-temp-system"/> 14 will be installed under <filename class="directory">$ LFS/tools</filename>14 will be installed under <filename class="directory">$CLFS/tools</filename> 15 15 to keep them separate from the programs compiled in <xref 16 16 linkend="chapter-building-system"/>. The programs compiled here are … … 24 24 <systemitem class="username">root</systemitem>:</para> 25 25 26 <screen><userinput>install -dv $ LFS/tools</userinput></screen>26 <screen><userinput>install -dv $CLFS/tools</userinput></screen> 27 27 28 28 <para>The next step is to create a <filename class="symlink">/tools</filename> … … 31 31 class="username">root</systemitem> as well:</para> 32 32 33 <screen><userinput>ln -sv $ LFS/tools /</userinput></screen>33 <screen><userinput>ln -sv $CLFS/tools /</userinput></screen> 34 34 35 35 <note> -
final-preps/settingenviron.xml
r2ce8e8a r9cb6b64 56 56 the shell will always search the <envar>PATH</envar> when a program is to 57 57 be run. As such, the shell will find the newly compiled tools in 58 <filename class="directory">$ LFS/cross-tools</filename> as soon as they are58 <filename class="directory">$CLFS/cross-tools</filename> as soon as they are 59 59 available without remembering a previous version of the same program in a 60 60 different location.</para>
Note:
See TracChangeset
for help on using the changeset viewer.