home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / faqs / comp / answers / 386bsd-faq / part6 < prev    next >
Encoding:
Internet Message Format  |  1997-10-14  |  22.5 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!news-out.internetmci.com!newsfeed.internetmci.com!206.229.87.25!news-peer.sprintlink.net!news-sea-19.sprintlink.net!news-in-west.sprintlink.net!news.sprintlink.net!Sprint!204.248.21.3!neonramp.com!cynjut.neonramp.com!cynjut.neonramp.com!not-for-mail
  2. From: burgess@cynjut.neonramp.com (Dave Burgess)
  3. Newsgroups: comp.unix.bsd.netbsd.announce,comp.unix.bsd.freebsd.announce,comp.answers,news.answers,comp.unix.openbsd.announce
  4. Subject: [comp.unix.bsd] NetBSD, FreeBSD, and OpenBSD FAQ (Part 6 of 10)
  5. Supersedes: <386bsd-faq-6-875343603@cynjut.neonramp.com>
  6. Followup-To: comp.unix.bsd.netbsd.misc
  7. Date: 13 Oct 1997 02:00:19 -0500
  8. Organization: Dave's House in Omaha
  9. Lines: 609
  10. Approved: news-answers-request@MIT.Edu,cgd@sun-lamp.cs.berkeley.edu
  11. Expires: 10/31/97 01:00:03 CDT
  12. Message-ID: <386bsd-faq-6-876726003@cynjut.neonramp.com>
  13. References: <386bsd-faq-1-876726003@cynjut.neonramp.com>
  14. Reply-To: burgess@cynjut.neonramp.com (BSD FAQ Maintainer)
  15. NNTP-Posting-Host: cynjut.neonramp.com
  16. Keywords: FAQ 386bsd NetBSD FreeBSD !Linux
  17. X-Posting-Frequency: Posted on/about the 13th and the 27th of every month.
  18. Xref: senator-bedfellow.mit.edu comp.unix.bsd.netbsd.announce:557 comp.unix.bsd.freebsd.announce:728 comp.answers:28471 news.answers:114363
  19.  
  20. Posted-By: auto-faq 3.1.1.2
  21. Archive-name: 386bsd-faq/part6
  22.  
  23. Section 5.    (Kernel Replacements)
  24.  
  25. 5.0    Introduction
  26.  
  27. 5.1    A replacement curses program/library.
  28.  
  29.     It is generally accepted that the NetBSD curses can be easily
  30.     replaced by the ncurses package.  It is more complete and offers
  31.     much better support for shared libraries and other advanced
  32.     features.  The current (early 1995 version) is 1.8.5 and is
  33.     available from ftp://ftp.netcom.com:/pub/zm/zmbenhal/ncurses/
  34.  
  35.     OpenBSD comes with a different curses package, called XSI
  36.     curses and uses the termlib library for user code.  The original
  37.     curses code is still available in the <ocurses.h> include file
  38.     and the -locurses library.  The code in the termlib library is
  39.     smart enough to recognize and handle both termcap and termlib
  40.     database parsing.
  41.  
  42.     (Ed.Note)  The X/Open curses standard is becoming the de facto
  43.     standard (or perhaps imposed standard) for curses under Unix
  44.     systems.  XSI implements this X/Open curses completely, and is
  45.     being used by lots of folks.  FreeBSD and NetBSD will either
  46.     develop their own compatible version or will use XSI like
  47.     OpenBSD does.
  48.  
  49.  
  50. 5.2    Floppy Disk problems.
  51.  
  52. 5.2.1    How do I get a bootable floppy?
  53.  
  54.     Several ways, ranging from brain-dead-but-works to simplest.  
  55.     Classification into categories is left to the reader (is there 
  56.     really a difference between 'brain-dead' and 'simple'?:')
  57.  
  58.     1) rawrite (or dd) dist.fs (or fixit.fs) to a disk,
  59.        mount it, cd to the mount point, and execute:
  60.  
  61.         rm -rf .
  62.  
  63.        you now have a bootable floppy!;^}
  64.  
  65.     2) Take your existing dist.fs or fixit.fs boot disk and
  66.        diskcopy it on a DOS machine.  Mount and rm as in 1)
  67.        above.  Again, you have a bootable floppy!;^}
  68.  
  69.     3) Run disklabel on the floppy, e.g.:
  70.  
  71.         disklabel -w -r fd0a floppy5
  72.  
  73.        where 'floppy5' is a 'name' for an entry in the /etc/disktab
  74.        file.  You'll get a couple of ioctl errors because writing a 
  75.        label to a floppy isn't supported (yet?), but the boot blocks 
  76.        have indeed been written.
  77.  
  78.     4) Write the boot blocks to the floppy:
  79.  
  80.         cat /usr/mdec/fdboot /usr/mdec/bootfd | dd of=/dev/rfd0a
  81.  
  82.        or, more simply:
  83.  
  84.         cat /usr/mdec/fdboot /usr/mdec/bootfd > /dev/rfd0a
  85.  
  86.     Methods 3) and 4) require you to run newfs on the floppy, e.g.:
  87.  
  88.     newfs /dev/rfd0a floppy5
  89.  
  90.     If you have a floppy that was originally bootable, but the boot
  91.     blocks were somehow damaged, you can use method 3) or 4) to
  92.     restore boot-ability (do _NOT_ run newfs).  You _could_, through
  93.     the convolutions of copying a floppy whose boot blocks are damaged
  94.     to a temporary location and then re-copying to a bootable floppy,
  95.     use method 1) or 2) (if you really want to!;^})
  96.  
  97.     5)  If the disk is already newfs'ed and is otherwise ready to use,
  98.     disklabel will write the boot blocks on the disk.  Read the man page
  99.     for disklabel.
  100.  
  101.  
  102. 5.2.2    How do I maximize the space on a mountable floppy disk.
  103.  
  104.     As you all know, when you are working with a floppy, it is usually
  105.     more important that the floppy have a lot of room, rather than a
  106.     lot of other 'stuff'.  Here is the magic incantation that will
  107.     maximize the amount of free space on the disk.
  108.  
  109.         newfs -Tfloppy[35] -i[4096 | 8192] -c 80 /dev/fd[0|1]a
  110.  
  111.     This leaves the disk with fewer inodes and only one cylinder group.
  112.  
  113.  
  114. 5.3    Character Device Driver info
  115.  
  116.     These devices are also often referred to as character devices.
  117.     
  118. 5.3.1    Printers
  119.  
  120.     NetBSD and FreeBSD both include both an interrupt and
  121.     non-interrupt driven parallel driver in their stock 
  122.     manifestations.
  123.  
  124.     It is possible to connect a serial printer to either.  This brief
  125.     tutorial is provided by Daryl Berryhill 
  126.     (djberry2@b25info.b25.ingr.com)
  127.  
  128.     The way I got my printer to work.
  129.  
  130.     1) connect a 25 pin to 9 pin null modem cable to printer and 
  131.        computer.
  132.     2) set printer to 9600 baud, 7 data bits, even parity.
  133.     3) configure /dev/com1 (DOS COM2) port the same way as the printer
  134.     4) add a line to /etc/printcap that says:
  135.            lp|local line printer:\
  136.           :lp=/dev/com2:wq:sd=/var/spool/lpd:lf=/var/log/lpd-errs:\
  137.           :br#9600
  138.     5) type "lpr <add filename here>"
  139.     6) type "lpd"
  140.        and it should start printing.
  141.  
  142.     An obvious point, but make sure that you do NOT start a getty on 
  143.     on the com port.  Check the /etc/ttys file and make sure that 
  144.     the com port you select is not active.
  145.  
  146.     There have been many reports in the past of people not being able 
  147.     to get their parallel port printer working.  One of the problems
  148.     seems to be cables.  Another problem may be with the hardware.  
  149.     A seemingly stupid suggestion is to replace your printer card with
  150.     the cheapest parallel port card you can find.  I am using a $10
  151.     single parallel, two serial port card that I got from Altex.  
  152.     Works great.
  153.  
  154.     In addition, there are people that want to set up multiple printer
  155.     queues using the BSD queuing mechanism.  Here is a brief tutorial:
  156.  
  157.     Lpf is mainly intended for processing text and nroffed output...it 
  158.     isn't anything clean...it will do certain games that will mess up 
  159.     PCL output.
  160.  
  161.     If you're producing straight PCL or PostScript (assuming your LJ 
  162.     takes it), then you want to print directly to the printer w/o any 
  163.     processing.  
  164.  
  165.     What you really want is a "physical" queue that does no processing, 
  166.     and several logical queues that map back to the physical queue and 
  167.     do processing...or one "smart" queue that does file content 
  168.     recognition and then maps to the raw queue.
  169.  
  170.     I do something like this for my DeskJet.  There is one raw queue 
  171.     and several logical queues (some postscript that do different 
  172.     resolutions and color depth, some text that do various formatting, 
  173.     etc).  When I get the time I'll be trying to set up a "smarter" 
  174.     queue using aps and maybe some bits from flexfax.
  175.  
  176.     To map logical to physical queues either use a filter that pipes 
  177.     back into lpr -P<rawqueue> itself, or just point it at the "raw" 
  178.     queue using something like:
  179.  
  180.     textlp|Text Printing:\
  181.         :lp=/dev/null:\
  182.         :if=/usr/libexec/lpr/lpf:\
  183.         :rm=localhost:\
  184.         :rp=lj.raw:
  185.  
  186.     And other entries as needed, you get the idea...to use an output 
  187.     filter instead of the rm/rp approach (more efficent), you can get 
  188.     away with something like:
  189.  
  190.         :of=/usr/local/bin/printraw:
  191.  
  192.     where /usr/local/bin/printraw looks like this:
  193.  
  194.     #!/bin/sh
  195.     cat | lpr -h -Plj.raw
  196.  
  197.  
  198. 5.3.2    Terminals/Keyboards
  199.  
  200.     Terminals are relatively simple to add.  It involves making sure
  201.     the /etc/ttys file identifies the com port (com0, com00, or tty00 
  202.     depending on your configuration) as an active port and a getty is
  203.     running.  The man page for ttys and getty help explain this.
  204.  
  205.     Many people report that there are sometimes problems running some
  206.     programs on a remote terminal.  There are some known bugs in the
  207.     terminal handler where the parity and bits per character are 
  208.     concerned.  They are being worked on.
  209.  
  210.  
  211. 5.3.3    Modems/FAX Modems 
  212.  
  213. 5.3.3.1    How do I add a modem to *BSD:
  214.  
  215. 5.3.3.4    Adding a Dial-in/Dial-out FAX to NetBSD or FreeBSD.
  216.  
  217.     First, here is the known working configuration for these 
  218.     instructions:
  219.  
  220.       - HylaFAX 3.0 beta 100. 
  221.       - Zoom VFX V.32bis Faxmodem; 
  222.       - Rockwell datapump.
  223.  
  224.     1: Start faxq from rc.local, no options on the command line.
  225.  
  226.     Add a line to your /etc/rc.local which starts up the faxq
  227.     program.  Do not include any options on the command line.
  228.  
  229.     2: Stary faxgetty from init, i.e. a line in /etc/ttys.
  230.  
  231.     I use the non modem control device; however, it's nonstandard
  232.     hardware and I've modified the driver to always return sighup
  233.     on lost carrier to solve some sticky problems with non modem
  234.     control devices never getting SIGHUP's.
  235.  
  236.     Basically, I just did as the directions said to do. I ran 
  237.     'faxaddmodem' script to configure the type of modem. I did 
  238.     have to simplify some lines in the script (the ones executed 
  239.     in a subshell) since I think my version of bash doesn't handle 
  240.     subshells correctly.
  241.  
  242.     RTFM and you should be OK unless your modem is brain dead and
  243.     stupid, not too unlikely to given the current state of Fax
  244.     modems... B^(.
  245.  
  246.  
  247. 5.3.4    What is the trick for getting Kermit to work with rz and sz?
  248.  
  249.     Add these lines to your .kermrc file.  They should do the trick.
  250.  
  251.     define sz !sz \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line)
  252.     define rz !rz \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line)
  253.  
  254.  
  255. 5.4    Tape Drives
  256.  
  257.     This section should help out for those of you that have either
  258.     never used tape drives before, or only have experience with them
  259.     as non-Unix devices.
  260.  
  261.  
  262. 5.4.1    Does the tape need to be formatted?
  263.  
  264.     It depends, but I think usually not.  And when it is necessary,
  265.     I don't know how it would be done.  One thing is for certain, 
  266.     though, first....  NEVER use the block devices..  erase them and 
  267.     forget you ever saw them.  All operations on tape should be to 
  268.     the character device (rst0).
  269.  
  270.  
  271. 5.4.2    If I execute the command 'st -f /dev/st0 status', I get:
  272.         Archive/Tandberg? tape drive, residual=0, blocksize=512
  273.         Density: high = 16 (0x10), medium = 15 (0xf), low = 5 (0x5)
  274.         ds=0
  275.         er=0
  276.  
  277.     so to write to tape at high-density (QIC-150), presumably I want 
  278.     to use a device with minor number +4 (in st.c, density is computed as
  279.     minor >> 2 & 0x03, where low density == 3 and high == 1):
  280.  
  281.     You have the idea.. density is controlled by bits 2 and 3
  282.  
  283.         00 = default
  284.         01 = hi density
  285.         10 = medium density
  286.         11 = low density, 
  287.  
  288.     Unless the driver knows about you kind of drive the density values
  289.     may need to be set by hand before they make any sense.
  290.  
  291.  
  292. 5.4.3    When is erst0 used?
  293.  
  294.     e stands for 'eject' and is bit 1 of the minor.. 
  295.     e.g. eject on close.. many devices can't actually do this.
  296.  
  297.     There is actually a method to this whole thing:
  298.  
  299.         r = raw        (rst0)
  300.         e = eject    (erst0)
  301.         n = No rewind    (nrst0 or maybe nerst0)
  302.  
  303.  
  304. 5.4.4    How is density (bpi) computed?  I am using 3M DC 6250 cassettes 
  305.     which have a 250MB capacity on the Viper 150.  But computing the 
  306.     bits/inch based on 250MB/tape-length (1020 ft.), I get a density 
  307.     of 171335 bpi, which is nowhere near the 10000 bpi associated 
  308.     with QIC-150 in the st(1) man page.  Why the discrepancy?
  309.  
  310.     These cartridge tapes are written in narrow tracks which 
  311.     alternately begin at opposite ends of the tape.  Track 0 starts 
  312.     at the beginning of the tape, and Track 1 starts at the other 
  313.     end, etc.
  314.  
  315.     So, how many times does the tape go backwards and forwards?  If 
  316.     there are 17 tracks, your density is 170000 bpi if it is 10000
  317.     bpi per track.  The more tracks, the lower the bpi/track.
  318.  
  319.  
  320. 5.4.5    How is an appropriate block size determined (and in what units 
  321.     are they specified in the st(1) command)?
  322.  
  323.     QIC 150 and below should stick to 512 byte blocks a write of 
  324.     1024 bytes from the program will be written as 2 512 byte blocks 
  325.     with no speed penalty.  dd will think it's writing a 1024 byte 
  326.     block but on tape it's 2 x 512.
  327.  
  328.     Stick to 512 on QIC 150 or less if you ever hope to swap data 
  329.     with anyone else.
  330.  
  331.  
  332. 5.4.6    From the 4.3BSD mtio(4) man page, it sounds like data is typically
  333.     (traditionally?) stored on tape in eof-terminated sequences of 
  334.     1K records.  
  335.  
  336. 5.4.6.1    Is st's notion of "file" the record sequence between two eof marks?  
  337.  
  338. 5.4.6.2    What about a "record"?  
  339.  
  340. 5.4.6.3    Is a "record" one "block", as determined by st's "blocksize" command?   
  341.     If not, what is the connection between them?  
  342.  
  343. 5.4.6.4    Can I change the "record" size?  
  344. 5.4.6.5    When would I want a block size that is different from the default?  
  345.     1KB is the size of writes used by dd or whatever.  QIC specifies 
  346.     512 byte records (well at least its what people use..)  Whatever 
  347.     you write in will be broken into 512 byte sections.  They must be 
  348.     multiples of 512 though.
  349.  
  350.     If you have written to a tape, a close will automatically append a 
  351.     filemark (eof mark).  You may read the 512 byte blocks back as 
  352.     512 byte records or as 1024 byte records (in which case you'll 
  353.     get 2 at once).  The bigger the unit, the more efficient.
  354.  
  355. 5.4.7.1    How do I write several archives to a single tape?  I tried without 
  356.     success:
  357.         $ st -f /dev/rst4 rewind
  358.         $ tar cf /dev/nst4 archive1
  359.         $ st -f /dev/nrst4 weof
  360.         $ tar cf /dev/nst4 archive2
  361.         $ st -f /dev/nrst4 weof
  362.  
  363.     First:  throw away the block devices.
  364.  
  365.     'n' stands for 'No-Rewind-on-close' and will leave the tape 
  366.     positioned ready for another file e.g.
  367.  
  368.         tar -cf /dev/nrst0 archive1
  369.         tar -cf /dev/nrst0 archive2
  370.  
  371.  
  372. 5.4.7.2    Later, I would expect to be able to access, say, archive3 via the fsf
  373.     directive to skip over the first two archives.  What is the correct
  374.     sequence?
  375.  
  376.         st -f /dev/nrst0 rewind
  377.         st -f /dev/nrst0 fsf 2
  378.         tar -xf /dev/rst0 {files}
  379.  
  380.  
  381. 5.4.8    Since the Viper 150 writes on QIC-150/120, I guess I don't need 
  382.     to worry about writing variable-length records?  How about reading 
  383.     a tape written with variable-length records.  Is this possible 
  384.     with the Viper?  If so, what's involved?
  385.  
  386.  
  387.     Who would have written it? :-)
  388.  
  389.     Presently you can't.  You`re right.  Don't worry about it.
  390.  
  391.     The new 'st' changes will change this somewhat, though.
  392.  
  393.  
  394. 5.4.9    The very scant documentation that came with my drive mentions
  395.     a "selectable buffer disconnect size," whose default is 16K.
  396.     This is evidently the "maximum number of bytes that can be 
  397.     sent over the SCSI bus during a single data transfer phase."  
  398.     What's that?  How is it connected st's "blocksize" command?  
  399.     Do I want to use 16K blocks, or might I even want to set the 
  400.     disconnect size to a higher value?
  401.  
  402.     This suggests that 32 512 blocks will be written at a time.
  403.     This jives with the tape format for some of the lower density 
  404.     cartridges (QIC-40 and 80, for example).  The tape is written 
  405.     in blocks of 32 512-byte blocks, with the last three being used
  406.     for Error Correction Codes.  
  407.  
  408.     Use dd or tar with 16 k blocks and 32 x 512 byte blocks will be 
  409.     written.
  410.  
  411.     Also see 5.4.15 (below) for more information if you are using an
  412.     Archive Viper tape drive.
  413.  
  414.  
  415. 5.4.10    What is "streaming"?  When I tar a directory of files to tape,
  416.     I notice that the tape often stops.  Streaming means it doesn't 
  417.     stop?  How would I get the viper 150 to stream using tar or cpio 
  418.     or dump?
  419.  
  420.     Use a bigger write size... (more efficient)  Try 16k blocks.
  421.  
  422. 5.4.13    My tape drive doesn't work.  
  423.  
  424.     OK.  There are lots of reasons why it may not.  The most obvious is
  425.     that there are no devices associated with the device in the kernel.
  426.     You can check this through the use of the 'dmesg' command.  Look
  427.     for tape drives.
  428.  
  429.     If your tape drive is connected to your floppy controller, it may
  430.     or may not be supported.  Several manufacturers of QIC-40/QIC-80
  431.     mini-cartridge drives are supported natively in FreeBSD and 
  432.     experimentally in NetBSD.  Some aren't (mine for example, is not).
  433.  
  434.  
  435. 5.4.14    I am trying to restore a tape from a FreeBSD machine on a Sun.
  436.     What kinds of problems should I expect?
  437.  
  438.     The default blocksize should not be a problem, since they are
  439.     both 20K.  You may need to use "dd if=/dev/rst0 conv=swab |
  440.     <archiver>" instead of extracting directly from tape, just
  441.     in case the byte order causes a problem.  This is especially
  442.     true if you don't use the 'a' and 'c' options in cpio, for
  443.     example.
  444.  
  445.  
  446. 5.4.15    What are the jumper settings for the Archive Viper tape drive? 
  447.  
  448.     Vipers can't do auto-detection. You have to create different 
  449.     devices for different densities. Minor number 8 = 120Mb, 
  450.     4 = 150Mb and 12 = QIC-24 (60Mb).  At least this is the only 
  451.     way it works for me, and since it do I haven't bothered to 
  452.     find out why minor 0 doesn't.  If you have a 2525 (525Mb) 
  453.     it uses  ST_Q_SENSE_HELP quirk but it might not work.
  454.  
  455.     The cfg0-2 switches is for setting the disconnect size, e.g. 
  456.     the maximum size transfered before disconnect to allow other 
  457.     SCSI devices to access the bus. Jumper in sets bit to 1.
  458.  
  459.         0 = 2kb
  460.         1 = 4kb
  461.         2 = 6kb
  462.         3 = 8kb
  463.         4 = 12kb
  464.         5 = 16kb
  465.         6 = 24kb
  466.         7 = 32kb
  467.     
  468.     I'm using my viper at id 4 and disconnect size 16k. Works 
  469.     perfectly.
  470.  
  471. 5.4.16    My Viper-150 auto-detects fine; however, the first attempt to
  472.     read a tape fails after a boot due to an "illegal SCSI 
  473.     command".  What could be the problem?
  474.  
  475.     I assume that the driver is trying to use some SCSI-2 
  476.     command to set the default density -- but after that, the 
  477.     drive is perfectly happy to do the tedious density check and 
  478.     off it goes.  I've read all three densities on the drive.  Once
  479.     the drive is set up and the driver realizes there is no density
  480.     command, it just brute forces the drive density and off it goes.
  481.  
  482.  
  483. 5.4.17    Why haven't we changed the defaults in rdump and rrestore to
  484.     something that makes sense?  I was trying to dump a filesystem 
  485.     to a remote tape and ran into an error complaining about being 
  486.     unable to execute /etc/rmt.  
  487.  
  488.     Of course, if you get this error, this program doesn't exist.  
  489.     This information comes from ../src/sbin/dump/pathnames.h.  The 
  490.     reason we still use /etc/rmt and /dev/rmt8 is because the 
  491.     rdump and rrestore protocol call for those names.  
  492.  
  493.     This problem usually won't show up unless the original
  494.     installation of the system was done before NetBSD 0.9 *AND* the
  495.     etc.tar.gz distribution was never done.  This distribution fixes
  496.     this problem by creating the symbolic link from where rmt lives
  497.     to /etc/rmt.  The Makefile for rmt should also create this link
  498.     (I'd check before assuming it does.)
  499.  
  500.  
  501. 5.5    Network Stuff
  502.  
  503.     Network devices for NetBSD and FreeBSD include many types of
  504.     Ethernet cards, as well as Serial Line IP and Point to Point
  505.     Protocol.
  506.  
  507.  
  508. 5.5.1    How can I get my system to work as a network router?
  509.  
  510.     The first hurdle to overcome is that the default kernels do not
  511.     have the GATEWAY option compiled in.  Without this, it is very
  512.     nearly impossible to use the kernel as a router.
  513.  
  514.     Once you have the GATEWAY option compiled in, all sorts of things
  515.     magically start to work.  If you haven't got the GATEWAY option
  516.     enabled, you can also use 'sysctl -w net.inet.ip.forwarding=1'
  517.     if you are using FreeBSD or NetBSD versions that support that.
  518.     Remember, once you build the new kernel, you will need to
  519.     install it in the root directory and reboot.
  520.  
  521.     Once you have the forwarding option set, you will need to make
  522.     certain that you have not included the '-q' option to routed.
  523.     This should be in the routed_flags keyword in /etc/netstart.  If
  524.     you are using multiple internal LANs, you may also want to
  525.     invest in gated instead (see below).
  526.  
  527.     For those folks that are not using routed, you will need to make
  528.     certain that you have a static route to your network provider
  529.     established.  
  530.  
  531.     To test your network capability, try running the following
  532.     command:
  533.         
  534.         traceroute -s YOUR_ETHERNET_ADDRESS 129.186.150.150
  535.  
  536.     Check to see where your packets are hanging up.  It might be
  537.     that someone upstream from you has something broken instead of
  538.     simply assuming it is your fault.
  539.  
  540.  
  541. 5.5.2    I recently had a problem where I got a message that said "panic: 
  542.     kmem_malloc: mb_map too small".  What is the solution to this
  543.     problem?
  544.  
  545.     The second hurdle is that sometimes you run out of cluster 
  546.     allocation space in the kernel. This is probably network-related 
  547.     and usually shows up when something is being done using the 
  548.     network (like NFS).  The way to get around this would be to 
  549.     change the value of NMBCLUSTERS in your config file. NMBCLUSTERS 
  550.     is set at 256 by default, and increased to 512 when the GATEWAY 
  551.     option is active. To be very safe, you could add
  552.  
  553.         options     NMBCLUSTERS=1024
  554.  
  555.     to your config file, and recompile. This is reported to work
  556.     with systems that crashed as soon as a large number of people 
  557.     (75+) were connected to it.
  558.  
  559.  
  560. 5.5.3    Does anyone have an example of a working gated.conf file? I
  561.     can't figure these instructions out at all.
  562.  
  563.     Here is a sample config file for a machine which has two cards, 
  564.     one of the cards has an alias created like so: 
  565.  
  566.     ifconfig de1 inet 199.232.137.65 mask 255.255.255.192 alias
  567.  
  568.     Gated is running with this config:
  569.  
  570.     interfaces {
  571.         interface de0 passive;
  572.         interface de1 passive;
  573.     };
  574.  
  575.     ospf yes {
  576.         backbone {
  577.         networks {
  578.             199.232.136.0 mask 255.255.255.0;
  579.             199.232.137.0 mask 255.255.255.0;
  580.         };
  581.         interface de0;
  582.         };
  583.     };
  584.  
  585.     export proto ospfase {
  586.         proto direct {
  587.             199.232.136.160 mask 255.255.255.224;
  588.             199.232.137.0 mask 255.255.255.0;
  589.         };
  590.     };
  591.  
  592.     All routing and networking is fine right after I start gated.  
  593.     However, if I leave out the 'interface passive' section, gated 
  594.     shuts down the two routes on de1 after a couple of minutes.  
  595.  
  596.  
  597. 5.5.4    How do I set up Multicasting on my system?
  598.  
  599.     If you're trying to join the Mbone, you need to find someone 
  600.     willing to provide you with a "feed", and that person's router 
  601.     will be at the other end of your tunnel. If you're just trying to 
  602.     set up your own private little multicast domain, then you need to 
  603.     set up other such routers on other subnets and interconnect them 
  604.     with tunnels. If you just want to run a little multicast testbed 
  605.     on a single subnet, you don't need any multicast routers at all! 
  606.     See the Mbone FAQ at: 
  607.  
  608.        http://www.mediadesign.co.at/newmedia/more/mbone-faq.html
  609.  
  610.     for more detailed information on all of this...
  611.  
  612.  
  613. 5.6    I want to use my ZIP drive.  Are there any weird things I need
  614.     to know?
  615.  
  616.     One of the things that "just work" are ZIP drives.  The -current
  617.     code for both FreeBSD and NetBSD handle ZIP drives very cleanly.
  618.     One of the unusual things about ZIP drives is that most people
  619.     don't know (and the man page is deliberately vague about) is
  620.     once a person has permission to write to the ZIP drive, they can
  621.     mount it onto a directory in their space.  This is new with the
  622.     adoption of BSD 4.4, so it isn't really surprising that it is
  623.     new.
  624. -- 
  625. Dave Burgess                   Network Engineer - Nebraska On-Ramp, Inc.
  626. *bsd FAQ Maintainer / SysAdmin for the NetBSD system in my spare bedroom
  627. "Just because something is stupid doesn't mean there isn't someone that 
  628. doesn't want to do it...."
  629.