Author: manuel
Date: 2006-07-30 13:30:21 -0600 (Sun, 30 Jul 2006)
New Revision: 7716
Modified:
branches/6.2/BOOK/chapter06/shadow.xml
branches/6.2/BOOK/chapter07/network.xml
branches/6.2/BOOK/chapter07/symlinks.xml
branches/6.2/BOOK/chapter08/fstab.xml
Log:
Splitted some commands to fit into PDF page size.
Modified: branches/6.2/BOOK/chapter06/shadow.xml
===================================================================
--- branches/6.2/BOOK/chapter06/shadow.xml 2006-07-30 19:05:14 UTC (rev
7715)
+++ branches/6.2/BOOK/chapter06/shadow.xml 2006-07-30 19:30:21 UTC (rev
7716)
@@ -133,7 +133,8 @@
<note>
<para>If you built Shadow with Cracklib support, run the
following:</para>
-<screen role="nodump"><userinput>sed -i '[EMAIL
PROTECTED]@DICTPATH\t/lib/cracklib/pw_dict@'
/etc/login.defs</userinput></screen>
+<screen role="nodump"><userinput>sed -i '[EMAIL
PROTECTED]@DICTPATH\t/lib/cracklib/pw_dict@' \
+ /etc/login.defs</userinput></screen>
</note>
<para>Move a misplaced program to its proper location:</para>
Modified: branches/6.2/BOOK/chapter07/network.xml
===================================================================
--- branches/6.2/BOOK/chapter07/network.xml 2006-07-30 19:05:14 UTC (rev
7715)
+++ branches/6.2/BOOK/chapter07/network.xml 2006-07-30 19:30:21 UTC (rev
7716)
@@ -48,9 +48,11 @@
invent a descriptive name, such as <quote>realtek</quote>, and create
Udev rules similar to the following:</para>
-<screen role="nodump"><userinput>cat > /etc/udev/rules.d/26-network.rules
<< "EOF"
-<literal>ACTION=="add", SUBSYSTEM=="net",
SYSFS{address}=="<replaceable>00:e0:4c:12:34:56</replaceable>",
NAME="<replaceable>realtek</replaceable>"
-ACTION=="add", SUBSYSTEM=="net",
SYSFS{address}=="<replaceable>00:a0:c9:78:9a:bc</replaceable>",
NAME="<replaceable>intel</replaceable>"</literal>
+<screen role="nodump"><userinput>cat > /etc/udev/rules.d/26-network.rules
<< EOF
+<literal>ACTION=="add", SUBSYSTEM=="net",
SYSFS{address}=="<replaceable>00:e0:4c:12:34:56</replaceable>", \
+ NAME="<replaceable>realtek</replaceable>"
+ACTION=="add", SUBSYSTEM=="net",
SYSFS{address}=="<replaceable>00:a0:c9:78:9a:bc</replaceable>", \
+ NAME="<replaceable>intel</replaceable>"</literal>
EOF</userinput></screen>
<!-- Yes, I know that VLANs are beyond BLFS. This is not the reason to get them
@@ -59,9 +61,11 @@
<para>If you are going to use the bus position as a key, create
Udev rules similar to the following:</para>
-<screen role="nodump"><userinput>cat > /etc/udev/rules.d/26-network.rules
<< "EOF"
-<literal>ACTION=="add", SUBSYSTEM=="net",
BUS=="<replaceable>pci</replaceable>",
ID=="<replaceable>0000:00:0c.0</replaceable>",
NAME="<replaceable>realtek</replaceable>"
-ACTION=="add", SUBSYSTEM=="net", BUS=="<replaceable>pci</replaceable>",
ID=="<replaceable>0000:00:0d.0</replaceable>",
NAME="<replaceable>intel</replaceable>"</literal>
+<screen role="nodump"><userinput>cat > /etc/udev/rules.d/26-network.rules
<< EOF
+<literal>ACTION=="add", SUBSYSTEM=="net",
BUS=="<replaceable>pci</replaceable>",
ID=="<replaceable>0000:00:0c.0</replaceable>", \
+ NAME="<replaceable>realtek</replaceable>"
+ACTION=="add", SUBSYSTEM=="net", BUS=="<replaceable>pci</replaceable>",
ID=="<replaceable>0000:00:0d.0</replaceable>", \
+ NAME="<replaceable>intel</replaceable>"</literal>
EOF</userinput></screen>
<para>These rules will always rename the network cards to
Modified: branches/6.2/BOOK/chapter07/symlinks.xml
===================================================================
--- branches/6.2/BOOK/chapter07/symlinks.xml 2006-07-30 19:05:14 UTC (rev
7715)
+++ branches/6.2/BOOK/chapter07/symlinks.xml 2006-07-30 19:30:21 UTC (rev
7716)
@@ -32,11 +32,13 @@
location of the device on the bus. If you are going to use the first
approach, create a file similar to the following:</para>
-<screen role="nodump"><userinput>cat >/etc/udev/rules.d/82-cdrom.rules
<<"EOF"
+<screen role="nodump"><userinput>cat >/etc/udev/rules.d/82-cdrom.rules
<< EOF
<literal>
# Custom CD-ROM symlinks
-SUBSYSTEM=="block", ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F",
ENV{ID_REVISION}=="PS05", SYMLINK+="cdrom"
-SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301",
ENV{ID_SERIAL}=="5VO1306DM00190", SYMLINK+="cdrom1 dvd"
+SUBSYSTEM=="block", ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F", \
+ ENV{ID_REVISION}=="PS05", SYMLINK+="cdrom"
+SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301", \
+ ENV{ID_SERIAL}=="5VO1306DM00190", SYMLINK+="cdrom1 dvd"
</literal>
EOF</userinput></screen>
@@ -55,11 +57,13 @@
<para>The second approach yields:</para>
-<screen role="nodump"><userinput>cat >/etc/udev/rules.d/82-cdrom.rules
<<"EOF"
+<screen role="nodump"><userinput>cat >/etc/udev/rules.d/82-cdrom.rules
<< EOF
<literal>
# Custom CD-ROM symlinks
-SUBSYSTEM=="block", ENV{ID_TYPE}=="cd",
ENV{ID_PATH}=="pci-0000:00:07.1-ide-0:1", SYMLINK+="cdrom"
-SUBSYSTEM=="block", ENV{ID_TYPE}=="cd",
ENV{ID_PATH}=="pci-0000:00:07.1-ide-1:1", SYMLINK+="cdrom1 dvd"
+SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
+ ENV{ID_PATH}=="pci-0000:00:07.1-ide-0:1", SYMLINK+="cdrom"
+SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
+ ENV{ID_PATH}=="pci-0000:00:07.1-ide-1:1", SYMLINK+="cdrom1 dvd"
</literal>
EOF</userinput></screen>
@@ -105,11 +109,13 @@
<para>Then write rules that create the symlinks, e.g.:</para>
-<screen role="nodump"><userinput>cat
>/etc/udev/rules.d/83-duplicate_devs.rules <<"EOF"
+<screen role="nodump"><userinput>cat
>/etc/udev/rules.d/83-duplicate_devs.rules << EOF
<literal>
# Persistent symlinks for webcam and tuner
-KERNEL=="video*", SYSFS{idProduct}=="1910", SYSFS{idVendor}=="0d81",
SYMLINK+="webcam"
-KERNEL=="video*", SYSFS{device}=="0x036f", SYSFS{vendor}=="0x109e",
SYMLINK+="tvtuner"
+KERNEL=="video*", SYSFS{idProduct}=="1910", SYSFS{idVendor}=="0d81", \
+ SYMLINK+="webcam"
+KERNEL=="video*", SYSFS{device}=="0x036f", SYSFS{vendor}=="0x109e", \
+ SYMLINK+="tvtuner"
</literal>
EOF</userinput></screen>
Modified: branches/6.2/BOOK/chapter08/fstab.xml
===================================================================
--- branches/6.2/BOOK/chapter08/fstab.xml 2006-07-30 19:05:14 UTC (rev
7715)
+++ branches/6.2/BOOK/chapter08/fstab.xml 2006-07-30 19:30:21 UTC (rev
7716)
@@ -66,15 +66,18 @@
in order to mount USB flash drives, a ru_RU.KOI8-R user would need the
following line in <filename>/etc/fstab</filename>:</para>
-<screen>/dev/sda1 /media/flash vfat
noauto,user,quiet,showexec,iocharset=koi8r,codepage=866 0 0</screen>
+<screen><literal>/dev/sda1 /media/flash vfat
+ noauto,user,quiet,showexec,iocharset=koi8r,codepage=866 0
0</literal></screen>
<para>The corresponding line for ru_RU.UTF-8 users is:</para>
-<screen>/dev/sda1 /media/flash vfat
noauto,user,quiet,showexec,iocharset=utf8,codepage=866 0 0</screen>
+<screen><literal>/dev/sda1 /media/flash vfat
+ noauto,user,quiet,showexec,iocharset=utf8,codepage=866 0
0</literal></screen>
<note><para>In the latter case, the kernel emits the following
message:</para>
-<screen><computeroutput>FAT: utf8 is not a recommended IO charset for FAT
filesystems, filesystem will be case sensitive!</computeroutput></screen>
+<screen><computeroutput>FAT: utf8 is not a recommended IO charset for FAT
filesystems,
+ filesystem will be case sensitive!</computeroutput></screen>
<para>This negative recommendation should be ignored, since all other values
of the <quote>iocharset</quote> option result in wrong display of filenames
in
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page