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

  1. Path: senator-bedfellow.mit.edu!dreaderd!not-for-mail
  2. Message-ID: <linux/faq/part5_1084272547@rtfm.mit.edu>
  3. Supersedes: <linux/faq/part5_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 5 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:31 GMT
  15. Lines: 761
  16. NNTP-Posting-Host: penguin-lust.mit.edu
  17. X-Trace: 1084272691 senator-bedfellow.mit.edu 574 18.181.0.29
  18. Xref: senator-bedfellow.mit.edu comp.os.linux.misc:604745 news.answers:271172 comp.answers:57133
  19.  
  20. Archive-Name: linux/faq/part5
  21. URL: http://www.mainmatter.com/
  22. Reply-to: rkiesling@mainmatter.com
  23. Posting-Frequency: weekly
  24. Last-modified: 12/04/2001
  25.  
  26. If the system uses Red Hat-style configuration files, the respective
  27. time zone info files are /usr/share/zoneinfo and /etc/localtime.
  28.  
  29. The manual pages for tzset or tzselect describe setting the time zone.
  30. Some programs recognize the "TZ" environment variable, but this is not
  31. POSIX-correct.
  32.  
  33. You should also make sure that your Linux kernel clock is set to the
  34. correct GMT time. Type date -u and check that the correct UTC time is
  35. displayed. ("The Computer Has the Wrong Time.")
  36.  
  37. 7.11. Dial-up PPP Configuration.
  38.  
  39. This information is mainly for people who do not have a wrapper
  40. utility like kppp or pppconfig, or are not able to get those utilities
  41. to work correctly. If you need to manually configure PPP to dial in to
  42. your ISP, you will need the following information:
  43.  
  44.   * The port that your modem is connected to: /dev/ttyS0-/dev/ttyS3,
  45.     which correspond to COM1-COM4 under MS-DOS.
  46.   * The phone number of your ISP's data connection.
  47.   * The user name and password that your ISP gave you.
  48.   * The IP addresses of the primary and possibly secondary Domain Name
  49.     Service that you will use when dialing in to the ISP. This assumes
  50.     that you will not be using a DNS that you installed on your
  51.     system.
  52.     
  53. When you have all of this information, make sure that the programs
  54. pppd and chat, at the very minimum, are installed correctly. In most
  55. current distributions, they are installed in the /usr/sbin/ directory,
  56. and you will need to be logged in as root to use them. In addition,
  57. the following programs are also useful for configuring network
  58. connections, determining network status, and diagnosing problems:
  59. /sbin/ifconfig, /sbin/route, /bin/ping, /usr/sbin/traceroute.
  60.  
  61. These are the basic steps that you need to follow to configure PPP.
  62. You must be logged in as root.
  63.  
  64.   * Make sure that the serial port and modem are operating correctly.
  65.     Using a program like minicomm or kermit, you should be able to
  66.     send AT commands to the modem and receive the OK string in
  67.     response from the modem.
  68.   * Enter the primary and possibly secondary Domain Name Server IP
  69.     addresses in the /etc/resolv.conf file, using dotted quad
  70.     notation, with the nameserver label. For example:
  71.     
  72. order hosts,bind
  73. nameserver 196.182.101.103
  74. nameserver 196.182.101.104
  75.     
  76.     The nameserver addresses in the example above are examples only.
  77.     They don't correspond to actual network hosts.
  78.     The first line, order hosts,bind, tells your networking software,
  79.     when it resolves network domain addresses, to first look in the
  80.     /etc/hosts file, and then use the bind service; i.e., the DNS
  81.     servers, which are specified on the lines that begin with
  82.     nameserver.
  83.   * Locate the chat script that PPP will use to dial the modem and
  84.     connect to your ISP. In many systems, this is either in the
  85.     /etc/chatscripts or /etc/ppp directory, and will be called
  86.     provider or something similar. You can store a chat script
  87.     anywhere, provided that you tell pppd to use it rather than the
  88.     default script. Refer to the chat and pppd manual pages, and the
  89.     information below, for details. Here is a sample chat script:
  90.     
  91. ABORT        BUSY
  92. ABORT        "NO CARRIER"
  93. ABORT        VOICE
  94. ABORT        "NO DIALTONE"
  95. ""           ATDT<your_isp's_phone_number>
  96. ogin         <your_user_name>
  97. word         <your_password>
  98.     
  99.     This is a chat program for a simple, script based login. The chat
  100.     program uses the pair of strings on each line as a match/response
  101.     pair. When it starts, it sends the string
  102.     "ATDTyour_isp's_phone_number," where you have substituted the
  103.     actual phone number of course. It then waits for the string ogin
  104.     (a substring of the word login) and sends your user name. It then
  105.     waits for word (a substring of password) and sends your password.
  106.     If your ISP uses a different login and password prompts, and any
  107.     additional prompts, you will need to edit the script accordingly.
  108.     Again, refer to the chat manual page for details.
  109.     If your ISP uses PAP or CHAP authentication, you will need to edit
  110.     the pap-secrets or chap-secrets files in /etc/ppp directory as
  111.     well. Refer to the manual pages for these files, as well as the
  112.     instruction in the files themselves.
  113.   * The configuration of pppd, the program that maintains the actual
  114.     connection, is usually contained in two or three separate files.
  115.     The first is usually /etc/ppp/options, which contains options that
  116.     all of your system's PPP connections will use. (Yes, you can have
  117.     more than one; as many as your computer has serial ports,
  118.     generally.)
  119.     Here is a sample /etc/ppp/options file:
  120.     
  121. # /etc/ppp/options
  122.  
  123. asyncmap 0
  124. auth
  125. crtscts
  126. lock
  127. noipx
  128.  
  129. # ---<End of File>---
  130.     
  131.     The options may be given on one line or each on a separate line.
  132.     Many options files are much longer, and come with a description of
  133.     each option. Here, the options mean, in order, don't remap any
  134.     characters between the PPP client and server; always use password,
  135.     PAP, or CHAP authentication when making a connection; use the
  136.     modem's hardware handshake lines for flow control; lock the serial
  137.     port when in use so no other programs can access it; and do not
  138.     use the IPX network protocol.
  139.   * For connection set-up on each individual serial port or PPP host,
  140.     there will either be an /etc/ppp/options.ttyS1, for example,
  141.     options file for /etc/ttyS1, or a file for your ISP in the
  142.     /etc/ppp/peers directory. The default is often called
  143.     /etc/ppp/peers/provider. Here is a sample of the default provider
  144.     file:
  145.     
  146. noauth
  147. connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"
  148. defaultroute
  149. /dev/ttyS1
  150. 38400
  151. persist
  152.     
  153.     There might be an explanation of these and other options in the
  154.     /etc/ppp/peers/provider file itself. You can also refer to the
  155.     pppd manual page for details. Briefly, they mean: do not use PAP
  156.     authentication for this connection; use the chat program and the
  157.     /etc/chatscripts/provider script, which is described above, to
  158.     dial the phone and log in; set the network default route to the
  159.     PPP connection (so when your network software needs to resolve an
  160.     network address that is not on your local machine(s), it will use
  161.     the PPP connection to the Internet); use /dev/ttyS1 as the serial
  162.     port for the connection; set the modem speed to 38400; and keep
  163.     the pppd daemon running even if the connection fails.
  164.   * That is all of the configuration you need. To actually start and
  165.     stop PPP, there are often /usr/bin/pon and /usr/bin/poff scripts
  166.     (in Debian), or something similar, and they are usually very
  167.     simple, and only contain the command:
  168.     
  169. $ /usr/sbin/pppd call ${1:-provider}
  170.  
  171.     This will start pppd and use the call option to call the server
  172.     that you type on the command line, or the provider given in the
  173.     /etc/ppp/peers/provider file if you do not specify a remote
  174.     server. After making the call and logging in (about 30 seconds),
  175.     you should be able to use the /sbin/ifconfig program to determine
  176.     that the connection really did establish a PPP interface (the
  177.     first will be ppp0, the second will be ppp1, etc., depending on
  178.     how many simultaneous PPP connections you have. If something goes
  179.     wrong, you can look at the /var/log/ppp.log file to determine what
  180.     happened. You can also view the log as the connection is being
  181.     made, by "tailing" it in another window; that is, viewing it as
  182.     pppd logs the connection's status information. To do this, use the
  183.     command (again, as root):
  184.     
  185. $ tail -f /var/log/ppp.log
  186.  
  187.     On some systems the PPP output is directed to /var/log/messages,
  188.     in which case your system may not have a dedicated PPP log file.
  189.     
  190. You should be also able to ping one of your ISP's domain names (e.g.,
  191. mail.isp.com) and receive a response.
  192.  
  193. These are the most basic steps for configuring a PPP connection. You
  194. will also need to take into account what other network connections may
  195. be present (for example, if there's an Ethernet connection that has
  196. already been assigned the default route), as well as various security
  197. measures at your ISP's end. If you're having trouble making the
  198. dial-up connection, usually the best way to determine what may be
  199. going wrong is to use Seyon, minicomm, kermit, or some other program
  200. to dial and log in manually to the ISP, and determine just exactly
  201. what you have to do to log in, then duplicate that in the PPP scripts.
  202.  
  203. Most Linux documentation also has additional instructions for
  204. configuring PPP connections. Refer to ("Where Are the Linux FTP
  205. Archives?") ("Where Is the Documentation?")
  206.  
  207. 7.12. What Version of Linux and What Machine Name Is This?
  208.  
  209. Type:
  210.  
  211.    $ uname -a
  212.  
  213. 7.13. What Is a "core" File?
  214.  
  215. A core file is created when a program terminates unexpectedly, due to
  216. a bug, or a violation of the operating system's or hardware's
  217. protection mechanisms. The operating system kills the program and
  218. creates a core file that programmers can use to figure out what went
  219. wrong. It contains a detailed description of the state that the
  220. program was in when it died.
  221.  
  222. If would like to determine what program a core file came from, use the
  223. file command, like this:
  224.  
  225.    $ file core
  226.  
  227. That will tell you the name of the program that produced the core
  228. dump. You may want to write the maintainer(s) of the program, telling
  229. them that their program dumped core.
  230.  
  231. [Eric Hanchrow]
  232.  
  233. 7.14. How To Enable or Disable Core Dumps.
  234.  
  235. By using the ulimit command in bash, the limit command in tcsh, or the
  236. rlimit command in ksh. See the appropriate manual page for details.
  237.  
  238. This setting affects all programs run from the shell (directly or
  239. indirectly), not the whole system.
  240.  
  241. If you wish to enable or disable core dumping for all processes by
  242. default, you can change the default setting in linux/sched.h. Refer to
  243. definition of INIT_TASK, and look also in linux/resource.h.
  244.  
  245. PAM support optimizes the system's environment, including the amount
  246. of memory a user is allowed. In some distributions this parameter is
  247. configurable in the /etc/security/limits.conf file. For more
  248. information, refer to the Linux Administrator's Security Guide.
  249. ("Where Is the Documentation?")
  250.  
  251. 7.15. How To Upgrade/Recompile a Kernel.
  252.  
  253. See the Kernel HOWTO or the README files which come with the kernel
  254. release on ftp.cs.helsinki.fi/pub/Software/Linux/Kernel/ and mirrors.
  255. (See "Where Are the Linux FTP Archives?") You may already have a
  256. version of the kernel source code installed on your system, but if it
  257. is part of a standard distribution it is likely to be somewhat out of
  258. date (this is not a problem if you only want a custom configured
  259. kernel, but it probably is if you need to upgrade.)
  260.  
  261. With newer kernels you can (and should) make all of the following
  262. targets. Don't forget that you can specify multiple targets with one
  263. command.
  264.  
  265.    $ make clean dep install modules modules_install
  266.  
  267. Also remember to update the module dependencies.
  268.  
  269.    $ depmod -a
  270.  
  271. This command can be run automatically at boot time. On Debian/GNU
  272. Linux systems, the command is part of the /etc/init.d/modutils script,
  273. and can be linked appropriately in the /etc/rcx.d/ directories. For
  274. more information on depmod, see the manual page.
  275.  
  276. Make sure you are using the most recent version of the modutils
  277. utilities, as well as all other supporting packages. Refer to the file
  278. Documentation/Changes in the kernel source tree for specifics, and be
  279. sure to consult the README file in the modutils package.
  280.  
  281. Remember that to make the new kernel boot you must run lilo after
  282. copying the kernel into your root partition. The Makefile in some
  283. kernels have a special zlilo target for this; try:
  284.  
  285.    $ make zlilo
  286.  
  287. On current systems, however, you can simply copy the zImage or bzImage
  288. file (in arch/i386/boot/ to the /boot/ directory on the root file
  289. system, or to a floppy using the dd command. Refer also to the
  290. question, How do I get LILO to boot the kernel image?
  291.  
  292. Kernel version numbers with an odd minor version (ie, 1.1.x, 1.3.x)
  293. are the testing releases; stable production kernels have even minor
  294. versions (1.0.x, 1.2.x). If you want to try the testing kernels you
  295. should probably subscribe to the linux-kernel mailing list. ("What
  296. Mailing Lists Are There?")
  297.  
  298. The Web site http://www.kernelnotes.org/ has lots of information and
  299. links to other sites that provide information about Linux kernel
  300. updates.
  301.  
  302. Also refer to the questions, "The PCMCIA Card Doesn't Work after
  303. Upgrading the Kernel." and "How To Get LILO to Boot the Kernel Image."
  304.  
  305. 7.16. Can Linux Use More than 3 Serial Ports by Sharing Interrupts?
  306.  
  307. Yes, but you won't be able to use simultaneously two ordinary ports
  308. which share an interrupt (without some trickery). This is a limitation
  309. of the ISA Bus architecture.
  310.  
  311. See the Serial HOWTO for information about possible solutions and
  312. workarounds for this problem.
  313.  
  314. 7.17. Configuring Emacs's Default Settings.
  315.  
  316. Create a file in your home directory named .emacs with the Emacs Lisp
  317. commands that you want to run every time Emacs starts up. You won't
  318. see the file in the directory listing. (The leading '.' tells ls not
  319. to display it, unless you use the -a command line switch with ls.)
  320.  
  321. Any kind of Emacs Lisp statement will work in the .emacs file,
  322. including entire defuns. Emacs uses lisp variables and statements
  323. extensively, and many of the editing functions are written in Emacs
  324. Lisp. For example, to enable word wrapping whenever you edit a file
  325. that ends with .txt, add the following statement. This is from the
  326. Emacs Texinfo help document ( F1-i, then m Emacs Return):
  327.  
  328. (add-hook text-mode-hook
  329.      '(lambda () (auto-fill-mode 1)))
  330.  
  331. This adds a statement that calls a hook function whenever a text
  332. editing mode is entered for that buffer. The value of text-mode-hook,
  333. which is a variable, to auto-fill-mode, which is a function.
  334.  
  335. If you want to turn off the menu bar at the top of each Emacs frame,
  336. add this statement:
  337.  
  338. (menu-bar-mode -1)
  339.  
  340. And if you want to include an Emacs Lisp program that someone has
  341. written, like msb.el (an enhanced, pop-up buffer menu), make sure the
  342. lisp file is in a directory where Emacs can find it (usually it will
  343. be named Site-lisp), and add these statements in the .emacs file:
  344.  
  345. (require 'msb)
  346. (msb-mode 1)
  347.  
  348. Most tasks have several possible solutions in Emacs Lisp. Any task
  349. that can be programmed in Emacs Lisp is valid in the .emacs file. For
  350. more information, consult the Texinfo documentation. There is also a
  351. FAQ list for Emacs (refer to: What other FAQ's are there for Linux? ).
  352.  
  353. 7.18. How To Make a Rescue Floppy.
  354.  
  355. Make a file system on it with bin, etc, lib and dev
  356. directories--everything you need. Install a kernel on it and arrange
  357. to have LILO boot it from the floppy (see the LILO documentation, in
  358. lilo.u.*.ps).
  359.  
  360. If you build the kernel (or tell LILO to tell the kernel) to have a
  361. RAM disk the same size as the floppy the RAM disk will be loaded at
  362. boot time and mounted as root in place of the floppy.
  363.  
  364. See the Bootdisk HOWTO.
  365.  
  366. 7.19. How To Remap a Keyboard to UK, French, Etc.?
  367.  
  368. For recent kernels, get /pub/Linux/system/Keyboards/kbd-0.90.tar.gz
  369. from ftp://metalab.unc.edu/. Make sure you get the appropriate
  370. version; you have to use the right keyboard mapping package for your
  371. kernel version. For older kernels you have to edit the top-level
  372. kernel Makefile, in /usr/src/linux/. You may find more helpful
  373. information in The Linux Keyboard and Console HOWTO, by Andries
  374. Brouwer, at ftp://metalab.unc.edu/pub/Linux/docs/HOWTO/.
  375.  
  376. 7.20. How To Get NUM LOCK to Default to On.
  377.  
  378. Use the setleds program, for example (in /etc/rc.local or one of the
  379. /etc/rc.d/* files):
  380.  
  381. for t in 1 2 3 4 5 6 7 8
  382. do
  383.  setleds +num < /dev/tty$t > /dev/null
  384. done
  385.  
  386. setleds is part of the kbd package ("How do I remap my keyboard to UK,
  387. French, etc.? "). Alternatively, patch your kernel. You need to
  388. arrange for KBD_DEFLEDS to be defined to (1 << VC_NUMLOCK) when
  389. compiling drivers/char/keyboard.c.
  390.  
  391. 7.21. How To Set (Or Reset) Initial Terminal Colors.
  392.  
  393. The following shell script should work for VGA consoles:
  394.  
  395. for n in 1 2 4 5 6 7 8; do
  396.   setterm -fore yellow -bold on -back blue -store > /dev/tty$n
  397.   done
  398.  
  399. Substitute your favorite colors, and use /dev/ttyS$n for serial
  400. terminals.
  401.  
  402. To make sure they are reset when people log out (if they've been
  403. changed):
  404.  
  405. Replace the references to getty (or mingetty or uugetty or whatever)
  406. in /etc/inittab with references to /sbin/mygetty.
  407.  
  408. #!/bin/sh
  409. setterm -fore yellow -bold on -back blue -store > $1
  410. exec /sbin/mingetty $@
  411.  
  412. [Jim Dennis]
  413.  
  414. 7.22. How To Have More Than 128Mb of Swap.
  415.  
  416. Use several swap partitions or swap files. Linux kernels before
  417. version 2.2 supported up to 16 swap areas, each of up to 128Mb. Recent
  418. versions do not have this limitation.
  419.  
  420. Very old kernels only supported swap partition sizes up to 16Mb.
  421.  
  422. Linux on machines with 8KB paging, like Alpha and Sparc64, support a
  423. swap partition up to 512MB. The 128MB limitation comes from
  424. PAGE_SIZE*BITSPERBYTE on machines with 4KB paging, but is 512KB on
  425. machines with 8KB paging. The limit is due to the use of a single page
  426. allocation map.
  427.  
  428. The file mm/swapfile.c has all of the gory details.
  429.  
  430. [Peter Moulder, Gordon Weast]
  431.  
  432. How To Prevent Errors when Linking Programs with Math Functions.
  433.  
  434. Older run-time libraries included the math library in the C run-time
  435. library. It was not necessary to specify the math library separately
  436. when compiling. If the compiler generates a message like this when
  437. linking a program that uses math functions:
  438.  
  439. /tmp/ccDUQM4J.o: In function `main':
  440. /tmp/ccDUQM4J.o(.text+0x19): undefined reference to `sqrt'
  441. collect2: ld returned 1 exit status
  442.  
  443. You need use the -lm option with GCC to link with the math libraries:
  444.  
  445.    # gcc -o program program.c -lm
  446.  
  447. Make sure also to use the statement #include <math.h> in the source
  448. file.
  449.  
  450. [Florian Schmidt]
  451.  
  452. 8. Miscellaneous Information and Questions Answered
  453.  
  454. 8.1. How To Program XYZ Under Linux.
  455.  
  456. Read the manuals, or a good book on Unix and the manual pages (type
  457. man man). There is a lot of GNU Info documentation, which is often
  458. more useful as a tutorial. Run Emacs and type F1-i, or type info info
  459. if you don't have or don't like Emacs. Note that the Emacs libc node
  460. may not exactly describe the latest Linux libc, or GNU glibc2. But the
  461. GNU project and LDP are always looking for volunteers to upgrade their
  462. library documentation.
  463.  
  464. Anyway, between the existing Texinfo documentation, and the manual
  465. pages in sections 2 and 3, should provide enough information to get
  466. started.
  467.  
  468. As with all free software, the best tutorial is the source code
  469. itself.
  470.  
  471. The latest release of the Linux manual pages, a collection of useful
  472. GNU Info documentation, and various other information related to
  473. programming Linux, can be found on
  474. metalab.unc.edu/pub/Linux/docs/man-pages/.
  475.  
  476. 8.2. What's All This about ELF? glibc?
  477.  
  478. See the ELF HOWTO by Daniel Barlow. Note that this is not the file
  479. move-to-elf, which is a blow-by-blow account of how to upgrade to ELF
  480. manually.
  481.  
  482. Linux has two different formats for executables, object files, and
  483. object code libraries, known as, "ELF." (The old format is called
  484. "a.out.") They have advantages, including better support for shared
  485. libraries and dynamic linking.
  486.  
  487. Both a.out and ELF binaries can coexist on a system. However, they use
  488. different shared C libraries, both of which have to be installed.
  489.  
  490. If you want to find out whether your system can run ELF binaries, look
  491. in /lib for a file named, "libc.so.5." If it's there, you probably
  492. have ELF libraries. If you want to know whether your installation
  493. actually is ELF you can pick a representative program, like ls, and
  494. run file on it:
  495.  
  496. -chiark:~> file /bin/ls
  497. /bin/ls: Linux/i386 impure executable (OMAGIC) - stripped
  498.  
  499. valour:~> file /bin/ls
  500. /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1, stripped
  501.  
  502. There is a patch to get 1.2.x to compile using the ELF compilers, and
  503. produce ELF core dumps, at ftp://tsx-11.mit.edu/pub/packages/GCC/. You
  504. do not need the patch merely to run ELF binaries. 1.3.x and later do
  505. not need the patch at all.
  506.  
  507. The GNU glibc2 libraries are essentially more recent versions of ELF
  508. libraries that follow most of the same processes for dynamic linking
  509. and loading. Upgrade information is contained in ("How To Upgrade the
  510. Libraries without Trashing the System.")
  511.  
  512. 8.3. How To Determine What Packages Are Installed on a System.
  513.  
  514. For distributions that use RPM format packages, use the command:
  515.  
  516.    $ rpm -qa
  517.  
  518. You need to be logged in as root. You can save the output to a text
  519. file for future reference, a command like:
  520.  
  521.    $ rpm -qa >installed-packages
  522.  
  523. For Debian systems, the equivalent command is:
  524.  
  525.    $ dpkg -l
  526.  
  527. 8.4. What Is a .gz File? And a .tgz? And .bz2? And... ?
  528.  
  529. gz (and .z) files are compressed using GNU gzip. You need to use
  530. gunzip (which is a symlink to the gzip command that comes with most
  531. Linux installations) to unpack the file.
  532.  
  533. taz, .tar.Z, and .tz are tar files (made with tar) and compressed
  534. using compress. The standard *nix compress is proprietary software,
  535. but free equivalents like ncompress exist.
  536.  
  537. tgz (or .tpz) is a tar file compressed with gzip.
  538.  
  539. bz2 is a file compressed by the more recently introduced (and
  540. efficient) bzip2.
  541.  
  542. lsm is a Linux Software Map entry, in the form of a short text file.
  543. Details about the LSM project and the LSM itself are available in the
  544. subdirectory on ftp://metalab.unc.edu/pub/Linux/docs/.
  545.  
  546. deb is a Debian Binary Package--the binary package format used by the
  547. Debian GNU/Linux distribution. It is manipulated using dpkg and
  548. dpkg-deb (available on Debian systems and from
  549. ftp://ftp.debian.org//).
  550.  
  551. rpm is a Red Hat RPM package, which is used in the Red Hat and
  552. similar distributions.
  553.  
  554. sit is a compressed Macintosh archive made with StuffIt, a commercial
  555. program. Aladdin Systems Inc., the manufacturer of StuffIt, has a free
  556. expander utility that will uncompress these archives. You can download
  557. it at http://www.aladdinsys.com/expander/.
  558.  
  559. The file command can often tell you what a file is.
  560.  
  561. If you find that gzip complains when you try to uncompress a file, you
  562. probably downloaded it in ASCII mode by mistake. You must download
  563. most things in binary mode: "get," to download the file.
  564.  
  565. 8.5. What Does VFS Stand For?
  566.  
  567. Virtual File System. It's the abstraction layer between the user and
  568. real file systems like ext2, Minix and MS-DOS. Among other things, its
  569. job is to flush the read buffer when it detects a disk change on the
  570. floppy disk drive.
  571.  
  572.    VFS: Disk change detected on device 2/0
  573.  
  574. 8.6. What is a BogoMip?
  575.  
  576. "BogoMips" is a combination of Bogus and Mips. MIPS stands for
  577. (depending on who you ask) Millions of Instructions per Second, or
  578. Meaningless Indication of Processor Speed.
  579.  
  580. The number printed at boot time is the result of a kernel timing
  581. calibration, used for very short delay loops by some device drivers.
  582.  
  583. According to the BogoMips mini-HOWTO, the rating for your machine will
  584. be:
  585.  
  586.                     Common BogoMips Ratings
  587.  
  588. Processor                  BogoMips         Comparison
  589. Intel 8088                 clock * 0.004    0.02
  590. Intel/AMD 386SX            clock * 0.14     0.8
  591. Intel/AMD 386DX            clock * 0.18     1 (definition)
  592. Motorola 68030             clock * 0.25     1.4
  593. Cyrix/IBM 486              clock * 0.34     1.8
  594. Intel Pentium              clock * 0.40     2.2
  595. Intel 486                  clock * 0.50     2.8
  596. AMD 5x86                   clock * 0.50     2.8
  597. Mips R4000/R4400           clock * 0.50     2.8
  598. Nexgen Nx586               clock * 0.75     4.2
  599. PowerPC 601                clock * 0.84     4.7
  600. Alpha 21064/21064A         clock * 0.99     5.5
  601. Alpha 21066/21066A         clock * 0.99     5.5
  602. Alpha 21164/21164A         clock * 0.99     5.5
  603. Intel Pentium Pro          clock * 0.99     5.5
  604. Cyrix 5x86/6x86            clock * 1.00     5.6
  605. Intel Pentium II/III       clock * 1.00     5.6
  606. Intel Celeron              clock * 1.00     5.6
  607. Mips R4600                 clock * 1.00     5.6
  608. Alpha 21264                clock * 1.99     11.1
  609. AMD K5/K6/K6-2/K6-III      clock * 2.00     11.1
  610. UltraSparc II              clock * 2.00     11.1
  611. Pentium MMX                clock * 2.00     11.1
  612. PowerPC 604/604e/750       clock * 2.00     11.1
  613. Motorola 68060             clock * 2.01     11.2
  614. Motorola 68040             Not enough data (yet).
  615. AMD Athlon                 Not enough data (yet).
  616. IBM S390                   Not enough data (yet).
  617.  
  618. If the number is wildly lower, you may have the Turbo button or CPU
  619. speed set incorrectly, or have some kind of caching problem (as
  620. described in ("When Adding More Memory, the System Slows to a Crawl.")
  621.  
  622. For values people have seen with other, rarer, chips, or to calculate
  623. your own BogoMips rating, please refer to the BogoMips Mini-HOWTO, on
  624. ftp://metalab.unc.edu/. ("Where Is the Documentation?")
  625.  
  626. [Wim van Dorst]
  627.  
  628. 8.7. What Online/Free Periodicals Exist for Linux?
  629.  
  630. There are a number of recent additions to the list of periodicals
  631. devoted to Linux and free software:
  632.  
  633.   * geek news. http://geeknews.cjb.net/. Headlines for articles about
  634.     Linux, like the comp.os.linux.announce and Techweb postings, and
  635.     general interest, like Associated Press stories.
  636.   * Linux Gazette. http://www.linuxgazette.com/. This is the
  637.     longest-running of the on-line periodicals, and the only one that
  638.     publishes source code.
  639.   * Linux Today. http://www.linuxtoday.com. News and opinion related
  640.     to the Linux community, updated daily.
  641.   * Linux Weekly News. http://lwn.net. News about the Linux community,
  642.     updated weekly.
  643.   * Slashdot. http://www.slashdot.org. News about the free software
  644.     community and culture.
  645.   * Freshmeat. http://www.freshmeat.net/. Notices of new and updated
  646.     software for Linux and other free OS's.
  647.     
  648. Please send additions to this list to the FAQ maintainer.
  649.  
  650. [Jim Dennis, Robert Kiesling]
  651.  
  652. 8.8. How Many People Use Linux?
  653.  
  654. Linux is freely available, and no one is required to register with any
  655. central authority, so it is difficult to know. Several businesses
  656. survive solely on selling and supporting Linux. Linux news groups are
  657. some of the most heavily read on Usenet. Accurate numbers are hard to
  658. come by, but the number is almost certainly in the millions.
  659.  
  660. However, people can register as Linux users at the Linux Counter
  661. project, which has been in existence since 1993. In August, 1998, the
  662. project counted more than 70,000 users.
  663.  
  664. Visit the Web site at http://counter.li.org/ and fill in the
  665. registration form. If you don't want to use the Web, send E-mail to
  666. counter@counter.li.org with the subject line, "I use Linux at home,"
  667. or "I use Linux at work."
  668.  
  669. The current count is posted monthly to comp.os.linux.misc, and is
  670. always available from the Web site.
  671.  
  672. [Harald Tveit Alvestrand]
  673.  
  674. 8.9. How Many People Use Linux? (Redux.)
  675.  
  676. In 1999, International Data Corporation released its first commercial
  677. forecast of Linux sales. The report quantifies Linux vendor sales in
  678. 1996, 1997, and 1998, and forecasts through the year 2003.
  679.  
  680. To obtain the report, contact IDC at ctoffel@idc.com. Their Web site
  681. is http://www.itresearch.com/.
  682.  
  683. 8.10. What Is the Best (Distribution|SCSI Card|Editor|CD-ROM Drive|....)
  684.  
  685. The "best" of anything depends on your particular needs. Discussions
  686. like these frequently occur on Usenet. Most often they're flame bait.
  687. Answering is generally a waste of time. Free software licensing is
  688. unrestrictive enough, that, with a little experience, you can perform
  689. your own testing on your own hosts.
  690.  
  691. A better way to phrase a specific inquiry might be: "Where can I
  692. find...."
  693.  
  694. 8.11. How Does One Pronounce Linux?
  695.  
  696. This question produces an outrageous amount of heated debate.
  697.  
  698. If you want to hear Linus himself say how he pronounces it, download
  699. english.au or swedish.au from
  700. ftp.funet.fi/pub/Linux/PEOPLE/Linus/SillySounds/. If you have a sound
  701. card or the PC-speaker audio driver you can hear them by typing
  702.  
  703.    $ cat english.au >/dev/audio
  704.  
  705. The difference isn't in the pronunciation of Linux but in the language
  706. Linus uses to say, "hello."
  707.  
  708. For the benefit of those who don't have the equipment or inclination:
  709. Linus pronounces Linux approximately as Leenus, where the "ee" is
  710. pronounced as in "feet," but rather shorter, and the "u" is like a
  711. much shorter version of the French "eu" sound in "peur" (pronouncing
  712. it as the "u" in "put" is probably passable).
  713.  
  714. 9. Frequently Encountered Error Messages
  715.  
  716. 9.1. Modprobe Can't Locate Module, XXX, and Similar Messages.
  717.  
  718. These types of messages mostly occur at boot time or shutdown. If
  719. modprobe, insmod, or rmmod complain about not being able to find a
  720. module, add the following to the /etc/modules.conf or
  721. /etc/modutils/aliases file, whichever is present on your system.
  722.  
  723.    $ alias <module-name> off
  724.  
  725. And use the name of the module that appears in the error message.
  726.  
  727. [J.H.M. Dassen]
  728.  
  729. 9.2. Unknown Terminal Type "linux" and Similar.
  730.  
  731. In early kernels the default console terminal type has changed from
  732. "console" to "linux." You must edit /etc/termcap to change the line
  733. reading:
  734.  
  735.    console|con80x25:\
  736.  
  737. to
  738.  
  739.    linux|console|con80x25:\
  740.  
  741. (there may be an additional "dumb" in there--if so it should be
  742. removed.)
  743.  
  744. To get the editor to work you may need type:
  745.  
  746.    $ TERM=console
  747.  
  748. (for bash and ksh), or
  749.  
  750.    $ setenv TERM console
  751.  
  752. for csh or tcsh.
  753.  
  754. Some programs use /usr/lib/terminfo instead of /etc/termcap. For these
  755. programs you should upgrade your terminfo package, which is part of
  756. ncurses.
  757.  
  758. The same is true for X terminal displays. If your distribution sets
  759. the TERM to something strange like xterm-24-color, you can simply
  760. reset it to a generic value from the command line:
  761.  
  762.    $ TERM="xterm"; export TERM
  763.  
  764. 9.3. INET: Warning: old style ioctl... called!
  765.  
  766. You are trying to use the old network configuration utilities. The new
  767. ones can be found on
  768. ftp.linux.org.uk/pub/linux/Networking/PROGRAMS/NetTools/ (source only,
  769. I'm afraid).
  770.  
  771. Note that they cannot be used just like the old-style programs. See
  772. the NET-2 HOWTO for instructions on how to set up the old-style
  773. networking programs correctly. Even better, see the NET-3 HOWTO and
  774. upgrade your networking software.
  775.  
  776. 9.4. ld: unrecognized option '-m486'
  777.  
  778. You have an old version of ld. Install a newer binutils package that
  779. contains an updated ld. Look on tsx-11.mit.edu in
  780.  
  781.