Changeset 1ec69ac5
- Timestamp:
- 10/15/2005 05:22:01 PM (19 years ago)
- Branches:
- 6.1.1
- Children:
- 5473c666
- Parents:
- e9f3e85
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter02/creatingfilesystem.xml
re9f3e85 r1ec69ac5 19 19 <para>To create an ext2 file system on the LFS partition, run the following:</para> 20 20 21 <screen ><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>21 <screen role="nodump"><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen> 22 22 23 23 <para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS … … 31 31 uses custom enhancements, run the following command:</para> 32 32 33 <screen ><userinput>debugfs -R feature /dev/<replaceable>[xxx]</replaceable></userinput></screen>33 <screen role="nodump"><userinput>debugfs -R feature /dev/<replaceable>[xxx]</replaceable></userinput></screen> 34 34 35 35 <para>If the output contains features other than: dir_index; filetype; … … 39 39 filesystem on your LFS partition:</para> 40 40 41 <screen ><userinput>cd /tmp41 <screen role="nodump"><userinput>cd /tmp 42 42 tar xjf /path/to/sources/e2fsprogs-&e2fsprogs-version;.tar.bz2 43 43 cd e2fsprogs-&e2fsprogs-version; … … 55 55 no need to format it.</para> 56 56 57 <screen ><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>57 <screen role="nodump"><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen> 58 58 59 59 <para>Replace <replaceable>[yyy]</replaceable> with the name of the swap -
chapter02/mounting.xml
re9f3e85 r1ec69ac5 18 18 environment variable by running:</para> 19 19 20 <screen ><userinput>export LFS=/mnt/lfs</userinput></screen>20 <screen role="nodump"><userinput>export LFS=/mnt/lfs</userinput></screen> 21 21 22 22 <para>Next, create the mount point and mount the LFS file system by 23 23 running:</para> 24 24 25 <screen ><userinput>mkdir -p $LFS25 <screen role="nodump"><userinput>mkdir -p $LFS 26 26 mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen> 27 27 … … 33 33 class="directory">/usr</filename>), mount them using:</para> 34 34 35 <screen ><userinput>mkdir -p $LFS35 <screen role="nodump"><userinput>mkdir -p $LFS 36 36 mount /dev/<replaceable>[xxx]</replaceable> $LFS 37 37 mkdir $LFS/usr -
chapter03/introduction.xml
re9f3e85 r1ec69ac5 37 37 download session:</para> 38 38 39 <screen ><userinput>mkdir $LFS/sources</userinput></screen>39 <screen role="nodump"><userinput>mkdir $LFS/sources</userinput></screen> 40 40 41 41 <para>Make this directory writable and sticky. <quote>Sticky</quote> … … 45 45 sticky modes:</para> 46 46 47 <screen ><userinput>chmod a+wt $LFS/sources</userinput></screen>47 <screen role="nodump"><userinput>chmod a+wt $LFS/sources</userinput></screen> 48 48 49 49 </sect1> -
chapter04/aboutlfs.xml
re9f3e85 r1ec69ac5 13 13 Check that the <envar>LFS</envar> variable is set up properly with:</para> 14 14 15 <screen ><userinput>echo $LFS</userinput></screen>15 <screen role="nodump"><userinput>echo $LFS</userinput></screen> 16 16 17 17 <para>Make sure the output shows the path to the LFS partition's mount … … 20 20 variable can be set with:</para> 21 21 22 <screen ><userinput>export LFS=/mnt/lfs</userinput></screen>22 <screen role="nodump"><userinput>export LFS=/mnt/lfs</userinput></screen> 23 23 24 24 <para>Having this variable set is beneficial in that commands such as -
chapter04/addinguser.xml
re9f3e85 r1ec69ac5 63 63 password), give <emphasis>lfs</emphasis> a password:</para> 64 64 65 <screen ><userinput>passwd lfs</userinput></screen>65 <screen role="nodump"><userinput>passwd lfs</userinput></screen> 66 66 67 67 <para>Grant <emphasis>lfs</emphasis> full access to -
chapter05/glibc.xml
re9f3e85 r1ec69ac5 183 183 command:</para> 184 184 185 <screen ><userinput>make localedata/install-locales</userinput></screen>185 <screen role="nodump"><userinput>make localedata/install-locales</userinput></screen> 186 186 187 187 <para>To save time, an alternative to running the -
chapter06/bash.xml
re9f3e85 r1ec69ac5 70 70 currently being executed):</para> 71 71 72 <screen ><userinput>exec /bin/bash --login +h</userinput></screen>72 <screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen> 73 73 74 74 <note><para>The parameters used make the <command>bash</command> -
chapter06/glibc.xml
re9f3e85 r1ec69ac5 153 153 for the tests to run successfully:</para> 154 154 155 <screen ><userinput>mkdir -p /usr/lib/locale155 <screen role="nodump"><userinput>mkdir -p /usr/lib/locale 156 156 localedef -i de_DE -f ISO-8859-1 de_DE 157 157 localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro … … 224 224 <para>To determine the local time zone, run the following script:</para> 225 225 226 <screen ><userinput>tzselect</userinput></screen>226 <screen role="nodump"><userinput>tzselect</userinput></screen> 227 227 228 228 <para>After answering a few questions about the location, the script -
chapter06/pwdgroup.xml
re9f3e85 r1ec69ac5 68 68 work.</para> 69 69 70 <screen ><userinput>exec /tools/bin/bash --login +h</userinput></screen>70 <screen role="nodump"><userinput>exec /tools/bin/bash --login +h</userinput></screen> 71 71 72 72 <para>Note the use of the <parameter>+h</parameter> directive. This tells -
chapter06/shadow.xml
re9f3e85 r1ec69ac5 133 133 by running:</para> 134 134 135 <screen ><userinput>passwd root</userinput></screen>135 <screen role="nodump"><userinput>passwd root</userinput></screen> 136 136 </sect2> 137 137 -
chapter06/strippingagain.xml
re9f3e85 r1ec69ac5 26 26 chroot:</para> 27 27 28 <screen ><userinput>logout</userinput></screen>28 <screen role="nodump"><userinput>logout</userinput></screen> 29 29 30 30 <para>Then reenter it with:</para> 31 31 32 <screen ><userinput>chroot $LFS /tools/bin/env -i \32 <screen role="nodump"><userinput>chroot $LFS /tools/bin/env -i \ 33 33 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ 34 34 PATH=/bin:/usr/bin:/sbin:/usr/sbin \ -
chapter06/texinfo.xml
re9f3e85 r1ec69ac5 74 74 the task:</para> 75 75 76 <screen ><userinput>cd /usr/share/info76 <screen role="nodump"><userinput>cd /usr/share/info 77 77 rm dir 78 78 for f in * -
chapter06/vim.xml
re9f3e85 r1ec69ac5 135 135 running the following command:</para> 136 136 137 <screen ><userinput>vim -c ':options'</userinput></screen>137 <screen role="nodump"><userinput>vim -c ':options'</userinput></screen> 138 138 139 139 </sect2> -
chapter07/console.xml
re9f3e85 r1ec69ac5 41 41 correct:</para> 42 42 43 <screen ><userinput>cat >/etc/sysconfig/console <<"EOF"43 <screen role="nodump"><userinput>cat >/etc/sysconfig/console <<"EOF" 44 44 <literal>KEYMAP="es euro2" 45 45 FONT="lat9-16 -u iso01"</literal> … … 50 50 instead of Euro, the correct <envar>FONT</envar> line would be:</para> 51 51 52 <screen ><userinput>FONT="lat1-16"</userinput></screen></note>52 <screen role="nodump"><userinput>FONT="lat1-16"</userinput></screen></note> 53 53 54 54 <para>If the <envar>KEYMAP</envar> or <envar>FONT</envar> variable is not set, the … … 62 62 in use is affected (this works only for i386 keymaps):</para> 63 63 64 <screen ><userinput>zgrep '\W14\W' <replaceable>[/path/to/your/keymap]</replaceable></userinput></screen>64 <screen role="nodump"><userinput>zgrep '\W14\W' <replaceable>[/path/to/your/keymap]</replaceable></userinput></screen> 65 65 66 66 <beginpage/> … … 69 69 following keymap snippet to fix this issue:</para> 70 70 71 <screen ><userinput>mkdir -p /etc/kbd && cat > /etc/kbd/bs-sends-del <<"EOF"71 <screen role="nodump"><userinput>mkdir -p /etc/kbd && cat > /etc/kbd/bs-sends-del <<"EOF" 72 72 <literal> keycode 14 = Delete Delete Delete Delete 73 73 alt keycode 14 = Meta_Delete … … 82 82 snippet after the main keymap:</para> 83 83 84 <screen ><userinput>cat >>/etc/sysconfig/console <<"EOF"84 <screen role="nodump"><userinput>cat >>/etc/sysconfig/console <<"EOF" 85 85 <literal>KEYMAP_CORRECTIONS="/etc/kbd/bs-sends-del"</literal> 86 86 EOF</userinput></screen> -
chapter07/hosts.xml
re9f3e85 r1ec69ac5 63 63 <filename>/etc/hosts</filename> file by running:</para> 64 64 65 <screen ><userinput>cat > /etc/hosts << "EOF"65 <screen role="nodump"><userinput>cat > /etc/hosts << "EOF" 66 66 <literal># Begin /etc/hosts (no network card version) 67 67 -
chapter07/profile.xml
re9f3e85 r1ec69ac5 66 66 the following command:</para> 67 67 68 <screen ><userinput>locale -a</userinput></screen>68 <screen role="nodump"><userinput>locale -a</userinput></screen> 69 69 70 70 <para>Locales can have a number of synonyms, e.g. <quote>ISO-8859-1</quote> is … … 77 77 (<quote>en_GB.iso88591</quote> in our example).</para> 78 78 79 <screen ><userinput>LC_ALL=<replaceable>[locale name]</replaceable> locale charmap</userinput></screen>79 <screen role="nodump"><userinput>LC_ALL=<replaceable>[locale name]</replaceable> locale charmap</userinput></screen> 80 80 81 81 <para>For the <quote>en_GB.iso88591</quote> locale, the above command -
chapter07/udev.xml
re9f3e85 r1ec69ac5 182 182 also load this other module, at the same time.</quote> For example:</para> 183 183 184 <screen ><userinput>install snd-pcm modprobe -i snd-pcm ; modprobe \184 <screen role="nodump"><userinput>install snd-pcm modprobe -i snd-pcm ; modprobe \ 185 185 snd-pcm-oss ; true</userinput></screen> 186 186 -
chapter08/kernel.xml
re9f3e85 r1ec69ac5 46 46 compile the keymap into the kernel, issue the command below:</para> 47 47 48 <screen ><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to keymap]</replaceable> > \48 <screen role="nodump"><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to keymap]</replaceable> > \ 49 49 drivers/char/defkeymap.c</userinput></screen> 50 50 … … 59 59 longindex.html#kernel-config-index</phrase></ulink>:</para> 60 60 61 <screen ><userinput>make menuconfig</userinput></screen>61 <screen role="nodump"><userinput>make menuconfig</userinput></screen> 62 62 63 63 <para>Alternatively, <command>make oldconfig</command> may be more appropriate in some -
chapter09/reboot.xml
re9f3e85 r1ec69ac5 43 43 partitions before unmounting the main one, like this:</para> 44 44 45 <screen ><userinput>umount $LFS/usr45 <screen role="nodump"><userinput>umount $LFS/usr 46 46 umount $LFS/home 47 47 umount $LFS</userinput></screen> … … 49 49 <para>Now, reboot the system with:</para> 50 50 51 <screen ><userinput>shutdown -r now</userinput></screen>51 <screen role="nodump"><userinput>shutdown -r now</userinput></screen> 52 52 53 53 <para>Assuming the GRUB boot loader was set up as outlined earlier, the menu -
prologue/hostreqs.xml
re9f3e85 r1ec69ac5 21 21 requirements outlined above, run the following command:</para> 22 22 23 <screen ><userinput>cat /proc/version</userinput></screen>23 <screen role="nodump"><userinput>cat /proc/version</userinput></screen> 24 24 25 25 <para>This will produce output similar to:</para> -
prologue/typography.xml
re9f3e85 r1ec69ac5 13 13 Scratch.</para> 14 14 15 <screen ><userinput>./configure --prefix=/usr</userinput></screen>15 <screen role="nodump"><userinput>./configure --prefix=/usr</userinput></screen> 16 16 17 17 <para>This form of text is designed to be typed exactly as seen unless … … 38 38 and websites.</para> 39 39 40 <screen ><userinput>cat > $LFS/etc/group << "EOF"40 <screen role="nodump"><userinput>cat > $LFS/etc/group << "EOF" 41 41 <literal>root:x:0: 42 42 bin:x:1:
Note:
See TracChangeset
for help on using the changeset viewer.