Changeset 586feb7 in clfs-sysroot for BOOK/final-preps


Ignore:
Timestamp:
Jul 2, 2006, 12:45:15 PM (18 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
940e6b3
Parents:
89c10a9
Message:

Updated the bootscripts package and make LFS to CLFS updates.

Location:
BOOK/final-preps
Files:
5 edited
1 moved

Legend:

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

    r89c10a9 r586feb7  
    99  <?dbhtml filename="aboutlfs.html"?>
    1010
    11   <title>About $LFS</title>
     11  <title>About $CLFS</title>
    1212
    1313  <para>Throughout this book, the environment variable <envar>LFS</envar> will
     
    1616  Check that the <envar>LFS</envar> variable is set up properly with:</para>
    1717
    18 <screen><userinput>echo $LFS</userinput></screen>
     18<screen><userinput>echo $CLFS</userinput></screen>
    1919
    2020  <para>Make sure the output shows the path to the CLFS partition's mount
     
    2323  variable can be set with:</para>
    2424
    25 <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
     25<screen><userinput>export CLFS=/mnt/lfs</userinput></screen>
    2626
    2727  <para>Having this variable set is beneficial in that commands such as
    28   <command>install -d $LFS/tools</command> can be typed literally. The shell
    29   will automatically replace <quote>$LFS</quote> with
     28  <command>install -d $CLFS/tools</command> can be typed literally. The shell
     29  will automatically replace <quote>$CLFS</quote> with
    3030  <quote>/mnt/lfs</quote> (or whatever the variable was set to) when it
    3131  processes the command line.</para>
    3232
    33   <para>If you haven't created the <filename class="directory">$LFS</filename>
     33  <para>If you haven't created the <filename class="directory">$CLFS</filename>
    3434  directory, do so at this time by issuing the following commands:</para>
    3535
    36 <screen><userinput>install -dv $LFS</userinput></screen>
     36<screen><userinput>install -dv $CLFS</userinput></screen>
    3737
    38   <para>Do not forget to check that <envar>$LFS</envar> is set whenever
     38  <para>Do not forget to check that <envar>$CLFS</envar> is set whenever
    3939  you leave and reenter the current working environment (as when doing a
    4040  <quote>su</quote> to <systemitem class="username">root</systemitem> or
  • BOOK/final-preps/addinguser.xml

    r89c10a9 r586feb7  
    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>
     
    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
    81   <filename class="directory">$LFS</filename> by making <systemitem
     80  <para>Grant <systemitem class="username">clfs</systemitem> full access to
     81  <filename class="directory">$CLFS</filename> by making <systemitem
    8282  class="username">lfs</systemitem> the directory's owner:</para>
    8383
    84 <screen><userinput>chown -Rv lfs $LFS</userinput></screen>
     84<screen><userinput>chown -Rv clfs $CLFS</userinput></screen>
    8585
    86   <para>Next, login as user <systemitem class="username">lfs</systemitem>.
     86  <para>Next, login as user <systemitem class="username">clfs</systemitem>.
    8787  This can be done via a virtual console, through a display manager, or
    8888  with the following substitute user command:</para>
    8989
    90 <screen><userinput>su - lfs</userinput></screen>
     90<screen><userinput>su - clfs</userinput></screen>
    9191
    9292  <para>The <quote><parameter>-</parameter></quote> instructs
  • BOOK/final-preps/chapter.xml

    r89c10a9 r586feb7  
    1212  <title>Final Preparations</title>
    1313
    14   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aboutlfs.xml"/>
     14  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aboutclfs.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="addinguser.xml"/>
    1616  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="settingenviron.xml"/>
  • BOOK/final-preps/creatingdirs.xml

    r89c10a9 r586feb7  
    1414  standard directory tree by issuing the following commands:</para>
    1515
    16 <screen><userinput>mkdir -pv ${LFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt}
    17 mkdir -pv ${LFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var}
    18 install -dv -m 0750 ${LFS}/root
    19 install -dv -m 1777 ${LFS}{/var,}/tmp
    20 mkdir -pv ${LFS}/usr/{,local/}{bin,include,lib,sbin,src}
    21 mkdir -pv ${LFS}/usr/{,local/}share/{doc,info,locale,man}
    22 mkdir -v  ${LFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
    23 mkdir -pv ${LFS}/usr/{,local/}share/man/man{1..8}
    24 for dir in ${LFS}/usr{,/local}; do
     16<screen><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt}
     17mkdir -pv ${CLFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var}
     18install -dv -m 0750 ${CLFS}/root
     19install -dv -m 1777 ${CLFS}{/var,}/tmp
     20mkdir -pv ${CLFS}/usr/{,local/}{bin,include,lib,sbin,src}
     21mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man}
     22mkdir -v  ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
     23mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1..8}
     24for dir in ${CLFS}/usr{,/local}; do
    2525  ln -sv share/{man,doc,info} $dir
    2626done
    27 mkdir -v ${LFS}/var/{lock,log,mail,run,spool}
    28 mkdir -pv ${LFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen>
     27mkdir -v ${CLFS}/var/{lock,log,mail,run,spool}
     28mkdir -pv ${CLFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen>
    2929
    3030  <para>Directories are, by default, created with permission mode 755, but
  • BOOK/final-preps/creatingfiles.xml

    r89c10a9 r586feb7  
    2424
    2525  <indexterm zone="ch-final-preps-creatingfiles">
    26     <primary sortas="e-${LFS}/var/log/btmp">/var/log/btmp</primary>
     26    <primary sortas="e-${CLFS}/var/log/btmp">/var/log/btmp</primary>
    2727  </indexterm>
    2828
     
    4141  utilities that expect the presence of <filename>/etc/mtab</filename>:</para>
    4242
    43 <screen><userinput>touch ${LFS}/etc/mtab</userinput></screen>
     43<screen><userinput>touch ${CLFS}/etc/mtab</userinput></screen>
    4444
    4545  <para>In order for user <systemitem class="username">root</systemitem> to be
     
    5151  command:</para>
    5252
    53 <screen><userinput>cat &gt; ${LFS}/etc/passwd &lt;&lt; "EOF"
     53<screen><userinput>cat &gt; ${CLFS}/etc/passwd &lt;&lt; "EOF"
    5454<literal>root:x:0:0:root:/root:/bin/bash</literal>
    5555EOF</userinput></screen>
     
    5858  (the <quote>x</quote> used here is just a placeholder) will be set later.</para>
    5959
     60  <variablelist os="b">TO BE WRITTEN: more text describing additional users
     61 
     62    <title>Additional users you may want to add:</title>
     63
     64    <varlistentry>
     65      <term><literal>bin:x:1:1:bin:/bin:/bin/false</literal></term>
     66      <listitem>
     67        <para>To be written</para>
     68      </listitem>
     69    </varlistentry>
     70    <varlistentry>
     71      <term><literal>daemon:x:2:6:daemon:/sbin:/bin/false</literal></term>
     72      <listitem>
     73        <para>To be written</para>
     74      </listitem>
     75    </varlistentry>
     76    <varlistentry>
     77      <term><literal>adm:x:3:16:adm:/var/adm:/bin/false</literal></term>
     78      <listitem>
     79        <para>To be written</para>
     80      </listitem>
     81    </varlistentry>
     82    <varlistentry>
     83      <term><literal>lp:x:10:9:lp:/var/spool/lp:/bin/false</literal></term>
     84      <listitem>
     85        <para>To be written</para>
     86      </listitem>
     87    </varlistentry>
     88    <varlistentry>
     89      <term><literal>mail:x:30:30:mail:/var/mail:/bin/false</literal></term>
     90      <listitem>
     91        <para>To be written</para>
     92      </listitem>
     93    </varlistentry>
     94    <varlistentry>
     95      <term><literal>news:x:31:31:news:/var/spool/news:/bin/false</literal></term>
     96      <listitem>
     97        <para>To be written</para>
     98      </listitem>
     99    </varlistentry>
     100    <varlistentry>
     101      <term><literal>uucp:x:32:32:uucp:/var/spool/uucp:/bin/false</literal></term>
     102      <listitem>
     103        <para>To be written</para>
     104      </listitem>
     105    </varlistentry>
     106    <varlistentry>
     107      <term><literal>operator:x:50:0:operator:/root:/bin/bash</literal></term>
     108      <listitem>
     109        <para>To be written</para>
     110      </listitem>
     111    </varlistentry>
     112    <varlistentry>
     113      <term><literal>postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false</literal></term>
     114      <listitem>
     115        <para>To be written</para>
     116      </listitem>
     117    </varlistentry>
     118    <varlistentry>
     119      <term><literal>nobody:x:65534:65534:nobody:/:/bin/false</literal></term>
     120      <listitem>
     121        <para>To be written</para>
     122      </listitem>
     123    </varlistentry>
     124  </variablelist>
     125
    60126  <para>Create the <filename>/etc/group</filename> file by running the following
    61127  command:</para>
    62128
    63 <screen><userinput>cat &gt; ${LFS}/etc/group &lt;&lt; "EOF"
     129<screen><userinput>cat &gt; ${CLFS}/etc/group &lt;&lt; "EOF"
    64130<literal>root:x:0:
    65131bin:x:1:
     
    80146EOF</userinput></screen>
    81147
     148  <variablelist os="c">
     149 
     150    <title>Additional groups you may want to add</title>
     151
     152    <varlistentry>
     153      <term><literal>adm:x:16:root,adm,daemon</literal></term>
     154      <listitem>
     155        <para>To be written</para>
     156      </listitem>
     157    </varlistentry>
     158    <varlistentry>
     159      <term><literal>console:x:17:</literal></term>
     160      <listitem>
     161        <para>To be written</para>
     162      </listitem>
     163    </varlistentry>
     164    <varlistentry>
     165      <term><literal>cdrw:x:18:</literal></term>
     166      <listitem>
     167        <para>To be written</para>
     168      </listitem>
     169    </varlistentry>
     170    <varlistentry>
     171      <term><literal>mail:x:30:mail</literal></term>
     172      <listitem>
     173        <para>Used by MTAs (Mail Transport Agents)</para>
     174      </listitem>
     175    </varlistentry>
     176    <varlistentry>
     177      <term><literal>news:x:31:news</literal></term>
     178      <listitem>
     179        <para>To be written</para>
     180      </listitem>
     181    </varlistentry>
     182    <varlistentry>
     183      <term><literal>uucp:x:32:uucp</literal></term>
     184      <listitem>
     185        <para>To be written</para>
     186      </listitem>
     187    </varlistentry>
     188    <varlistentry>
     189      <term><literal>users:x:100:</literal></term>
     190      <listitem>
     191        <para>To be written</para>
     192      </listitem>
     193    </varlistentry>
     194    <varlistentry>
     195      <term><literal>nogroup:x:65533:</literal></term>
     196      <listitem>
     197        <para>To be written</para>
     198      </listitem>
     199    </varlistentry>
     200    <varlistentry>
     201      <term><literal>nobody:x:65534:</literal></term>
     202      <listitem>
     203        <para>To be written</para>
     204      </listitem>
     205    </varlistentry>
     206  </variablelist>
     207
    82208  <para>The created groups are not part of any standard&mdash;they are groups
    83209  decided on in part by the requirements of the Udev configuration in this
     
    98224  proper permissions:</para>
    99225
    100 <screen><userinput>touch ${LFS}/var/run/utmp ${LFS}/var/log/{btmp,lastlog,wtmp}
    101 chmod -v 664 ${LFS}/var/run/utmp ${LFS}/var/log/lastlog</userinput></screen>
     226<screen><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp}
     227chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>
    102228
    103229  <para>The <filename>/var/run/utmp</filename> file records the users
  • BOOK/final-preps/settingenviron.xml

    r89c10a9 r586feb7  
    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
    46 PATH=${LFS}/cross-tools/bin:/bin:/usr/bin
     46PATH=${CLFS}/cross-tools/bin:/bin:/usr/bin
    4747export LFS LC_ALL PATH</literal>
    4848EOF</userinput></screen>
     
    5656  the shell will always search the <envar>PATH</envar> when a program is to
    5757  be run. As such, the shell will find the newly compiled tools in
    58   <filename class="directory">$LFS${LFS}/cross-tools</filename> as soon as they are
     58  <filename class="directory">$CLFS${CLFS}/cross-tools</filename> as soon as they are
    5959  available without remembering a previous version of the same program in a
    6060  different location.</para>
     
    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
     
    8080  the chroot environment.</para>
    8181
    82   <para os="j">By putting <filename class="directory">${LFS}/cross-tools/bin</filename>
     82  <para os="j">By putting <filename class="directory">${CLFS}/cross-tools/bin</filename>
    8383  at the beginning of the <envar>PATH</envar>, the cross-compiler
    8484  built in <xref linkend="chapter-cross-tools"/> will be picked up by
Note: See TracChangeset for help on using the changeset viewer.