Changeset 4a9cdca for final-preps


Ignore:
Timestamp:
Feb 21, 2006, 1:27:06 AM (17 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


File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.