Ignore:
Timestamp:
02/15/2013 09:14:37 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
b588d62
Parents:
4a4e017
Message:

Move Chapter 7 in place for Systemd.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10159 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 moved

Legend:

Unmodified
Added
Removed
  • chapter07/locale.xml

    r4a4e017 rf3317d4  
    66]>
    77
    8 <sect1 id="ch-scripts-profile">
    9   <?dbhtml filename="profile.html"?>
     8<sect1 id="ch-scripts-locale">
     9  <?dbhtml filename="locale.html"?>
    1010
    11   <title>The Bash Shell Startup Files</title>
     11  <title>Configuring the System Locale</title>
    1212
    13   <indexterm zone="ch-scripts-profile">
    14     <primary sortas="e-/etc/profile">/etc/profile</primary>
     13  <indexterm zone="ch-scripts-locale">
     14    <primary sortas="e-etc-locale-conf">/etc/locale.conf</primary>
    1515  </indexterm>
    1616
    17   <para>The shell program <command>/bin/bash</command> (hereafter referred to
    18   as <quote>the shell</quote>) uses a collection of startup files to help
    19   create an environment to run in. Each file has a specific use and may affect
    20   login and interactive environments differently. The files in the <filename
    21   class="directory">/etc</filename> directory provide global settings. If an
    22   equivalent file exists in the home directory, it may override the global
    23   settings.</para>
    24 
    25   <para>An interactive login shell is started after a successful login, using
    26   <command>/bin/login</command>, by reading the <filename>/etc/passwd</filename>
    27   file. An interactive non-login shell is started at the command-line (e.g.,
    28   <prompt>[prompt]$</prompt><command>/bin/bash</command>). A non-interactive
    29   shell is usually present when a shell script is running. It is non-interactive
    30   because it is processing a script and not waiting for user input between
    31   commands.</para>
    32 
    33   <para>For more information, see <command>info bash</command> under the
    34   <emphasis>Bash Startup Files and Interactive Shells</emphasis> section.</para>
    35 
    36   <para>The files <filename>/etc/profile</filename> and
    37   <filename>~/.bash_profile</filename> are read when the shell is
    38   invoked as an interactive login shell.</para>
    39 
    40   <para>The base <filename>/etc/profile</filename> below sets some
     17  <para>The <filename>/etc/locale.conf</filename> below sets some
    4118  environment variables necessary for native language support. Setting
    4219  them properly results in:</para>
     
    136113
    137114  <para>Once the proper locale settings have been determined, create the
    138   <filename>/etc/profile</filename> file:</para>
     115  <filename>/etc/locale.conf</filename> file:</para>
    139116
    140 <screen><userinput>cat &gt; /etc/profile &lt;&lt; "EOF"
    141 <literal># Begin /etc/profile
    142 
    143 export LANG=<replaceable>&lt;ll&gt;_&lt;CC&gt;.&lt;charmap&gt;&lt;@modifiers&gt;</replaceable>
    144 
    145 # End /etc/profile</literal>
     117<screen><userinput>cat &gt; /etc/locale.conf &lt;&lt; "EOF"
     118<literal>LANG=<replaceable>&lt;ll&gt;_&lt;CC&gt;.&lt;charmap&gt;&lt;@modifiers&gt;</replaceable></literal>
    146119EOF</userinput></screen>
    147120
Note: See TracChangeset for help on using the changeset viewer.