From 5abc12ab568ea40a9ee9ba0985420c36ce31b23d Mon Sep 17 00:00:00 2001 From: Alan Hicks Date: Sat, 3 Jul 2010 16:08:02 -0400 Subject: Handled a few more TODO entries (and created a couple more). --- TODO | 51 ++------------------------------------------------- chapter_03.xml | 34 ++++++++++++++++++++++------------ chapter_04.xml | 2 +- chapter_09.xml | 23 +++++++++++++++++++++++ chapter_12.xml | 28 ++++++++++++++++++++++++++-- 5 files changed, 74 insertions(+), 64 deletions(-) diff --git a/TODO b/TODO index f8fee54..f4e46f0 100644 --- a/TODO +++ b/TODO @@ -16,31 +16,12 @@ General in reference to how the admin might be misled into thinking that they are causing breakage... - -Chapter 3. Booting - -* Section 'mkinitrd' - -* /usr/share/mkinitrd_command_generator.sh - - "Now that we've created out initrd" -> "Now that we've created our initrd" - "most of these warnings are issued by the use of LVM" << I think that at - this point of the book, people will be scared off by the unfamiliar - 'LVM' and listing "/dev/raven/64root" as a root device may be confusing - to people who expect something like "/dev/sda1". Better to discuss LVM - later on. - - Chapter 4. Basic Shell Commands * Section 'Reading Documents' Perhaps split this with subsections for cat, more, and less? -* In the section about LZMA, possibly title it "XZ / LZMA" - Since we are officially *.txz as our standard pkgtype. - - Chapter 6. X Windows * Section 'configuring the X server' @@ -55,18 +36,6 @@ Chapter 6. X Windows * note that HAL is slated for deprecation and this might be handled by udev directly at some point in the future... - -Chapter 8. Users and Groups - -* Section 'Other User and Group Tools' - - You could mention the tool here that is most sought after in IRC and - forums: the "gpasswd" program which allows you to add a user to one - additional group without touching on your current group management - (remember that "usermod -G" will not retain your current group membership - while "gpasswd -a" will). - - Chapter 10. Working with Filesystems * Section 'Network Filesystems' / 'NFS' @@ -75,23 +44,7 @@ Chapter 10. Working with Filesystems allows you to find out exactly what NFS exports a remote server has made available. +Chapter 16. Basic Networking Commands -Chapter 11. vi - -* Table 11.2. vi Cheat Sheet - - You should really add "dw" (delete a word - and store it in the - copybuffer) "yw" (copy a word to the copy buffer), "yy" (copy a line to - the copy buffer) and "p" (paste the content of the copybuffer at the - cursor's location) - - -Chapter 15. Basic Networking Commands - -* Section 'Web Browsers' - - Should we include curl along with the others? - -* Section 'NNTP Clients' +* Additional tools to discuss: finger, host, dig, pine, mutt, nail - Should we even have this section? At this time, I'm leaning towards 'no'. diff --git a/chapter_03.xml b/chapter_03.xml index b04ef48..14c9847 100644 --- a/chapter_03.xml +++ b/chapter_03.xml @@ -190,7 +190,7 @@ KERNEL_VERSION="$(uname -r)" #KEYMAP="us" MODULE_LIST="ext3:ext4:jfs" #LUKSDEV="/dev/hda1" -ROOTDEV="/dev/raven/64root" +ROOTDEV="/dev/sda1 ROOTFS="ext4" #RESUMEDEV="/dev/hda2" #RAID="0" @@ -209,6 +209,22 @@ A proper initrd file will be constructed and installed for you without you having to remember all those obscure arguments. + +If you're unsure what options to specify in the configuration file or +on the command-line, there is one final option. Slackware includes a +nifty little utility that can tell what options are required for your +currently running kernel +/usr/share/mkinitrd/mkinitrd_command_generator.sh. +When you run this script, it will generate a command line for +mkinitrd that should work +for your computer, but you may wish to check everything anyway. + + +darkstar:~# /usr/share/mkinitrd/mkinitrd_command_generator.sh +mkinitrd -c -k 2.6.33.4 -f ext3 -r /dev/sda3 -m \ + usbhid:ehci-hcd:uhci-hcd:ext3 -o /boot/initrd.gz + +
@@ -341,7 +357,7 @@ Microsoft Windows. ... global section ommitted .... # Linux bootable partition config begins image = /boot/vmlinuz-generic-2.6.29.4 - root = /dev/raven/64root + root = /dev/sda1 initrd = /boot/initrd.gz label = Slackware64 read-only @@ -377,22 +393,16 @@ not be installed, and those changes will not be reflected. darkstar:~# lilo Warning: LBA32 addressing assumed -Warning: '/proc/partitions' does not match '/dev' directory structure. - Name change: '/dev/dm-0' -> '/dev/raven/swap' -Warning: Name change: '/dev/dm-1' -> '/dev/raven/root' -Warning: Name change: '/dev/dm-2' -> '/dev/raven/home' -Warning: Name change: '/dev/dm-3' -> '/dev/raven/src' -Warning: Name change: '/dev/dm-4' -> '/dev/raven/64root' Added Slackware * Added Backup 6 warnings were issued. -Don't be scared by many of the warnings you may see when running -lilo. In my case, most of these warnings are -issued by the use of LVM. Unless you see a fatal error, things should -be just fine. +Don't be too scared by many of the warnings you may see when running +lilo. Unless you see a fatal error, things +should be just fine. In particular, the LBA32 addressing warning is +commonplace.
diff --git a/chapter_04.xml b/chapter_04.xml index 96cb46c..827b92f 100644 --- a/chapter_04.xml +++ b/chapter_04.xml @@ -430,7 +430,7 @@ other alternatives.
-LZMA +XZ / LZMA The latest compression utility added to Slackware is diff --git a/chapter_09.xml b/chapter_09.xml index a2bb4e9..c2866e0 100644 --- a/chapter_09.xml +++ b/chapter_09.xml @@ -179,6 +179,29 @@ doesn't actually shutout the account, but instead changes the user's encrypted password to a value that can't be matched. + +The easiest way for modifying a user's information is the +usermod(8) utility which is capable of +modifying everything from group membership to home directories. A full +listing of its features won't be given here, so check the man page. +usermod is perhaps the best tool to use for +modifying a user's group members. The -s and -G +arguments accomplish this. + + +darkstar:~# usermod -a -G wheel alan +darkstar:~# usermod -G wheel alan + + + +It important to note the differences in the two commands above. The +first command adds the user "alan" to the "wheel" group without +modifying any other groups "alan" belongs to. The second command also +makes "alan" a member of the "wheel" group, but also removes the user's +membership from any other groups, something you will very rarely want +to do! + + Another useful tool is chsh(1) which changes a user's default shell. Like passwd, normal diff --git a/chapter_12.xml b/chapter_12.xml index 7a507f0..e69fd1e 100644 --- a/chapter_12.xml +++ b/chapter_12.xml @@ -275,11 +275,35 @@ you begin to feel comfortable. dd - Remove a line + Remove a line (and store it in the copy buffer) 5dd - Remove 5 lines + Remove 5 lines (and store them in the copy buffer) + + + dw + Remove a single word (and store it in the copy buffer) + + + 5dw + Remove five words (and store them in the copy buffer) + + + yw + Yank (copy) a single word (and store it in the copy buffer) + + + 5yw + Yank five words (and store them in the copy buffer) + + + p + Paste the contents of the copy buffer at the cursor's location + + + P + Paste the contents of the copy buffer above the cursor's location r -- cgit v1.2.3