Changeset 95112ed for BOOK/final-preps


Ignore:
Timestamp:
Jul 1, 2006, 12:53:33 PM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
f80f888
Parents:
07114c98
Message:

r4212@server: jim | 2006-07-01 12:53:13 -0700
Last update to convert from LFS to CLFS

Location:
BOOK/final-preps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-preps/addinguser.xml

    r07114c98 r95112ed  
    99  <?dbhtml filename="addinguser.html"?>
    1010
    11   <title>Adding the LFS User</title>
     11  <title>Adding the CLFS User</title>
    1212
    1313  <para>When logged in as user <systemitem class="username">root</systemitem>,
     
    1616  You could use your own user name, but to make it easier to set up a clean
    1717  work environment, create a new user called <systemitem
    18   class="username">lfs</systemitem> as a member of a new group (also named
    19   <systemitem class="groupname">lfs</systemitem>) and use this user during
     18  class="username">clfs</systemitem> as a member of a new group (also named
     19  <systemitem class="groupname">clfs</systemitem>) and use this user during
    2020  the installation process. As <systemitem class="username">root</systemitem>,
    2121  issue the following commands to add the new user:</para>
    2222
    23 <screen><userinput>groupadd lfs
    24 useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
     23<screen><userinput>groupadd clfs
     24useradd -s /bin/bash -g clfs -m -k /dev/null clfs</userinput></screen>
    2525
    2626  <variablelist>
     
    3131      <listitem>
    3232        <para>This makes <command>bash</command> the default shell for
    33         user <systemitem class="username">lfs</systemitem>.</para>
     33        user <systemitem class="username">clfs</systemitem>.</para>
    3434      </listitem>
    3535    </varlistentry>
    3636
    3737    <varlistentry>
    38       <term><parameter>-g lfs</parameter></term>
     38      <term><parameter>-g clfs</parameter></term>
    3939      <listitem>
    40         <para>This option adds user <systemitem class="username">lfs</systemitem>
    41         to group <systemitem class="groupname">lfs</systemitem>.</para>
     40        <para>This option adds user <systemitem class="username">clfs</systemitem>
     41        to group <systemitem class="groupname">clfs</systemitem>.</para>
    4242      </listitem>
    4343    </varlistentry>
     
    4747      <listitem>
    4848        <para>This creates a home directory for <systemitem
    49         class="username">lfs</systemitem>.</para>
     49        class="username">clfs</systemitem>.</para>
    5050      </listitem>
    5151    </varlistentry>
     
    6161
    6262    <varlistentry>
    63       <term><parameter>lfs</parameter></term>
     63      <term><parameter>clfs</parameter></term>
    6464      <listitem>
    6565        <para>This is the actual name for the created group and user.</para>
     
    6969  </variablelist>
    7070
    71   <para>To log in as <systemitem class="username">lfs</systemitem> (as
    72   opposed to switching to user <systemitem class="username">lfs</systemitem>
     71  <para>To log in as <systemitem class="username">clfs</systemitem> (as
     72  opposed to switching to user <systemitem class="username">clfs</systemitem>
    7373  when logged in as <systemitem class="username">root</systemitem>, which
    74   does not require the <systemitem class="username">lfs</systemitem> user
    75   to have a password), give <systemitem class="username">lfs</systemitem>
     74  does not require the <systemitem class="username">clfs</systemitem> user
     75  to have a password), give <systemitem class="username">clfs</systemitem>
    7676  a password:</para>
    7777
    78 <screen><userinput>passwd lfs</userinput></screen>
     78<screen><userinput>passwd clfs</userinput></screen>
    7979
    80   <para>Grant <systemitem class="username">lfs</systemitem> full access to
     80  <para>Grant <systemitem class="username">clfs</systemitem> full access to
    8181  <filename class="directory">$CLFS/cross-tools</filename> and
    8282  <filename class="directory">$CLFS/tools</filename> by making <systemitem
    83   class="username">lfs</systemitem> the directorys' owner:</para>
     83  class="username">clfs</systemitem> the directorys' owner:</para>
    8484
    85 <screen><userinput>chown -v lfs $CLFS/tools
    86 chown -v lfs $CLFS/cross-tools</userinput></screen>
     85<screen><userinput>chown -v clfs $CLFS/tools
     86chown -v clfs $CLFS/cross-tools</userinput></screen>
    8787
    8888  <para>If a separate working directory was created as suggested,
    89   give user <systemitem class="username">lfs</systemitem> ownership of this directory:</para>
     89  give user <systemitem class="username">clfs</systemitem> ownership of this directory:</para>
    9090
    91 <screen><userinput>chown -v lfs $CLFS/sources</userinput></screen>
     91<screen><userinput>chown -v clfs $CLFS/sources</userinput></screen>
    9292
    93   <para>Next, login as user <systemitem class="username">lfs</systemitem>.
     93  <para>Next, login as user <systemitem class="username">clfs</systemitem>.
    9494  This can be done via a virtual console, through a display manager, or
    9595  with the following substitute user command:</para>
    9696
    97 <screen><userinput>su - lfs</userinput></screen>
     97<screen><userinput>su - clfs</userinput></screen>
    9898
    9999  <para>The <quote><parameter>-</parameter></quote> instructs
  • BOOK/final-preps/settingenviron.xml

    r07114c98 r95112ed  
    1313  <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
    15   <systemitem class="username">lfs</systemitem>, issue the following
     15  <systemitem class="username">clfs</systemitem>, issue the following
    1616  command to create a new <filename>.bash_profile</filename>:</para>
    1717
     
    2020EOF</userinput></screen>
    2121
    22   <para os="c">When logged on as user <systemitem class="username">lfs</systemitem>,
     22  <para os="c">When logged on as user <systemitem class="username">clfs</systemitem>,
    2323  the initial shell is usually a <emphasis>login</emphasis> shell which
    2424  reads the <filename>/etc/profile</filename> of the host (probably
     
    4242<literal>set +h
    4343umask 022
    44 LFS=/mnt/lfs
     44CLFS=/mnt/clfs
    4545LC_ALL=POSIX
    4646PATH=/cross-tools/bin:/bin:/usr/bin
    47 export LFS LC_ALL PATH</literal>
     47export CLFS LC_ALL PATH</literal>
    4848EOF</userinput></screen>
    4949
     
    6666  mode 644 and directories with mode 755).</para>
    6767
    68   <para os="h">The <envar>LFS</envar> variable should be set to the
     68  <para os="h">The <envar>CLFS</envar> variable should be set to the
    6969  chosen mount point.</para>
    7070
Note: See TracChangeset for help on using the changeset viewer.