home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / linux / faq / part4 < prev    next >
Encoding:
Internet Message Format  |  2004-05-12  |  33.3 KB

  1. Path: senator-bedfellow.mit.edu!dreaderd!not-for-mail
  2. Message-ID: <linux/faq/part4_1084272547@rtfm.mit.edu>
  3. Supersedes: <linux/faq/part4_1083581613@rtfm.mit.edu>
  4. Expires: 1 Jun 2004 10:49:07 GMT
  5. X-Last-Updated: 2001/12/04
  6. Organization: none
  7. Newsgroups: comp.os.linux.misc,news.answers,comp.answers
  8. Subject: Linux Frequently Asked Questions with Answers (Part 4 of 6)
  9. Followup-To: poster
  10. From: rkiesling@mainmatter.com
  11. Approved: news-answers-request@MIT.EDU
  12. X-Disclaimer: Approval for *.answers is based on form, not content.
  13. Originator: faqserv@penguin-lust.MIT.EDU
  14. Date: 11 May 2004 10:51:30 GMT
  15. Lines: 761
  16. NNTP-Posting-Host: penguin-lust.mit.edu
  17. X-Trace: 1084272690 senator-bedfellow.mit.edu 567 18.181.0.29
  18. Xref: senator-bedfellow.mit.edu comp.os.linux.misc:604744 news.answers:271171 comp.answers:57132
  19.  
  20. Archive-Name: linux/faq/part4
  21. URL: http://www.mainmatter.com/
  22. Reply-to: rkiesling@mainmatter.com
  23. Posting-Frequency: weekly
  24. Last-modified: 12/04/2001
  25.  
  26. 6.6. The Computer Has the Wrong Time.
  27.  
  28. There are two clocks in your computer. The hardware (CMOS) clock runs
  29. even when the computer is turned off, and is used when the system
  30. starts up and by DOS (if you use DOS). The ordinary system time, shown
  31. and set by date, is maintained by the kernel while Linux is running.
  32.  
  33. You can display the CMOS clock time, or set either clock from the
  34. other, with /sbin/clock (now called hwclock in many distributions).
  35. Refer to: man 8 clock or man 8 hwclock.
  36.  
  37. There are various other programs that can correct either or both
  38. clocks for system drift or transfer time across the network. Some of
  39. them may already be installed on your system. Try looking for adjtimex
  40. (corrects for drift), Network Time Protocol clients like netdate,
  41. getdate, and xntp, or NTP client-server suite like chrony. Refer to:
  42. "How to Find a Particular Application.."
  43.  
  44. 6.7. Setuid Scripts Don't Seem to Work.
  45.  
  46. That's right. This feature has been disabled in the Linux kernel on
  47. purpose, because setuid scripts are almost always a security hole.
  48. Sudo and SuidPerl can provide more security than setuid scripts or
  49. binaries, especially if execute permissions are limited to a certain
  50. user ID or group ID.
  51.  
  52. If you want to know why setuid scripts are a security hole, read the
  53. FAQ for comp.unix.questions.
  54.  
  55. 6.8. Free Memory as Reported by free Keeps Shrinking.
  56.  
  57. The "free" figure printed by free doesn't include memory used as a
  58. disk buffer cache--shown in the "buffers" column. If you want to know
  59. how much memory is really free add the "buffers" amount to "free."
  60. Newer versions of free print an extra line with this info.
  61.  
  62. The disk buffer cache tends to grow soon after starting Linux up. As
  63. you load more programs and use more files, the contents get cached. It
  64. will stabilize after a while.
  65.  
  66. 6.9. When Adding More Memory, the System Slows to a Crawl.
  67.  
  68. This is a common symptom of a failure to cache the additional memory.
  69. The exact problem depends on your motherboard.
  70.  
  71. Sometimes you have to enable caching of certain regions in your BIOS
  72. setup. Look in the CMOS setup and see if there is an option to cache
  73. the new memory area which is currently switched off. This is
  74. apparently most common on a '486.
  75.  
  76. Sometimes the RAM has to be in certain sockets to be cached.
  77.  
  78. Sometimes you have to set jumpers to enable caching.
  79.  
  80. Some motherboards don't cache all of the RAM if you have more RAM per
  81. amount of cache than the hardware expects. Usually a full 256K cache
  82. will solve this problem.
  83.  
  84. If in doubt, check the manual. If you still can't fix it because the
  85. documentation is inadequate, you might like to post a message to
  86. comp.os.linux.hardware giving all of the details--make, model number,
  87. date code, etc., so other Linux users can avoid it.
  88.  
  89. 6.10. Some Programs (E.g. xdm) Won't Allow Logins.
  90.  
  91. You are probably using non-shadow password programs and are using
  92. shadow passwords.
  93.  
  94. If so, you have to get or compile a shadow password version of the
  95. programs in question. The shadow password suite can be found at
  96. ftp://tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow/. This is the
  97. source code. The binaries are probably in linux/binaries/usr.bin/.
  98.  
  99. 6.11. Some Programs Allow Logins with No Password.
  100.  
  101. You probably have the same problem as in ("Some Programs (E.g. xdm)
  102. Won't Allow Logins."), with an added wrinkle.
  103.  
  104. If you are using shadow passwords, you should put a letter `x' or an
  105. asterisk in the password field of /etc/passwd for each account, so
  106. that if a program doesn't know about the shadow passwords it won't
  107. think it's a passwordless account and let anyone in.
  108.  
  109. 6.12. The Machine Runs Very Slowly with GCC / X / ...
  110.  
  111. You may have too little real memory. If you have less RAM than all the
  112. programs you're running at once, Linux will swap to your hard disk
  113. instead and thrash horribly. The solution in this case is to not run
  114. so many things at once or buy more memory. You can also reclaim some
  115. memory by compiling and using a kernel with less options configured.
  116. See ("How To Upgrade/Recompile a Kernel.")
  117.  
  118. You can tell how much memory and swap you're using with the free
  119. command, or by typing:
  120.  
  121.    $ cat /proc/meminfo
  122.  
  123. If your kernel is configured with a RAM disk, this is probably wasted
  124. space and will cause things to go slowly. Use LILO or rdev to tell the
  125. kernel not to allocate a RAM disk (see the LILO documentation or type
  126. "man rdev").
  127.  
  128. 6.13. System Only Allows Root Logins.
  129.  
  130. You probably have some permission problems, or you have a file
  131. /etc/nologin.
  132.  
  133. In the latter case, put "rm -f /etc/nologin" in your /etc/rc.local or
  134. /etc/rc.d/* scripts.
  135.  
  136. Otherwise, check the permissions on your shell, and any file names
  137. that appear in error messages, and also the directories that contain
  138. these files, up to and including the root directory.
  139.  
  140. 6.14. The Screen Is All Full of Weird Characters Instead of Letters.
  141.  
  142. You probably sent some binary data to your screen by mistake. Type
  143. echo '\033c' to fix it. Many Linux distributions have a command,
  144. reset, that does this.
  145.  
  146. If that doesn't help, try a direct screen escape command.
  147.  
  148.    $ echo 'Ctrl-V Ctrl-O'
  149.  
  150. This resets the default font of a Linux console. Remember to hold down
  151. the Control key and type the letter, instead of, for example, Ctrl,
  152. then V. The sequence
  153.  
  154.    $ echo 'Ctrl-V Esc C'
  155.  
  156. causes a full screen reset. If there's data left on the shell command
  157. line after typing a binary file, press Ctrl-C a few times to restore
  158. the shell command line.
  159.  
  160. Another possible command is an alias, "sane," that can work with
  161. generic terminals:
  162.  
  163.   $ alias sane='echo -e "\\033c";tput is2; \
  164.   > stty sane line 1 rows $LINES columns $COLUMNS'
  165.  
  166. The alias is enclosed with open quotes (backticks), not single quotes.
  167. The line break is included here for clarity, and is not required.
  168.  
  169. Make sure that $LINES and $COLUMNS are defined in the environment with
  170. a command similar to this in ~/.cshrc or ~/.bashrc,
  171.  
  172.      $ LINES=25; export $LINES; $COLUMNS=80; export $COLUMNS
  173.  
  174. using the correct numbers of $LINES and $COLUMNS for the terminal.
  175.  
  176. Finally, the output of "stty -g" can be used to create a shell script
  177. that will reset the terminal:
  178.  
  179.  1. Save the output of "stty -g" to a file. In this example, the file
  180.     is named "termset.":
  181.     
  182.        $ stty -g >termset
  183.  
  184.     The output of "stty -g" (the contents of "termset") will look
  185.     something like:
  186.     
  187.        500:5:bd:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:73
  188.  
  189.  2. Edit "termset" to become a shell script; adding an interpreter and
  190.     "stty" command:
  191.     
  192.         #!/bin/bash
  193.         stty 500:5:bd:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:73
  194.     
  195.  3. Add executable permissions to "termset" and use as a shell script:
  196.     
  197.         $ chmod +x termset
  198.         $ ./termset
  199.     
  200. [Floyd L. Davidson, Bernhard Gabler]
  201.  
  202. 6.15. I Screwed Up the System and Can't Log In to Fix It.
  203.  
  204. Reboot from an emergency floppy or floppy pair. For example, the
  205. Slackware boot and root disk pair in the install subdirectory of the
  206. Slackware distribution.
  207.  
  208. There are also two, do-it-yourself rescue disk creation packages in
  209. ftp://metalab.unc.edu/pub/Linux/system/recovery/. These are better
  210. because they have your own kernel on them, so you don't run the risk
  211. of missing devices and file systems.
  212.  
  213. Get to a shell prompt and mount your hard disk with something like
  214.  
  215.    $ mount -t ext2 /dev/hda1 /mnt
  216.  
  217. Then your file system is available under the directory /mnt and you
  218. can fix the problem. Remember to unmount your hard disk before
  219. rebooting (cd somewhere else first, or it will say it's busy).
  220.  
  221. 6.16. I Forgot the root Password.
  222.  
  223. Note: Incorrectly editing any of the files in the /etc/ directory can
  224. severely screw up a system. Please keep a spare copy of any files in
  225. case you make a mistake.
  226.  
  227. If your Linux distribution permits, try booting into single-user mode
  228. by typing "single" at the BOOT lilo: prompt. With more recent
  229. distributions, you can boot into single-user mode when prompted by
  230. typing "linux 1," "linux single," or "init=/bin/bash."
  231.  
  232. If the above doesn't work for you, boot from the installation or
  233. rescue floppy, and switch to another virtual console with Alt-F1 --
  234. Alt-F8, and then mount the root file system on /mnt. Then proceed with
  235. the steps below to determine if your system has standard or shadow
  236. passwords, and how to remove the password.
  237.  
  238. Using your favorite text editor, edit the root entry of the
  239. /etc/passwd file to remove the password, which is located between the
  240. first and second colons. Do this only if the password field does not
  241. contain an "x," in which case see below.
  242.  
  243.    root:Yhgew13xs:0:0: ...
  244.  
  245. Change that to:
  246.  
  247.    root::0:0: ...
  248.  
  249. If the password field contains an "x," then you must remove the
  250. password from the /etc/shadow file, which is in a similar format.
  251. Refer to the manual pages: "man passwd," and "man 5 shadow."
  252.  
  253. [Paul Colquhuon, Robert Kiesling, Tom Plunket]
  254.  
  255. 6.17. There's a Huge Security Hole in rm!
  256.  
  257. No there isn't. You are obviously new to unices and need to read a
  258. good book to find out how things work. Clue: the ability to delete
  259. files depends on permission to write in that directory.
  260.  
  261. 6.18. lpr and/or lpd Don't Work.
  262.  
  263. First make sure that your /dev/lp* port is correctly configured. Its
  264. IRQ (if any) and port address need to match the settings on the
  265. printer card. You should be able to dump a file directly to the
  266. printer:
  267.  
  268.    $ cat the_file >/dev/lp1
  269.  
  270. If lpr gives you a message like myname@host: host not found" it may
  271. mean that the TCP/IP loopback interface, lo, isn't working properly.
  272. Loopback support is compiled into most distribution kernels. Check
  273. that the interface is configured with the ifconfig command. By
  274. Internet convention, the network number is 127.0.0.0, and the local
  275. host address is 127.0.0.1. If everything is configured correctly, you
  276. should be able to telnet to your own machine and get a login prompt.
  277.  
  278. Make sure that /etc/hosts.lpd contains the machine's host name.
  279.  
  280. If your machine has a network-aware lpd, like the one that comes with
  281. LPRng, make sure that /etc/lpd.perms is configured correctly. Also
  282. look at the Printing HOWTO. "Where can I get the HOWTO's and other
  283. documentation? ".
  284.  
  285. 6.19. Timestamps on Files on MS-DOS Partitions Are Set Incorrectly
  286.  
  287. There is a bug in the program clock (often found in /sbin). It
  288. miscounts a time zone offset, confusing seconds with minutes or
  289. something like that. Get a recent version.
  290.  
  291. 6.20. How To Get LILO to Boot the Kernel Image.
  292.  
  293. From kernel versions 1.1.80 on, the compressed kernel image, which is
  294. what LILO needs to find, is in arch/i386/boot/zImage, or
  295. arch/i386/boot/bzImage when it is built, and is normally stored in the
  296. /boot/ directory. The /etc/lilo.conf file should refer to the vmlinuz
  297. symbolic link, not the actual kernel image.
  298.  
  299. This was changed to make it easier to build kernel versions for
  300. several different processors from one source tree.
  301.  
  302. 6.21. How To Make Sure the System Boots after Re-Installing the Operating
  303. System.
  304.  
  305. This should work whether you're re-installing Linux or some other,
  306. commercial, operating system:
  307.  
  308.   * Insert a blank, formatted floppy in drive A:
  309.   * Save a copy of the boot hard drive's Master Boot Record to the
  310.     floppy, by executing the command:
  311.     
  312. #dd if=/dev/hda of=/dev/fd0 count=1
  313.  
  314.     dd is a standard program on Linux systems. A MS-Windows compatible
  315.     version is available from ftp://ftp.gnu.org/, as well as many MS
  316.     software archives.
  317.   * Test that the floppy boots the system by rebooting with the floppy
  318.     in the A: drive.
  319.   * Then you should be able to install the other operating system (on
  320.     a different hard drive and/or partition, if you don't want to
  321.     uninstall Linux).
  322.   * After installation, boot Linux again from the floppy, and
  323.     re-install the MBR with the command: /sbin/lilo.
  324.     
  325. [Jacques Guy]
  326.  
  327. 6.22. The PCMCIA Card Doesn't Work after Upgrading the Kernel.
  328.  
  329. The PCMCIA Card Services modules, which are located in
  330. /lib/modules/version/pcmcia, where version is the version number of
  331. the kernel, use configuration information that is specific to that
  332. kernel image only. The PCMCIA modules on your system will not work
  333. with a different kernel image. You need to upgrade the PCMCIA card
  334. modules when you upgrade the kernel.
  335.  
  336. When upgrading from older kernels, make sure that you have the most
  337. recent version of the run-time libraries, the modutils package, and so
  338. on. Refer to the file Documentation/Changes in the kernel source tree
  339. for details.
  340.  
  341. Important: If you use the PCMCIA Card Services, do not enable the
  342. Network device support/Pocket and portable adapters option of the
  343. kernel configuration menu, as this conflicts with the modules in Card
  344. Services.
  345.  
  346. Knowing the PCMCIA module dependencies of the old kernel is useful.
  347. You need to keep track of them. For example, if your PCMCIA card
  348. depends on the serial port character device being installed as a
  349. module for the old kernel, then you need to ensure that the serial
  350. module is available for the new kernel and PCMCIA modules as well.
  351.  
  352. The procedure described here is somewhat kludgey, but it is much
  353. easier than re-calculating module dependencies from scratch, and
  354. making sure the upgrade modules get loaded so that both the non-PCMCIA
  355. and PCMCIA are happy. Recent kernel releases contain a myriad of
  356. module options, too many to keep track of easily. These steps use the
  357. existing module dependencies as much as possible, instead of requiring
  358. you to calculate new ones.
  359.  
  360. However, this procedure does not take into account instances where
  361. module dependencies are incompatible from one kernel version to
  362. another. In these cases, you'll need to load the modules yourself with
  363. insmod, or adjust the module dependencies in the /etc/conf.modules
  364. file. The Documentation/modules.txt file in the kernel source tree
  365. contains a good description of how to use the kernel loadable modules
  366. and the module utilities like insmod, modprobe, and depmod.
  367. Modules.txt also contains a recommended procedure for determining
  368. which features to include in a resident kernel, and which to build as
  369. modules.
  370.  
  371. Essentially, you need to follow these steps when you install a new
  372. kernel.
  373.  
  374.   * Before building the new kernel, make a record with the lsmod
  375.     command of the module dependencies that your system currently
  376.     uses. For example, part of the lsmod output might look like this:
  377.     
  378. Module         Pages    Used by
  379. memory_cs          2            0
  380. ds                 2    [memory_cs]     3
  381. i82365             4            2
  382. pcmcia_core        8    [memory_cs ds i82365]   3
  383. sg                 1            0
  384. bsd_comp           1            0
  385. ppp                5    [bsd_comp]      0
  386. slhc               2    [ppp]   0
  387. serial             8            0
  388. psaux              1            0
  389. lp                 2            0
  390.     
  391.     This tells you for example that the memory_cs module needs the ds
  392.     and pcmcia_core modules loaded first. What it doesn't say is that,
  393.     in order to avoid recalculating the module dependencies, you may
  394.     also need to have the serial, lp, psaux, and other standard
  395.     modules available to prevent errors when installing the pcmcia
  396.     routines at boot time with insmod. A glance at the /etc/modules
  397.     file will tell you what modules the system currently loads, and in
  398.     what order. Save a copy of this file for future reference, until
  399.     you have successfully installed the new kernel's modules. Also
  400.     save the lsmod output to a file, for example, with the command:
  401.     lsmod >lsmod.old-kernel.output.
  402.   * Build the new kernel, and install the boot image, either zImage or
  403.     bzImage, to a floppy diskette. To do this, change to the
  404.     arch/i386/boot directory (substitute the correct architecture
  405.     directory if you don't have an Intel machine), and, with a floppy
  406.     in the diskette drive, execute the command:
  407.     
  408. $ dd if=bzImage of=/dev/fd0 bs=512
  409.  
  410.     if you built the kernel with the make bzImage command, and if your
  411.     floppy drive is /dev/fd0. This results in a bootable kernel image
  412.     being written to the floppy, and allows you to try out the new
  413.     kernel without replacing the existing one that LILO boots on the
  414.     hard drive.
  415.   * Boot the new kernel from the floppy to make sure that it works.
  416.   * With the system running the new kernel, compile and install a
  417.     current version of the PCMCIA Card Services package, available
  418.     from metalab.unc.edu as well as other Linux archives. Before
  419.     installing the Card Services utilities, change the names of
  420.     /sbin/cardmgr and /sbin/cardctl to /sbin/cardmgr.old and
  421.     /sbin/cardctl.old. The old versions of these utilities are not
  422.     compatible with the replacement utilities that Card Services
  423.     installs. In case something goes awry with the installation, the
  424.     old utilities won't be overwritten, and you can revert to the
  425.     older versions if necessary. When configuring Card Services with
  426.     the "make config" command, make sure that the build scripts know
  427.     where to locate the kernel configuration, either by using
  428.     information from the running kernel, or telling the build process
  429.     where the source tree of the new kernel is. The "make config" step
  430.     should complete without errors. Installing the modules from the
  431.     Card Services package places them in the directory
  432.     /lib/modules/version/pcmcia, where version is the version number
  433.     of the new kernel.
  434.   * Reboot the system, and note which, if any, of the PCMCIA devices
  435.     work. Also make sure that the non-PCMCIA hardware devices are
  436.     working. It's likely that some or all of them won't work. Use
  437.     lsmod to determine which modules the kernel loaded at boot time,
  438.     and compare it with the module listing that the old kernel loaded,
  439.     which you saved from the first step of the procedure. (If you
  440.     didn't save a listing of the lsmod output, go back and reboot the
  441.     old kernel, and make the listing now.)
  442.   * When all modules are properly loaded, you can replace the old
  443.     kernel image on the hard drive. This will most likely be the file
  444.     pointed to by the /vmlinuz symlink. Remember to update the boot
  445.     sector by running the lilo command after installing the new kernel
  446.     image on the hard drive.
  447.     
  448. Also look at the questions, How do I upgrade/recompile my kernel? and
  449. Modprobe can't locate module, "XXX," and similar messages.
  450.  
  451. 6.23. How To Remove (or Change) the Colors in the ls Display.
  452.  
  453. The shell command, "unalias ls," should completely unset the
  454. configuration that some distributions provide as standard. To change
  455. the colors, refer to the ls man page ("man ls").
  456.  
  457. 6.24. Why Won't a Program Work in the Current Directory?
  458.  
  459. Because the current directory (i.e., ".") is not in the search path,
  460. for security reasons, as well as to insure that the correct program
  461. versions are used. If an intruder is able to write a file to a
  462. world-writable directory, like /tmp, presumably he or she would be
  463. able to execute it if the directory were in the search path. The
  464. solution to this is to include the directory in the command; e.g.,
  465. "./myprog," instead of "myprog." Or add the current directory to your
  466. PATH environment variable; e.g., "export PATH=".:"$PATH" using bash,
  467. although this is discouraged for the reasons mentioned above.
  468.  
  469. 7. How To Do This or Find Out That...
  470.  
  471. 7.1. How To Find Out If a Notebook Runs Linux.
  472.  
  473. There's no fixed answer to this question, because notebook hardware is
  474. constantly updated, and getting the X display, sound, PCMCIA, modem,
  475. and so forth, working, can take a good deal of effort.
  476.  
  477. Most notebooks currently on the market, for example, use "Winmodems,"
  478. which often do not work with Linux because of their proprietary
  479. hardware interfaces. Even notebooks which are certified as "Linux
  480. compatible," may not be completely compatible.
  481.  
  482. Information about installing Winmodems in general is contained in the
  483. Winmodems-and-Linux HOWTO. (Refer to "Where Is the Documentation?")
  484.  
  485. You can find the most current information, or ask other users about
  486. their notebook experiences, on the linux-laptop mailing list, which is
  487. hosted by the vger.redhat.com server. (Refer to "What Mailing Lists
  488. Are There?")
  489.  
  490. A mailing list for Linux on IBM Thinkpads has its home page at
  491. http://www.topica.com/lists/linux-thinkpad/.
  492.  
  493. Another Thinkpad mailing list is hosted by http://www.bm-soft.com/.
  494. Send email with the word "help" in the body of the message to
  495. majordomo@www.bm-soft.com.
  496.  
  497. There is a Web page about Linux on IBM Thinkpads at
  498. http://peipa.essex.ac.uk/tp-linux/.
  499.  
  500. The Linux Laptop home page is at
  501. http://www.cs.utexas.edu/users/kharker/linux-laptop/.
  502.  
  503. For information about interfacing peripherals like Zip and CD-ROM
  504. drives through parallel ports, refer to the Linux Parallel Port Home
  505. Page, at http://www.torque.net/linux-pp.html.
  506.  
  507. If you need the latest version of the PCMCIA Card Services package, it
  508. is (or was) located at ftp://cb-iris.stanford.edu/pub/pcmcia/, but
  509. that host no longer seems to be available. Recent distributions are on
  510. ftp://metalab.unc.edu/pub/Linux/kernel/pcmcia/. You will also need to
  511. have the kernel source code installed as well. Be sure to read the
  512. PCMCIA-HOWTO, which is included in the distribution.
  513.  
  514. 7.2. Installing Linux Using FTP.
  515.  
  516. Most distributions are too large and complex to make FTP installation
  517. practical. Installing a basic Linux system that doesn't have a GUI or
  518. major applications is possible with FTP, however. The main
  519. non-commercial distribution in use is Debian GNU/Linux, and this
  520. answer describes an installation of a basic Debian system, to which
  521. you can add other Linux applications and commercial software as
  522. necessary.
  523.  
  524. This answer describes installation on IBM-compatible machines with an
  525. Intel x86 or Pentium processor. You will need a machine with at least
  526. a 80386 processor, 8 Mb of memory, and about 100 Mb of disk space.
  527. More memory and a larger disk is necessary however, for practical
  528. everyday use.
  529.  
  530. For other hardware, substitute "-arm," "-ppc," "-m68k," or other
  531. abbreviation in directory names for "-i386."
  532.  
  533. For detailed and hardware-specific information refer to:
  534. http://www.debian.org/releases/stable/.
  535.  
  536.   * Connect using anonymous FTP to ftp.debian.org and cd to the
  537.     pub/debian/dists/stable/main/disks-i386/current/ subdirectory.
  538.   * Retrieve the binary image files for the rescue disk, and the
  539.     drivers disk. Depending on the floppy drive installed on your
  540.     machine, retrieve either the diskette images with "1200" in the
  541.     names if you have a 1.2 Mb, 5.25-in. floppy, or the disks with
  542.     "1440" in the name if the computer has a 3.25-in., 1.44 Mb floppy.
  543.     Then retrieve the base system diskettes. Note that there are 7
  544.     base system images in the 1.44-Mb set (which have a "14" in their
  545.     names) , and 9 in the 1.2-Mb set of images (which have a "12" in
  546.     their names). You will use these to create the basic installation
  547.     diskettes. If you have a Linux machine, you can use dd to write
  548.     the images to the diskettes. If you are creating the installation
  549.     diskettes on a MS-DOS machine, also download the RAWRITE.EXE
  550.     MS-DOS utility, which will copy the raw binary images to floppy
  551.     disks. Also download the install.en.txt document, which contains
  552.     the detailed installation instructions.
  553.   * Create the installation disk set on floppies using either dd under
  554.     Linux (e.g.: "dd if=resc1440.bin of=/dev/fd0"), or the RAWRITE.EXE
  555.     utility under MS-DOS. Be sure to label each installation diskette.
  556.   * Insert the rescue diskette into the floppy drive and reboot the
  557.     computer. If all goes well, the Linux kernel will boot, and you
  558.     will be able start the installation program by pressing Enter at
  559.     the boot: prompt.
  560.   * Follow the on-screen instructions for partitioning the hard disk,
  561.     installing device drivers, the basic system software, and the
  562.     Linux kernel. If the machine is connected to a local network,
  563.     enter the network information when the system asks for it.
  564.   * To install additional software over the Internet, be sure that you
  565.     have installed the ppp module during the installation process, and
  566.     run (as root) the /usr/sbin/pppconfig utility. You will need to
  567.     provide your user name with your ISP, your password, the ISP's
  568.     dial-up phone number, the address(es) of the ISP's Domain Name
  569.     Service, and the serial port that your modem is connected to,
  570.     /dev/ttyS0-/dev/ttyS3. Be sure also to specify the defaultroute
  571.     option to the PPP system, so the computer knows to use the PPP
  572.     connection for remote Internet addresses.
  573.   * You may have to perform additional configuration on the PPP
  574.     scripts in the /etc/ppp subdirectory, and in particular, the
  575.     ISP-specific script in the /etc/ppp/peers subdirectory. There are
  576.     basic instructions in each script. For detailed information, refer
  577.     to the Debian/GNU Linux installation instructions that you
  578.     downloaded, the pppd manual page (type man pppd), and the PPP
  579.     HOWTO from the Linux Documentation project,
  580.     http://www.linuxdoc.org/.
  581.   * Once you have a PPP connection established with your ISP (it will
  582.     be displayed in the output of ifconfig), use the dselect program
  583.     to specify which additional software you want to install. Use the
  584.     apt [A]ccess option to retrieve packages via anonymous FTP, and
  585.     make sure to use the [U]pdate option to retrieve a current list of
  586.     packages from the FTP archive.
  587.  
  588. 7.3. Resuming an Interrupted Download.
  589.  
  590. You can use the "reget" command of the standard ftp client program
  591. after reconnecting to pick up where you left off.
  592.  
  593. Clients like ncftp support resumed FTP downloads, and wget supports
  594. resumed FTP and HTTP downloads.
  595.  
  596. 7.4. Boot-Time Configuration.
  597.  
  598. You can configure Linux at the lilo: prompt either by typing the
  599. kernel arguments at the BOOT lilo: prompt, or by adding an "append="
  600. directive to the /etc/lilo.conf file; for example:
  601.  
  602. # At the LILO prompt (example only):
  603. BOOT lilo: parport=0x3bc,7 parport=0x3bc,none serial=0x3f8,4 serial=0x2f8,3
  604.  
  605. # Example statement for /etc/lilo.conf:
  606. append="parport=0x3bc,none serial=0x3f8,4 serial=0x2f8,3"
  607.  
  608. If you modify the /etc/lilo.conf file, be sure to run the lilo command
  609. to install the new configuration.
  610.  
  611. Configuration notes for specific hardware devices are in the
  612. documentation of the kernel source distribution,
  613. /usr/src/linux/Documentation in most distributions.
  614.  
  615. Refer to the lilo and /etc/lilo.conf manual pages, as well as the LDP
  616. BootPrompt-HowTo ("Where Is the Documentation?"), and the
  617. documentation in /usr/doc/lilo.
  618.  
  619. 7.5. Formatting Man Pages without man or groff.
  620.  
  621. The man2html program translates groff text to HTML, which you can view
  622. with a Web browser. The man2html program, and many like it, are
  623. availble on the Web. Look for them with your favorite search engine.
  624.  
  625. The unformatted manual pages are stored in subdirectories of /usr/man,
  626. /usr/local/man, and elsewhere.
  627.  
  628. If you want to view text, use nroff and less. Both of these programs
  629. have MSDOS versions with an implementation of the man macro package
  630. available as well. An example would be:
  631.  
  632. $ nroff -man /usr/man/man1/ls.1 | less
  633.  
  634. If you know where to find a good implementation of the man macros
  635. without installing groff, please let the FAQ maintainer know.
  636.  
  637. If the manual page filename ends in ".gz," then you'll need to
  638. uncompress it before formatting it, using gzip -d or gunzip. A
  639. one-line example would be:
  640. $ gzip -dc /usr/man/man1/ls.1.gz | nroff -man | less
  641.  
  642. 7.6. How To Scroll Backwards in Text Mode.
  643.  
  644. With the default US keymap, you can use Shift with the PgUp and PgDn
  645. keys. (The gray ones, not the ones on the numeric keypad.) With other
  646. keymaps, look in /usr/lib/keytables. You can remap the ScrollUp and
  647. ScrollDown keys to be whatever you like.
  648.  
  649. The screen program,
  650. http://vector.co.jp/vpack/browse/person/an010455.html provides a
  651. searchable scrollback buffer and the ability to take "snapshots" of
  652. text-mode screens.
  653.  
  654. Recent kernels that have the VGA Console driver can use dramatically
  655. more memory for scrollback, provided that the video card can actually
  656. handle 64 kb of video memory. Add the line:
  657.  
  658. #define VGA_CAN_DO_64B
  659.  
  660. to the start of the file drivers/video/vgacon.c. This feature may
  661. become a standard setting in future kernels. If the video frame buffer
  662. is also enabled in the kernel, this setting may not affect buffering.
  663.  
  664. In older kernels, the amount of scrollback is fixed, because it is
  665. implemented using the video memory to store the scrollback text. You
  666. may be able to get more scrollback in each virtual console by reducing
  667. the total number of VC's. See linux/tty.h.
  668.  
  669. [Chris Karakas]
  670.  
  671. 7.7. How To Get Email to Work.
  672.  
  673. For sending mail via SMTP (Simple Mail Transfer Protocol) and
  674. receiving mail from an ISP's POP (Post Office Protocol) server, you
  675. can use a desktop client like Netscape Communicator or KDE kmail. You
  676. will need to enter the names of the SMTP and POP servers in the
  677. preferences of the respective application, as well as your E-mail
  678. address (username@isp's-domain-name), and your dial-up password. The
  679. same applies to Usenet News. Enter the name of the NNTP (Network News
  680. Transfer Protocol) server in your News client's preferences section.
  681. You may also have to provide the IP addresses of the ISP's primary and
  682. secondary name servers.
  683.  
  684. If you have a traditional MTA (Mail Transport Agent) like Sendmail,
  685. Smail, qmail, or Exim, you'll need to follow the instructions in each
  686. package. Basically, configuration entails determining which host
  687. machine, either on your local LAN or via dial-up Internet, is the
  688. "Smart Host," if you're using SMTP. If you're using the older UUCP
  689. protocol, then you'll need to consult the directions for configuring
  690. UUCP, and also make sure that your ISP's system is configured to relay
  691. mail to you.
  692.  
  693. Information about Internet hosting, and News and E-mail in general, is
  694. available on the Usenet News group news.announce.newusers, and those
  695. FAQ's are also archived at ftp://rtfm.mit.edu/pub/usenet/.
  696.  
  697. 7.8. Sendmail Pauses for Up to a Minute at Each Command.
  698.  
  699. Make sure that Sendmail can resolve your hostname to a valid (i.e.,
  700. parsable) domain address. If you are not connected to the Internet, or
  701. have a dial-up connection with dynamic IP addressing, add the fully
  702. qualified domain name to the /etc/hosts file, in addition to the base
  703. host name; e.g., if the host name is "bilbo" and the domain is
  704. "bag-end.com:"
  705.  
  706.    192.168.0.1  bilbo.bag-end.com bilbo
  707.  
  708. And make sure that either the /etc/host.conf or /etc/resolv.conf file
  709. contains the line:
  710.  
  711.    order hosts,bind
  712.  
  713. Caution: Do not change the "localhost" entry in /etc/hosts, because
  714. many programs depend on it for internal message-passing.
  715.  
  716. Sendmail takes many factors into account when resolving domain
  717. addresses. These factors, collectively, are known as, "rulesets," in
  718. sendmail jargon. The program does not require that a domain address be
  719. canonical, or even appear to be canonical. In the example above,
  720. "bilbo." (note the period) would work just as well as
  721. "bilbo.bag-end.com." This and other modifications apply mainly to
  722. recent versions.
  723.  
  724. Prior to version 8.7, sendmail required that the FQDN appear first in
  725. the /etc/hosts entry. This is due to changes in the envelope address
  726. masquerade options. Consult the sendmail documents.
  727.  
  728. If you have a domain name server for only a local subnet, make sure
  729. that "." refers to a SOA record on the server machine, and that
  730. reverse lookups (check by using nslookup) work for all machines on the
  731. subnet.
  732.  
  733. Finally, FEATURE configuration macro options like nodns,
  734. always_add_domain, and nocanonify, control how sendmail interprets
  735. host names.
  736.  
  737. The document, Sendmail: Installation and Operation Guide, included in
  738. the doc/ subdirectory of Sendmail source code distributions, discusses
  739. briefly how Sendmail resolves Internet addresses. Sendmail source code
  740. archives are listed at: http://www.sendmail.org/
  741.  
  742. [Chris Karakas]
  743.  
  744. 7.9. How To Enable and Select Virtual Consoles.
  745.  
  746. In text mode, press the left Alt-F1 to Alt-F12 to select the consoles
  747. tty1 to tty12; Right Alt-F1 gives tty13 and so on. To switch out of X
  748. you must press Ctrl-Alt-F1, etc; Alt-F5 or whatever will switch back.
  749.  
  750. However, If you have a non-PC compatible system, please see the note
  751. below.
  752.  
  753. If you want to use a VC for ordinary login, it must be listed in
  754. /etc/inittab, which controls which terminals and virtual consoles have
  755. login prompts. The X Window System needs at least one free VC in order
  756. to start.
  757.  
  758. [Note: The key sequence is actually Ctrl--Meta-- FN. On PC compatible
  759. systems, the right and left Alt keys are really synonymous with the
  760. keysymbols Meta_L and Meta_R. If the binding is different, you can
  761. determine what keys produce Meta_L and Meta_R with xkeycaps or a
  762. similar application.]
  763.  
  764. [David Charlap]
  765.  
  766. 7.10. How To Set the Time Zone.
  767.  
  768. Change directory to /usr/lib/zoneinfo/. Get the time zone package if
  769. you don't have this directory. The source is available in
  770. ftp://metalab.unc.edu/pub/Linux/system/admin/time/.
  771.  
  772. Then make a symbolic link named localtime pointing to one of the files
  773. in this directory (or a subdirectory), and one called posixrules
  774. pointing to localtime. For example:
  775.  
  776. $ ln -sf US/Mountain localtime
  777. $ ln -sf localtime posixrules
  778.  
  779. This change will take effect immediately--try date.
  780.  
  781.