Changeset 9ed94cb


Ignore:
Timestamp:
08/24/2003 02:29:16 PM (21 years ago)
Author:
Larry Lawrence <larry@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
36c9064
Parents:
0108c1d
Message:

editor tagging

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@986 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • index.xml

    r0108c1d r9ed94cb  
    33                        "/usr/share/docbook/docbookx.dtd" [
    44
    5 <!ENTITY version "20030822">
    6 <!ENTITY releasedate "August 22nd, 2003">
     5<!ENTITY version "20030824">
     6<!ENTITY releasedate "August 24th, 2003">
    77
    88<!ENTITY % book SYSTEM "book/book.ent">
  • introduction/welcome/changelog.xml

    r0108c1d r9ed94cb  
    1111<itemizedlist>
    1212
     13<listitem><para>August 24th, 2003 [larry]: Tag edits on Bill's
     14submission.</para></listitem>
     15
    1316<listitem><para>August 22nd, 2003 [tushar]: Updated libfam to fix libtool-1.5 related bug.</para></listitem>
    1417       
  • postlfs/config/bootdisk.xml

    r0108c1d r9ed94cb  
    77enough 'linux' to enable you to do rescue operations.  What is presented here
    88is enough to do file manipulation, mounting and unmounting, and other tasks.
    9 This, however, is not the limit.  The minimal disk is described here, and you can
    10 add anything you can fit on the floppy.</para>
    11 <para>
    12 Boot Disk/Rescue Disk
    13 </para>
    14 <para>
    15 First we will create a loopback file on which we build the root file
     9This, however, is not the limit.  The minimal disk is described here, and you
     10can add anything you can fit on the floppy.</para>
     11
     12<para>Boot Disk/Rescue Disk</para>
     13
     14<para>First we will create a loopback file on which we build the root file
    1615system for our rescue disk image.  This is commonly known as the initial
    1716ramdisk, or initrd for short, and it is automatically loaded by the boot
    1817process if all setup is done correctly.</para>
    19 <para>
    20 Next we'll make a file system on the loopback file and use 'mount' to mount
    21 the loopback file as a regular disk, allowing us to read and write files there.
    22 The following commands will build us a 4 MB image.
    23 </para>
    24 <screen><userinput>dd if=/dev/zero of=/tmp/rfloppy bs=1k count=4096 &amp;&amp;
     18
     19<para>Next we'll make a file system on the loopback file and use
     20<command>mount</command> to mount the loopback file as a regular disk, allowing
     21us to read and write files there. The following commands will build us a 4 MB
     22image.</para>
     23
     24<screen><userinput><command>dd if=/dev/zero of=/tmp/rfloppy bs=1k count=4096 &amp;&amp;
    2525mke2fs -m 0 -N 2000 /tmp/rfloppy &amp;&amp;
    2626mount -o loop /tmp/rfloppy /mnt/loop1 &amp;&amp;
    27 rmdir /mnt/loop1/lost+found/</userinput></screen>
     27rmdir /mnt/loop1/lost+found/</command></userinput></screen>
    2828
    29 
    30 <para>
    31 Now that we have a file mounted and usable, let's prepare it to be
     29<para>Now that we have a file mounted and usable, let's prepare it to be
    3230filled with useful material.  Since this is only a rescue floppy we'll
    3331only need to set up the minimum directories.</para>
    34 <para><screen><userinput>mkdir /mnt/loop1/{dev,proc,etc,sbin,bin,lib,mnt,usr,var}</userinput></screen></para>
     32
     33<screen><userinput><command>mkdir /mnt/loop1/{dev,proc,etc,sbin,bin,lib,mnt,usr,var}</command></userinput></screen>
     34
    3535<para>Next, we will set up the device files.  I use devfs on my system, so
    3636the following command works well, as I only have the devices I use
    37 anyway.  If you used MAKEDEV to create your devices, you'll want to
    38 trim the <filename>/mnt/loop1/dev</filename> directory to reclaim the inode space wasted
    39 by the devices you don't use in the <filename>dev</filename> directory.</para>
    40 <para><screen><userinput>cp -dpR /dev/* /mnt/loop1/dev</userinput></screen></para>
    41 <para>Now to tend to the <filename>/etc</filename> directory.  To start, all we will do is use
    42 the passwd and group file that worked for our static chroot environment
    43 when we built LFS.  We'll also copy the startup scripts over and a few other files
    44 that serve well as starting points.</para>
    45 <para><screen><userinput>cp -ax /etc/rc* /mnt/loop1/etc
     37anyway.  If you used <command>MAKEDEV</command> to create your devices, you'll
     38want to trim the <filename>/mnt/loop1/dev</filename> directory to reclaim the
     39inode space wasted by the devices you don't use in the <filename>dev</filename>
     40directory.</para>
     41
     42<screen><userinput><command>cp -dpR /dev/* /mnt/loop1/dev</command></userinput></screen>
     43
     44<para>Now to tend to the <filename>/etc</filename> directory.  To start, all we
     45will do is use the passwd and group file that worked for our static chroot
     46environment when we built <acronym>LFS</acronym>.  We'll also copy the startup scripts over and a
     47few other files that serve well as starting points.</para>
     48
     49<screen><userinput><command>cp -ax /etc/rc* /mnt/loop1/etc
    4650cp -ax /etc/fstab /mnt/loop1/etc
    4751echo "root:x:0:0:root:/root:/bin/bash" &gt; /mnt/loop1/etc/passwd
    48 cat &gt; /mnt/loop1/etc/group &lt;&lt; "EOF"
     52cat &gt; /mnt/loop1/etc/group &lt;&lt; "EOF"</command>
    4953root:x:0:
    5054bin:x:1:
     
    5963dialout:x:10:
    6064audio:x:11:
    61 EOF</userinput></screen>
    62 </para>
    63 <para>
     65<command>EOF</command></userinput></screen>
    6466
    65 To prevent automatic mounting of hard drive partitions,
    66 make sure to add the noauto option in their fstab entry.  Also, add the
    67 following entries to the <filename>/mnt/loop1/etc/fstab</filename> to assist with mounting our
     67<para>To prevent automatic mounting of hard drive partitions, make sure to add
     68the noauto option in their fstab entry.  Also, add the following entries to the
     69<filename>/mnt/loop1/etc/fstab</filename> to assist with mounting our
    6870floppy and the ram image</para>
    69 <para><screen>/dev/ram0       /               ext2    defaults
    70 /dev/fd0        /               ext2    defaults</screen></para>
     71
     72<screen><userinput>/dev/ram0       /               ext2    defaults
     73/dev/fd0        /               ext2    defaults</userinput></screen>
    7174
    7275<para>Next, we will install <ulink
    7376url="http://www.busybox.net/downloads/busybox-0.60.4.tar.bz2">busybox</ulink>
    74 onto the image.  Busybox incorporates many of the unix functions into a single small executable file.</para>
    75 <screen><userinput>make &amp;&amp;
     77onto the image.  Busybox incorporates many of the unix functions into a single
     78small executable file.</para>
     79
     80<screen><userinput><command>make &amp;&amp;
    7681make PREFIX=/mnt/loop1 install &amp;&amp;
    7782cp -ax /var/utmp /mnt/loop1/var &amp;&amp;
    78 mkdir /mnt/loop1/var/log</userinput></screen>
    79 <para>
    80 Also, keeping in mind your space limitations, copy any other binaries and libraries you
    81 need to the image.  Use the <userinput>ldd</userinput> command to
    82 see which libraries you will need to copy over for any executables.
    83 </para>
    84 <para>
    85 Now, since I use devfs to create devices on the fly and free up precious
     83mkdir /mnt/loop1/var/log</command></userinput></screen>
     84
     85<para>Also, keeping in mind your space limitations, copy any other binaries and
     86libraries you need to the image.  Use the <userinput>ldd</userinput> command to
     87see which libraries you will need to copy over for any executables.</para>
     88
     89<para>Now, since I use devfs to create devices on the fly and free up precious
    8690inodes on the floppy, we'll also install devfsd to facilitate the
    8791devices that busybox expects to find.</para>
    8892
    89 <screen><userinput>mv GNUmakefile Makefile &amp;&amp;
     93<screen><userinput><command>mv GNUmakefile Makefile &amp;&amp;
    9094make &amp;&amp;
    9195make PREFIX=/mnt/loop1 install &amp;&amp;
    9296cp /lib/libc.so.6 /lib/ld-linux.so.2 /lib/libdl.so.2 /tmp &amp;&amp;
    9397strip --strip-deb /tmp/ld-linux.so.2 /tmp/libc.so.6 /tmp/libdl.so.2 &amp;&amp;
    94 mv /tmp/ld-linux.so.2 /tmp/libc.so.6 /tmp/libdl.so.2 /mnt/loop1/lib/</userinput></screen>
    95 <para>
    96 We will also need to set up an rc script to handle the devfsd startup.
     98mv /tmp/ld-linux.so.2 /tmp/libc.so.6 /tmp/libdl.so.2 /mnt/loop1/lib/</command></userinput></screen>
     99
     100<para>We will also need to set up an rc script to handle the devfsd startup.
    97101Put this in <filename>/mnt/loop1/etc/init.d/rcS</filename>.</para>
    98 <screen>#!/bin/sh
     102
     103<screen><userinput>#!/bin/sh
    99104mount -t devfs devfs /dev
    100 /sbin/devfsd /dev</screen>
     105/sbin/devfsd /dev</userinput></screen>
    101106
    102 <para>
    103 Next create your compressed root filesystem.  We use -9 with gzip to
     107<para>Next create your compressed root filesystem.  We use -9 with gzip to
    104108make the smallest possible compressed image.</para>
    105 <screen><userinput>umount /mnt/loop1 &amp;&amp; dd if=/tmp/rfloppy bs=1k | gzip -v9 > rootfs.gz</userinput></screen> 
    106 <screen><userinput>ls -l rootfs.gz</userinput> to make sure it will fit on the diskette.</screen>
    107 <para>
    108 Make a custom kernel that is optimized for size.  Include only those features
    109 you will need to rescue your system.  no sense in building in support for things
    110 like xfree86 dri, etc, as most rescues are performed from the command prompt.
    111 </para>
    112 <screen><userinput>dd if=rescueimg of=/dev/floppy/0 bs=1k</userinput>
     109
     110<screen><userinput><command>umount /mnt/loop1 &amp;&amp; dd if=/tmp/rfloppy bs=1k | gzip -v9 > rootfs.gz</command></userinput></screen> 
     111
     112<para><userinput><command>ls -l rootfs.gz</command></userinput> to make
     113sure it will fit on the diskette.</para>
     114
     115<para>Make a custom kernel that is optimized for size.  Include only those
     116features you will need to rescue your system.  no sense in building in support
     117for things like xfree86 dri, etc, as most rescues are performed from the
     118command prompt.</para>
     119
     120<screen><userinput><command>dd if=rescueimg of=/dev/floppy/0bs=1k</command>
    113121        429+1 records in
    114122        429+1 records out
    115 <userinput>rdev /dev/floppy/0 /dev/floppy/0</userinput>
    116 <userinput>rdev -R /dev/floppy/0 0</userinput>
    117 </screen>
     123<command>rdev /dev/floppy/0 /dev/floppy/0
     124rdev -R /dev/floppy/0 0</command></userinput></screen>
    118125
    119 <para>In this example the rescueimage(KERNEL) was 429+1 blocks in size.
     126<para>In this example the rescueimage (KERNEL) was 429+1 blocks in size.
    120127We will remember this for the next command.  We now write the root file
    121128system right after the kernel on the floppy by doing 16384+429+1=
    12212916814.</para>
    123 <screen><userinput>rdev -r /dev/floppy/0 16814</userinput></screen>
    124130
     131<screen><userinput><command>rdev -r /dev/floppy/0 16814
     132dd if=rootfs.gz of=/dev/floppy/0 bs=1k seek=430</command></userinput></screen>
    125133
    126 <screen><userinput>dd if=rootfs.gz of=/dev/floppy/0 bs=1k seek=430</userinput></screen>
    127 <para>In this command we use seek to find the end of the kernel  (429+1) and write the root file system to the floppy.
    128 </para>
     134<para>In this command we use seek to find the end of the kernel  (429+1) and write the root file system to the floppy.</para>
    129135</sect1>       
  • postlfs/config/skel.xml

    r0108c1d r9ed94cb  
    33<title>Configuring for Adding Users</title>
    44
    5 <para>Together, the <filename>/usr/sbin/useradd</filename> command and
     5<para>Together, the <command>/usr/sbin/useradd</command> command and
    66<filename>/etc/skel</filename> directory (both are easy to setup and use)
    7 provide a way to assure new users are added on your LFS system with the
    8 same beginning settings for things like $PATH, keyboard processing and
     7provide a way to assure new users are added on your
     8<acronym>LFS</acronym> system with the
     9same beginning settings for things like <envar>PATH</envar>, keyboard processing and
    910environmental variables.  Using these two facilities makes it easier to
    1011assure this initial state for each new user.
     
    1415The <filename>/etc/skel</filename> directory holds copies of various
    1516initialization and other files that may be copied to the new user's home
    16 directory when the <filename>/usr/sbin/useradd</filename>
     17directory when the <command>/usr/sbin/useradd</command>
    1718program adds the new user.</para>
    1819
    1920<para>Useradd</para>
    2021
    21 <para>The <filename>useradd</filename> program uses a collection of
     22<para>The <command>useradd</command> program uses a collection of
    2223default values kept in <filename>/etc/default/useradd</filename>,
    2324if it exists.  If the file does not exist, then it uses some internal
    2425defaults.  You can see the default values by running
    25 <userinput>/usr/sbin/useradd -D</userinput>.
     26<userinput><command>/usr/sbin/useradd -D</command></userinput>.
    2627</para>
    2728
    2829<para>To change these values to something new, create a base
    2930<filename>/etc/default/useradd</filename> file with the same values as
    30 the output of <userinput>/usr/sbin/useradd -D</userinput>.  Here is a
     31the output of <userinput><command>/usr/sbin/useradd -D</command></userinput>.  Here is a
    3132sample.</para>
    3233
    33 <para><screen># Begin /etc/default/useradd
     34<screen># Begin /etc/default/useradd
    3435
    3536GROUP=100
     
    4041SKEL=/etc/skel
    4142
    42 # End /etc/default/useradd</screen></para>
     43# End /etc/default/useradd</screen>
    4344
    4445<para>The only thing missing from the file is a default shell.  Add that
    4546by running:</para>
    4647
    47 <para><screen><userinput>/usr/sbin/useradd -D -s/bin/bash</userinput></screen></para>
     48<screen><userinput><command>/usr/sbin/useradd -D -s/bin/bash</command></userinput></screen>
    4849
    49 <para>This will set the <userinput>SHELL=</userinput> line to
    50 <userinput>SHELL=/bin/bash</userinput>.</para>
     50<para>This will set the <envar>SHELL</envar>= line to
     51<envar>SHELL</envar>=/bin/bash.</para>
    5152
    52 <para><filename>Useradd</filename> has many parameters that
     53<para><command>Useradd</command> has many parameters that
    5354can be set in the <filename>/etc/default/useradd</filename> file.
    5455</para>
    5556
    56 <para>For more information see <userinput>man useradd</userinput>.</para>
     57<para>For more information see <command>man useradd</command>.</para>
    5758
    5859<para>/etc/skel</para>
     
    107108the new user's home directory.  For example:</para>
    108109
    109 <para><screen><userinput>useradd -m -s/bin/bash jwrober</userinput></screen></para>
     110<screen><command>useradd -m -s/bin/bash jwrober</command></screen>
    110111
    111112</sect1>
  • postlfs/editors/vim/vim-intro.xml

    r0108c1d r9ed94cb  
    2020<para>The default LFS instructions install LFS as a part of the base system, but
    2121owing to the lack of X libraries during the base install, vim needs to be
    22 recompiled once X in installed to enable the GUI mode. There is no need for
     22recompiled once X is installed to enable the GUI mode. There is no need for
    2323special instructions since X support is automatically detected.</para>
    2424
Note: See TracChangeset for help on using the changeset viewer.