Changeset 59350d1


Ignore:
Timestamp:
09/17/2022 12:36:13 PM (20 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
afd19ad
Parents:
46b05a08
Message:

afterlfs: remove trailing spaces, and fix two obvious "- -"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter11/afterlfs.xml

    r46b05a08 r59350d1  
    2525     <para>
    2626        A server is the simpler category. Generally this consists of a web
    27         server such as the 
     27        server such as the
    2828        <ulink url="&blfs-book;server/apache.html">Apache HTTP Server</ulink>
    2929        and a database server such as
    30         <ulink url="&blfs-book;server/mariadb.html">MariaDB</ulink>. 
     30        <ulink url="&blfs-book;server/mariadb.html">MariaDB</ulink>.
    3131        However other services are possible. The operating system
    3232        embedded in a single use device falls into this category.
     
    3535     <para>
    3636        On the other hand, a workstation is much more complex. It generally
    37         requires a graphical user environment such as 
    38         <ulink url="&blfs-book;lxde/lxde.html">LXDE</ulink>, 
    39         <ulink url="&blfs-book;xfce/xfce.html">XFCE</ulink>, 
    40         <ulink url="&blfs-book;kde/kde.html">KDE</ulink>, or 
     37        requires a graphical user environment such as
     38        <ulink url="&blfs-book;lxde/lxde.html">LXDE</ulink>,
     39        <ulink url="&blfs-book;xfce/xfce.html">XFCE</ulink>,
     40        <ulink url="&blfs-book;kde/kde.html">KDE</ulink>, or
    4141        <ulink url="&blfs-book;gnome/gnome.html">Gnome</ulink>
    42         based on the 
     42        based on the
    4343        <ulink url="&blfs-book;x/installing.html">X Window graphical environment</ulink>
    4444        and several graphical based applications such as the
    45         <ulink url="&blfs-book;xsoft/firefox.html">Firefox web browser</ulink>, 
     45        <ulink url="&blfs-book;xsoft/firefox.html">Firefox web browser</ulink>,
    4646        <ulink url="&blfs-book;xsoft/thunderbird.html">Thunderbird email client</ulink>,
    47         or 
    48         <ulink url="&blfs-book;xsoft/libreoffice.html">LibreOffice office suite</ulink>. 
     47        or
     48        <ulink url="&blfs-book;xsoft/libreoffice.html">LibreOffice office suite</ulink>.
    4949        These applications require many (several hundred depending on
    5050        desired capabilities) more packages of support applications and
     
    5656        suitable for all systems for system management. These applications are
    5757        all in the full BLFS book. Not
    58         all packages are needed in all environments. For example 
    59         <ulink url="&blfs-book;basicnet/dhcpcd.html">dhcpcd</ulink>, 
    60         is not appropriate for a server and 
    61         <ulink url="&blfs-book;basicnet/wireless_tools.html">wireless_tools</ulink>, 
     58        all packages are needed in all environments. For example
     59        <ulink url="&blfs-book;basicnet/dhcpcd.html">dhcpcd</ulink>,
     60        is not appropriate for a server and
     61        <ulink url="&blfs-book;basicnet/wireless_tools.html">wireless_tools</ulink>,
    6262        are normally only
    6363        useful for a laptop system. If you are not sure if a package presented
     
    7474      When you initially boot into LFS, you have all the internal tools to build
    7575      additional packages. Unfortunately, the user environment is quite sparse.
    76       There are a couple of ways to improve this: 
     76      There are a couple of ways to improve this:
    7777    </para>
    7878
     
    9191       In order to properly build packages in chroot, you will also need to
    9292       remember to mount the virtual file systems if they are not already
    93        mounted. One way to do this is to create a script on the 
     93       mounted. One way to do this is to create a script on the
    9494       <command>HOST</command> system:
    9595    </para>
     
    101101{
    102102   if ! mountpoint $LFS/$1 >/dev/null; then
    103      $SUDO mount - -bind /$1 $LFS/$1
     103     $SUDO mount --bind /$1 $LFS/$1
    104104     echo $LFS/$1 mounted
    105105   else
     
    111111{
    112112   if ! mountpoint $LFS/$1 >/dev/null; then
    113      $SUDO mount -t $2 $3 $4 $5 $LFS/$1 
     113     $SUDO mount -t $2 $3 $4 $5 $LFS/$1
    114114     echo $LFS/$1 mounted
    115115   else
     
    129129fi
    130130
    131 mountbind dev 
     131mountbind dev
    132132mounttype dev/pts devpts devpts -o gid=5,mode=620
    133133mounttype proc    proc   proc
     
    143143       Note that the last three commands in the script are commented out. These
    144144       are useful if those directories are mounted as separate partitions on the
    145        host system and will be mounted when booting the completed LFS/BLFS system. 
     145       host system and will be mounted when booting the completed LFS/BLFS system.
    146146    </para>
    147147
     
    167167    </para>
    168168
    169 <screen><command>alias lfs='sudo /usr/sbin/chroot /mnt/lfs /usr/bin/env -i HOME=/root TERM="$TERM" PS1="\u:\w\\\\$ " 
    170 PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash - -login'</command></screen>
     169<screen><command>alias lfs='sudo /usr/sbin/chroot /mnt/lfs /usr/bin/env -i HOME=/root TERM="$TERM" PS1="\u:\w\\\\$ "
     170PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login'</command></screen>
    171171
    172172     <para>
     
    183183    <para>
    184184       This method also provides a full graphical environment, but first
    185        requires installing 
     185       requires installing
    186186        <ulink url="&blfs-book;postlfs/openssh.html">sshd</ulink> and
    187         <ulink url="&blfs-book;basicnet/wget.html">wget</ulink> 
     187        <ulink url="&blfs-book;basicnet/wget.html">wget</ulink>
    188188       on the LFS system, usually in chroot. It also requires a second
    189189       computer. This method has the advantage of being simple by not requiring
    190190       the complexity of the chroot environment. It also uses your LFS built
    191191       kernel for all additional packages and still provides a complete system
    192        for installing packages. 
     192       for installing packages.
    193193    </para>
    194194
     
    199199
    200200    <para>
    201        This method requiures installing 
     201       This method requiures installing
    202202        <ulink url="&blfs-book;postlfs/make-ca.html">make-ca</ulink>,
    203         <ulink url="&blfs-book;basicnet/wget.html">wget</ulink>, 
     203        <ulink url="&blfs-book;basicnet/wget.html">wget</ulink>,
    204204        <ulink url="&blfs-book;general/gpm.html">gpm</ulink>, and
    205205        <ulink url="&blfs-book;basicnet/links">links</ulink>
    206        in chroot and then rebooting into the new LFS system. At this 
    207        point the default system has six virtual consoles. Switching 
     206       in chroot and then rebooting into the new LFS system. At this
     207       point the default system has six virtual consoles. Switching
    208208       consoles is as easy as using the Alt-Fn key combinations where Fn is
    209209       between F1 and F6.  The Alt-LeftArrow and Alt-RightArrow key
    210210       combinations also will change the console.
    211211     </para>
    212      
     212
    213213     <para>
    214214       At this point you can log into two different virtual consoles and run
Note: See TracChangeset for help on using the changeset viewer.