Changeset 81a47c0


Ignore:
Timestamp:
03/19/2001 04:02:50 PM (23 years ago)
Author:
Thomas Balu Walter <tw@…>
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, v3_0, v3_1, v3_2, v3_3, 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:
9aab9f5
Parents:
53b5ccf
Message:

You

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

Location:
chapter06
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • chapter06/aboutdebug.xml

    r53b5ccf r81a47c0  
    66symbols and optimizing level 2 (gcc options -g and -O2) and are compiled
    77for a specific CPU. On Intel platforms software is compiled for i386
    8 processors by default. If you don't wish to run software on other
    9 machines other than your own, you might want to change the default
     8processors by default. If a user doesn't wish to run software on other
     9machines other than his own, he might want to change the default
    1010compiler options so that they will be compiled with a higher
    11 optimization level, no debugging symbols and generate code for your
     11optimization level, no debugging symbols and generate code for his
    1212specific architecture. Let me first explain what debugging symbols
    1313are.
     
    1515
    1616<para>
    17 A program compiled with debugging symbols means you can run a program or
     17A program compiled with debugging symbols means a user can run a program or
    1818library through a debugger and the debugger's output will be user friendlier.
    19 These debugging symbols also  enlarge the program or library significantly.
     19These debugging symbols also enlarge the program or library significantly.
    2020</para>
    2121
    2222<para>
    2323To remove debugging symbols from a binary (must be an a.out or ELF binary)
    24 run <userinput>strip --strip-debug filename</userinput> You can use wild cards
    25 if you need to strip debugging symbols from multiple files (use something like
     24run <userinput>strip --strip-debug filename</userinput>. A user can use wild
     25 cards
     26if he needs to strip debugging symbols from multiple files (use something like
    2627strip --strip-debug $LFS/usr/bin/*). Another, easier, options is just
    2728not to compile programs with debugging symbols. Most people will probably
    28 never use a debugger on software, so by leaving those symbols out you
    29 can save a lot of diskspace.
     29never use a debugger on software, so by leaving those symbols out
     30a lot of diskspace can be saved.
    3031</para>
    3132
    3233<para>
    33 Before you wonder if these debugging symbols would make a big difference,
     34Before someone wonders if these debugging symbols would make a big difference,
    3435here are some statistics:
    3536</para>
     
    5960<para>
    6061Sizes may vary depending on which compiler was used and which C library
    61 version was used to link dynamic programs against, but your results will be
    62 similar if you compare programs with and without debugging symbols. After
     62version was used to link dynamic programs against, but results will be
     63similar if a user compares programs with and without debugging symbols. After
    6364I was done with this chapter and stripped all debugging symbols from all LFS
    6465binaries and libraries I regained a little over 102 MB of disk space. Quite
  • chapter06/bash-inst.xml

    r53b5ccf r81a47c0  
    1717
    1818<para>
    19 Replace the static bash with the dynamic bash and re-enter the chroot'ed
    20 environment by running:
     19The static bash is replaced with the dynamic bash and the chroot'ed
     20environment is re-entered by running:
    2121</para>
    2222
  • chapter06/bashprofile.xml

    r53b5ccf r81a47c0  
    55When we have entered the chroot'ed environment in the next section we
    66want to export a couple of environment variables in that shell such as
    7 PS1, PATH and others variables you want to have set. For that purpose we'll
     7PS1, PATH and others variables a user wants to have set. For that
     8purpose we'll
    89create the $LFS/root/.bash_profile file which will be read by bash when we
    910enter the chroot environment.
     
    3132
    3233<para>
    33 You can add more environment variables,aliases and whatever else you
    34 need/want  at your own discretion as you deem them necessary.
     34More environment variables,aliases and whatever else is
     35needed/wanted can be added at the users own discretion
     36as he deems them necessary.
    3537</para>
    3638
  • chapter06/bison-exp.xml

    r53b5ccf r81a47c0  
    33
    44<para>
    5 <userinput>--datadir=/usr/share/bison:</userinput> This install the
     5<userinput>--datadir=/usr/share/bison:</userinput> This installs the
    66bison grammar files in /usr/share/bison rather than /usr/share.
    77</para>
  • chapter06/bzip2-inst.xml

    r53b5ccf r81a47c0  
    2929<para>
    3030Although it's not strictly a part of a basic LFS system it's worth
    31 mentioning that you can download a patch for Tar which enables the tar
     31mentioning that a patch for Tar can be downloaded which enables the tar
    3232program to compress and uncompress using bzip2/bunzip2 easily. With a
    33 plain tar you'll have to use constructions like bzcat file.tar.bz|tar
     33plain tar a user has to use constructions like bzcat file.tar.bz|tar
    3434xv or tar --use-compress-prog=bunzip2 -xvf file.tar.bz2 to use bzip2 and
    35 bunzip2 with tar. This patch gives you the -y option so you can unpack a
     35bunzip2 with tar. This patch gives the -y option so a user can unpack a
    3636Bzip2 archive with tar xvfy file.tar.bz2. Applying this patch will be
    37 mentioned later on when you re-install the Tar package.
     37mentioned later on when the Tar package is re-installed.
    3838</para>
    3939
  • chapter06/chroot.xml

    r53b5ccf r81a47c0  
    1010Enter the following command to enter the chroot'ed environment. From
    1111this point on there's no need to use the $LFS variable anymore, because
    12 everything you do will be restricted to the LFS partition (since / is
     12everything a user does will be restricted to the LFS partition (since / is
    1313actually /mnt/lfs but the shell doesn't know that).
    1414</para>
     
    3131<para>
    3232Now that we are inside a chroot'ed environment, we can continue to
    33 install all the basic system software. Make sure you execute all the
    34 following commands in this and following chapters from within the
    35 chroot'ed environment. If you ever leave this environment for a reason
    36 (say when you reboot or something) don't forget to mount $LFS/proc again
    37 like you did earlier and to re-enter chroot before you continue with the
     33install all the basic system software. A user has to make sure all the
     34following commands in this and following chapters are run from within the
     35chroot'ed environment. If he ever leaves this environment for a reason
     36(say when rebooting or something) he has to remember to mount $LFS/proc again
     37like he did earlier and to re-enter chroot before continuing with the
    3838book.
    3939</para>
  • chapter06/config-glibc.xml

    r53b5ccf r81a47c0  
    4040
    4141<para>
    42 Run the <userinput>tzselect</userinput> script and answer the questions
    43 regarding your timezone. When you're done, the script will give you the
    44 location of the timezone file you need.
     42The <userinput>tzselect</userinput> script has to be run and the questions
     43regarding the user's timezone have to be answered.
     44When the user is done, the script will give the
     45location of the needed timezone file.
    4546</para>
    4647
     
    6465
    6566<para>
    66 The  symlink you would create with that information would be:
     67The  symlink a user would create with that information would be:
    6768</para>
    6869
  • chapter06/config-ldso.xml

    r53b5ccf r81a47c0  
    55By default the dynamic loader searches a few default paths for dynamic
    66libraries, so there normally isn't a need for the
    7 <filename>/etc/ld.so.conf</filename> file unless you have extra
    8 directories in which you want the system to search for paths. The
     7<filename>/etc/ld.so.conf</filename> file unless the system has extra
     8directories in which a user wants the system to search for paths. The
    99<filename class="directory">/usr/local/lib</filename> directory isn't
    1010searched through for dynamic libraries by default, so we want to add
    11 this path so when you install software you won't be suprised by them not
     11this path so when a user installs software he won't be suprised by them not
    1212running for some reason.
    1313</para>
     
    3636<filename class="directory">/lib</filename> and
    3737<filename class="directory">/usr/lib</filename> directories it doesn't
    38 hurt. This way you see right away what's being searched and don't have
    39 to remeber the default search paths if you don't want to.
     38hurt. This way it can be seen right away what's being searched and a user
     39doesn't have
     40to remeber the default search paths if he doesn't want to.
    4041</para>
    4142
  • chapter06/config-lilo.xml

    r53b5ccf r81a47c0  
    44<para>
    55We're not going to create lilo's configuration file from scratch, but we'll
    6 use the file from your normal Linux system. This file is different on every
    7 machine and thus I can't create it here. Since you would want to have the
    8 same options regarding lilo as you have when you're using your normal Linux
    9 system you would create the file exactly as it is on the normal system.
     6use the file from the normal Linux system. This file is different on every
     7machine and thus I can't create it here. Since a user would want to have the
     8same options regarding lilo as he has when he is using his normal Linux
     9system he would create the file exactly as it is on the normal system.
    1010</para>
    1111
    1212<para>
    1313Copy the Lilo configuration file and kernel images that Lilo uses by
    14 running the following commands from a shell on your normal Linux system.
    15 Don't execute these commands from your chroot'ed shell.
     14running the following commands from a shell on the normal Linux system.
     15Don't execute these commands from the chroot'ed shell.
    1616</para>
    1717
     
    2424
    2525<para>
    26 Before you can execute the second command you need to know the names of
    27 the kernel images. You can't just copy all files from the /boot
     26Before a user can execute the second command he needs to know the names of
     27the kernel images. He can't just copy all files from the /boot
    2828directory. The /etc/lilo.conf file contains the names of the kernel
    29 images you're using. Open the file and look for lines like this:
     29images he is using. Open the file and look for lines like this:
    3030</para>
    3131
     
    4040represent the name and location of the image files. These files will
    4141usually be in /boot but they might be in other directories as well,
    42 depending on your distribution's conventions.
     42depending on the distribution's conventions.
    4343</para>
    4444
  • chapter06/config-shadowpwd.xml

    r53b5ccf r81a47c0  
    33<para>
    44This package contains the utilities to modify user's passwords, add new
    5 users/groups, delete users/groups and more. I'm not going to explain to you
    6 what 'password shadowing' means. You can read all about that in the doc/HOWTO
     5users/groups, delete users/groups and more. I'm not going to explain
     6what 'password shadowing' means. All about that can be read in the doc/HOWTO
    77file within the unpacked shadow password suite's source tree. There's one
    8 thing you should keep in mind, if you decide to use shadow support, that
     8thing a user should keep in mind, if he decides to use shadow support, that
    99programs that need to verify passwords (examples are xdm, ftp daemons,
    1010pop3 daemons, etc) need to be 'shadow-compliant', eg. they need to
     
    1818
    1919<para>
    20 Now is a very good moment to read chapter 5 of the doc/HOWTO file. You can
    21 read how you can enable shadow'ed passwords, how to test whether shadowing
     20Now is a very good moment to read chapter 5 of the doc/HOWTO file. It
     21describes
     22how to enable shadow'ed passwords, how to test whether shadowing
    2223works and if not, how to disable it again.
    2324</para>
     
    2526<para>
    2627The documentation mentions something about the creation of npasswd and
    27 nshadow after you run pwconv. This is an error in the documentation.
    28 Those two files will be be created. After you run pwconv, /etc/passwd
    29 will no longer contain the passwords and /etc/shadow will. You don't
    30 need to rename the npasswd and nshadow files yourself.
     28nshadow after pwconv is run. This is an error in the documentation.
     29Those two files will not be created. After pwconv is run, /etc/passwd
     30will no longer contain the passwords and /etc/shadow will. A user doesn't
     31need to rename the npasswd and nshadow files himself.
    3132</para>
    3233
  • chapter06/consoletools-inst.xml

    r53b5ccf r81a47c0  
    33
    44<para>
    5 Before you start installing Console-tools you have to unpack the
     5Before starting to install Console-tools a user has to unpack the
    66console-tools-0.2.3.patch file.
    77</para>
  • chapter06/findutils-inst.xml

    r53b5ccf r81a47c0  
    33
    44<para>
    5 Before you install Findutils you have to unpack the findutils patch
    6 file.
     5Before Findutils is installed the findutils patch file has to be unpacked.
    76</para>
    87
  • chapter06/gcc-inst.xml

    r53b5ccf r81a47c0  
    33
    44<para>
    5 After you unpacked the gcc-2.95.2.1 archive don't enter the newly created
    6 gcc-2.95.2.1 directory but stay in the /usr/src directory. Install GCC by
     5After a user unpacked the gcc-2.95.2.1 archive he doesn't enter the
     6newly created
     7gcc-2.95.2.1 directory but stays in the /usr/src directory. Install GCC by
    78running the following commands:
    89</para>
  • chapter06/glibc-inst.xml

    r53b5ccf r81a47c0  
    4141
    4242<para>
    43 You can get rid of the "I have no name!" in the bash prompt if you want.
    44 Do this by exiting chroot and re-entering it. Run the following
     43A user can get rid of the "I have no name!" in the bash prompt if he wants.
     44This is done by exiting chroot and re-entering it. Run the following
    4545commands to do that:
    4646</para>
  • chapter06/introduction.xml

    r53b5ccf r81a47c0  
    44<para>
    55The installation of all the software is pretty straightforward and
    6 you'll think it's so much easier and shorter to give the generic
     6a user will think it's so much easier and shorter to give the generic
    77installation instructions for each package and only explain how to
    88install something if a certain package requires an alternate installation
    9 method. Although I agree with you on that, I, however, choose to give the
     9method. Although I agree on that, I, however, choose to give the
    1010full instructions for each and every package. This is simply to avoid any
    1111possible confusion and errors.
  • chapter06/lilo-inst.xml

    r53b5ccf r81a47c0  
    1515<para>
    1616It appears that compilation of this package fails on certain machines
    17 when the -g compiler flag is being used. If you can't compile Lilo at
    18 all, please try removing the -g value from the CFLAGS variable in the
     17when the -g compiler flag is being used. If a user can't compile Lilo at
     18all, he should try to remove the -g value from the CFLAGS variable in the
    1919<filename>Makefile</filename> file.
    2020</para>
     
    2222<para>
    2323At the end of the installation the make install process will print a
    24 message stating that you have to execute /sbin/lilo to complete the
     24message stating that /sbin/lilo has to be executed to complete the
    2525update. Don't do this as it has no use. The /etc/lilo.conf isn't present
    2626yet. We will complete the installation of lilo in chapter 8.
  • chapter06/m4-inst.xml

    r53b5ccf r81a47c0  
    1515
    1616<para>
    17 If you're base system is running a 2.0 kernel and your Glibc version is
    18 2.1 then you will most likely get problems executing M4 in the
     17If the base system is running a 2.0 kernel and the Glibc version is
     182.1 then a user will most likely get problems executing M4 in the
    1919chroot'ed environment due to incompatibilities between the M4 program,
    20 Glibc-2.1 and the running 2.0 kernel. If you have problems executing the
    21 m4 program in the chroot'ed environment (for example when you install
    22 the autoconf and automake packages) you'll have to exit the chroot'ed
     20Glibc-2.1 and the running 2.0 kernel. If he has problems executing the
     21m4 program in the chroot'ed environment (for example when he installs
     22the autoconf and automake packages) he'll have to exit the chroot'ed
    2323environment and compile M4 statically. This way the binary is linked
    24 against Glibc 2.0 (if you run kernel 2.0 you're Glibc version is 2.0 as
     24against Glibc 2.0 (if he runs kernel 2.0, Glibc version is 2.0 as
    2525well on a decent system. Kernel 2.0 and Glibc-2.1 don't mix very well)
    26 and won't give you any problems.
     26and won't give any problems.
    2727</para>
    2828
     
    4343
    4444<para>
    45 Now you can re-enter the chroot'ed environment and continue with the
    46 next package. If you wish to recompile M4 dynamically, you can do that
    47 after you have rebooted into the LFS system rather than chroot'ed into it.
     45Now the chroot'ed environment can be re-entered and the
     46next package an be installed. If M4 should be re-compiled dynamically,
     47this can be done
     48after having rebooted into the LFS system rather than chrooting into it.
    4849</para>
    4950
  • chapter06/makedev-inst.xml

    r53b5ccf r81a47c0  
    1616<para>
    1717The <quote>generic</quote> parameter passed to the MAKEDEV script
    18 doesn't create all the devices you might need, such as audio devices,
    19 hdc, hdd and ohters. If you seem to be missing something tell MAKEDEV to
    20 create it. To create hdc replace generic with hdc. You can also add hdc
    21 to generic, so you would execute <userinput>./MAKEDEV -v generic
     18doesn't create all the devices a user might need, such as audio devices,
     19hdc, hdd and ohters. If it seems something is missing MAKEDEV has to be told
     20to
     21create it. To create hdc replace generic with hdc. A user can also add hdc
     22to generic, so he would execute <userinput>./MAKEDEV -v generic
    2223hdc</userinput> to create the generic set of devices files, plus the
    23 files you need to be able to access hdc (and hdc1, hdc2, etc)
     24files he needs to be able to access hdc (and hdc1, hdc2, etc)
    2425</para>
    2526
    2627<para>
    27 MAKEDEV will create hda[1-20] and hdb[1-20] and such but keep in mind
    28 that you may not be able to use all of those devices due to kernel
     28MAKEDEV will create hda[1-20] and hdb[1-20] and such but he has to keep in mind
     29that he may not be able to use all of those devices due to kernel
    2930limitations regarding the max. number of partitions.
    3031</para>
  • chapter06/perl-inst.xml

    r53b5ccf r81a47c0  
    1515
    1616<para>
    17 If you don't want to answer all those questions Perl asks you, you can
     17If a user doesn't want to answer all those questions Perl asks, he can
    1818add the -d option to the configure script and Perl will use all the
    19 default settings. To avoid the Configure script asking you questions
    20 after the config.sh file has been created you can pass the -e parameter
     19default settings. To avoid the Configure script asking questions
     20after the config.sh file has been created he can pass the -e parameter
    2121to perl as well. The commands with these parameters included will be:
    2222</para>
  • chapter06/removeoldnss.xml

    r53b5ccf r81a47c0  
    33
    44<para>
    5 If you have copied the NSS Library files from your normal Linux system to the
    6 LFS system (because your normal system runs glibc-2.0) it's time to remove
     5If the user copied the NSS Library files from the normal Linux system to the
     6LFS system (because the normal system runs glibc-2.0) it's time to remove
    77them now by running:
    88</para>
  • chapter06/sysvinit-inst.xml

    r53b5ccf r81a47c0  
    33
    44<para>
    5 When you change run levels (for example when you are going to shutdown
    6 your system) the init program is going to send the TERM and KILL signals
     5When run levels are changed (for example when going to shutdown
     6the system) the init program is going to send the TERM and KILL signals
    77to all the processes that init started. But init prints a message to the
    88screen saying "sending all processes the TERM signal" and the same for the
    99KILL signal. This implies that init sends this signal to all the currently
    10 running processes, which isn't the case. To avoid this confusion you can
     10running processes, which isn't the case. To avoid this confusion a user can
    1111apply the sysvinit patch found on the LFS FTP site to sysvinit that changes
    1212the sentence in the shutdown.c file and have it print "sending all
  • chapter06/tar-inst.xml

    r53b5ccf r81a47c0  
    33
    44<para>
    5 If you want to be able to directly use bzip2 files with tar, use the tar
     5If a user wants to be able to directly use bzip2 files with tar, he can
     6use the tar
    67patch avaiable from the LFS FTP site. This patch will add the -y option
    7 to tar which works the same as the -z option to tar (which you can use
     8to tar which works the same as the -z option to tar (which can be used
    89for gzip files).
    910</para>
  • chapter06/vim-inst.xml

    r53b5ccf r81a47c0  
    33
    44<para>
    5 If you don't like vim to be installed as an editor on your LFS system,
    6 you may want to download an alternative and install an editor you
    7 prefer. There are a few hints how to install different editors
     5If a user doesn't like vim to be installed as an editor on the LFS system,
     6he may want to download an alternative and install an editor he
     7prefers. There are a few hints how to install different editors
    88available at <ulink
    99url="http://cvs.linuxfromscratch.org/index.cgi/hints/editors/">
     
    1212
    1313<para>
    14 You need to unpack both the vim-rt and vim-src packages to install Vim.
     14Both the vim-rt and vim-src packages need to be unpacked to install Vim.
    1515Both packages will unpack their files into the vim-5.7 directory. This
    1616won't overwrite any files from the other package. So it doesn't mattter
    17 in which order you do it. Install Vim by running the following commands:
     17in which order it is done. Install Vim by running the following commands:
    1818</para>
    1919
     
    2929
    3030<para>
    31 If you are planning on installing the X Window system on your LFS
    32 system, you might want to re-compile Vim after you have installed X. Vim
     31If a user plans on installing the X Window system on his LFS
     32system, he might want to re-compile Vim after he has installed X. Vim
    3333comes with a nice GUI version of the editor which requires X and a few
    3434other libraries to be installed. For more information read the Vim
Note: See TracChangeset for help on using the changeset viewer.