Changeset 95112ed
- Timestamp:
- Jul 1, 2006, 7:53:33 PM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- f80f888
- Parents:
- 07114c98
- Location:
- BOOK
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-preps/addinguser.xml
r07114c98 r95112ed 9 9 <?dbhtml filename="addinguser.html"?> 10 10 11 <title>Adding the LFS User</title>11 <title>Adding the CLFS User</title> 12 12 13 13 <para>When logged in as user <systemitem class="username">root</systemitem>, … … 16 16 You could use your own user name, but to make it easier to set up a clean 17 17 work environment, create a new user called <systemitem 18 class="username"> lfs</systemitem> as a member of a new group (also named19 <systemitem class="groupname"> lfs</systemitem>) and use this user during18 class="username">clfs</systemitem> as a member of a new group (also named 19 <systemitem class="groupname">clfs</systemitem>) and use this user during 20 20 the installation process. As <systemitem class="username">root</systemitem>, 21 21 issue the following commands to add the new user:</para> 22 22 23 <screen><userinput>groupadd lfs24 useradd -s /bin/bash -g lfs -m -k /dev/nulllfs</userinput></screen>23 <screen><userinput>groupadd clfs 24 useradd -s /bin/bash -g clfs -m -k /dev/null clfs</userinput></screen> 25 25 26 26 <variablelist> … … 31 31 <listitem> 32 32 <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> 34 34 </listitem> 35 35 </varlistentry> 36 36 37 37 <varlistentry> 38 <term><parameter>-g lfs</parameter></term>38 <term><parameter>-g clfs</parameter></term> 39 39 <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> 42 42 </listitem> 43 43 </varlistentry> … … 47 47 <listitem> 48 48 <para>This creates a home directory for <systemitem 49 class="username"> lfs</systemitem>.</para>49 class="username">clfs</systemitem>.</para> 50 50 </listitem> 51 51 </varlistentry> … … 61 61 62 62 <varlistentry> 63 <term><parameter> lfs</parameter></term>63 <term><parameter>clfs</parameter></term> 64 64 <listitem> 65 65 <para>This is the actual name for the created group and user.</para> … … 69 69 </variablelist> 70 70 71 <para>To log in as <systemitem class="username"> lfs</systemitem> (as72 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> 73 73 when logged in as <systemitem class="username">root</systemitem>, which 74 does not require the <systemitem class="username"> lfs</systemitem> user75 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> 76 76 a password:</para> 77 77 78 <screen><userinput>passwd lfs</userinput></screen>78 <screen><userinput>passwd clfs</userinput></screen> 79 79 80 <para>Grant <systemitem class="username"> lfs</systemitem> full access to80 <para>Grant <systemitem class="username">clfs</systemitem> full access to 81 81 <filename class="directory">$CLFS/cross-tools</filename> and 82 82 <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> 84 84 85 <screen><userinput>chown -v lfs $CLFS/tools86 chown -v lfs $CLFS/cross-tools</userinput></screen>85 <screen><userinput>chown -v clfs $CLFS/tools 86 chown -v clfs $CLFS/cross-tools</userinput></screen> 87 87 88 88 <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> 90 90 91 <screen><userinput>chown -v lfs $CLFS/sources</userinput></screen>91 <screen><userinput>chown -v clfs $CLFS/sources</userinput></screen> 92 92 93 <para>Next, login as user <systemitem class="username"> lfs</systemitem>.93 <para>Next, login as user <systemitem class="username">clfs</systemitem>. 94 94 This can be done via a virtual console, through a display manager, or 95 95 with the following substitute user command:</para> 96 96 97 <screen><userinput>su - lfs</userinput></screen>97 <screen><userinput>su - clfs</userinput></screen> 98 98 99 99 <para>The <quote><parameter>-</parameter></quote> instructs -
BOOK/final-preps/settingenviron.xml
r07114c98 r95112ed 13 13 <para os="a">Set up a good working environment by creating two new startup 14 14 files for the <command>bash</command> shell. While logged in as user 15 <systemitem class="username"> lfs</systemitem>, issue the following15 <systemitem class="username">clfs</systemitem>, issue the following 16 16 command to create a new <filename>.bash_profile</filename>:</para> 17 17 … … 20 20 EOF</userinput></screen> 21 21 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>, 23 23 the initial shell is usually a <emphasis>login</emphasis> shell which 24 24 reads the <filename>/etc/profile</filename> of the host (probably … … 42 42 <literal>set +h 43 43 umask 022 44 LFS=/mnt/lfs44 CLFS=/mnt/clfs 45 45 LC_ALL=POSIX 46 46 PATH=/cross-tools/bin:/bin:/usr/bin 47 export LFS LC_ALL PATH</literal>47 export CLFS LC_ALL PATH</literal> 48 48 EOF</userinput></screen> 49 49 … … 66 66 mode 644 and directories with mode 755).</para> 67 67 68 <para os="h">The <envar> LFS</envar> variable should be set to the68 <para os="h">The <envar>CLFS</envar> variable should be set to the 69 69 chosen mount point.</para> 70 70 -
BOOK/prologue/common/foreword.xml
r07114c98 r95112ed 35 35 allowed me to create compact and streamlined Linux systems which are 36 36 faster and take up less space than traditional operating systems. I 37 called this system a Linux From Scratch system, or an LFS system for37 called this system a Linux From Scratch system, or an CLFS system for 38 38 short.</para> 39 39 40 40 <para>As I shared my goals and experiences with other members of the 41 41 Linux community, it became apparent that there was sustained interest 42 in the ideas set forth in my Linux adventures. Such custom-built LFS42 in the ideas set forth in my Linux adventures. Such custom-built CLFS 43 43 systems serve not only to meet user specifications and requirements, but 44 44 also serve as an ideal learning opportunity for programmers and system … … 57 57 system.</para> 58 58 59 <para>I hope you will have a great time working on your own LFS59 <para>I hope you will have a great time working on your own CLFS 60 60 system, and enjoy the numerous benefits of having a system that is 61 61 truly <emphasis>your own</emphasis>.</para> -
BOOK/prologue/common/prerequisites.xml
r07114c98 r95112ed 51 51 <para>This is an LFS Hint written specifically for users new to Linux. 52 52 It includes a list of links to excellent sources of information on a 53 wide range of topics. Anyone attempting to install LFS should have an53 wide range of topics. Anyone attempting to install CLFS should have an 54 54 understanding of many of the topics in this hint.</para> 55 55 </listitem> -
BOOK/prologue/common/typography.xml
r07114c98 r95112ed 23 23 referenced.</para> 24 24 25 <screen><computeroutput>install-info: unknown option '--dir-file=/mnt/ lfs/usr/info/dir'</computeroutput></screen>25 <screen><computeroutput>install-info: unknown option '--dir-file=/mnt/clfs/usr/info/dir'</computeroutput></screen> 26 26 27 27 <para>This form of text (fixed-width text) shows screen output, … … 34 34 Its main purpose is to emphasize important points or items.</para> 35 35 36 <para><ulink url="& lfs-root;"/></para>36 <para><ulink url="&clfs-root;"/></para> 37 37 38 38 <para>This format is used for hyperlinks, both within the CLFS
Note:
See TracChangeset
for help on using the changeset viewer.