diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-12-19 19:50:52 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-12-19 19:50:52 +0000 |
commit | ae79672711d932594ad1ca8a0af33edf6a46aa46 (patch) | |
tree | 67cf79220b8b1fe09e58d72c1dbbfce839b872e4 /chapter04/settingenviron.xml | |
parent | 86ca6e777e71b58416bb3e024f56a59a1ab2796d (diff) |
More text dropped.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4425 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter04/settingenviron.xml')
-rw-r--r-- | chapter04/settingenviron.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml index 174d6ad27..f287b93b9 100644 --- a/chapter04/settingenviron.xml +++ b/chapter04/settingenviron.xml @@ -7,15 +7,18 @@ <title>Setting up the environment</title> <?dbhtml filename="settingenvironment.html"?> +<!-- <para>We're going to set up a good working environment by creating two new startup files for the <command>bash</command> shell. While logged in as user <emphasis>lfs</emphasis>, issue the following command to create a new <filename>.bash_profile</filename>:</para> +--> <screen><userinput>cat > ~/.bash_profile << "EOF" exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash EOF</userinput></screen> +<!-- <para>Normally, when you log on as user <emphasis>lfs</emphasis>, the initial shell is a <emphasis>login</emphasis> shell which reads the <filename>/etc/profile</filename> of your host (probably containing some @@ -31,6 +34,7 @@ the goal of enforcing a clean environment.</para> which doesn't read the <filename>/etc/profile</filename> or <filename>.bash_profile</filename> files, but reads the <filename>.bashrc</filename> file instead. Create this latter file now:</para> +--> <screen><userinput>cat > ~/.bashrc << "EOF" set +h @@ -41,6 +45,7 @@ PATH=/tools/bin:/bin:/usr/bin export LFS LC_ALL PATH EOF</userinput></screen> +<!-- <para>The <command>set +h</command> command turns off <command>bash</command>'s hash function. Normally hashing is a useful feature: <command>bash</command> uses a hash table to remember the @@ -74,6 +79,7 @@ during the rest of the building process.</para> <para>Finally, to have our environment fully prepared for building the temporary tools, source the just-created profile:</para> +--> <screen><userinput>source ~/.bash_profile</userinput></screen> |