Changeset 040521bc for BOOK/final-preps
- Timestamp:
- Sep 22, 2006, 8:30:38 PM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 8953f24
- Parents:
- 5921622
- Location:
- BOOK/final-preps
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-preps/aboutclfs.xml
r5921622 r040521bc 9 9 <?dbhtml filename="aboutclfs.html"?> 10 10 11 <title>About $ CLFS</title>11 <title>About ${CLFS}</title> 12 12 13 13 <para>Throughout this book, the environment variable <envar>CLFS</envar> will … … 16 16 Check that the <envar>CLFS</envar> variable is set up properly with:</para> 17 17 18 <screen><userinput>echo $ CLFS</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 $ CLFS/tools</command> can be typed literally. The shell29 will automatically replace <quote>$ CLFS</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/clfs</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">$ CLFS</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 $ CLFS</userinput></screen>36 <screen><userinput>install -dv ${CLFS}</userinput></screen> 37 37 38 <para>Do not forget to check that <envar>$ CLFS</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 -
BOOK/final-preps/addinguser.xml
r5921622 r040521bc 79 79 80 80 <para>Grant <systemitem class="username">clfs</systemitem> full access to 81 <filename class="directory">$ CLFS/cross-tools</filename> and82 <filename class="directory">$ CLFS/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">clfs</systemitem> the directorys' owner:</para> 84 84 85 <screen><userinput>chown -v clfs $ CLFS/tools86 chown -v clfs $ CLFS/cross-tools</userinput></screen>85 <screen><userinput>chown -v clfs ${CLFS}/tools 86 chown -v clfs ${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">clfs</systemitem> ownership of this directory:</para> 90 90 91 <screen><userinput>chown -v clfs $ CLFS/sources</userinput></screen>91 <screen><userinput>chown -v clfs ${CLFS}/sources</userinput></screen> 92 92 93 93 <para>Next, login as user <systemitem class="username">clfs</systemitem>. -
BOOK/final-preps/creatingcrossdir.xml
r5921622 r040521bc 9 9 <?dbhtml filename="creatingcrossdir.html"?> 10 10 11 <title>Creating the $ CLFS/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">$ CLFS/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 $ CLFS/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 $ CLFS/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 $ CLFS/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 -
BOOK/final-preps/creatingtoolsdir.xml
r5921622 r040521bc 9 9 <?dbhtml filename="creatingtoolsdir.html"?> 10 10 11 <title>Creating the $ CLFS/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">$ CLFS/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 $ CLFS/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 $ CLFS/tools /</userinput></screen>33 <screen><userinput>ln -sv ${CLFS}/tools /</userinput></screen> 34 34 35 35 <note> -
BOOK/final-preps/settingenviron.xml
r5921622 r040521bc 17 17 18 18 <screen os="b"><userinput>cat > ~/.bash_profile << "EOF" 19 <literal>exec env -i HOME=$ HOME TERM=$TERMPS1='\u:\w\$ ' /bin/bash</literal>19 <literal>exec env -i HOME=${HOME} TERM=${TERM} PS1='\u:\w\$ ' /bin/bash</literal> 20 20 EOF</userinput></screen> 21 21 … … 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"> $CLFS/cross-tools</filename> as soon as they are58 <filename class="directory">/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.