source: BOOK/boot/common/settingenviron.xml @ c21045e6

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since c21045e6 was c21045e6, checked in by Jim Gifford <clfs@…>, 18 years ago

r791@server (orig r789): jim | 2005-12-01 14:27:08 -0800

r857@server: jim | 2005-12-01 14:26:55 -0800
Fixed typo in settingenvironmen.xml


  • Property mode set to 100644
File size: 1.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-boot-settingenviron">
9  <?dbhtml filename="settingenvironment.html"?>
10
11  <title>Setting Up the Environment</title>
12
13    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
14    href="../../final-preps/settingenviron.xml"
15    xpointer="xpointer(//*[@os='a'])"/>
16
17<screen os="b"><userinput>cat &gt; ${LFS}/root/.bash_profile &lt;&lt; "EOF"
18<literal>PS1='\u:\w\$ '
19LC_ALL=POSIX
20PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin
21export LC_ALL PATH PS1</literal>
22EOF</userinput></screen>
23
24    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
25    href="../../final-preps/settingenviron.xml"
26    xpointer="xpointer(//*[@os='i'])"/>
27
28  <para os="j">By putting <filename class="directory">/tools/bin</filename> ahead
29  of the standard <envar>PATH</envar>, all the programs installed in
30  <xref linkend="chapter-temporary-tools"/> are picked up by the shell
31  immediately after their installation. This, combined with turning off
32  hashing, limits the risk that old programs from the host are being used
33  when they should not be used any longer.</para>
34
35</sect1>
Note: See TracBrowser for help on using the repository browser.