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

clfs-3.0.0-sysvinit sysvinit
Last change on this file since ba7b5c9 was 24b004c, checked in by Chris Staub <chris@…>, 11 years ago

Remove end-of-line spaces

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[6d4c909]13 <para>The new instance of the shell that will start when the system is booted is a <emphasis>login</emphasis>
[241eded2]14 shell, which will read the <filename>.bash_profile</filename> file. Create
15 <filename>.bash_profile</filename> now:</para>
[3f8be484]16
[3f76cac]17<screen><userinput>cat &gt; ${CLFS}/root/.bash_profile &lt;&lt; "EOF"
[5ff8cf2]18<literal>set +h
19PS1='\u:\w\$ '
[3f8be484]20LC_ALL=POSIX
21PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin
22export LC_ALL PATH PS1</literal>
23EOF</userinput></screen>
24
[2c6a9d5]25 <para>The <envar>LC_ALL</envar> variable controls the localization of
26 certain programs, making their messages follow the conventions of a
[24b004c]27 specified country.
[2c6a9d5]28 Setting <envar>LC_ALL</envar> to <quote>POSIX</quote> or <quote>C</quote>
29 (the two are equivalent) ensures that everything will work as expected
[e3a1e522]30 on your temporary system.</para>
[3f8be484]31
[d1ff581]32 <para>By putting <filename class="directory">/tools/bin</filename> and
33 <filename class="directory">/tools/sbin</filename> at
[2c6a9d5]34 the end of the standard <envar>PATH</envar>, all the programs installed in
[134ba96]35 <xref linkend="chapter-temp-system"/> are only picked up by the shell
[2c6a9d5]36 if they have not yet been built on the target system. This configuration
[24b004c]37 forces use of the final system binaries as they are built over the
[e3a1e522]38 temp-system, minimising the chance of final system programs being built
[134ba96]39 against the temp-system.</para>
[3f8be484]40
41</sect1>
Note: See TracBrowser for help on using the repository browser.