Changeset 59350d1
- Timestamp:
- 09/17/2022 12:36:13 PM (18 months ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter11/afterlfs.xml
r46b05a08 r59350d1 25 25 <para> 26 26 A server is the simpler category. Generally this consists of a web 27 server such as the 27 server such as the 28 28 <ulink url="&blfs-book;server/apache.html">Apache HTTP Server</ulink> 29 29 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>. 31 31 However other services are possible. The operating system 32 32 embedded in a single use device falls into this category. … … 35 35 <para> 36 36 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 41 41 <ulink url="&blfs-book;gnome/gnome.html">Gnome</ulink> 42 based on the 42 based on the 43 43 <ulink url="&blfs-book;x/installing.html">X Window graphical environment</ulink> 44 44 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>, 46 46 <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>. 49 49 These applications require many (several hundred depending on 50 50 desired capabilities) more packages of support applications and … … 56 56 suitable for all systems for system management. These applications are 57 57 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>, 62 62 are normally only 63 63 useful for a laptop system. If you are not sure if a package presented … … 74 74 When you initially boot into LFS, you have all the internal tools to build 75 75 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: 77 77 </para> 78 78 … … 91 91 In order to properly build packages in chroot, you will also need to 92 92 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 94 94 <command>HOST</command> system: 95 95 </para> … … 101 101 { 102 102 if ! mountpoint $LFS/$1 >/dev/null; then 103 $SUDO mount - -bind /$1 $LFS/$1103 $SUDO mount --bind /$1 $LFS/$1 104 104 echo $LFS/$1 mounted 105 105 else … … 111 111 { 112 112 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 114 114 echo $LFS/$1 mounted 115 115 else … … 129 129 fi 130 130 131 mountbind dev 131 mountbind dev 132 132 mounttype dev/pts devpts devpts -o gid=5,mode=620 133 133 mounttype proc proc proc … … 143 143 Note that the last three commands in the script are commented out. These 144 144 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. 146 146 </para> 147 147 … … 167 167 </para> 168 168 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 - 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> 171 171 172 172 <para> … … 183 183 <para> 184 184 This method also provides a full graphical environment, but first 185 requires installing 185 requires installing 186 186 <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> 188 188 on the LFS system, usually in chroot. It also requires a second 189 189 computer. This method has the advantage of being simple by not requiring 190 190 the complexity of the chroot environment. It also uses your LFS built 191 191 kernel for all additional packages and still provides a complete system 192 for installing packages. 192 for installing packages. 193 193 </para> 194 194 … … 199 199 200 200 <para> 201 This method requiures installing 201 This method requiures installing 202 202 <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>, 204 204 <ulink url="&blfs-book;general/gpm.html">gpm</ulink>, and 205 205 <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 208 208 consoles is as easy as using the Alt-Fn key combinations where Fn is 209 209 between F1 and F6. The Alt-LeftArrow and Alt-RightArrow key 210 210 combinations also will change the console. 211 211 </para> 212 212 213 213 <para> 214 214 At this point you can log into two different virtual consoles and run
Note:
See TracChangeset
for help on using the changeset viewer.