- Timestamp:
- 06/03/2002 11:27:19 AM (22 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v4_0, v4_1, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 19c068f
- Parents:
- f50aec7
- Location:
- chapter06
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/changingowner.xml
rf50aec7 ra2cd10f 1 1 <sect1 id="ch06-changingowner"> 2 <title>Changing ownership of the LFS partition</title>2 <title>Changing ownership</title> 3 3 <?dbhtml filename="changingowner.html" dir="chapter06"?> 4 4 5 <para>Now we're in chroot, it is a goodtime to change the ownership of6 all files and directories that were installed in chapter 5 backto root.7 Run the following command sto do so:</para>5 <para>Now we're in chroot, it is time to change the ownership of 6 the files and directories that were installed in chapter 5 to root. 7 Run the following command to do so:</para> 8 8 9 9 <para><screen><userinput>chown -R 0:0 /</userinput></screen></para> 10 10 11 <para>This command will changethe ownership of the root partition to12 root. 0:0 is used instead of the usual root:root, because the username13 root can't be resolved because glibc is not yet installed.</para>11 <para>This command changes the ownership of the root partition to 12 root. The command uses 0:0 instead of root:root, because the user name 13 "root" can't be resolved, as glibc is not installed yet.</para> 14 14 15 15 </sect1> -
chapter06/chroot.xml
rf50aec7 ra2cd10f 12 12 this point on there's no need to use the $LFS variable anymore, because 13 13 everything a user does will be restricted to the LFS partition (since / is 14 actually /mnt/lfs but the shell doesn't know that).</para>14 actually /mnt/lfs, but the shell doesn't know that).</para> 15 15 16 16 <para><screen>&c6-chrootcmd;</screen></para> -
chapter06/config-shadowpwd.xml
rf50aec7 ra2cd10f 1 1 <sect2><title>Configuring Shadow Password Suite</title> 2 2 3 <para>This package contains the utilities to modify user's passwords, add new4 users/groups, delete users/groups and more. We're not going to explain5 what 'password shadowing' means. A ll about that can be read in the doc/HOWTO3 <para>This package contains utilities to modify users's passwords, add 4 or delete users and groups, and the like. We're not going to explain 5 what 'password shadowing' means. A full explanation can be found in the doc/HOWTO 6 6 file within the unpacked shadow password suite's source tree. There's one 7 thing you should keep in mind, if you decide to use shadow support,that8 programs that need to verify passwords ( examples are xdm, ftp daemons,9 pop3 daemons , etc) need to be 'shadow-compliant', e.g.they need to7 thing to keep in mind if you decide to use shadow support: that 8 programs that need to verify passwords (for example xdm, ftp daemons, 9 pop3 daemons) need to be 'shadow-compliant', that is they need to 10 10 be able to work with shadow'ed passwords.</para> 11 11 -
chapter06/config-vim.xml
rf50aec7 ra2cd10f 1 1 <sect2><title>Configuring Vim</title> 2 2 3 <para>By default Vim runs in vi compatible mode. Some people might like this,3 <para>By default vim runs in vi compatible mode. Some people might like this, 4 4 but we have a high preference to run vim in vim mode (else we wouldn't 5 have included Vim in this book but the original Vi). Create the5 have included vim in this book, but the original vi). Create the 6 6 <filename>/root/.vimrc</filename> by running the following:</para> 7 7 -
chapter06/creatingdirs.xml
rf50aec7 ra2cd10f 27 27 desired for all directories. The first change is a mode 0750 for the 28 28 /root directory. This is to make sure that not just everybody can 29 enter the /root directory (the same a user would do with /home/username30 director ies). The second change is a mode 1777 for the tmp31 directories. This way, any user can write data to the /tmp or/var/tmp32 director y but cannot remove another user's files (the latter is caused33 by the so-called "sticky bit" - bit 1 ofthe 1777 bit mask).</para>29 enter the /root directory (the same a user would do with his /home/username 30 directory). The second change is a mode 1777 for the tmp 31 directories. In this way any user can write to the /tmp and /var/tmp 32 directories, but cannot remove other users's files from them (the latter is prohibited 33 by the so-called "sticky bit" -- bit 1 in the 1777 bit mask).</para> 34 34 35 35 <para><screen><userinput>chmod 0750 /root && -
chapter06/glibc-exp.xml
rf50aec7 ra2cd10f 37 37 start a new bash shell which will replace the current shell. This is 38 38 done to get rid of the "I have no name!" message in the command 39 prompt, which was caused by bash's inability to resolve a userid to 40 a username (which in turn was caused by the missing Glibc 41 installation).</para> 39 prompt, which was caused by bash's inability to resolve a user ID to 40 a user name (which in turn was caused by the absence of Glibc).</para> 42 41 43 42 </sect2> -
chapter06/kernel-exp-headers.xml
rf50aec7 ra2cd10f 2 2 <title>Why we copy the kernel headers and don't symlink them</title> 3 3 4 <para>In the past ,it was common practice for people to symlink the4 <para>In the past it was common practice for people to symlink the 5 5 /usr/include/linux and asm directories to /usr/src/linux/include/linux 6 6 and asm respectively. This is a <emphasis>bad</emphasis> idea as -
chapter06/makedev-exp.xml
rf50aec7 ra2cd10f 2 2 <title>Command explanations</title> 3 3 4 <para><userinput>./MAKEDEV -v generic:</userinput> This creates generic5 devices. Normally, these devicesare all the devices you need. It's possible4 <para><userinput>./MAKEDEV -v generic:</userinput> This creates a whole 5 bunch of generic devices. Normally, these are all the devices you need. It's possible 6 6 that you are missing some special devices that are needed for your hardware 7 7 configuration. Create them with ./MAKEDEV -v <device>. 8 The <userinput>generic-nopty</userinput> option does a similar job but skips8 The <userinput>generic-nopty</userinput> option does a similar job, but skips 9 9 some devices which are not needed if you are using devpts.</para> 10 10 -
chapter06/makedev-inst.xml
rf50aec7 ra2cd10f 27 27 set of devices which you don't require.</para> 28 28 29 <para>MAKEDEV will create hda[1-20] to hdh[1-20] and such but keep in mind30 that you may not be able to use all of th ose devices due to kernel31 limit ations regarding the max.number of partitions.</para>29 <para>MAKEDEV will create hda[1-20] to hdh[1-20] and such, but keep in mind 30 that you may not be able to use all of these devices due to kernel 31 limits on the maximum number of partitions.</para> 32 32 33 33 </sect2> -
chapter06/nettools-inst.xml
rf50aec7 ra2cd10f 22 22 with the most common protocols such as TCP, PPP and a bunch of others. You 23 23 still need to actually enable these protocols in the kernel. What you do 24 here is merely telling the programs to be able to use those protocols but25 it's up to the kernel to make itavailable to the system.</para>24 here is merely telling the programs to be able to use those protocols, but 25 it's up to the kernel to make them available to the system.</para> 26 26 27 27 </sect2> -
chapter06/psmisc-inst.xml
rf50aec7 ra2cd10f 10 10 <para>Psmisc installs the 11 11 <filename>/usr/share/man/man1/pidof.1</filename> man page, but Psmisc's 12 pidof program isn't installed by default. Generally th at isn't a problem13 because we install the sysvinit package later on which provides us with12 pidof program isn't installed by default. Generally this isn't a problem, 13 because we install the Sysvinit package later on which provides 14 14 a better pidof program.</para> 15 15 16 <para>It's up to you now to decide if you are going to use the sysvinit16 <para>It's up to you now to decide if you are going to use the Sysvinit 17 17 package which provides a pidof program, or not. If you are going to, you 18 18 should remove Psmisc's pidof man page by running:</para> … … 20 20 <para><screen><userinput>rm /usr/share/man/man1/pidof.1</userinput></screen></para> 21 21 22 <para>If you're not going to use sysvinit, you should complete this22 <para>If you're not going to use Sysvinit, you should complete this 23 23 package's installation by creating the <filename>/bin/pidof</filename> 24 24 symlink by running:</para>
Note:
See TracChangeset
for help on using the changeset viewer.