Changeset 4a9cdca


Ignore:
Timestamp:
Feb 21, 2006, 1:27:06 AM (19 years ago)
Author:
Jim Gifford <clfs@…>
Children:
e0c8829
Parents:
f32f537
Message:

r789@server (orig r787): jim | 2005-12-01 14:15:03 -0800

r853@server: jim | 2005-12-01 14:14:46 -0800
Text Updates


Files:
2 edited

Legend:

Unmodified
Added
Removed
  • boot/common/settingenviron.xml

    rf32f537 r4a9cdca  
    1111  <title>Setting Up the Environment</title>
    1212
    13   <para>The new instance of the shell is a <emphasis>non-login</emphasis>
    14   shell, will read <filename>.bash_profile</filename> file. Create the
    15   <filename>.bash_profile</filename> file now:</para>
     13    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     14    href="../final-preps/settingenviron.xml"
     15    xpointer="xpointer(//*[@os='a'])"/>
    1616
    17 <screen><userinput>cat &gt; ${LFS}/root/.bash_profile &lt;&lt; "EOF"
     17<screen os="b"><userinput>cat &gt; ${LFS}/root/.bash_profile &lt;&lt; "EOF"
    1818<literal>PS1='\u:\w\$ '
    1919LC_ALL=POSIX
     
    2222EOF</userinput></screen>
    2323
    24   <para>The <envar>LC_ALL</envar> variable controls the localization of
    25   certain programs, making their messages follow the conventions of a
    26   specified country. If the host system uses a version of Glibc older
    27   than 2.2.4, having <envar>LC_ALL</envar> set to something other than
    28   <quote>POSIX</quote> or <quote>C</quote> (during this chapter) may cause
    29   issues if you exit the chroot environment and wish to return later.
    30   Setting <envar>LC_ALL</envar> to <quote>POSIX</quote> or <quote>C</quote>
    31   (the two are equivalent) ensures that everything will work as expected
    32   in the chroot environment.</para>
     24    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     25    href="../final-preps/settingenviron.xml"
     26    xpointer="xpointer(//*[@os='h'])"/>
    3327
    34   <para>By putting <filename class="directory">/tools/bin</filename> ahead
     28  <para os="i">By putting <filename class="directory">/tools/bin</filename> ahead
    3529  of the standard <envar>PATH</envar>, all the programs installed in
    3630  <xref linkend="chapter-temporary-tools"/> are picked up by the shell
  • final-preps/settingenviron.xml

    rf32f537 r4a9cdca  
    1111  <title>Setting Up the Environment</title>
    1212
    13   <para>Set up a good working environment by creating two new startup
     13  <para os="a">Set up a good working environment by creating two new startup
    1414  files for the <command>bash</command> shell. While logged in as user
    1515  <systemitem class="username">lfs</systemitem>, issue the following
    1616  command to create a new <filename>.bash_profile</filename>:</para>
    1717
    18 <screen><userinput>cat &gt; ~/.bash_profile &lt;&lt; "EOF"
     18<screen os="b"><userinput>cat &gt; ~/.bash_profile &lt;&lt; "EOF"
    1919<literal>exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash</literal>
    2020EOF</userinput></screen>
    2121
    22   <para>When logged on as user <systemitem class="username">lfs</systemitem>,
     22  <para os="c">When logged on as user <systemitem class="username">lfs</systemitem>,
    2323  the initial shell is usually a <emphasis>login</emphasis> shell which
    2424  reads the <filename>/etc/profile</filename> of the host (probably
     
    3333  technique used here achieves the goal of ensuring a clean environment.</para>
    3434
    35   <para>The new instance of the shell is a <emphasis>non-login</emphasis>
     35  <para os="d">The new instance of the shell is a <emphasis>non-login</emphasis>
    3636  shell, which does not read the <filename>/etc/profile</filename> or
    3737  <filename>.bash_profile</filename> files, but rather reads the
     
    3939  <filename>.bashrc</filename> file now:</para>
    4040
    41 <screen><userinput>cat &gt; ~/.bashrc &lt;&lt; "EOF"
     41<screen os="e"><userinput>cat &gt; ~/.bashrc &lt;&lt; "EOF"
    4242<literal>set +h
    4343umask 022
     
    4848EOF</userinput></screen>
    4949
    50   <para>The <command>set +h</command> command turns off
     50  <para os=f">The <command>set +h</command> command turns off
    5151  <command>bash</command>'s hash function. Hashing is ordinarily a useful
    5252  feature&mdash;<command>bash</command> uses a hash table to remember the
     
    6060  different location.</para>
    6161
    62   <para>Setting the user file-creation mask (umask) to 022 ensures that
     62  <para os="g">Setting the user file-creation mask (umask) to 022 ensures that
    6363  newly created files and directories are only writable by their owner,
    6464  but are readable and executable by anyone (assuming default modes are
     
    6666  mode 644 and directories with mode 755).</para>
    6767
    68   <para>The <envar>LFS</envar> variable should be set to the
     68  <para os="g">The <envar>LFS</envar> variable should be set to the
    6969  chosen mount point.</para>
    7070
    71   <para>TO BE REWRITTEN - The <envar>LC_ALL</envar> variable controls
     71  <para os="h">TO BE REWRITTEN - The <envar>LC_ALL</envar> variable controls
    7272  the localization of
    7373  certain programs, making their messages follow the conventions of a
     
    8080  the chroot environment.</para>
    8181
    82   <para>By putting <filename class="directory">/tools/bin</filename> ahead
     82  <para os="i">By putting <filename class="directory">/tools/bin</filename> ahead
    8383  of the standard <envar>PATH</envar>, all the programs installed in
    8484  <xref linkend="chapter-temp-system"/> are picked up by the shell
     
    8787  the same programs are available in the temporary system.</para>
    8888
    89   <para>Finally, to have the environment fully prepared for building the
     89  <para os="j">Finally, to have the environment fully prepared for building the
    9090  temporary tools, source the just-created user profile:</para>
    9191
    92 <screen><userinput>source ~/.bash_profile</userinput></screen>
     92<screen os="k"><userinput>source ~/.bash_profile</userinput></screen>
    9393
    9494</sect1>
Note: See TracChangeset for help on using the changeset viewer.