home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / comp-sys-sun-faq < prev    next >
Encoding:
Internet Message Format  |  1998-08-01  |  126.8 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!news.kodak.com!news-nysernet-16.sprintlink.net!206.229.87.26!news-east.sprintlink.net!news-peer.sprintlink.net!news.sprintlink.net!news-peer.gip.net!news.gsl.net!gip.net!newsxfer3.itd.umich.edu!newsxfer.itd.umich.edu!news.ececs.uc.edu!not-for-mail
  2. From: montjoy@ececs.uc.edu (Rob Montjoy)
  3. Newsgroups: comp.sys.sun.admin,comp.sys.sun.misc,comp.unix.solaris,comp.answers,news.answers
  4. Subject: FAQ: Sun Computer Administration Frequently Asked Questions
  5. Supersedes: <comp-sys-sun-admin_899266504@news.ececs.uc.edu>
  6. Followup-To: poster
  7. Date: 1 Aug 1998 00:15:44 -0400
  8. Organization: University of Cincinnati
  9. Lines: 3591
  10. Sender: montjoy@news.ececs.uc.edu
  11. Approved: news-answers-request@MIT.Edu
  12. Distribution: inet
  13. Expires: 29 Aug 1998 04:15:35 GMT
  14. Message-ID: <comp-sys-sun-admin_901944935@news.ececs.uc.edu>
  15. Reply-To: Rob_Montjoy@ECECS.UC.EDU
  16. NNTP-Posting-Host: news.ececs.uc.edu
  17. Summary: Answers to questions which appear in comp.sys.sun.*
  18. Keywords: Sun Computer Admin FAQ
  19. Xref: senator-bedfellow.mit.edu comp.sys.sun.admin:115070 comp.sys.sun.misc:39313 comp.unix.solaris:158217 comp.answers:32410 news.answers:136480
  20.  
  21. Archive-name: comp-sys-sun-faq
  22. Last-modified: 1998/7/6
  23. Version: 1.9.30
  24.  
  25. Frequently Asked Questions for Comp.sys.sun.admin
  26.  
  27. Last update July  6, 1998
  28.  
  29. This is a collection of common questions posted to the comp.sys.sun.*
  30. hierarchy.
  31.  
  32. Please send corrections or submissions to "Rob_Montjoy@ececs.uc.edu". 
  33. Mark the Subject as Sun FAQ. Remember lets make this a better FAQ and
  34. that requires submissions and corrections so if you have
  35. an answer to a nontrival question send it to me.
  36.  
  37. This FAQ is available from ftp.ececs.uc.edu (129.137.8.4)
  38. in the /pub/sun-faq/FAQs. Get the file sun-faq.general.
  39.  
  40. Also, ftp.ececs.uc.edu mirrors the FSF/GNU stuff from prep.ai.mit.edu
  41. and is available as ftp.ececs.uc.edu:/pub/gnu
  42.  
  43. Finally, ftp.ececs.uc.edu mirrors the security directory off ftp.uu.net
  44. as ftp.ececs.uc.edu:/pub/security
  45.  
  46.  
  47. Other FAQ's that you should check are as follows:
  48.  
  49.  
  50.     Sun Hardware FAQ edited by James W. Birdsall <jwbirdsa@picarefy.com>
  51.             ftp://ftp.ececs.uc.edu/pub/sun-faq/FAQs/Hardware/
  52.  
  53.     Sun Managers FAQ edited by John DiMarco  <jdd@cdf.toronto.edu>
  54.             ftp://ftp.cdf.toronto.edu/pub/sun-managers/faq
  55.  
  56.     Sun CD-ROM FAQ edited by Mike Frisch <mfrisch@saturn.tlug.org>
  57.         http://saturn.tlug.org/suncdfaq
  58.  
  59.     Solaris2.x FAQ edited by Casper Dik <Casper.Dik@Holland.Sun.COM>
  60.            An HTML version is available from
  61.             http://www.wins.uva.nl/pub/solaris/solaris2/
  62.         A mirror of Casper's directory is available from
  63.             ftp.ececs.uc.edu:/pub/sun-faq/FAQs/mirrors/Solaris2
  64.         which includes the autoinstall pieces.
  65.  
  66.     Solaris2.x Porting FAQ by David Meyer <meyer@ns.uoregon.edu>
  67.         ftp://ftp.ececs.uc.edu/pub/sun-faq/FAQs/Solaris2.x-Porting-Hints
  68.  
  69.     Solbourne Computer information available provided 
  70.         by Stephen Dowdy dowdy@cs.colorado.edu  via
  71.             http://www.cs.colorado.edu/~dowdy/Solbourne
  72.  
  73.     A SunOS 4.x Modem Tutorial is available from
  74.         http://www.stokely.com/unix.serial.port.resources/tutorials.html
  75.     and a PPP/SLIP info for SunOS is available from
  76.         http://www.stokely.com/unix.serial.port.resources/ppp.slip.html
  77.     Both of these pages have been created by Celeste Stokely 
  78.         celeste@stokely.com
  79.  
  80.  
  81.          
  82.     Finally, you can check at my "alpha" version of a Sun
  83.     related Web page at http://www.ececs.uc.edu/SunInfo/sun-tips.html
  84.  
  85. I try to keep these up to date copies of all these files in 
  86.     ~ftp/pub/sun-faq/FAQs on ftp.ececs.uc.edu (129.137.8.4)
  87.  
  88.  
  89.  
  90. Notes:    As of this writing almost all of these questions apply
  91.           to SunOS versions up to 4.1.4. SunOS 5.x questions
  92.           will start appearing gradually as more people start
  93.           installing SunOS 5.x (Solaris 2.x). 
  94.  
  95.     I am looking for suggestions on how to split this FAQ into
  96.     sections. These sections should follow the comp.sys.sun.* 
  97.     newsgroups(app, hardware, admin, misc, and wanted) and
  98.     section on bettering Sun Security. Basically, what
  99.     will end up with is a FAQ on each subject. Each
  100.     FAQ will have a Solaris1.x Section, a Solaris2x section,
  101.     and a section common to both.
  102.  
  103.     I will probably need some volunteers to help coordinate
  104.     this undertaking.. Send suggestion to the usual address.
  105.  
  106.     Some of these questions are out of date and need updating
  107.     when I get the time (or maybe a little birdie will do it for
  108.     me) I will update them. Thanks.
  109.  
  110.  
  111. This article includes answers to the following questions, which are loosely
  112. grouped into categories. Questions marked with a '+' indicate questions
  113. new to this issue; those with significant changes of content since the 
  114. last issue are marked by '!'.
  115.  
  116.  
  117.                 Questions
  118.  
  119.  1)!     How to get DNS working when not running NIS ?
  120.  2)       How to get DNS to be used when running NIS ?
  121.  3)     How to properly setup NFS mounting of /var/spool/mail ?
  122.  4)!       Can I use AnswerBook under X11R5?
  123.  5)     What does "NFS write error X" mean?
  124.  6)!     How do I find the amount of memory installed or other
  125.     system configuration information?
  126.  7)     Where can I get a version of ftp that does logging?
  127.  8)     Where can one get SunOS patches? Where can I get patch 10xxxx-xx?
  128.  9)        How to setup Openwindows Calendar Manager in a distributed
  129.     environment?
  130. 10)      Why does the talk command fail between SunOS
  131.     and any other manufacturer's equipment (like DEC)? 
  132. 11)       How do I setup "anonymous" ftp?
  133. 12)     How come yppasswdd does not automatically update the yp maps?
  134. 13)     What does NFS getattr failed/RPC: Authentication error mean?
  135. 14)     Why did my Quantum 105 megabyte hard disk stop working?
  136. 15)     Can I replace the 105 megabyte internal drive with a higher capacity
  137.         model?
  138. 16)     How can I turn my Sun3 into an X-Terminal?
  139. 17)    Why is my console login prompt garbled or in some strange 
  140.     alphabet after upgrading to 4.1.3?
  141. 18)      Why are the "random" missing services at boot time or any other time
  142.     (even though the services are in the /etc/services file or NIS map)?
  143. 19)     Where can I get Data Certified tapes for 4-mm or 8-mm tape drives 
  144.     (at reasonable price)?
  145. 20)       What is "archie"?
  146. 21)!     How do I synchronize time on my Network?
  147. 22)      What is the phone number for Sun Express and other numbers of importance
  148.     to Sun Users? 
  149. 23)!      How do I join sun related  mailing lists?
  150. 24)      How do I use Mac floppies in a SUN drive?
  151. 25)     How can I transfer floppies back and forth between MS-DOS and Sparc?
  152. 26)    Why is my biff not "biffing" when using biff in a networked
  153.     environment?
  154. 27)     How do I disable L1-A(STOP-A) or re-map it?
  155. 28)      Why are all the local users "unknown" when using sendmail under 4.1.2?
  156. 29)!     What are the dump parameters for an exabyte 8200 or 8500?
  157. 30)!     What are the guidelines for setting up swap space ?
  158. 31)    What are the general guidelines for maxusers to be set to on machine X?
  159. 32)    What does "zsN: silo overflow" mean?
  160. 33)    What does the "N" in "zsN: silo overflow", and other "zsN" messages,
  161.     signify?
  162. 34)    How do I set up a Sun serial port both for dial-in and dial-out?
  163. 35)    I can't get my Sun, running SunOS 4.1[.x], to establish a UUCP
  164.     connection to some non-Sun machine; it won't log in.  What's wrong?
  165. 36)!     Do the Sun serial ports support RTS/CTS flow control?
  166. 37)    How do I specify that a serial port should, or should not, ignore the
  167.     state of the Carrier Detect line?
  168. 38)    I put in a new "termcap" entry, or updated an existing "termcap" entry,
  169.     for a terminal, but "vi" doesn't seem to know about my change.  Why?
  170. 39)    I have a Type 5 keyboard, and find its placement of the Caps Lock,
  171.     Control, and Esc keys inconvenient.  How do I remedy this?
  172. 40)      How can I move keys around on a Sun keyboard, for example exchanging the
  173.     Caps Lock and Control keys on a Type 5 keyboard?
  174. 41)       My Sun doesn't have an ANSI C compiler.  How can I get one?
  175. 42)      How do I change the time zone setting on my machine?
  176. 43)    I'm getting messages that say one of the following:
  177.          proc: table is full    and/or
  178.             file: table is full    and/or
  179.             dquot: table is full     and/or
  180.             inode: table is full
  181.          What do these errors mean, and how do I fix the problem?
  182. 44)      Blank at present.
  183. 45)!      How do I run X11R5 applications under Openwindows or Openwindows 
  184.     applications under X11R5?
  185. 46)      Where do I find a "restricted" shell for SunOS?
  186. 47)!       Will SunOS 4.1.x binaries run under SunOS 5.x?
  187. 48)     When I try to compile MITs X11R4 applications under Openwindows 3.0,
  188.     I get the following "undefined" symbols(_get_wmShellWidgetClass, and
  189.     _get_applicationShellWidgetClass). What is the Problem?
  190. 49)!       What is Solaris?
  191. 50)     What does the "nres_gethostbyaddr !=" error mean?
  192. 51)!     How come my mouse only works in the vertical(or horizontal) direction,
  193.         how do I repair it?
  194. 52)     After rebuilding the shared library libc it get some or all the 
  195.     following undefined symbols: dlsym, dlopen, dlclose mbstowcs_xccs,
  196.             mbtowc_xccs,wcstombs_xccs, or wctomb_xccs.
  197. 53)     What does "No network locking on host" mean after upgrading to
  198.     Solaris 2.0?
  199. 54)     Does Password Aging work with NIS(YP) ?
  200. 55)     What does "rpc.lockd: Cannot contact status monitor!" mean?
  201. 56)    How do I join the Sun User Group(SUG)?
  202. 57)        How do I increase the number of "pseudo" terminals(ptys) ?
  203. 58)      Where are dump and restore under Solaris 2.x?
  204. 59)      How do I make the numeric keypad on a type 5 keyboard work with xterm?
  205. 60)       How do I swap the CAPS LOCK and CONTROL keys on a type 5 keyboard 
  206.     under Openwindows 3.0?
  207. 61)!       Which Sun models run which versions of SunOS?
  208. 62)      My rdump is failing with a "Protocol botched" message. What do I do?
  209. 63)!    Table of Solaris2.x commands and their Solaris1.x equivalents?
  210. 64)     How do I setup DNS on Solaris2.x?
  211. 65)        Can a SPARCclassic or LX run SunOS 4.1.3?
  212. 66)      I just restored my root partation and now I can not boot. What
  213.     is wrong?
  214. 67)      How do I disable/enable packet forwarding?
  215. 68)      How do I disable the printing of banners pages?
  216. 69)      How do I change my hostname?
  217. 70)     Table of Solaris2.x files and their Solaris1.x equivalents?
  218. 71)!     Where can I get the BSD print spooler for Solaris2.x?     
  219. 72)!    Where is the Solaris2.x screenblank?
  220. 73)!      Is there a command to display the configuration of 
  221.     currently attached SCSI devices?
  222. 74)     My printer will not print large files(over 1-megabyte), I 
  223.     keep getting "file to big" errors. What do I do?
  224. 75)!      I keep getting "data corruption" when using NFS over a wan,
  225.     or slip/ppp link. What do I do? 
  226. 76)     Does anybody know how to enable UDP checksum on NFS?
  227. 77)      Is there a mailing list for Wabi?
  228. 78)      Are there any public domain Multi-Vendor backup management
  229.         systems?
  230. 79)     How to determine the revision of SuperSPARC processor.
  231. 80)     How do I install SunOS4.1.x by hand (off a CD)?
  232. 81)    Why won't my SUN207 (Maxtor LXT213) hard drive work in
  233.         my SPARCstation 10/xx?
  234. 82)!     I'm running SunOS/4.1.x and every time I try to format my
  235.         new 9GB SCSI disk I get "format failed" messages -- what's
  236.         broke, and how can I fix it?
  237. 83)!       I can not get my new Exabyte 8505 (or others) working under
  238.          SunOS (or Solaris) What to do ?
  239. 84)      The keyboard keeps stop working after exiting X or Openwin.
  240.     What to do?
  241. 85)!      How do I re-build the kernel under SunOS4.x?
  242. 86)      How do I hook up a HP(or other) Desktop SCANNER?
  243. 87)!      How do I find which process has a file open?
  244. 88)       How do I create a partition greater than 2-gig on SunOS4.1.x?
  245. 89)       Why do I keep having to answer the question 
  246.     "CLEAN FLAG IN SUPERBLOCK IS WRONG; Fix?" when running fsck on
  247.     an active filesystem?
  248. 90)     Are dynamically linked setuid executables insecure?
  249. 91)     How do I change the default router under Solaris1.x or Solaris2.x?
  250. 92)     What is the difference between the Domestic vs International version
  251.     of SunOS 4.1.x?
  252. 93)     Where can I get the latest version of TOP?
  253. 94)     Can I run the SX card in a Sun running SunOS4.1.x?
  254. 95)     I just changed my shell to tcsh(or pick a favorite) and
  255.     get  "530 User xyzz access denied" when ftping into this 
  256.     machine. What is the problem?
  257. 96)    How do I put several dump images on one tape?
  258. 97)     Can I "dump" the whole disk to tape in one command?
  259.     (even with several slices/partitions)
  260. 98)!     Where do I get software for my HP JetDirect Ethernet Card?
  261. 99)     I do not know the root password, What do I do?
  262. 100)      Where do I find a POP server for Solaris or SunOS?
  263. 101)     How do I clear Stale NFS Filehandles?
  264. 102)!     How can I use the same ethernet interface for two different IP networks?
  265. 103)!     Where do I get CAP for Solaris (or SunOS 4.1.x)?
  266. 104)     Where do I get DOOM for Solaris (or SunOS 4.1.x)?
  267. 105)    Why does "dump/ufsdump" tell me it is rewinding the tape even
  268.     when I specified the "no rewind" device?
  269. 106)    How can you I speed up filesystem restores and/or copies?
  270. 107)     I just added a new device (ie harddisk) to Solaris I have rebooted
  271.     but the system still can not find it. What do I do?
  272. 108)    I need to change the broadcast address from all 0's to 1's
  273.     or where to set the broadcast address under SunOS4.x?
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.                 Answers
  283.  
  284.  1)     How to get DNS working when not running NIS ?
  285.  
  286.     Note: Solaris2.x users should see question 64..
  287.     
  288.         The "normal" behavior of a hostname lookup under NIS is to
  289.         consult the NIS hosts map and then DNS (if configured). If
  290.     you are not running NIS the system will only look in 
  291.     the /etc/hosts file. 
  292.  
  293.     You have two options to correct this situation:
  294.  
  295.         A) Re-build the shared library version of libc with replacement
  296.            resolver routines which understand DNS. Resolv+ provides one
  297.                of the best sets of replacement routines and it is easy
  298.            to install. Resolv+ can be obtained from
  299.  
  300.                ftp.ececs.uc.edu:/pub/sun-faq/Source/resolv+2.1.1.tar.Z
  301.  
  302.            If you install resolv+ make sure that you setup your
  303.            /etc/hosts.conf . /etc/hosts.conf should contain something
  304.            like this:
  305.               order    bind hosts
  306.               multi    off
  307.               nospoof  on
  308.  
  309.            Another option to use is bind-4.9.3 or later
  310.            which is available from
  311.  
  312.             ftp://ftp.vix.com/pub/bind/release/
  313.  
  314.            However, the bind shared libraries will ignore /etc/hosts
  315.            and do all lookups via DNS.
  316.  
  317.  
  318.            Rebuilding the shared library will not allow  statically
  319.            linked binaries to do name resolving and these binaries
  320.            will only use /etc/hosts. "Dynamically linked"
  321.            replacements for mount and rcp are available from
  322.  
  323.                ftp.ececs.uc.edu:/pub/sun-faq/Source/rcp-mount.dyn.tar.Z
  324.  
  325.            This file only contains sun4 binaries. A Sun 3 binary
  326.            for mount can be retrieved from
  327.  
  328.                ftp.ececs.uc.edu:/pub/sun-faq/Source/mount.sun3.Z
  329.         
  330.            To be able to rebuild shared libraries you need to 
  331.            install the "shlib custom" option which is available
  332.            with SunOS version 4.1 or greater. 
  333.  
  334.                You can still use NIS for other things in environment,
  335.                such as passwd, and group maps.
  336.  
  337.         B) Run NIS with the "hosts" maps only. If you 
  338.            only need DNS capability than change the "all"
  339.            line /var/yp/Makefile to "all:  hosts".  
  340.  
  341.            It does not require any changes to shared libraries.
  342.         
  343.            See question 2 for complete directions on how to setup
  344.            DNS with NIS.
  345.  
  346.     Last Updated:  July 3, 1996.
  347.  
  348.  2)     How to get DNS to be used when running NIS ?
  349.  
  350.     First setup your /etc/resolv.conf file.
  351.  
  352.     Use this file as a template.
  353.  
  354.     ;
  355.     ; Data file for a client.
  356.     ;
  357.     domain        ececs.uc.edu        ; local domain 
  358.     nameserver    129.137.8.118        ; primary domain nameserver
  359.     nameserver    129.137.32.101        ; secondary domain nameserver 
  360.  
  361.     Where:    "local domain" is the domain part of the hostnames.
  362.          For example, if your hostname is "ftp.ececs.uc.edu"
  363.          your "local domain" is "ececs.uc.edu" or you could use
  364.         "uc.edu". 
  365.  
  366.     Verify using nslookup that you are now resolving names
  367.     via DNS. Try something like "nslookup ftp.uu.net" and
  368.     see if you get back the IP address.
  369.  
  370.     You will need to put a copy of this resolv.conf on
  371.     all NIS servers including slaves.
  372.  
  373.     After you have the /etc/resolv.conf setup and working do 
  374.     the following:
  375.  
  376.     Under SunOS 4.1 and greater, at the top of the /var/yp/Makefile
  377.      uncomment the "B=-b" line and comment using the "#" sign the "B=" 
  378.  
  379.     If you are running 4.0.x you will need to edit the
  380.     /var/yp/Makefile or apply the following "diff":
  381.  
  382. *** Makefile.orig       Wed Jan 10 13:22:11 1990
  383. --- Makefile    Wed Jan 10 13:22:01 1990
  384. ***************
  385. *** 63 ****
  386. !                   | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byname; \
  387. --- 63 ----
  388. !                   | $(MAKEDBM) -b - $(YPDBDIR)/$(DOM)/hosts.byname; \
  389. ***************
  390. *** 66 ****
  391. !                   | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byaddr; \
  392. --- 66 ----
  393. !                   | $(MAKEDBM) -b - $(YPDBDIR)/$(DOM)/hosts.byaddr; \
  394.  
  395.     Now setup NIS in the usual fashion (ypinit -m ) or if your "brave"
  396.     and have already setup NIS just re-make the hosts map. Something
  397.     like this should work remove /var/yp/hosts.time, cd /var/yp, 
  398.     and type make (i.e. cd /var/yp; /bin/rm -f hosts.time ; make).
  399.  
  400.     You will need reboot the machine or restart ypserv for these changes
  401.     to take affect.
  402.  
  403.     The manpage for ypserv incorrectly states that you need to
  404.     start ypserv with the -d option to get DNS to work with NIS.
  405.     The manpage is incorrect -d option is for debugging.
  406.  
  407.     If you need a copy of the NIS Makefile look in /usr/lib (NIS.Makefile).
  408.     Or grab the Makefile from ftp.ececs.uc.edu:/pub/sun-faq/Makefile.nis
  409.  
  410.     Last Updated:  July 20, 1995.
  411.  
  412.  
  413.  3)    How to properly setup NFS mounting of /var/spool/mail ?
  414.  
  415.     On the Client machines:
  416.  
  417.         A) mount /var/spool/mail with the no attribute caching
  418.            option.
  419.         
  420.            An example, fstab line would be the following:
  421.  
  422.            mailhost:/var/spool/mail /var/spool/mail nfs rw,noac 0 0
  423.  
  424.         B) Use a sendmail.cf that forces all mail to be delivered
  425.            by the mailhost. 
  426.  
  427.            One such file is available via anonymous ftp to 
  428.            ftp.ececs.uc.edu. Get the file 
  429.  
  430.                 /pub/sun-faq/sendmail.client.cf
  431.  
  432.            Do not use the OR option that Sun provides. It is broken
  433.            in many ways.
  434.  
  435.     On the server machine:
  436.     
  437.         A) Setup DNS MX records pointing to the mailhost for
  438.            all client machines.
  439.  
  440.         B) Edit the /etc/exports file to export /var/spool/mail
  441.            to the mail client machines. You may want
  442.            to use a netgroup for this purpose.
  443.  
  444.         C) Setup the /etc/sendmail.cf on the server recognize
  445.            that mail to/from a client is "local".
  446.  
  447.            One such file is available via anonymous ftp to 
  448.            ftp.ececs.uc.edu. Get the file 
  449.  
  450.                 /pub/sun-faq/sendmail.server.cf
  451.         
  452.     Note:     You may want to install Berkeley sendmail instead of Suns
  453.         stock sendmail. 
  454.  
  455.  
  456.  
  457.  4)     Can I use AnswerBook under X11R5(6)?
  458.  
  459.     AnswerBook in its current form requires the Openwindows
  460.     server. It uses the NeWS/Display Postscript extensions
  461.     to this server to display the Answerbook files.
  462.  
  463.     To use AnswerBook under X11R5 you will need to replace the 
  464.     docviewer program with program that calls Ghostscript to view
  465.     these pages.  A replacement docviewer can downloaded from
  466.     ftp.ececs.uc.edu (129.137.8.99) as /pub/sun-faq/Source/docviewer.tar.gz
  467.     This kit contains more than one  docviewer. Try using
  468.     the one in the toplevel docviewer directory.
  469.  
  470.     This replacement docviewer does not support all the options that
  471.      the "real" docviewer supports such as "hypertext" links.
  472.  
  473.     To install the replacement "docviewer" you will also need 
  474.     Ghostscript 2.4 or above and Ghostview 1.3 or above both of
  475.      which are available from prep.ai.mit.edu in the /pub/gnu directory.
  476.  
  477.     This replacement docviewer is reported to work with all versions
  478.     of AnswerBook but not as well as the original :).
  479.  
  480.  
  481.     Note: The Solaris 2.6 documentation can be accessed via the web
  482.     at: docs.sun.com
  483.     
  484.     Last Updated:  Apr 25, 1998.
  485.     
  486.  
  487.  5)     What does "NFS write error X" mean?
  488.  
  489.         You can lookup the error codes in /usr/include/sys/errno.h.
  490.  
  491.         Two common NFS error codes are 13 - "permission denied" and 70 -
  492.         "stale file handle".
  493.  
  494.     Error code 13 can occur from incorrect /etc/exports entry. Also,
  495.     it can occur because someone has changed the /etc/exports
  496.     entry to disallow the client after the client has already
  497.     been granted permission to perform this operation.
  498.  
  499.         Error code 70 occurs when the file handle on the
  500.     NFS server changes for a particular filesystem.
  501.     The "file handle" can be changed under the following
  502.     circumstances:
  503.         
  504.         A) Installing a new drive in place of an old.
  505.  
  506.         B) Moving a filesystem from one devices to
  507.            another.
  508.  
  509.         C) Performing a format, newfs, dump, and restore
  510.            cycle. Even if to the same device.
  511.  
  512.         D) Unmounting a file system without remounting it.
  513.  
  514.         E) Unmounting a High Sierra/ISO 9660 CD-ROM and
  515.                mounting a different CD.
  516.  
  517.         You can usually get rid of the error by unmounting and
  518.         remounting the filesystem in question. 
  519.  
  520.     Also, error code 70 can occur when someone removes a file 
  521.     that a process is actively writing from a NFS client machine.
  522.  
  523.         Under SunOS 4.1, you can run "showfh" to translate the NFS
  524.         "file handle" given in the error message into a Unix pathname.
  525.         Beware that showfhd does a "find" on your server to get the
  526.         filename.  "man 2 intro" will give you some more general
  527.         information on what error codes could mean.
  528.  
  529.     You will need a patch to get "showfh" to work correctly. The patch
  530.     id is 100371 and this patch is required for 4.1, 4.1.1, and 4.1.2.
  531.     This patch has been integrated into 4.1.3.
  532.  
  533.  6)    How do I find the amount of memory installed or other
  534.     system configuration information?
  535.  
  536.     You can use the "devinfo" command to find out general information 
  537.     about the hardware attached to your Sun. The "devinfo" command is 
  538.         only available on desktop SPARCsystems, SPARCengine 1E (although not
  539.         in the version used in Auspex systems), or 600MP series server only.
  540.  
  541.     Also, most sparc clones should support devinfo.  Any machine that has
  542.     an SBus will probably support "devinfo" but any machine that doesn't 
  543.     have an SBus probably won't support "devinfo".
  544.  
  545.     Note in Solaris "devinfo" is called "prtconf" and all options
  546.     are the same. 
  547.     
  548.     The "best" command for determining system information is  
  549.     "sysinfo". Sysinfo is available from
  550.  
  551.         ftp://usc.edu/pub/sysinfo/
  552.  
  553.     Sysinfo works on all Sun architectures (including Sun-3s) and all
  554.     SunOS and Solaris releases as well as many other UNIX boxes such
  555.     as Ultrix, and Next. 
  556.  
  557.     Also, you can use the sundiag to find out configuration information
  558.     as follows:
  559.  
  560.         /usr/diag/sundiag/sundiag -wv 
  561.         /bin/cat /usr/adm/sundiaglog/sundiag.conf | /bin/sort
  562.  
  563.     Finally, the "dmesg" command can be used to get memory information.
  564.     Try something like "dmesg | grep -i memory". It may not return
  565.     any memory information if the system has been up for a while.
  566.  
  567.     Note:  "wc -l /dev/mem" and "dd if=/dev/mem of=/dev/null" and 
  568.                the like will *not* give the correct answer on machines 
  569.            where physical memory is not contiguous, such as many Suns.
  570.  
  571.     OpenWindows 3.3 and above also support the "wsinfo" command, which
  572.     provides some of this information, in particular memory size.
  573.  
  574.     Last Updated:  May 23, 1996.
  575.  
  576.  
  577.  7)     Where can I get a version of ftp that does logging?
  578.  
  579.     Get the wuarchive ftp daemon from
  580.  
  581.             ftp://wuarchive.wustl.edu/packages/wuarchive-ftpd
  582.  
  583.     A version of the wuarchive ftpd daemon that compiles right out
  584.     of the box for Solaris2.x machines can be had from
  585.     ftp.ececs.uc.edu (129.137.8.4) in the /pub/sun-faq directory.
  586.     Remember to specify your own paths in the src/pathnames.h file.
  587.  
  588.     The stock Sun ftpd will log some information if you add the "-l"
  589.            flag in /etc/inetd.conf:
  590.  
  591.             ftp stream tcp nowait root /usr/etc/in.ftpd in.ftpd -l
  592.  
  593.         Also enable syslogd by adding:
  594.  
  595.         daemon.info      /var/adm/syslog
  596.  
  597.         to "/etc/syslog.conf".
  598.  
  599.     Last Updated:  Oct 25, 1995.
  600.  
  601.  
  602.  8)     Where can one get SunOS patches? Where can I get patch 10xxxx-xx?
  603.  
  604.         Many anonymous ftp sites have partial collections of patches.
  605.         These sites include the following:
  606.     
  607.     Sun sanctioned sites:
  608.         sunsolve1.sun.com:/pub/patches/
  609.                 via WWW http://sunsolve1.sun.com/
  610.         sunsite.unc.edu:/pub/sun-info/sun-patches/
  611.             sunsite.unc.edu:/pub/sun-info/sun-patches/
  612.             sunsite.sut.ac.jp:/pub/sun-info/sun-us/sun-patches/
  613.             sunsite.doc.ic.ac.uk:/sun/sunsite-sun-info/sun-patches/
  614.  
  615.     Note: You should always attempt to find a local site before
  616.           using the above.
  617.  
  618.     sunsolve1.sun.com contains a collection of recommended and 
  619.     security patches. Be sure to check out the 2.x_Recommended.tar.Z
  620.     files which contain all the Recommended patches in  one file.
  621.     The "Sunsites" are essentially mirrors of sunsolve.
  622.  
  623.     Support Customers:
  624.  
  625.         Starting with SunSolve CD 2.1.2 ALL Sun patches are shipped
  626.         on the SunSolve CD.
  627.  
  628.         Support customers can get all patches via ftp from Sunsolve
  629.         or by e-mail and query one of the online sunsolve-databases
  630.         on the internet.
  631.  
  632.     Some notes:    
  633.  
  634.     Do install the Recommended patches. 
  635.  
  636.     If you find a bug report it to Sun. This is the only way
  637.     it will get fixed.
  638.  
  639.     Do not "blindly" install all patches. Sun does not always
  640.     have time to test for possible interactions between patches.
  641.  
  642.     Do not install patches for applications that you do not use.
  643.  
  644.     Do install patches for "bugs" that are actually affecting you.
  645.  
  646.     Last Updated:  Feb 2, 1998.
  647.  
  648.  
  649.  9)    How to setup Openwindows Calendar Manager in a distributed
  650.     environment?
  651.  
  652.     Sun's original assumption that each user has a permanent machine 
  653.     allocated to them is not applicable in most environments. Just as 
  654.     users send mail to 'user' rather than 'user@machine', users want 
  655.     to browse others user's calendars and do not care or want to know
  656.     where the calendar is actually stored.
  657.  
  658.     Here is procedure to accomplish our goal. All calendars
  659.     will be stored on a central server. The initial setup
  660.     must be done on the server.
  661.  
  662.         A) Have the user login to the calendar host(calhost)
  663.            machine.
  664.         
  665.         B) Change everyone's .cm.rc file so that 
  666.            Calendar.DefaultCal points to user@calhost
  667.  
  668.            calhost can be an hostname alias or an actual
  669.            hostname. You may want to use the alias
  670.            just in case you change the "calhost" later.
  671.     
  672.         C) Change their Access List and Permissions (under
  673.                Edit/Properties) to show user@client with BID (browse,
  674.                insert, delete) permissions for any client machine the
  675.            user wanted to access their calendar from.
  676.  
  677.     Notes: If you use the scheme you should not NFS mount 
  678.            /var/spool/calendar on the client machines.
  679.  
  680.     or
  681.  
  682.     You can install the "Proxy OpenWindows Calendar Manager", which
  683.     is available via anonymous FTP from ftp.ececs.uc.edu in
  684.     /pub/sun-faq/proxy-cmsd.tar.Z.
  685.  
  686.     or
  687.     
  688.     You can install the "new cm daemon" which allows you to access
  689.     several Calendar hosts at once. It implements the "original"
  690.     rpc.cmsd daemon semantics(unlike proxy-cmsd) and thus all
  691.     the features(of CM) will work as documented.  The latest source
  692.     for this daemon was available via anonymous FTP from
  693.     ftp.amdahl.com (129.212.11.1) in the  /pub/newcm_d directory
  694.     but alas it is no longer but you can still get a copy from
  695.     from ftp.ececs.uc.edu as /pub/sun-faq/newcm_d-1.3.tar.Z
  696.  
  697.     As of this writing newcm is being ported to Solaris2.x.
  698.  
  699. 10)     Why does the talk command fail between SunOS
  700.     and any other manufacturer's equipment(like DEC)? 
  701.  
  702.     SunOS and Solaris use the old BSD 4.2 version of talk. 
  703.     The old talk uses "machine dependent" byte ordering. Since
  704.     DEC has different byte order the two talks can not
  705.     communicate (even if you use "otalk" on the DEC
  706.     machines).
  707.     
  708.     Also, most vendors have the newer version of 
  709.     talk from BSD-4.3 and this version is not compatible
  710.     with the Sun Version which is BSD-4.2.
  711.  
  712.     The solution is to get and install the new version
  713.     of talk because it uses "network" byte ordering and
  714.     it is compatible with most Vendors current talk 
  715.     implementations.
  716.     
  717.     "New Talk" is available via anonymous ftp from 
  718.  
  719.         ftp.ececs.uc.edu:/pub/sun-faq/Source/ntalk.tar.gz
  720.  
  721.     This contains a version of new talk that compiles on
  722.     both Solaris and SunOS. The Solaris version does not
  723.     require the Berkeley compatability libraries.
  724.     
  725.     Finally, a program called Ytalk can be used with either
  726.     "New talk" or "Old talk" and compiles on all versions
  727.     of SunOS (including 5.x).
  728.  
  729.     Ytalk can be obtained from 
  730.  
  731.         ftp.ececs.uc.edu:/pub/sun-faq/Source/ytalk-3.2.tar.gz
  732.  
  733.     Last Updated:  November 12, 1995
  734.  
  735. 11)    How do I setup "anonymous" ftp?
  736.     
  737.         Read the man page ftpd(8) in the SunOS 4.x documentation, as 
  738.         the procedure differs from vanilla BSD and most examples in 
  739.         system administration books. 
  740.  
  741.     The "ls" binary is dynamically linked, requiring you to 
  742.     duplicate ld.so, libc.so.* and /dev/zero in the ftp area.
  743.     The permissions and ownership of the files within the 
  744.         ftp area are critical to having a secure configuration.
  745.     
  746.     Note: For SunOS versions 4.1.2 and 4.1.3 you will need
  747.           to copy /usr/lib/libdl.so.* to the ftp area as well.
  748.  
  749.     You can use a "statically" linked binary from the GNU
  750.     fileutils instead of the "dynamically" linked SunOS
  751.     version. You can get the GNU fileutils from prep.ai.mit.edu
  752.     in the directory /pub/gnu
  753.  
  754.     There is also a statically linked version of ls for Suns
  755.     running SunOS 4.1.x, available via anonymous ftp from
  756.     ftp.ececs.uc.edu.  Get the file /pub/sun-faq/ls.statically-linked
  757.     or get it from the SunOS install CD in the "tools" directory.
  758.  
  759.     A complete procedure to setup anonymous under SunOS is
  760.     available via anonymous ftp to ftp.ececs.uc.edu. Get
  761.     the file /pub/sun-faq/anon-ftp.how-to.
  762.  
  763.     There is an _excellent_ script written by Peter N. Lewis
  764.     (peter.lewis@info.curtin.edu.au) for setting up anonymous ftp
  765.     located on ftp.ececs.uc.edu, in the file /pub/sun-faq/anon-ftp.scrpt
  766.  
  767. 12)     How come yppasswdd does not automatically update the yp maps?
  768.  
  769.         There is a bug in 4.1 rpc.yppasswdd that causes it misinterpret
  770.         the command line arguments.  A work-around is to add the
  771.         "-nosingle" flag (which is the default), this shifts the
  772.         arguments over one, so "passwd" is read instead of "-m".
  773.     Also, you should use the complete path to rpc.yppasswdd
  774.  
  775.         For example:
  776.  
  777.         /usr/etc/rpc.yppasswdd /var/yp/passwd -nosingle -m passwd DIR=/var/yp
  778.  
  779.     Note: Only use the DIR=/var/yp if your source files for passwd, group,
  780.           etc are in /var/yp. If they are in /etc you do not need
  781.               to and should not specify the DIR= parameter.
  782.  
  783.     Also, you can modify the NIS Makefile to change to the location
  784.     of the maps (ie modify DIR= in /var/yp/Makefile). Than you
  785.     could use something like this instead of the above line:
  786.  
  787.         /usr/etc/yppasswdd /var/yp/maps/passwd -noshell -m passwd
  788.  
  789.     This assumes that all NIS text/source files are in 
  790.         /var/yp/maps
  791.             
  792.         If you are running the C2 security package, you should apply
  793.         the C2 Jumbo patch, as it fixes several problems with rpc.yppasswdd
  794.     and rpc.pwdauthd. The patch number is
  795.  
  796.     100201-04 or greater for SunOS 4.1 and 4.1.1
  797.     100564-06 or greater for SunOS 4.1.2 and 4.1.3
  798.  
  799.     Last Updated:  April 27, 1995.
  800.  
  801. 13)     What does NFS getattr failed/RPC: Authentication error mean?
  802.  
  803.         You are probably running a pre-SunOS 4.0 version of NFS and your
  804.         username is in more than 8 groups.  There is a limit on the
  805.         number of groups that could be represented in the rpc service
  806.         (called NGRPS).  On pre-4.0 systems this was 8, now it is 16.
  807.         Since many vendors other than Sun are still running old versions
  808.         of NFS, you might see this error even if your SunOS is recent.
  809.  
  810.         Authentication errors are also caused by having secure RPC
  811.         enabled on the client but not on the server, or by having a
  812.         misconfigured secure RPC configuration for the user name
  813.         generating the errors.  Beware of this problem when you are
  814.         using the automounter, as programs (such as Sendmail) may
  815.         silently fail when when they try to mount a directory
  816.         and get this error.
  817.  
  818.     Last Updated:  Feb 23, 1998.
  819.  
  820.  
  821. 14)     Why did my Quantum 105 megabyte hard disk stop working?
  822.  
  823.     This the now infamous Quantum drive "stickation" problem.
  824.  
  825.     If the drive is allowed to cool down(even for a short period 
  826.     of time) the drive lubricant will congeal and prevent the disks
  827.     platters from rotating. 
  828.  
  829.     Before you get a replacement, try lightly tapping
  830.         the drive to loosen the lubricant. If this does not work try
  831.     shaking and twisting the drive at the same time. One last
  832.     thing to try is to lift the system up a couple of inches
  833.     and drop it.
  834.  
  835. 15)     Can I replace the 105 megabyte internal drive with a higher capacity
  836.         model?
  837.  
  838.     The newer disk drives can be used without worrying about heat
  839.     or power supply capacity problems. 
  840.  
  841.     However, older technology drives drives create more heat and draw
  842.     more power than the 105S.  The case cooling ability and power supply
  843.         in the SS-1 and SS-1+ are not adequate for the 210 megabyte or higher
  844.         capacity drives possible in the SS-2.
  845.  
  846.     As long as you make sure that the drive draws no more power
  847.     than the 105-Meg drive you should have no problems.
  848.  
  849.     Only the SPARCstation 1 and 1+ have these limitations.
  850.  
  851. 16)     How can I turn my Sun3 into an X-Terminal?
  852.  
  853.         You can use Seth Robertson's Xkernel package.  It is available
  854.         via anonymous ftp from ftp.ctr.columbia.edu (128.59.64.40) in
  855.         /Xkernel.  The package describes how to configure a minimal kernel
  856.         that runs the X server and offloads all the clients onto another,
  857.         hopefully more powerful host on the network. 
  858.  
  859.     As of this writing the current version of Xkernel is 2.0 and
  860.     it should work on both SPARC and Sun3 platforms.
  861.  
  862.     Xkernel is attractive to some sites that have a large investment in 
  863.         sun3 platforms, as moving  most of the processing off the sun3 
  864.         cpu makes it tolerable to use.  
  865.  
  866.     Finally, a used 3/50 is competitive with low-end X Terminal and 
  867.         you get a 19" monitor with an optical mouse.  
  868.  
  869.  
  870. 17)    Why is my console login prompt garbled or in some strange
  871.     alphabet after upgrading to 4.1.3?
  872.  
  873.         The problem is /etc/ttytab, with 4.1.3, the console is now
  874.     able to display 8 bits characters and getty must take this 
  875.     into account.
  876.  
  877.     The solution is easy, replace your console entry in /etc/ttytab 
  878.     by the following, the important part is 'cons8':
  879.  
  880.     console "/usr/etc/getty cons8"  sun             on local secure
  881.  
  882.     Also, if you did an upgrade(instead of a full install) you may 
  883.     need to add the following to your /etc/gettytab.
  884.  
  885.     # This is a new entry to internationalize the console.  It needs to be
  886.     # 8 bit clean so that ISO 8859 characters can be displayed without
  887.     # the window system.
  888.     #
  889.     cons8:\
  890.             :p8:lm=\r\n%h login\72 :sp#9600:
  891.  
  892.  
  893. 18)      Why are the "random" missing services at boot time or any other time
  894.     (even though the services are in the /etc/services file or NIS map)?
  895.  
  896.     The three primary causes for "random" missing services are
  897.     as follows:
  898.  
  899.         A) "Blank" lines in /etc/services on the YP/NIS Master.
  900.            Delete the blank line and remake the services map.
  901.  
  902.         B) Check the permissions on /etc/services. Non-root
  903.            processes need read permissions so /etc/services
  904.            should be mode 644.
  905.  
  906.         C) NIS/YP server not responding quickly enough
  907.            to the "getservbyname" call because each getservbyname
  908.            call reads the whole map.  One fix is to replace the 
  909.            systems version of inetd with a version that re-tries the
  910.            "unknown" service.
  911.  
  912.            I have "hacked" a version of munetd(public domain
  913.            replacement for inetd) to do this. It is available
  914.            from ftp.ececs.uc.edu. Get the file 
  915.             /pub/sun-faq/Source/munetd.tar.Z
  916.  
  917.            Another solution to this problem is outlined in part C below.
  918.  
  919.         D) Sun's implementation of the services map is incorrect. To
  920.                correct this problem you will need to replace some library
  921.            routines in libc and rebuild the shared library.
  922.            These routines and directions on installing them are
  923.            available from ftp.ececs.uc.edu.  Get the file 
  924.            /pub/sun-faq/Source/getservent.tar.Z.
  925.  
  926.         E) Another fix(if you do not want to modify your libc's) is
  927.            to just remove the services map from NIS. However,
  928.            you will need to update the services file by hand on
  929.            all clients. We are running all NIS hosts this way and
  930.                it seems to work quite well.
  931.  
  932.         
  933.  
  934. 19)    Where can I get Data Certified tapes for 4-mm or 8-mm tape drives 
  935.     (at reasonable price)?
  936.  
  937.     Here is an incomplete list of vendors how have "data certified"
  938.     tapes for the exabyte.
  939.  
  940.     Misco               800-876-1726   $12 - 15 each.    
  941.     TecBridge          800-972-7405   $9 - 15 each.
  942.     R-Squared          800-777-3478     Sony 112m 120@8.00 Each
  943.     K and K Systems          612-475-1527     $10 Each
  944.     SCR              314-739-0808     $10.95 for Memorex
  945.     CPI                 800-522-4274      Sony 112m 120@7.00 Each
  946.  
  947.     Last Updated:  July 22, 1995.
  948.  
  949. 20)    What is "archie"?
  950.  
  951.     Archie is a database of what is on several thousand anonymous 
  952.     ftp sites. 
  953.  
  954.     To use archie get one of the three archie clients which
  955.     are as follows:
  956.  
  957.         xarchie        -    For use under X11
  958.         c-archie    -     Curses version of Archie
  959.         archie        -     Perl Version of Archie
  960.     
  961.     Theses are available from archie.ans.net in the directory 
  962.     /pub/archie.
  963.  
  964.     List of other publicly available archie servers:
  965.  
  966.     archie.rutgers.edu   128.6.18.15     (Rutgers University)
  967.     archie.unl.edu       129.93.1.14     (University of Nebraska 
  968.                                           in Lincoln)
  969.     archie.sura.net      128.167.254.179 (SURAnet archie server)
  970.     archie.ans.net       147.225.1.2     (ANS archie server)
  971.     archie.au            139.130.4.6     (Australian server)
  972.     archie.funet.fi      128.214.6.100   (European server in Finland)
  973.     archie.doc.ic.ac.uk  146.169.11.3    (UK/England server)
  974.     archie.cs.huji.ac.il 132.65.6.15     (Israel server)
  975.     archie.wide.ad.jp    133.4.3.6       (Japanese server)
  976.     archie.th-darmstadt.de 130.83.128.111 (German server)
  977.  
  978.     
  979. 21)    How do I synchronize time on my Network?
  980.  
  981.     You should use xntp version 3 to synchronize your time. Xntp 
  982.     synchronizes to "atomic" and/or Radio Frequency clocks. Using
  983.     xntp time should always be within a few "milliseconds" of the
  984.     actual time. Xntp does not require a "atomic" clock, any
  985.     stable UNIX host clock will do.
  986.  
  987.     You can get XNTP version 3 from
  988.     
  989.         ftp://ftp.udel.edu/pub/ntp/
  990.  
  991.  
  992.     XNTP works with all versions of SunOS(4.x and 5.x).
  993.  
  994.     Also, A web page for XNTP is available at 
  995.  
  996.         http://www.eecis.udel.edu/~ntp 
  997.  
  998.     Finally, Solaris 2.6 now cames with XNTP version 3.5Y. 
  999.  
  1000.     Note: There is a Macintosh Control Panel extension available too..
  1001.  
  1002.     Last Updated:  December 1, 1997.
  1003.  
  1004. 22)    What is the phone number for Sun Express and other numbers of importance
  1005.     to Sun Users? 
  1006.  
  1007.     Sun Express:         1-800-USE-SUNX (1-800-873-7869)
  1008.     Main Sun Helpline:     1-800-USA-4SUN (1-800-872-4786)
  1009.  
  1010.     Auspex Systems Inc. :   2300 Central Expressway
  1011.                             Santa Clara, CA 95050
  1012.                             (800) 735-3177 or (408) 492-0900
  1013.                                 Fax: (408) 492-0909
  1014.                 E-mail: info@auspex.com
  1015.                 Web: http://www.auspex.com
  1016.  
  1017.     Last Updated:  June 22, 1998.
  1018.     
  1019.  
  1020. 23)     How do I join sun related  mailing lists?
  1021.  
  1022.     Mailing Lists:
  1023.  
  1024.     Sun Managers:    Used for "emergency" information only. The
  1025.             users of this list are "very" knowledgeable.
  1026.         sun-managers-request@eecs.nwu.edu    add requests
  1027.         sun-managers@eecs.nwu.edu        submissions
  1028.  
  1029.         Sun-386i:   discussion about the Sun 386i product
  1030.             sun-386i-request@ssg.com        add requests
  1031.             sun-386i@ssg.com                    submissions
  1032.  
  1033.  
  1034.     Suns-at-Home is a mailing list devoted to folks who have Sun
  1035.     Workstations at home.  We hope to cover topics such as:
  1036.  
  1037.         - Maintenance and parts
  1038.         - Software
  1039.         - dial-up access (SLIP, modems)
  1040.         - Uses of Suns at Home (Home control, UUCP, BBS systems)
  1041.  
  1042.     You can reach Suns-at-home through the following addresses:
  1043.  
  1044.         Article submissions go to:
  1045.                 Suns-at-Home@net-kitchen.com
  1046.  
  1047.         Administrative requests go to:
  1048.                 Suns-at-Home-Request@net-kitchen.com
  1049.  
  1050.  
  1051.         Auspex:  managers of Auspex NFS file servers
  1052.             auspex-request@princeton.edu                    add requests
  1053.             auspex@princeton.edu                            submissions
  1054.  
  1055.         Epoch:  managers of Epoch NFS file servers       
  1056.             EPoch Users Forum  (EPUF)             
  1057.             epuf-request@mcs.anl.gov                        add requests 
  1058.             epuf@mcs.anl.gov                                submissions
  1059.  
  1060.     Various SunFlash Mailing Lists:
  1061.  
  1062.     SunFlash: 
  1063.           Articles about Sun from Sun. Includes Press Releases,
  1064.           detailed intros, Sun e-newsletters, sunergy announcements
  1065.           
  1066.           John J. McLaughlin Editor/Publisher (flash@sun.com)
  1067.           
  1068.           Available in a variety of formats:
  1069.           List name      Description
  1070.            
  1071.           sunflash      daily sunflash. Many articles will have just
  1072.                     summaries for the articles posted.
  1073.                     use the autoresponder to get the full text
  1074.           sunflash-f      full list - all articles - no summaries
  1075.           sunflash-w      weekly list - one summary article per week
  1076.           sunflash-m      monthly list - one summary article per week
  1077.           mt-sunflash      summary article in the message body, and
  1078.                     all articles included as MailTool style
  1079.                     attachemensts
  1080.           mime-sunflash   like mt-sunflash, but with MIME attachements
  1081.           mt-sunflash-w   like mt-sunflash but once per week
  1082.           mime-sunflash-w like mime-sunflash but once per week
  1083.           
  1084.           Subscribe by sending email to majordomo@flashback.com
  1085.           The message body should contain the word subscribe
  1086.           followed by one of above lists names. E.g.
  1087.               subscribe mt-sunflash
  1088.           
  1089.           
  1090.     The Sun FlashBack:
  1091.           Articles of interest to the Sun community from
  1092.           vendors other than Sun. Includes Press Releases,
  1093.           Sun User Group announcements, Product announcements,
  1094.           Company newsletters, newsletter table of contents
  1095.           (e.g. "HPCwire", "WEBster', "SPARCFlash"), 
  1096.           trade magazine table of contents (e.g. "Advanced Systems",
  1097.           "Open Computing", "Sun Onserver"), Conference/Seminar/
  1098.           Trade-Show announcements, Text Book announcements,
  1099.           Sponsored technical articles.
  1100.           
  1101.           John J. McLaughlin Editor/Publisher (flash@flashback.com)
  1102.           
  1103.           Available in a variety of formats:
  1104.           List name      Description
  1105.            
  1106.           flashback      daily flashback. Many articles will have just
  1107.                     summaries for the articles posted.
  1108.                     use the autoresponder to get the full text
  1109.           flashback-f      full list - all articles - no summaries
  1110.           flashback-w     weekly list - one summary article per week
  1111.           flashback-m     monthly list - one summary article per week
  1112.           mt-flashback      summary article in the message body, and
  1113.                     all articles included as MailTool style
  1114.                     attachemensts
  1115.           mime-flashback   like mt-flashback, but with MIME attachements
  1116.           mt-flashback-w   like mt-flashback but once per week
  1117.           mime-flashback-w like mime-flashback but once per week
  1118.           
  1119.           Subscribe by sending email to majordomo@flashback.com
  1120.           The message body should contain the word subscribe
  1121.           followed by one of above lists names. E.g.
  1122.               subscribe mt-flashback
  1123.           
  1124.           Send for intro (article 9001), help, index or fullindex
  1125.           to flashback@flashback.com.
  1126.           ftp archives on draco.nova.edu pub/sunflash
  1127.           WWW files on draco.nova.edu pub/sunflash/www
  1128.           URL ftp://draco.nova.edu/pub/sunflash/www/index.html
  1129.  
  1130.  
  1131.     NOTE!!!  if you wish to be added to one of the above mailing lists,
  1132.              send mail to the REQUEST address!  Do not send add requests 
  1133.          to the main address!
  1134.  
  1135.     Last Updated:  Sept 25, 1995.
  1136.  
  1137. 24)    How do I use Mac floppies in a SUN drive?
  1138.     
  1139.     You can not use "real" Mac floppies without buying either
  1140.     one of the emulator packages like Liken from Andataco(?) or
  1141.     Mae from Apple (only runs on Solaris2.3 or above). They
  1142.     is another product or two that just allows you to mount
  1143.     Macintosh floppies onto your Sun but the vendors
  1144.     and product names escape me now.
  1145.  
  1146.     That said if all you want to do is exchange files
  1147.     the easiest way is to use suntar on the Macintosh to
  1148.     copy files to a "high density" floppy.  Then you can use 
  1149.     "tar" or "bar" on the Sun to get the files off this floppy.
  1150.     It is available from ftp.ececs.uc.edu (129.137.8.99)
  1151.     as /pub/sun-faq/Source/suntar-203.hqx or visit
  1152.     the Info Mac archives at wuarchive.wustl.edu.
  1153.  
  1154.     or
  1155.  
  1156.     You could use the Apple File Exchanger to translate
  1157.     the files to MS-DOS format. Then use one of the many 
  1158.     methods for transferring MS-DOS disks to Sun. System 7.5 now
  1159.     mounts dos floppies automatically no need for Apple File
  1160.     Exchanger.
  1161.  
  1162.     These methods should only be used with files like ascii files,
  1163.     wordprocessor files, and  spreadsheet data files. Mac
  1164.     application programs should not be transfered.
  1165.     
  1166.     Finally, low density Mac floppies are not compatable
  1167.     with Sun floppy drives. 
  1168.     
  1169.     Last Updated:  January 27, 1995.
  1170.  
  1171.  
  1172. 25)    How can I transfer floppies back and forth between MS-DOS and Sparc?
  1173.  
  1174.     For Solaris2.2 and above you can use the Volume Manager to
  1175.     control your disks and CD-ROM's. Under SunOS 4.0 there are two 
  1176.     packages which allow you to do mount floppies (mtools and mntdisk).
  1177.     Both of these packages use the 3-1/2inch floppy drive available
  1178.         on most SPARCstations.  Mntdisk can be used to manage CD-ROMS
  1179.     and other removable media types as well.
  1180.  
  1181.     With the advent of the Volume manager in Solaris2.2 these programs
  1182.     have been rendered somewhat obsolete. Under Solaris2.x use
  1183.     volcheck -v to check in a floppy. Than you can use normal UNIX
  1184.     commands on this floppy like cd, mkdir, cp, mv, and ls. It usually 
  1185.     gets mounted on /vol/floppy0
  1186.  
  1187.     Mtools writes directly to the floppy device and it does not
  1188.     require any special privileges. It is faster than mntdisk
  1189.     but it requires the user to learn a new set of commands.
  1190.     A copy of mtools can be found at 
  1191.  
  1192.         prep.ai.mit.edu:/pub/gnu/
  1193.  
  1194.     With the proper changes to the source code mtools can even
  1195.     be made to work with the Solaris2.x Volume Manager. All 
  1196.     you need to do is make mtools look in /vol/dev/diskette/...
  1197.     for the floppy devices. 
  1198.  
  1199.     mntdisk "mounts" the floppy using the "pcfs" filesystem type. Once
  1200.     mounted you can use regular UNIX commands(cp,mv,and rm)
  1201.     to access it. The pcfs filesystem is quite slow compared
  1202.     to using mtools above.  Mntdisk is available in your local 
  1203.     comp.sources.misc archive, Volume 22, Issues 31-33. 
  1204.     Mntdsk can be used to mount CD-ROMS and even UFS floppies.
  1205.  
  1206.     You should never use "setuid" shell scripts for mounting floppies.
  1207.     Also, C programs that use the system() function call should
  1208.     not be used either. Both can open up huge security holes
  1209.     which hackers can be used to break into your system.
  1210.  
  1211.     
  1212.     Last Updated:  January 27, 1995.
  1213.  
  1214.  
  1215. 26)    Why is my biff not "biffing" when using biff in a networked
  1216.     environment?
  1217.  
  1218.     In its current form comsat/biff are only usable on the mail
  1219.     server. You need to replace them network capable programs.
  1220.  
  1221.     A shar file containing network capable versions of comsat
  1222.     and biff is available from ftp.ececs.uc.edu. Get the
  1223.     file /pub/sun-faq/Source/biff-comsat.
  1224.  
  1225. 27)    How do I disable L1-A(STOP-A) or re-map it?
  1226.  
  1227.     You need to get one of the many re-mapping programs. You
  1228.     can get it from:
  1229.  
  1230.         ftp.ececs.uc.edu:/pub/sun-faq/Source/disable-L1-A.tar.Z
  1231.  
  1232.     Always password protect your NVRAM. Set the security 
  1233.     to command otherwise anyone can set this password
  1234.     to anything they want. Of course you can get it back
  1235.     as root by doing a strings /dev/eeprom and it should
  1236.     show up in plain text. This assumes you have root
  1237.     access.
  1238.  
  1239. 28)     Why are all the local users "unknown" when using sendmail under 4.1.2?
  1240.  
  1241.     There is a known problem with sendmail and frozen config
  1242.     files under 4.1.2.
  1243.  
  1244.     The fix is to remove /etc/sendmail.fc. Also, You could 
  1245.     try moving it to the end of /etc/rc.local.
  1246.     
  1247.     However, the best "fix" may be to install the new Berkeley 
  1248.     Sendmail it has a number of enhancements, performance
  1249.     improvements, and security enhancements.
  1250.     
  1251.     You can get Berkeley sendmail from ftp.cs.berkeley.edu(128.32.149.78).
  1252.     Get the following files: /ucb/sendmail/*8*6*9*
  1253.                  /ucb/4bsd/db.tar.Z
  1254.     Also, you will need bind 4.9 and it can be found on
  1255.     gatekeeper.dec.com(16.1.0.2) in the /pub/BSD/bind/4.9
  1256.     directory.
  1257.  
  1258.     Finally, if you do not want to build the Berkeley sendmail for
  1259.     yourself I will be willing to mail you a copy.
  1260.  
  1261. 29)    What are the dump parameters for an exabyte 8200 or 8500?
  1262.  
  1263.     8200 -- dump 0budfs 126 54000 /dev/rst0 6000    /filesystem
  1264.     8500 -- dump 0budfs 126 54000 /dev/rst0 13000   /filesystem
  1265.  
  1266.     Under 4.1.2 and above you should use rst8. Previous SunOS versions
  1267.     did not do anything special for the 8500.
  1268.  
  1269.     These parameters are not needed for Solaris 2.x because it can 
  1270.     do the right thing if it reaches EOT (end of tape).
  1271.  
  1272.     Sept 20, 1995
  1273.  
  1274. 30)    What are the guidelines for setting up swap space ?
  1275.  
  1276.     In SunOS 4.x the amount of swap space and Virutal memory 
  1277.     are one and the same so you need at least as much swap
  1278.     as real memory.
  1279.  
  1280.     In SunOS 5.x the amount of Virutal memory is equal
  1281.     swap space plus real memory. Under SunOS 5.x you
  1282.     can actually get away with having no swap space at
  1283.     all. We are running a SPARCserver 1000 with no swap
  1284.     and 192-Meg of real memory.  Of course you will
  1285.     end up wasting some space because things that really
  1286.     could be swapped out can not be.
  1287.  
  1288.     The old rule of thumb is 1.5 to 2 times real memory. This
  1289.     can lead to wasted disk space (by having too much swap
  1290.     space) or to not having enough. What you need to do
  1291.     is to estimate your swap space needs.
  1292.  
  1293.     Of course if you under-estimate your swap needs or periodically
  1294.     need additonal swap space you can use mkfile to create 
  1295.     a swapfile (ie mkfile 25m swapfile). Do not use the "-n"
  1296.     option on local swap files. This option should be only
  1297.     used for NFS mounted swap space.
  1298.  
  1299.     To use you new swap space  you can use the following
  1300.     commands:
  1301.  
  1302.         swapon /fullpath/to/file    -- SunOS 4.x
  1303.     or
  1304.         swap  -a /fullpath/to/file    -- SunOS 5.x
  1305.  
  1306.     To delete the swap space under SunOS 4.x you have
  1307.     to reboot.  In SunOS 5.x you can delete swap space 
  1308.     using swap -d .
  1309.  
  1310.     You can also turn swap space into filesystem space by mounting a
  1311.     tmpfs filesystem in swap.  A tmpfs file is not completely
  1312.     equivalent to a disk file, since file and record locking is not
  1313.     supported.  However tmpfs is nice since you now have one block of
  1314.     disk being shared by the swap space and the filesystem, with the
  1315.     split being dynamically changed depending on usage.
  1316.  
  1317.     Finally, if you use X and tend to leave many applications in core
  1318.     in various windows, you'll need much more swap space.
  1319.  
  1320.     Last Updated: July  7, 1995.
  1321.  
  1322. 31)    What are the general guidelines for maxusers to be set to on machine X?
  1323.  
  1324.     This question is being written.
  1325.  
  1326. 32)    What does "zsN: silo overflow" mean?
  1327.  
  1328.         The CPU serial ports - both ordinary serial ports A and B, and
  1329.         the port for the keyboard and mouse - use the Zilog Z8530 SCC
  1330.         chip.  That chip has a 3-character on-board buffer called the
  1331.         "silo".  If a character arrives in the silo, the chip interrupts
  1332.         the CPU at a high priority, and the interrupt service routine
  1333.         reads the character out of the silo.
  1334.  
  1335.         If the interrupt isn't serviced in time, more than 3 characters
  1336.         can be placed in the silo by the chip; if so, the chip notes
  1337.         that the silo "overflowed", and the interrupt service routine,
  1338.         when called, will note that a "silo overflow" occurred.
  1339.  
  1340.         If the machine is printing a message from the kernel, interrupts
  1341.         from the chip will be held off; if the message takes long enough
  1342.         to print, and characters are coming in quickly enough on the
  1343.         serial port, more than 3 can arrive, and a "silo overflow" will
  1344.         occur.
  1345.  
  1346.         It is possible that a machine that's sufficiently busy in other
  1347.         code that runs with interrupts held off could get a silo
  1348.         overflow as well.
  1349.  
  1350. 33)    What does the "N" in "zsN: silo overflow", and other "zsN" messages,
  1351.     signify?
  1352.  
  1353.         The name "zsN" is ambiguous.
  1354.  
  1355.         In kernel "config" files, and in the boot-time autoconfig
  1356.         messages, "zs0" is the first on-board Z8530 chip, the two
  1357.         channels of which handle "ttya" and "ttyb", respectively, and
  1358.         "zs1" is the second on-board Z8530 chip, the two channels of
  1359.         which handle the keyboard and mouse ports, respectively.
  1360.  
  1361.         In "zsN: silo overflow" messages and the like:
  1362.  
  1363.                 "zs0" is the A channel on the first on-board Z8530, handling
  1364.                     "ttya";
  1365.  
  1366.                 "zs1" is the B channel on the first on-board Z8530, handling
  1367.                     "ttyb";
  1368.  
  1369.                 "zs2" is the A channel on the second on-board Z8530, handling
  1370.                     the keyboard;
  1371.  
  1372.                 "zs3" is the B channel on the second on-board Z8530, handling
  1373.                     the mouse.
  1374.  
  1375.         So a "zs0: silo overflow" error is for "ttya", and a "zs1: silo
  1376.         overflow" error is for "ttyb", not for the keyboard or mouse.
  1377.         Keyboard silo overflows are "zs2: silo overflow"; mouse silo
  1378.         overflows are "zs3: silo overflow".
  1379.  
  1380.  
  1381. 34)    How do I set up a Sun serial port both for dial-in and dial-out?
  1382.  
  1383.         You need to read Chapter 11 in  the "Systems and Network 
  1384.     Administration" manual.
  1385.  
  1386.  
  1387. 35)    I can't get my Sun, running SunOS 4.1[.x], to establish a UUCP
  1388.     connection to some non-Sun machine; it won't log in.  What's wrong?
  1389.  
  1390.         The 4.1[.x] UUCP normally runs in even-parity mode when logging
  1391.         into another machine.  If the other machine is running in 8
  1392.         bits, no parity, mode, the fact that the 8th bit is set on some
  1393.         of the characters the Sun is sending to it will confuse it.
  1394.  
  1395.         The Sun can be made to turn the 8th bit off by putting
  1396.         P_ZERO into the "expect / send" sequence for dialing.
  1397.         Good places are /etc/uucp/Systems or /etc/uucp/Dialers.
  1398.         Putting it into the Dialers file has the advantage, that
  1399.         it's compatible with Taylor UUCP 1.04 and 1.05. You might
  1400.         want Taylor UUCP for better UUCP throughput using Taylor
  1401.         UUCP's bidirectional i-proto. Here is an example for the
  1402.         /etc/uucp/Dialers file, it introduces additionally the
  1403.         option of using Hardware Handshaking between modem and
  1404.         computer:
  1405.  
  1406.         zyxel =,-, "" P_ZERO "" \dA\pTM1S42.6=1\r\c OK\r
  1407.                        \EATDT\T\r\c CONNECT STTY=crtscts
  1408.  
  1409.         Note: this has to be _ONE_ line !!!
  1410.  
  1411.  
  1412.     Last Updated: April  27, 1995.
  1413.  
  1414. 36)    Do the Sun serial ports support RTS/CTS flow control?
  1415.  
  1416.         The serial port hardware can do CTS-based control of the flow of
  1417.         data *from* the Sun *out* the serial port automatically.  The
  1418.         tty driver option for that is the CRTSCTS option; it can be
  1419.         specified in:
  1420.  
  1421.                 the "printcap" "ms" capability for a printer;
  1422.  
  1423.                 in the "gettytab" "ms", "m0", "m1", or "m2" capabilities
  1424.                 for a dial-in port;
  1425.  
  1426.                 the "STTY=" option for a dial-out line for UUCP or "cu"
  1427.                 [check the UUCP documentation for details];
  1428.  
  1429.         and can be specified with the "hf" capability in "/etc/remote"
  1430.         for "tip".
  1431.  
  1432.         The hardware cannot directly do RTS-based control of the flow of
  1433.         data *into* the Sun, and the software does not currently support
  1434.         controlling the flow of data into the Sun with RTS.
  1435.  
  1436.         NOTE: the EEPROM options in newer Suns do not affect the flow
  1437.  
  1438.         control performed by the OS; in fact, the OS ignores the
  1439.         "ttya-mode", "ttyb-mode", "ttya-rts-dtr-off", and
  1440.         "ttyb-rts-dtr-off" EEPROM options entirely.  You don't need to
  1441.         set them to change the way the OS handles the tty, and even if
  1442.         you do set them, it won't change the way the OS handles the tty.
  1443.  
  1444.     Sun has released a new jumbo tty patch 100513-04 for SunOS 4.1.2 
  1445.     and 4.1.3 that incorporates changes to the tty driver to
  1446.     support RTS/CTS handshaking. Anyone trying to get RTS/CTS
  1447.     handshaking to work should get this patch.
  1448.  
  1449.  
  1450. 37)    How do I specify that a serial port should, or should not, ignore the
  1451.     state of the Carrier Detect line?
  1452.  
  1453.         Prior to SunOS 4.1, you do so either by:
  1454.  
  1455.                 changing the "flags" field for the serial port device in the
  1456.                 kernel "config" file, re-running "config", rebuilding
  1457.                 the kernel, and rebooting with the new kernel;
  1458.  
  1459.         or, on the Sun-4c machines:
  1460.  
  1461.                 changing the setting of the "ttya-ignore-cd" or
  1462.                 "ttyb-ignore-cd" EEPROM settings if the port is one of
  1463.                 the CPU serial ports.
  1464.  
  1465.         In SunOS 4.1 (and, I think, some SunOS 4.0[.x] releases for the
  1466.         Sun386i), you do so by changing the "/etc/ttytab" line for the
  1467.         port in question to have the "local" attribute if CD is to be
  1468.         ignored, or not to have it if CD is not to be ignored, and
  1469.         running the "ttysoftcar" command to tell the kernel that the
  1470.         status of the "ignore CD" flag should be changed.
  1471.  
  1472.         In 4.1, there's no need to change the EEPROM setting to change
  1473.         SunOS's behavior; it may affect the PROM's behavior, but that's
  1474.         the only reason why it'd be necessary.
  1475.  
  1476. 38)    I put in a new "termcap" entry, or updated an existing "termcap" entry,
  1477.     for a terminal, but "vi" doesn't seem to know about my change.  Why?
  1478.  
  1479.         The "vi" in SunOS 4.1[.x] is based on the System V Release 3.1
  1480.         "vi", because that version of "vi" supports 8-bit character
  1481.         sets.  That version of "vi" uses "terminfo", not "termcap"; you
  1482.         have to change the "terminfo" entry for the terminal.
  1483.  
  1484.         You may first have to convert the compiled "terminfo" entry to a
  1485.         text entry; "/usr/5bin/infocmp -I <terminal-type>" will write
  1486.         the text of the "terminfo" entry for the terminal
  1487.         <terminal-type> to its standard output.
  1488.  
  1489.         If you already have a "termcap" entry, you can convert it to a
  1490.         "terminfo" entry with "/usr/5bin/captoinfo".
  1491.  
  1492.         A text "terminfo" entry must be recompiled in order for programs
  1493.         using "terminfo" to use it; "/usr/5bin/tic" will recompile it.
  1494.  
  1495. 39)    I have a Type 5 keyboard, and find its placement of the Caps Lock,
  1496.     Control, and Esc keys inconvenient.  How do I remedy this?
  1497.  
  1498.         Well, one remedy may be to buy the "UNIX layout" version of the
  1499.         Type 5; this option seems, unfortunately, to be little-known to
  1500.         Sun customers, and Sun may not be promoting it as they should.
  1501.         That keyboard has a layout much more friendly to the traditional
  1502.         UNIX user than do the normal PC-style layouts for the Type 5.
  1503.  
  1504.         If you don't have that option, you can use the appropriate
  1505.         program to reprogram the keys; see the next question.
  1506.  
  1507. 40)    How can I move keys around on a Sun keyboard, for example exchanging the
  1508.     Caps Lock and Control keys on a Type 5 keyboard?
  1509.  
  1510.         It depends on which window system you're running, if any.
  1511.  
  1512.         If you're not using any window system, or you're using a window
  1513.         system such as SunView that uses the OS's keyboard event
  1514.         translation mechanism, you can dump the tables used by the OS's
  1515.         keyboard event translation mechanism with the "dumpkeys"
  1516.         command, and load changes to that table with the "loadkeys"
  1517.         command; see LOADKEYS(1).
  1518.  
  1519.         If you're using X11 - either in its MIT incarnation, or Sun's
  1520.         Open Windows incarnation - or some other window system that
  1521.         shuts off the OS's keyboard event translation mechanism, you
  1522.         need to use the window system's commands, if any, for that
  1523.         function.
  1524.  
  1525.         In X11, the command for that is "xmodmap"; its translation
  1526.         tables can be printed with "xmodmap -pk", and changes to that
  1527.         table can be loaded with "xmodmap" as well.
  1528.  
  1529.         NOTE: in the particular case of the Control and Caps Lock keys,
  1530.         while MIT X appears to handle interchanging those two keys
  1531.         correctly, so that the new Caps Lock key is a toggle and the new
  1532.         Control key is not, some versions of Open Windows do not - even
  1533.         though the keys have had their mappings exchanged, the window
  1534.         system server still thinks that the *old* Caps Lock key, which
  1535.         is now the Control key, should be a toggle, and that the *old*
  1536.         Control key, which is now the Caps Lock key, should not be a
  1537.         toggle.
  1538.     [Here is a work-around for this problem, provided by Mark Plotnick
  1539.     (mp@allegra.att.COM)]:
  1540.     Copy the appropriate keytable (e.g. /usr/openwin/etc/keytables/US4.kt)
  1541.     to $HOME/.keytable, and change the 2nd attribute character in a key's
  1542.     attributes field to N or P depending on whether the key should have 
  1543.     "pseudolock".
  1544.     $ diff /usr/openwin/etc/keytables/US4.kt /usr/gre/.keytable
  1545.     78,79c78,79
  1546.     < lock  119                     # CapsLock
  1547.     < control        76                     # Control
  1548.     ---
  1549.     > lock   76                     # CapsLock
  1550.     > control       119                     # Control
  1551.     226c226
  1552.     < 76    NN      XK_Control_L
  1553.     ---
  1554.     > 76    NP      XK_Caps_Lock
  1555.     278c278
  1556.     < 119   NP      XK_Caps_Lock
  1557.     ---
  1558.     > 119   NN      XK_Control_L
  1559.  
  1560.  
  1561. 41)    My Sun doesn't have an ANSI C compiler.  How can I get one?
  1562.  
  1563.         SunOS releases prior to 5.x come with a C compiler. However,
  1564.         it was an old compiler, and it didn't support ANSI C syntax or 
  1565.         ANSI C features.
  1566.  
  1567.     The SunSoft Catalyst CD #5 contains the binaries for the GNU C 
  1568.     compiler for Solaris 1.x and 2.x. You should get the latest
  1569.     version of GCC and compile it using this compiler. 
  1570.  
  1571.         Many vendors offer ANSI C compilers for SunOS.  Sun sells Sun C
  1572.         1.1 for SPARC, which includes an ANSI C compiler (although not a
  1573.         full ANSI C environment, i.e. it doesn't necessarily include all
  1574.         the ANSI C include files or library routines); various other
  1575.         vendors (Lucid? Others?) sell ANSI C compilers as well.
  1576.  
  1577.         The Free Software Foundation's GCC also supports ANSI C syntax
  1578.         and ANSI C features. It can be FTP'ed in source form from many
  1579.         sites, and in binary form from some sites. 
  1580.  
  1581.     A compiled version of the latest GCC for SunOS 5.x is available from 
  1582.     prep.ai.mit.edu. The directory containing these files is
  1583.  
  1584.         /pub/gnu/sparc-sun-solaris2
  1585.  
  1586.     You need to get the following files:
  1587.         
  1588.         gzip-binaries-1.x.x.tar    
  1589.         INSTALL.gcc
  1590.         gcc-binaries-2.x.x.tar.gz
  1591.  
  1592.     Note: You need the gzip binaries to ungzip the gcc binaries.
  1593.  
  1594.     After obtaining GCC, you will need to run fixincludes. 
  1595.     The INSTALL.gcc file will tell you how.
  1596.  
  1597.     Note: The following sites mirror the GNU software distribution
  1598.           from prep.ai.mit.edu:
  1599.  
  1600.         ASIA:         utsun.s.u-tokyo.ac.jp:/ftpsync/prep,
  1601.             cair-archive.kaist.ac.kr:/pub/gnu/gnu.mit   
  1602.         AUSTRALIA:     archie.oz.au:/gnu (archie.oz or archie.oz.au for ACSnet)
  1603.         AFRICA:     ftp.sun.ac.za:/pub/gnu
  1604.         MIDDLE-EAST:     ftp.technion.ac.il:/pub/unsupported/gnu
  1605.         EUROPE:     irisa.irisa.fr:/pub/gnu, grasp1.univ-lyon1.fr:pub/gnu,
  1606.               ftp.mcc.ac.uk, unix.hensa.ac.uk:/pub/uunet/systems/gnu,
  1607.               src.doc.ic.ac.uk:/gnu, ftp.win.tue.nl, ugle.unit.no,
  1608.             ftp.denet.dk, ftp.informatik.rwth-aachen.de:/pub/gnu,
  1609.             ftp.informatik.tu-muenchen.de, ftp.eunet.ch, 
  1610.             nic.switch.ch:/mirror/gnu, nic.funet.fi:/pub/gnu,
  1611.             isy.liu.se, ftp.stacken.kth.se,
  1612.             ftp.luth.se:/pub/unix/gnu, archive.eu.net
  1613.            CANADA: ftp.cs.ubc.ca:/mirror2/gnu
  1614.         USA:     wuarchive.wustl.edu:/mirrors/gnu, labrea.stanford.edu,
  1615.           ftp.kpc.com:/pub/mirror/gnu, ftp.cs.widener.edu,
  1616.           col.hp.com:/mirrors/gnu, ftp.cs.columbia.edu:/archives/gnu/prep,
  1617.           gatekeeper.dec.com:/pub/GNU, ftp.uu.net:/systems/gnu
  1618.  
  1619.  
  1620.     You should check the site close to you before ftping to
  1621.     prep.
  1622.  
  1623.  
  1624. 42)    How do I change the time zone setting on my machine?
  1625.  
  1626.         In releases prior to SunOS 4.0, you will have to reconfigure
  1627.         your kernel, recompile it, install the new kernel, and reboot.
  1628.         See the documentation on kernel configuration.
  1629.  
  1630.         In SunOS 4.0 and later releases, you will need to run the "zic"
  1631.         command with the "-l" flag, with the appropriate time zone
  1632.         setting as the argument.  For example, to set the time zone to
  1633.         US Eastern Time, do:
  1634.  
  1635.                 zic -l US/Eastern
  1636.  
  1637.         to set it to the proper setting for Great Britain and Eire, do:
  1638.  
  1639.                 zic -l GB-Eire
  1640.  
  1641.         and so on.
  1642.  
  1643.         You will then probably want to reboot your machine, in order to:
  1644.  
  1645.                 1) cause any daemons started before the time zone was
  1646.                    changed to restart, and pick up the new time zone;
  1647.  
  1648.                2) run "tzsetup" for the benefit of old pre-SunOS 4.0
  1649.                    binaries, old programs not converted to use the new
  1650.                    routines to convert local time to UNIX time, and
  1651.                    Calendar Manager.
  1652.  
  1653.         You can also manually link "/usr/share/lib/zoneinfo/localtime"
  1654.         to the appropriate time zone file, but there's really no point
  1655.         in doing so when "zic -l" will do that for you.
  1656.  
  1657.         In Solaris 2.x, you do it the same way you do it on any other
  1658.         SVR4 system - you put a line that says
  1659.  
  1660.                 TZ=<time zone name>
  1661.  
  1662.         in "/etc/TIMEZONE", or change the existing line, and reboot.
  1663.         SVR4 includes the "Arthur Olson" time zone code that SunOS 4.x
  1664.         also uses, although not all SVR4 systems supply the time zone
  1665.         files for it; Solaris 2.0 does.
  1666.  
  1667.  
  1668. 43)    I'm getting messages that say one of the following:
  1669.          proc: table is full    and/or
  1670.             file: table is full    and/or
  1671.             dquot: table is full     and/or
  1672.             inode: table is full
  1673.          What do these errors mean, and how do I fix the problem?
  1674.  
  1675.         In SunOS releases prior to 5.0, many tables in the system are
  1676.         allocated once at system startup time, with a fixed size, and do
  1677.         not grow in size.  If the system needs more entries than are
  1678.         present in that table to perform some operation, it can't
  1679.         perform the operation, and it will log a message and return a
  1680.         failure indication.
  1681.  
  1682.         The sizes of the tables in question are based on the "maxusers"
  1683.         value in the configuration file for your kernel; to increase the
  1684.         size of the table, change the configuration file for your kernel
  1685.         to have a larger "maxusers" value, re-run "config" on that file,
  1686.         rebuild the kernel, install the new kernel, and reboot.
  1687.  
  1688.         SunOS 4.1 and later shouldn't get "inode: table is full", as
  1689.         that table is dynamically allocated; SunOS 5.0 should
  1690.         dynamically allocate entries in most if not all of those tables.
  1691.  
  1692.        I did that, and I'm still getting that message.  What do I do now?
  1693.  
  1694.         Presumably, then, either:
  1695.  
  1696.                 1) you didn't increase "maxusers" enough
  1697.  
  1698.         or
  1699.  
  1700.                 2) some process is consuming resources from the table in
  1701.                    question without bound.
  1702.  
  1703.  
  1704.     Note: SunOS kernels(up to 4.1.3) by default allow the user to use 
  1705.           all available process slots(except for the last 5). 
  1706.  
  1707.           If you are running out of process slots you may want to 
  1708.           change the kernel parameter that controls the maximum number
  1709.           of per user processes. You can change this in the param.c
  1710.           in /sys/conf.common. You will need to change the following
  1711.           define:
  1712.  
  1713.             #define MAXUPRC (NPROC - 5)
  1714.  
  1715.           to something more reasonable like
  1716.  
  1717.             #define MAXUPRC (NPROC - 5)/2
  1718.  
  1719.           After making this change you should re-config and re-build
  1720.           your kernel.
  1721.  
  1722.         The "proc" table has one entry for every process on the system;
  1723.         if it's overflowing, some process on the system may be creating
  1724.         new processes over and over again.  If you can, do a "ps -ax" to
  1725.         see what processes are on the system, and see if that gives any
  1726.         clues as to what process, if any, is spawning those other
  1727.         processes.
  1728.         
  1729.  
  1730.         The "file" table has one entry for every "active file
  1731.         descriptor" on the system; each time an "open", "dup", "socket",
  1732.         etc. call is made, a new "active file descriptor" is required.
  1733.         There's no way of finding out what process or processes are
  1734.         consuming file descriptors that's as convenient as "ps" can be
  1735.         for finding out what process or processes are spawning additional
  1736.         processes; "/usr/etc/pstat -f" will print the "open file table"
  1737.         of "active file descriptors", but it's tricky for the novice
  1738.         user, programmer, or administrator to interpret the output of
  1739.         "pstat -f", and that output doesn't indicate which processes are
  1740.         using a given "active file descriptor".
  1741.  
  1742.  
  1743. 44)     Blank at present.
  1744.  
  1745. 45)     How do I run both OpenWindows and MIT X11R5?
  1746.  
  1747.     OpenWindows 2.0 is compatible with X11R3 plus some extensions,
  1748.     OpenWindows 3.0 is compatible with X11R4, and  OpenWindows 3.3 
  1749.     is completely standard X11R5 with Display Postscript extensions
  1750.     added and many Sun hardware-specific performance improvements.
  1751.  
  1752.     To get X11R5(or R4) applications to run under Openwindows you will
  1753.     need to set the appropriate LD_LIBRARY_PATH. 
  1754.  
  1755.         Assuming you installed the MIT libraries in
  1756.         /usr/lib and the OpenWindows libraries are in
  1757.         /usr/openwin/lib, set the following before you start the
  1758.         windowing system:
  1759.  
  1760.         MIT X11R4 environment
  1761.  
  1762.                 set path = (/usr/bin/X11 $path)
  1763.                 setenv LD_LIBRARY_PATH /usr/lib
  1764.  
  1765.        OpenWindows
  1766.  
  1767.                 set path = (/usr/openwin/bin /usr/openwin/demo $path)
  1768.                 setenv LD_LIBRARY_PATH /usr/openwin/lib
  1769.  
  1770.         You can also run clients from one environment under a different
  1771.         server on a one command at a time basis.  This example runs a
  1772.  
  1773.          OpenWindows client under the MIT server:
  1774.  
  1775.                 (setenv LD_LIBRARY_PATH /usr/openwin/lib; x_soundtool)
  1776.  
  1777.  
  1778.     A better way to handle this(in the long run) is to re-compile 
  1779.     the X server clients to include a "hard" coded shared library
  1780.     search path. You will need to link the clients with -L
  1781.     option.  For example, if your X11 libraries are installed
  1782.     in /usr/local/lib/X11 you will link your application by
  1783.  
  1784.            cc -o app app.c -L/usr/local/lib/X11 -lX11 -lXext
  1785.  
  1786.     By doing this to all applications you can eliminate the need
  1787.     to set the LD_LIBRARY_PATH. 
  1788.  
  1789.     For applications that you do not have source for you should
  1790.     write a shell script wrapper similar to the following:
  1791.  
  1792.     #!/bin/sh
  1793.     LD_LIBRARY_PATH=/usr/local/lib/X11; export LD_LIBRARY_PATH
  1794.     /usr/local/bin/X11/xterm.bin $*
  1795.     
  1796.  
  1797.     Note: Source code for the Xview toolkit and MIT X11R5 are
  1798.           available from prep.ai.mit.edu. 
  1799.  
  1800.  
  1801.         The OpenWindows server has the ability to display PostScript that
  1802.         several of the OpenWindows applications require to run.  Sun's
  1803.         AnswerBook is an example that requires PostScript.  These clients
  1804.         will not run under the MIT server.   
  1805.  
  1806.     You can get a limited PostScript preview capability under 
  1807.     either server with GNU Ghostscript, a GNU "copyleft" package
  1808.     available from various ftp sites.  
  1809.  
  1810.     Two enhanced versions of Ghostscript are also available,
  1811.         CSPreview and Ghostview, they both offer fancier preview capabilities.
  1812.         These programs are currently available via anonymous ftp:
  1813.  
  1814.         Ghostscript is on prep.ai.mit.edu (18.71.0.38) in /pub/gnu
  1815.         GSPreview   is on ftp.x.org (18.24.0.12) in /contrib
  1816.         Ghostview   is on prep.ai.mit.edu (128.105.2.196) in /pub/gnu
  1817.  
  1818.  
  1819. 46)    Where do I find a "restricted" shell for SunOS?
  1820.  
  1821.     /usr/lib/rsh is a "restricted" Bourne shell.
  1822.  
  1823.         This "restricted" shell is easy to break out of; consider
  1824.         that most editors have a shell escape, for example. Building
  1825.         a window-dressing restricted environment is easy; building
  1826.         a real restricted environment is hard.
  1827.  
  1828.  
  1829. 47)    Will SunOS 4.1.x binaries run under SunOS 5.x?
  1830.  
  1831.         Yes they will, with some restrictions. The most significant is
  1832.         that the binary in question must have been "dynamically linked."
  1833.         Otherwise, you will get the message
  1834.  
  1835.         Bad system call (core dumped)
  1836.  
  1837.         immediately when starting the 4.1.x binary on SunOS5.
  1838.  
  1839.     As of SunOS 5.3 "statically" linked binaries will now run
  1840.     in binary compatabilty mode.
  1841.  
  1842.         Finally, bear in mind that there may be a performance  penalty
  1843.     for using  binary compatabilty mode applications.
  1844.  
  1845.     Last Updated:  August 2, 1995.
  1846.  
  1847.  
  1848. 48)    When I try to compile MITs X11R4 applications under Openwindows 3.0,
  1849.     I get the following "undefined" symbols(_get_wmShellWidgetClass, and
  1850.     _get_applicationShellWidgetClass). What is the Problem?
  1851.  
  1852.     There are problems with the Xmu shared library as shipped from Sun.
  1853.  
  1854.     There are two "fixes". One is to get the Openwindows patches
  1855.     that apply to this problem and the other is to "statically" link
  1856.     the Xmu library into the executable.
  1857.  
  1858.     The patches you will need are as follows:
  1859.  
  1860.         Patch i.d.      Bug i.d.'s      O/S     Description
  1861.         ----------      -------------------------------------------------------
  1862.         100512-04       1086793 1086912     4.1.x OpenWindows 3.0 libXt 
  1863.             1074766         Jumbo patch
  1864.  
  1865.         100573-04       1087332         4.1.x OpenWindows 3.0 undefined
  1866.                         symbols when using shared
  1867.                         libXmu.
  1868.  
  1869.     Note: Always use the latest version of the above patch that you can 
  1870.           find.
  1871.  
  1872.     To "statically" link your executable with libXmu modify the
  1873.     compile line as follows:
  1874.  
  1875.           -Bstatic -lXmu -Bdynamic 
  1876.  
  1877.  
  1878. 49)    What is Solaris?
  1879.     
  1880.     Solaris consists of the following facilities:
  1881.  
  1882.         1) SunOS 
  1883.         2) Openwindows
  1884.         3) Openwindows deskset tools
  1885.         4) ONC networking products and services(which includes NFS
  1886.            and NIS)
  1887.  
  1888.     Solaris is not an operating system but a "complete" user
  1889.     environment.
  1890.  
  1891.     A chart of Solaris versions, and the corresponding SunOS, Open 
  1892.     Windows, and DeskSet versions:
  1893.  
  1894.           Solaris         SunOS           Open Windows    DeskSet
  1895.           1.0             4.1.1           2.0             2.0
  1896.           1.0.1           4.1.2           2.0             2.0
  1897.           1.1             4.1.3           3.0             3.0
  1898.           1.1.1(a)        4.1.3_U1        3.0_U1*         3.0_U1*
  1899.           1.1.1(b)        4.1.3_U1_B      3.0_U1*         3.0_U1*
  1900.  
  1901.     Note: The "uname" output for 4.1.3_U1_B may only not contain
  1902.           the '_B' information.
  1903.  
  1904.           2.0             5.0             3.0.1           3.0.1
  1905.           2.1             5.1             3.1             3.1
  1906.           2.2             5.2             3.2             3.2
  1907.       2.3             5.3             3.3             3.3
  1908.       2.4             5.4             3.4             3.4
  1909.  
  1910.     *when patched with the patches on the 4.1.3_U1 CD.
  1911.  
  1912.  
  1913.     Last Updated: April  27, 1995.
  1914.  
  1915.  
  1916. 50)     What does the "nres_gethostbyaddr !=" error mean?
  1917.  
  1918.     This message is generating by Sun's resolver libraries and
  1919.     it is caused by incorrectly configured Domain Name 
  1920.     Server(the server that the resolver libraries are querying
  1921.     not necessarily the local Domain Name Server).
  1922.  
  1923.     The Domain Name Server probably lacks a reverse map entry for 
  1924.     that particular host. 
  1925.  
  1926.     Since this "bug" is closely associated with using ypserv,
  1927.     Sun has produced a patch to "ypserv" (bug #1039839). 
  1928.     Sun supplied a patch 100141-01 to quiet it, but the 
  1929.     patched version appears to die silently at random times,
  1930.     so Sun now has a new patch, 100141-02. Do not install this
  1931.     patch unless you are really getting a lot of these messages.
  1932.  
  1933.  
  1934. 51)     How come my mouse only works in the vertical(or horizontal) direction,
  1935.     how do I repair it?
  1936.  
  1937.  
  1938.     Check the rotation of the PAD. Turn it 90 degrees and see if it
  1939.     works any better. The mouse will only work properly
  1940.     if the mouse pad is oriented properly. Make sure that the long 
  1941.     side of the pad along the horizontal and the short side
  1942.     the vertical.
  1943.  
  1944.     Also, check to make sure that you have the right mouse pad. The
  1945.     newer the mouse the smaller the pad. 
  1946.  
  1947.     Finally, if that does not work one of the LEDs on the under
  1948.      side of the mouse has probably "burnt" out.  Do not fooled
  1949.     by the fact that one of them is an infrared led (light that 
  1950.     is invisable to naked eye) and the other visible. 
  1951.  
  1952.     You can probably repair it yourself(if you can get a replacement 
  1953.     LED and you know how to use a Soldering Iron) by following
  1954.     a set of directions available from 
  1955.  
  1956.         ftp.ececs.uc.edu:/pub/sun-faq/Docs/FixingASunMouse
  1957.  
  1958.     Note: This discussion only applys to Type 4 optical mice and not
  1959.           the newer Type 5 mice.
  1960.     
  1961.     Last Updated: June  10, 1996.
  1962.  
  1963. 52)    After rebuilding the shared library libc it get some or all the 
  1964.     following undefined symbols: dlsym, dlopen, dlclose, mbstowcs_xccs,
  1965.             mbtowc_xccs,wcstombs_xccs, or wctomb_xccs.
  1966.  
  1967.  
  1968.     If you have just installed a new shared library under 4.1.2 or
  1969.     greater you need to modify the Makefile for the shared libraries
  1970.     and re-install. You will need to change the following line
  1971.  
  1972.         ld -assert pure-text `${OBJSORT} lorder-sparc tmp`
  1973.     to read 
  1974.         ld -assert pure-text `${OBJSORT} lorder-sparc tmp` -ldl
  1975.  
  1976.     Note: You should change both such lines.
  1977.  
  1978.      Also, you may need to do a mv xccs.multibyte. xccs.multibyte.o
  1979.     to eliminate the  mbstowcs_xccs, mbtowc_xccs, wcstombs_xccs,
  1980.     or wctomb_xccs symbols errors.
  1981.  
  1982.     The above can occur under SunOS 4.1.1 if you have installed 
  1983.     the "Linker Jumbo Patch"(Patch id# 100257-03 or greater). 
  1984.  
  1985.  
  1986. 53)    What does "No network locking on host" mean after upgrading to
  1987.     Solaris 2.0?
  1988.  
  1989.     Your SunOS 4.x(or above) machines are running an old version
  1990.     of rpc.lockd. You need to get and install patch number 
  1991.     100075-11 or greater to correct this problem.
  1992.  
  1993. 54)    Does Password Aging work with NIS(YP) ?
  1994.  
  1995.     Sun does not support password aging under NIS(OS version
  1996.     to 4.1.3). The rpc.yppasswdd needs to modified to make
  1997.     password aging work. 
  1998.  
  1999.     Password aging will only work under SunOS 5.3(Solaris2.3) 
  2000.     with NIS+.
  2001.  
  2002. 55)    What does "rpc.lockd: Cannot contact status monitor!" mean?
  2003.  
  2004.     For some reason rpc.lockd can not talk to rpc.statd. 
  2005.  
  2006.     Check to see if rpc.statd is running. If rpc.statd
  2007.     is not running re-start it. If rpc.statd is running, 
  2008.     kill it and restart it. You will need to kill and restart
  2009.     rpc.lockd too. 
  2010.  
  2011.     Use this procedure to restart rpc.lockd and rpc.statd.
  2012.  
  2013.         kill rpc.statd and rpc.lockd
  2014.         start rpc.statd
  2015.         wait a 10 seconds or so
  2016.         start rpc.lockd
  2017.  
  2018.     If this does not work kill rpc.statd and rpc.lockd 
  2019.     remove /etc/sm /etc/sm.bak directories and re-start the
  2020.     daemons using the above procedure..
  2021.  
  2022.  
  2023. 56)    How do I join the Sun User Group(SUG)?
  2024.  
  2025.     Here is the information on joining SUG.
  2026.  
  2027.         Sun User Group, Inc.
  2028.         1330 Beacon Street, Suite 315
  2029.         Brookline, MA 02146
  2030.         USA
  2031.         voice: +1 617 232-0514        fax: +1 617 232-1347
  2032.         office@sug.org 
  2033.  
  2034.     With your membership you get the following:
  2035.         
  2036.         *  Vendor Discounts
  2037.         *  Technical Conferences
  2038.         *  Software Distribution
  2039.         *  README Newsletter
  2040.         *  Annual Exhibits
  2041.         *  Local User Group Support
  2042.         *  Newsgroup comp.org.sug 
  2043.  
  2044.  
  2045. 57)    How do I increase the number of "pseudo" terminals(ptys) ?
  2046.  
  2047.     For SunOS4.1.x:
  2048.  
  2049.     To add more ptys you must install a new kernel. 
  2050.  
  2051.     The default number of "ptys" is  48.  To get more "ptys" 
  2052.     change the kernel config line "pseudo-device pty" to 
  2053.     "pseudo-device pty#" where '#" is the number of "ptys"
  2054.     you want. 
  2055.  
  2056.     Be warned the maximum number you can have is 256.
  2057.  
  2058.     You will need to run /dev/MAKEDEV pty[0-5] to create the
  2059.     /dev/ entries.
  2060.  
  2061.     For SunOS5.x:
  2062.  
  2063.     In /etc/system, add the line:
  2064.  
  2065.             set pt_cnt=nnn     -- nnn can have a value up to 3000.
  2066.     touch /reconfigure
  2067.     and reboot using 'init 6'.
  2068.  
  2069.     For BSD style ptys set npty in /etc/system to the desired 
  2070.     value(ie set npty=64).  You may need to make the ptys by
  2071.     hand and you will need to make likes from /dev to /devices for 
  2072.     these devices.  Finally, you will need to edit /etc/iu.ap to
  2073.     automatically push the appropriate streams compatibility modules
  2074.         onto the new devices. You need to replace the line reading
  2075.             "ptsl 0 15 ldterm ttcompat"
  2076.     with
  2077.             "ptsl 0 <NUM> ldterm ttcompat"
  2078.     where <NUM> was one less than the number of compatibility ptys you
  2079.     need.
  2080.  
  2081.  
  2082. 58)    Where are dump and restore under Solaris 2.x?
  2083.  
  2084.     dump is now called /usr/sbin/ufsdump
  2085.     restore is now called /usr/sbin/ufsrestore
  2086.  
  2087. 59)    How do I make the numeric keypad on a type 5 keyboard work with xterm?
  2088.  
  2089.         You need to patch the /usr/lib/X11/app-defaults/XTerm and
  2090.         $OPENWINHOME/lib/app-defaults/XTerm files as described in sun
  2091.         patch 100713-01 or later.
  2092.  
  2093. 60)    How do I swap the CAPS LOCK and CONTROL keys on a type 5 keyboard 
  2094.     under Openwindows 3.0?
  2095.  
  2096.         Don't do it with xmodmap, since that won't change the locking
  2097.         behavior of CAPS LOCK. Edit $OPENWINHOME/etc/keytables/US5.kt.
  2098.         There are two places where keys 119 (CapsLock) and 76 (Control)
  2099.         should be swapped: the MODMAP section and the KEYSYMMAP section.
  2100.         The latter is most important, because that's where the
  2101.         "Pseudo-Lock" function (which controls the locking behaviour of
  2102.         the key) is defined.
  2103.  
  2104. 61)    Which Sun models run which versions of SunOS?
  2105.  
  2106.       Sun-supported configurations:
  2107.  
  2108.       Sun2: SunOS 4.0.3 or earlier.
  2109.       Sun386i: SunOS 4.0, 4.0.1, 4.0.2 only.
  2110.       Sun3: SunOS 4.1.1_U1 or earlier.
  2111.       4/100, 4/200 series: SunOS 3.2, SunOS 4.0 or later.
  2112.       4/300 series: SunOS 4.0.3 or later.
  2113.       4/400 series: SunOS 4.1PSR_A or later.
  2114.       600 models 120, 140: SunOS 4.1.2 or later.
  2115.       600 model 41, 51: SunOS 4.1.3 or later.
  2116.       600 models 412, 512: Solaris 2.2 or later.
  2117.       600 model 514: Solaris 2.3 HW 8/94 or later.
  2118.       SPARCstation 1, 1+, SLC, IPC: SunOS 4.0.3 or later.
  2119.       SPARCstation 2, ELC, IPX: SunOS 4.1.1 or later.
  2120.       SPARCstation 10 models 20, 30, 40, 41, 51: SunOS 4.1.3 or later.
  2121.       SPARCstation 10 models 412, 512: Solaris 2.2 or later.
  2122.       SPARCstation 10 model 402: Solaris 2.2 or later.
  2123.       SPARCstation 10 model 514: Solaris 2.3 Hardware 8/94 or later.
  2124.       SPARCstation 20 models 50, 51, 61: SunOS 4.1.3_U1 revision B or later.
  2125.       SPARCstation 20 models 502, 514,612: Solaris 2.3 Hardware 8/94 or later.
  2126.       SPARCclassic, SPARCstation LX: SunOS 4.1.3C or later.
  2127.     SPARCstation Voyager: Solaris 2.3 HW 8/94 or later.
  2128.     SPARCstation 5: Solaris 1.1.1 Rev B or later.
  2129.     SPARCstation 20 model 71: Solaris 1.1.2 and Solaris 2.4 HW 11/94 or
  2130.             later.
  2131.     SPARCstation 20 model HS11: Solaris 1.1.2 and Solaris 2.4 HW 11/94 or
  2132.             later
  2133.     SPARCstation 20 model 712: Solaris 2.3 HW 8/94 or later.
  2134.     SPARCstation 4: Solaris 1.1.2 and Solaris 2.4 HW 11/94 or later
  2135.     SPARCserver 1000 and SPARCcenter 2000 : Solaris 2.2 or later and
  2136.          should really use at least 2.3.
  2137.  
  2138.     Some notes:
  2139.  
  2140.     Sun4 machines (4/1xx, 4/2xx, 4/3xx, and 4/4xx) will not be supported
  2141.     after Solaris2.4.
  2142.  
  2143.     The audio device on the SS5/SS20 has does not work under Solaris 1.1.1b
  2144.     without installing the ms2 patch found on the 1.1.1B CDROM or get
  2145.     the current Audio Patch from Sun. You will need patches to get the
  2146.     Audio to work properly under Solaris2.3 as well.
  2147.  
  2148.     Also, the SX Graphics card is only supported under Solaris2.3 HW 8/94
  2149.     or later. The Card will not run work under SunOS 4.1.x and unless
  2150.     some one other than Sun writes a driver it will never work.
  2151.  
  2152.     If you are running Solaris 1.x and newer versions of the SuperSPARC CPU 
  2153.     (rev 3.5 and higher) require Solaris 1.1.1B.  See question 79 for
  2154.     the procedure used for determining SuperSPARC revision.
  2155.  
  2156.     When installing any compatable version of SunOS 4.1.x on any
  2157.     of the following: SPARCstation 5, LX, Classic, or SPARC 20 you
  2158.     must buy a RTU because these machines came with RTU's for
  2159.     Solaris2.x only.
  2160.  
  2161.       SunOS 4.1.3 has been reported to run on the SPARCstation 10 model
  2162.       412/512 and the 600 model 412/512, but this configuration is not
  2163.       supported by Sun. Anyone who tries this is on their own.  The
  2164.       (unofficial) word from inside Sun about whether or not it actually 
  2165.     works is as follows:
  2166.  
  2167.             Little testing of the SuperSPARC MP configurations under 4.1.3
  2168.             have been done by Sun.  What little was done showed that under
  2169.             heavy loads the system was prone to crash (What it really did 
  2170.         was hang, so badly that even an L1-A would not work).
  2171.             ...
  2172.             We suspect, but do not know, that as the SuperSPARC chips get
  2173.             faster that the problems will manifest themselves more quickly.
  2174.  
  2175.       Solaris 2.0 runs only on SS1,1+,2,SLC,IPC,ELC,IPX.
  2176.  
  2177.       Solaris 2.1 and later runs on all Sun4s and SPARCstations, but the 
  2178.     FPU's on the 4/100 and 4/200 series machines are disabled and will
  2179.     be under all versions of Solaris2.x.
  2180.  
  2181.       Not all peripherals supported under SunOS 4.x are supported under SunOS
  2182.       5.x. Check with Sun or the peripheral manufacturer. Most of the 
  2183.     the non-supported cards under SunOS 5.x are VME or Multi Bus based.
  2184.  
  2185.       Explanatory note:
  2186.  
  2187.       In general, Solaris = SunOS + OpenWindows.
  2188.  
  2189.       Solaris 1.0     = SunOS 4.1.1      + OpenWindows 2.0
  2190.       Solaris 1.0.1     = SunOS 4.1.2      + OpenWindows 2.0
  2191.       Solaris 1.1     = SunOS 4.1.3      + OpenWindows 3.0
  2192.       Solaris 1.1.1    = SunOS 4.1.3_U1 + OpenWindows 3.0_U1
  2193.       Solaris 1.1.2     = SunOS 4.1.4    + OpenWindows 3.414     
  2194.       Solaris 2.0     = SunOS 5.0      + OpenWindows 3.0.1
  2195.       Solaris 2.1     = SunOS 5.1      + OpenWindows 3.1
  2196.       Solaris 2.2     = SunOS 5.2      + OpenWindows 3.2
  2197.       Solaris 2.3     = SunOS 5.3      + OpenWindows 3.3
  2198.       Solaris 2.4     = SunOS 5.4      + OpenWindows 3.4
  2199.  
  2200.     Open Windows versions before 3.3 used the X11/NeWS server
  2201.     all versions since use a MIT style server with Display
  2202.     Postscript Extensions.
  2203.     
  2204.     Last Updated: March  3, 1995.
  2205.  
  2206. 62)    My rdump is failing with a "Protocol botched" message. What do I do?
  2207.  
  2208.         The problem produces output like the following:
  2209.  
  2210.           DUMP: Date of this level 0 dump: Wed Jan  6 08:50:01 1993
  2211.           DUMP: Date of last level 0 dump: the epoch
  2212.           DUMP: Dumping /dev/rsd0a (/) to /dev/nrst8 on host foo
  2213.           DUMP: mapping (Pass I) [regular files]
  2214.           DUMP: mapping (Pass II) [directories]
  2215.           DUMP: estimated 8232 blocks (4.02MB) on 0.00 tape(s).
  2216.           DUMP: Protocol to remote tape server botched (in rmtgets).
  2217.          rdump: Lost connection to remote host.
  2218.           DUMP: Bad return code from dump: 1
  2219.  
  2220.         This occurs when something in .cshrc on the remote machine prints
  2221.         something to stdout or stderr (eg. stty, echo). The rdump command
  2222.         doesn't expect this, and chokes. Other commands which use the rsh
  2223.         protocol (eg. rdist, rtar) may also be affected.
  2224.  
  2225.         The way to get around this is to add the following line near the
  2226.         beginning of .cshrc, before any command that might send something
  2227.         to stdout or stderr:
  2228.  
  2229.         if ( ! $?prompt ) exit
  2230.  
  2231.         This causes .cshrc to exit when prompt isn't set, which
  2232.         distinguishes between remote commands (eg. rdump, rsh) where these
  2233.         variables are not set, and interactive sessions (eg. rlogin) where
  2234.         they are.
  2235.  
  2236.  
  2237. 63)     Table of Solaris2.x commands and their Solaris1.x equivalents?
  2238.         
  2239.         SunOS 4.x          SunOS 5.x             
  2240.         Command            Equivalent               
  2241.         
  2242.         add_services       pkgadd                      
  2243.         arch               uname -m                  
  2244.                    Note: This returns the kernel architecture.
  2245.         bar                Not available. Use   
  2246.                            cpio -H bar to retrieve
  2247.                    4.x archives.
  2248.         
  2249.         biff -y            chmod o+x /dev/tty
  2250.         biff -n            chmod o-x /dev/tty
  2251.         cc                 Not available
  2252.         dbxtool            debugger
  2253.         devinfo           prtconf
  2254.         df                 df -k
  2255.         dkctl              Not available
  2256.         dkinfo             prtvtoc
  2257.         du                 du -k
  2258.         dump               /usr/sbin/ufsdump
  2259.         dumpfs             Not available
  2260.         etherfind          snoop
  2261.         exportfs           share
  2262.         extract_files      Not available
  2263.         extract_patch      Not available
  2264.         extract_unbundled  pkgadd
  2265.         fastboot           reboot or init 6
  2266.         fasthalt           init O
  2267.         hostid             sysdef -h
  2268.         hostname           uname -n
  2269.         intr               Not available
  2270.         leave              Use cron and at
  2271.         lint               Not available
  2272.         load                 pkgadd
  2273.         loadc                pkgadd
  2274.         load_package         Not available
  2275.         lpc                  lpadmin
  2276.         lpd                  lpsched
  2277.         lpq                  lpstat
  2278.         lpr                  lp
  2279.         lprm                 cancel
  2280.         lptest               Not available
  2281.         mach                 uname  -p
  2282.         modstat              modinfo
  2283.         mount                mount  -F <fstype> [options]
  2284.         mount -a       mountall
  2285.         mount_tfs            mount  -F <fstype>
  2286.         pax                  cpio
  2287.         paxcpio              cpio
  2288.         portmap              rpcbind
  2289.         printenv             env
  2290.         ps -a                ps -e
  2291.         ps -aux              ps -el
  2292.          Note: when ps is  invoked without the "-f" flag, the SV
  2293.              "ps" prints  only the first N characters of the name 
  2294.              of the program being run. You have to pass the "-f" 
  2295.              flag to get the full command line. For example, try
  2296.              ps -fe.
  2297.  
  2298.         pstat                sar
  2299.         pstat -s             swap -s
  2300.         rdump                /usr/sbin/ufsdump
  2301.         restore              /usr/sbin/ufsrestore
  2302.         rm_client            admintool
  2303.         rm_services          Not available
  2304.         rpc.etherd           Not available
  2305.         rpc.lockd          /usr/lib/nfs/lockd         
  2306.         rpc.mountd         /usr/lib/nfs/mountd        
  2307.         rpc.rexd           /usr/sbin/rpc.rexd
  2308.         rpc.rquotad        /usr/sbin/rpc.rquotad
  2309.         rpc.showfhd        Not available
  2310.         rpc.statd          /usr/lib/nfs/statd         
  2311.         rpc.user_agentd    Not available 
  2312.         rpc.yppasswdd         2.6 and above. Install packages SUNWypr 
  2313.                    and SUNWypu. For versions of Solaris before
  2314.                    2.6 install the NSKIT.
  2315.         rpc.ypupdated      ypupdated     
  2316.         rrestore            /usr/sbin/ufsrestore    
  2317.         rusage             Not available 
  2318.         trace           truss
  2319.         showmount          dfmounts 
  2320.         swapon                swap -a        
  2321.         sys-config       admintool
  2322.         umount -a        umountall         
  2323.         umount_tfs       umount -F <fstype>
  2324.         unload             pkgrm
  2325.         update             fsflush
  2326.         uptime            who -b
  2327.         users              who -q
  2328.         vipw               Not available
  2329.         wall               /usr/sbin/wall
  2330.         whereis            Not available
  2331.         whoami             id
  2332.         ypbatchupd         Not available
  2333.         yppasswd           Use nispasswd for NIS+. As of Solaris 2.5
  2334.                    yppasswd is now available
  2335.         ypserv             2.6 and above. Install packages SUNWypr 
  2336.                    and SUNWypu. For versions of Solaris before
  2337.                    2.6 install the NSKIT.
  2338.  
  2339.     Notes:  A NIS server is no longer available under Solaris2.x
  2340.         without purchasing the NSKIT from Sun.
  2341.  
  2342.         Under Solaris 2.x look in the /usr/sbin and /usr/lib/nfs 
  2343.         for useful programs and commands. Finally, some of
  2344.         missing commands are in the BSD Compatibility package.
  2345.  
  2346.     Last Updated:  Feb 2, 1998.
  2347.  
  2348.     
  2349. 64)     How do I setup DNS on Solaris2.x?
  2350.  
  2351.     The "Setting up DNS clients" chapter of that manual is egregiously 
  2352.     out of date.  Yes, there's a bug filed against it.  
  2353.     The correct procedure is the following:
  2354.  
  2355.            Create a /etc/resolv.conf file.
  2356.  
  2357.            Change /etc/nsswitch.conf;  it's probably easiest 
  2358.     to start with the sample file "/etc/nsswitch.files" and change 
  2359.     the entry for "hosts" to the following:
  2360.  
  2361.                 hosts: files dns
  2362.  
  2363.            Processes that have already read /etc/nsswitch.conf won't see your
  2364.     changes until they're restarted.  If you care, the crude but effective
  2365.     approach is to reboot.
  2366.  
  2367.  
  2368.     Last Updated:  July 3, 1996.
  2369.     
  2370.  
  2371. 65)     Can a SPARCclassic or LX run SunOS 4.1.3?
  2372.  
  2373.     No it won't run 4.1.3. However, Sun will provide you with
  2374.     a copy Solaris1.1C(4.1.3C) which will allow you to run
  2375.     "4.1.3" on a LX or Classic. These machines can also run
  2376.     4.1.3_U1 and 4.1.4. See Question 61 for more details.
  2377.  
  2378.     The cost is around $125 for the media and $100 for the RTU
  2379.     license.
  2380.  
  2381.     Users of 4.1.3C should get the DBRI patch if you don't have a
  2382.     speaker box!
  2383.  
  2384.  
  2385. 66)     I just restored my root partation and now I cannot boot.
  2386.         What is wrong?
  2387.  
  2388.  
  2389.         You probably need to run installboot.  Under Solaris 1, boot
  2390.         from cdrom, boot the miniroot, mount the root filesystem on
  2391.         /mnt, and reinstall the boot block:
  2392.  
  2393.             cd /usr/kvm/mdec    # note - miniroot's usr, not sd0's
  2394.             installboot -vlt /mnt/boot bootsd /dev/rsd0a
  2395.  
  2396.         For Solaris 2, the equivalent command, which may also live
  2397.         outside the miniroot, would be:
  2398.  
  2399.             /usr/sbin/installboot /usr/lib/fs/ufs/bootblk \
  2400.             /dev/rdsk/c0t0d0s0
  2401.  
  2402.         Under Solaris 1, if only your /vmunix is bad, you may not need
  2403.         to restore anything from tape.  Before running installboot:
  2404.  
  2405.             cp /mnt/usr/kvm/sys/<arch>/<kernel>/vmunix /mnt/vmunix
  2406.  
  2407.  
  2408.  
  2409. 67)    How do I disable/enable packet forwarding?
  2410.  
  2411.     For 4.1.x:
  2412.     Pick one of the following methods:
  2413.  
  2414.      adb -k -w /vmunix /dev/mem
  2415.     ip_forwarding?
  2416.     _ip_forwarding:
  2417.     _ip_forwarding: 0               = unimp         0x0
  2418.  
  2419.     ip_forwarding/w -1      <- changes in running kernel only!
  2420.     ip_forwarding?w -1      <- changes running kernel and disk image
  2421.  
  2422.     or 
  2423.  
  2424.     In your kernel configuration file, insert the following line:
  2425.  
  2426.     options "IPFORWARDING=-1"
  2427.  
  2428.     Note: The above example disables packet forwarding.
  2429.  
  2430.     Here is a list of IP forwarding options
  2431.     (from /usr/kvm/sys/netinet/in_proto.c) 
  2432.         ip_forwarding = -1  -- never forward; never change this value.
  2433.         ip_forwarding =  0  -- don't forward; set this value to 1 
  2434.                        when two interfaces are up.
  2435.             ip_forwarding =  1  -- always forward.
  2436.  
  2437.     For Solaris2.3:
  2438.  
  2439.     To disable ip_forwarding:
  2440.  
  2441.          % ndd -set /dev/ip ip_forwarding 0
  2442.  
  2443.     To enable ip_forwarding:
  2444.  
  2445.          % ndd -set /dev/ip ip_forwarding 1
  2446.  
  2447.     To reset it back to defaults:
  2448.  
  2449.          % ndd -set /dev/ip ip_forwarding 2
  2450.     
  2451.     Note: ndd -set /dev/ip ip_forwarding 2 only works for Solaris 2.4 
  2452.     and below.
  2453.  
  2454.     Last Updated: April  24, 1998.
  2455.     
  2456.  
  2457. 68)    How do I disable the printing of banners pages?
  2458.     
  2459.     Under SunOS 4.x you need to do the following:
  2460.     
  2461.         Put :sh: in the /etc/printcap entry
  2462.         for that printer.
  2463.  
  2464.     For SPARCprinters you will need to edit the .param for that 
  2465.     printer. Under SunOS4.x you this file is located in the spool
  2466.     directory for that particular printer. Under SunOS5.x
  2467.     it is located under /etc/lp/printers/PRINTERNAME.
  2468.     Change the line BANNERPS=${DEFBANNER}; export BANNERPS
  2469.             to
  2470.             BANNERPS=; export BANNERPS
  2471.  
  2472.     Also, you may want to turn off Job Log printing. You can do
  2473.     this by changing the line PRINTJOBLOG=yes; export PRINTJOBLOG
  2474.             to
  2475.                   PRINTJOBLOG=no; export PRINTJOBLOG
  2476.  
  2477.  
  2478.     If you want to disable the banner pages permanently you
  2479.     will need to perform the following steps:
  2480.  
  2481.         1. cd /usr/lib/lp/model
  2482.         2. cp standard standard-nobanner
  2483.         3. Use your favorite editor to edit standard-nobanner.
  2484.            Change line 332 from:
  2485.                 nobanner="no"
  2486.            to:
  2487.                 nobanner="yes"
  2488.         4. lpadmin -p PRINTERNAME -m standard-nobanner
  2489.  
  2490.     For a large network you can make this easier by copying a 
  2491.     custom interface script at install time and doing the appropriate 
  2492.     lpadmin command.
  2493.  
  2494.         
  2495.  
  2496. 69)    How do I change my hostname?
  2497.  
  2498.     Under SunOS 4.x you need to do the following:
  2499.  
  2500.         Edit you /etc/hosts file and change your
  2501.         local hostname. To avoid problems during
  2502.         the transition you may want to add this
  2503.         as an hostname alias.
  2504.  
  2505.         If you are running NIS you should change the
  2506.         /etc/hosts file on the master too.
  2507.  
  2508.         Change the hostname in /etc/hostname.xxx.
  2509.         Where xxx is the interface you want to change
  2510.         the address on.
  2511.         
  2512.  
  2513.     Under SunOS 5.x you need to the above plus
  2514.     change /etc/nodename, and the entries in /etc/net/*/hosts
  2515.  
  2516.  
  2517.     Both OS's also support the sys-unconfig program which can
  2518.     be used indirectly to change your hostname and any number
  2519.     of other things. This program is over kill if all you want
  2520.     to do is change your hostname. See the manpage for more details.
  2521.     
  2522.  
  2523. 70)     Table of Solaris2.x files and their Solaris1.x equivalents?
  2524.  
  2525.     SunOS 4.x file        SunOS 5.x file
  2526.     /etc/fstab        /etc/vfstab
  2527.     /etc/exports        /etc/dfs/dfstab
  2528.     /etc/printcap        None
  2529.     /etc/fbtab         /etc/logindevperm   -- available in SunOS 5.3
  2530.     /etc/rc.local        /etc/rc3.d/S99local -- See note 1.
  2531.  
  2532.  
  2533.     Note 1:  Here is a template file for /etc/rc3.d/S99local.
  2534.  
  2535.     #!/bin/sh
  2536.  
  2537.     state=$1
  2538.     case $state in
  2539.     
  2540.     # Any applications or daemons you want to start.
  2541.     'start')
  2542.         echo "starting local apps"
  2543.         ;;
  2544.     # Any applications or daemons that need to be shutdown gracefully.
  2545.     'stop')
  2546.         echo "Stopping local apps"
  2547.         ;;
  2548.     esac
  2549.  
  2550.  
  2551.     You may need to put the "kill" script in /etc/rc2.d/K99local but it
  2552.     is not really required.
  2553.  
  2554.  
  2555. 71)    Where can I get the BSD print spooler for Solaris2.x?     
  2556.  
  2557.     You can try LPLITE from Sun it is available from the following
  2558.     location:
  2559.  
  2560.     http://www.sun.com/cgi-bin/show?smcc/solaris-migration/tools/lplite
  2561.  
  2562.     You can get the 4.3BSD-reno lpr system from the following site:
  2563.  
  2564.             ftp.nus.sg:/pub/NUS/ISCS/misc/lpr-sol2-p4.tar.gz
  2565.  
  2566.     Or another port from
  2567.  
  2568.         ftp.eng.auburn.edu:/pub/doug/lpr-sol2-p5.02.tar.gz
  2569.  
  2570.     Version's of this distribution prior to 5.0.2 have a security
  2571.     hole. Please upgrade to this version ASAP.
  2572.     
  2573.  
  2574.      Or get  LPRng from 
  2575.  
  2576.         http://www.astart.com/
  2577.  
  2578.     LPRng has vastly enhanced features, like paths for printcaps, NIS and
  2579.     Hesiod support, configurable permissons for printers, ability to
  2580.     move jobs between printers and compiles out of the box on HPUX, 
  2581.     Solaris, and SunOS and many others. LPRng has elminated a large
  2582.     number of security holes in the LPD protocol. To subscribe
  2583.     to the LPRNG mailing list send mail to majordomo@iona.ie with
  2584.  
  2585.     subscribe lprng
  2586.  
  2587.     as the message body.
  2588.  
  2589.     Last Updated:  June 8 , 1998.
  2590.  
  2591. 72)     Where is the Solaris2.x screenblank?
  2592.  
  2593.     You have three choices:
  2594.  
  2595.     Run XDM on the console and use the X servers builtin screenblank.
  2596.  
  2597.     Or you can run the 4.1.x screenblank in compatabilty mode.
  2598.  
  2599.     Or you can compile you own screenblank from sources available from
  2600.  
  2601.        ftp://ftp.ececs.uc.edu/pub/sun-faq/Source/screenblank_27dec94.tar.Z
  2602.  
  2603.     You can always get the current screenblank from
  2604.  
  2605.        ftp://ftp.ee.lbl.gov/  or  ftp://ftp.netcom.com/pub/je/jef/
  2606.  
  2607.     Last Updated:  Sept 18, 1995.
  2608.  
  2609. 73)     Is there a command to display the configuration of 
  2610.     currently attached SCSI devices?
  2611.     
  2612.     Get scsiinfo from 
  2613.         ftp://ftp.ececs.uc.edu/pub/sun-faq/Source/scsiinfo-4.1.shar.gz
  2614.  
  2615.     Or
  2616.  
  2617.     Get scsiping from 
  2618.         ftp://ftp.ececs.uc.edu/pub/sun-faq/Source/scsiping-2.0.shar.gz
  2619.  
  2620.  
  2621.     These commands are copied periodically from
  2622.         ftp://ftp.cdf.toronto.edu/pub/
  2623.  
  2624.     These commands work under both SunOS 4.x and Solaris2.x.
  2625.  
  2626.     Last Updated:  Sept 18, 1995.
  2627.  
  2628. 74)     My printer will not print large files(over 1-megabyte), I 
  2629.     keep getting "file to big" errors. What do I do?
  2630.  
  2631.     Put the following line in your /etc/printcap file
  2632.     for the printer that has the problem.
  2633.  
  2634.     :mx#0:
  2635.  
  2636.     This basically allows for unlimited sizes of print jobs.
  2637.     Of course you are still limited by your amount of
  2638.     spool space.
  2639.  
  2640.     If you do not have access to /etc/printcap you can
  2641.     use the -s switch to lpr to use a "symlink" of the    
  2642.     file instead of copying the "real" file to the spool 
  2643.     directory.
  2644.     
  2645. 75)     I keep getting "data corruption" when using NFS over a wan,
  2646.     or slip/ppp link. What do I do?  or
  2647.     Does anybody know how to enable UDP checksum on NFS?
  2648.  
  2649.     The usually cause for this(at least for SunOS4.x) is not
  2650.     having udp checksumming turned on. 
  2651.  
  2652.     You can turn it at boot and while the machine is running 
  2653.     by using the following adb script:
  2654.     
  2655.     echo "udp_cksum/W1" | adb -w -k /vmunix /dev/mem 
  2656.  
  2657.     Install or call this script from rc.local.
  2658.  
  2659.     Or you could modify the disk image and the core image
  2660.     by doing udp_cksum?W1. Remember to do this everytime
  2661.     a new kernel is built.
  2662.  
  2663.     Or edit /usr/kvm/sys/netinet/in_proto.c and change the
  2664.     udp_cksum line (near the end from  udp_cksum = 0 to udp_cksum =1
  2665.     and reconfigure your kernel and reboot)
  2666.  
  2667.     For Solaris2.3:
  2668.  
  2669.     udp checksumming is turned on by default under SunOS5.x.
  2670.     
  2671.     If you want to verify the value use the following:
  2672.  
  2673.         ndd /dev/udp udp_do_checksum
  2674.  
  2675.     See ndd (1M) and ip (7) manual pages for more details.
  2676.  
  2677.  
  2678.     Last Updated: December  18, 1996.
  2679.  
  2680. 76)     Does anybody know how to enable UDP checksum on NFS?
  2681.  
  2682.     See the answer to question 75.
  2683.  
  2684. 77)     Is there a mailing list for Wabi?
  2685.  
  2686.     No. Currently, Sun has the following E-mail addresses that
  2687.     you can get information about Wabi and the Windows
  2688.     Apps that Wabi supports. These addresses are as follows:
  2689.  
  2690.     For Wabi version 1:
  2691.          wabi1.0-questions@east.sun.com    - FAQ List
  2692.         wabi1.0-apps@east.sun.com    - Supported Applications list
  2693.     For Wabi version 2:
  2694.          wabi2.0-questions@east.sun.com    - FAQ List
  2695.         wabi2.0-apps@East.Sun.COM    - Supported Applications list
  2696.  
  2697.  
  2698.  
  2699.  
  2700. 78)     Are there any public domain Multi-Vendor backup management
  2701.         systems?
  2702.  
  2703.     There are at least two such programs which are as follows:
  2704.  
  2705.     Amanda from the University of Maryland which is written in
  2706.     C and built on top of standard UNIX backup software
  2707.     such as dump/restore. The current source is available from
  2708.     ftp.cs.umd.edu in the /pub/amanda directory.
  2709.  
  2710.     OSU Backup from Ohio State University which is written in perl
  2711.     and built on top of standard UNIX backup software such as
  2712.     dump/restore, cpio, and GNU tar. It has the ability to backup
  2713.     some database systems(like ORACLE). Finally, it is evolving to
  2714.     support the backup of PCs via a proxy service. The current 
  2715.     source is available from ftp.cis.ohio-state.edu in /pub/backup.
  2716.  
  2717. 79)     How to determine the revision of SuperSPARC processor.
  2718.  
  2719.     There are 2 methods to identify SuperSPARC revision - by physical 
  2720.     inspection and by using the system PROM.
  2721.  
  2722.     To determine SuperSPARC revision by physical inspection:
  2723.  
  2724.         - Open system chassis (as needed)
  2725.         - Locate the SuperSPARC processor on the CPU module. The processor
  2726.           has a heat sink mounted on its top surface.  The heat sink
  2727.           may be round or of "pin fin" design.  On modules with
  2728.           External cache, the processor is the farthest from mbus
  2729.           connector.
  2730.         - 4 lines of alpha-numeric text are written on the top 
  2731.           right corner of the processor. The second line contains the 
  2732.  
  2733.          processor revision.  The format is 
  2734.                 alpha character, 2 revision digits, 8 other alpha/digits
  2735.           Examples of processor revisions are:
  2736.                 H283915478C             H313020233C             H3503027203
  2737.                  ^^                      ^^                      ^^
  2738.                  ||                      ||                      ||
  2739.                 Indicates a 2.8, 3.1, and 3.5 SuperSPARC revisions respectively
  2740.  
  2741.     To determine SuperSPARC revision using the system PROM:
  2742.  
  2743.         - On a powered on system, in single user mode, press 
  2744.                 'L1'  and 'A'
  2745.           keys simultaneously.  On some keyboards the keycaps will be labeled
  2746.                 'Stop' and 'A'
  2747.  
  2748.         - On your monitor the following will be displayed
  2749.                 Type 'go' to resume
  2750.                 ok
  2751.         - Type
  2752.                 .psr <Return>
  2753.           Your monitor will display a line of data.  Look for VER and
  2754.           IMPL fields and note their values.
  2755.  
  2756.         - Type
  2757.                 .mcr <Return>
  2758.           Your monitor will display a line of data.  Look for VER and
  2759.           IMPL fields and note their values.
  2760.  
  2761.         - Type
  2762.                 go <Return>
  2763.         - You now may continue to use your system normally.
  2764.  
  2765.         - Using the PSR and MCR IMPL/VER values you noted above,
  2766.           match them with the values in the table below to identify
  2767.           the SuperSPARC revision.  Future processors will have 
  2768.           values different than those in the table.
  2769.         
  2770.                 | SuperSPARC    (2.x)   |(3.0,1,2,3) |   (3.5)    |
  2771.                 +-----------+-----------+------------+------------+
  2772.                 | PSR VER   |       1   |        0   |         0  |         
  2773.                 | PSR IMPL  |       4   |        4   |         4  |
  2774.                 | MCR VER   |       0   |        1   |         4  |         
  2775.                 | MCR IMPL  |       0   |        0   |         0  |  
  2776.  
  2777. 80)    How do I install SunOS4.1.x by hand(off a CD)?
  2778.  
  2779.     Installing SunOS-4.1.X from mounted cdrom:
  2780.     
  2781.     Note, these commands are examples; filenames may need to be adjusted 
  2782.     for your OS version or architecture.  You can perform this from a Sun3 
  2783.     or Sun4 running any SunOS-4.1.X, provided you take care to run the 
  2784.     right version of "installboot".  The man page includes details about 
  2785.     which systems require bootblocks with a.out format executables with
  2786.     headers, and which versions of installboot provide such.
  2787.     
  2788.     You need to change all occurances of /dev/rsd?a etc with
  2789.     the proper disk and partition information. For most SCSI
  2790.     disk configurations this device is /dev/rsd0a but check
  2791.     the boot messages to be sure.
  2792.  
  2793.     The example below assumes a SunOS 4.1.3_U1 distribution
  2794.     CD-ROM. Change sunos_4_1_3_u1 to the proper value for your
  2795.     distribution. 
  2796.  
  2797.  
  2798.     1) Label, format, and partition your new hard disk.
  2799.        be sure sd?b is bigger then your physical RAM will be
  2800.            (else system dump may overwrite /usr)
  2801.        Use the device name you are installing to.
  2802.        You may want to also make a /dev/rsd?d /var partition
  2803.        
  2804.        newfs /dev/rsd?a ; newfs /dev/rsd?d ; newfs /dev/rsd?f
  2805.        mount /dev/rsd?a /mnt
  2806.        mkdir /mnt/var ; mount /dev/sd?d /mnt/var    # if you made one
  2807.        mkdir /mnt/usr ; mount /dev/sd?f /mnt/usr
  2808.     
  2809.     2) mount -t hsfs -o ro /dev/sr0 /cdrom
  2810.        cd /mnt
  2811.        tar xpf /cdrom/export/exec/proto_root_sunos_4_1_3_u1
  2812.     
  2813.     3) Install kernel specific sys files, pick correct directory
  2814.        for your 'arch -k'
  2815.        
  2816.        mkdir /mnt/usr/kvm
  2817.        cd /mnt/usr/kvm
  2818.        tar xpf /cdrom/export/exec/kvm/sun4c_sunos_4_1_3_u1/kvm
  2819.        tar xpf /cdrom/export/exec/kvm/sun4c_sunos_4_1_3_u1/sys
  2820.     
  2821.     4) pick packages you want, but you must install usr
  2822.  
  2823.        cd /mnt/usr
  2824.        tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/usr
  2825.        tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/debugging
  2826.              tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/demo
  2827.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/games
  2828.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/graphics
  2829.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/install
  2830.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/networking
  2831.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/openwindows_demo
  2832.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/openwindows_fonts
  2833.         tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/openwindows_programmers
  2834.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/openwindows_users
  2835.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/rfs
  2836.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/security
  2837.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/shlib_custom
  2838.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/sunview_demo
  2839.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/sunview_programmers
  2840.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/sunview_users
  2841.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/system_v
  2842.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/text
  2843.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/tli
  2844.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/user_diag
  2845.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/uucp
  2846.          tar xpf /cdrom/export/exec/sun4_sunos_4_1_3_u1/versatec
  2847.        
  2848.     
  2849.         5) Install man pages if you want
  2850.          cd /mnt/usr
  2851.          tar xpf /cdrom/export/share/sunos_4_1_3_u1/manual    
  2852.   
  2853.         6) set up /sbin
  2854.          
  2855.          cp /mnt/usr/etc/hostconfig /mnt/sbin
  2856.          cp /mnt/usr/etc/ifconfig /mnt/sbin
  2857.          cp /mnt/usr/etc/init /mnt/sbin
  2858.          cp /mnt/usr/etc/intr /mnt/sbin
  2859.          cp /mnt/usr/etc/mount /mnt/sbin
  2860.          cp /mnt/usr/bin/sh /mnt/sbin
  2861.          cp /mnt/usr/bin/hostname /mnt/sbin
  2862.      
  2863.         7)  make new device nodes, you may do as needed
  2864.          
  2865.          cd /mnt/dev
  2866.          ./MAKEDEV std pty0 pty pty2 pty3 win0 win1
  2867.   
  2868.         8) additional root setup
  2869.  
  2870.          cp /mnt/usr/kvm/stand/vmunix /mnt
  2871.          chmod go-x /mnt/vmunix
  2872.          cp /mnt/usr/kvm/stand/boot.sun4 /mnt/boot
  2873.   
  2874.         9) run installboot
  2875.          I suggest reading the man page, note paths below, take care
  2876.          to run operating installboot binary, but specify device and
  2877.          paths for new boot disk.  You can even do this from a Sun3.
  2878.  
  2879.          /usr/kvm/mdec/installboot -ltv /mnt/boot \
  2880.                /mnt/usr/kvm/mdec/bootsd /dev/rsd?a
  2881.   
  2882.          if you are making a sun4c boot disk and running on a 4 or 4m
  2883.          machine:
  2884.  
  2885.          /usr/kvm/mdec/installboot -ltvh /mnt/boot \
  2886.               /mnt/usr/kvm/mdec/bootsd /dev/rsd?a
  2887.   
  2888.          if you are making a sun4 boot disk on a 4c machine, you need
  2889.          to use a 4c installboot, not the one on your sun4.
  2890.   
  2891.        10) if it will have a Lance interface
  2892.           echo newhostname > /mnt/etc/hostname.le0
  2893.          or if will have an Intel interface
  2894.           echo newhostname > /mnt/etc/hostname.ie0
  2895.   
  2896.        11) create /mnt/etc/fstab, /mnt/etc/defaultrouter, 
  2897.          /mnt/etc/resolv.conf
  2898.          /mnt/etc/hosts  (must have own entry here)
  2899.          I also create /mnt/etc/shells, /mnt/etc/ftpusers
  2900.          Depending on your timezone:
  2901.          don't forget to 'rm /usr/lib/zoneinfo/localtime', then
  2902.  
  2903.             'ln /usr/lib/zoneinfo/EST5EDT /usr/lib/zoneinfo/localtime'
  2904.   
  2905.        12) Perform sanity check
  2906.        umount and fsck he newly installed filesystems 
  2907.  
  2908.          umount /mnt/usr
  2909.          umount /mnt/var
  2910.          umount /mnt
  2911.             for the really paranoid:
  2912.          fsck /dev/rsd?f
  2913.          fsck /dev/rsd?d
  2914.          fsck /dev/rsd?a
  2915.   
  2916.     I suggest booting single user the first time ( from the '>'
  2917.     prompt  b sd() -s or from the ok prompt boot disk -s ).
  2918.     
  2919.     Knowing the above may save you from doing total re-installs just
  2920.     because of a messed up root partition or similar.  
  2921.     
  2922.     If you are copying an existing OS, instead of extracting distribution
  2923.     tar files, you may use the following before running installboot etc...: 
  2924.     
  2925.         dump 0dsf 6250 200000 - <directories and files to include> |
  2926.              (cd /mnt/<area> ; restore -rf - )
  2927.     or
  2928.         find . -depth -print | cpio -pdlm newdir
  2929.  
  2930.     You  use find command rules to limit to a device or skip/include
  2931.     specific files.
  2932.  
  2933.     You could use tar to copy these directories too but
  2934.     you will have to recreate all the devices using in MAKEDEV
  2935.     which can take a long time.
  2936.     
  2937.     Last Updated:  January 27, 1995.
  2938.  
  2939. 81)     There is a problem with the firmware on older SUN207 drives
  2940.         that makes them incompatible with the SPARCstation 10 series.
  2941.         Sun has been known to replace these at no charge, although
  2942.         there may not be an "official" return policy.  Your drive 
  2943.         must have firmware revision 19 or higher to be functional
  2944.         in a SPARCstation 10.
  2945.  
  2946. 82)    I'm running SunOS/4.1.x and every time I try to format my
  2947.         new 9GB SCSI disk I get "format failed" messages -- what's
  2948.         broke, and how can I fix it?
  2949.  
  2950.     The SunOS kernel has a default timeout of two hours for SCSI
  2951.         formatting -- if the time required to perform the format is
  2952.         longer, the format fails.
  2953.  
  2954.         Edit /usr/sys/scsi/targets/sddef.h and apply the following "diff",
  2955.         then rebuild the kernel:
  2956.  
  2957. *** sddef.h.orig  Tue Nov 29 07:52:53 1994
  2958. --- sddef.h  Tue Nov 29 07:52:53 1994
  2959. ***************
  2960. *** 396 ****
  2961. ! #define SD_FMT_TIME     120*60
  2962. *** 396 ****
  2963. ! #define SD_FMT_TIME     240*60
  2964.  
  2965.     Or you can use this small adb script to modify the SCSI
  2966.     format timeout in the running kernel.
  2967.     
  2968.     #!/bin/sh
  2969.     adb -k -w /vmunix /dev/mem  << EOF
  2970.     sd_fmt_time /W 0t9600
  2971.     EOF
  2972.  
  2973.  
  2974.     Last Updated:  April 14, 1995.
  2975.  
  2976. 83)       I can not get my new Exabyte 8505(or others) working under
  2977.          SunOS(or Solaris) What to do ?
  2978.  
  2979.     Out of the box this drive and other Exabytes are not supported
  2980.     under Solaris2.3 or SunOS4.1.x.
  2981.  
  2982.     Here is what to do under SunOS
  2983.     Modify /sys/scsi/targets/st_conf.c before, after, or between the 8200 
  2984.     insert the following:
  2985.  
  2986.     /* Exabyte 8mm 5GB cartridge  w/compression*/ 
  2987.     {
  2988.      "Exabyte EXB8505", 16, "EXABYTE EXB-8505", ST_TYPE_EXB8500, 
  2989.      1024, (ST_VARIABLE | ST_BSF | ST_BSR | ST_LONG_ERASE | ST_KNOWS_EOD), 
  2990.          5000, 5000,
  2991.          { 0x14, 0x15, 0x90, 0x8c },
  2992.          { 0, 0, 0, 0 } 
  2993.     },
  2994.  
  2995.     Once you've remade your kernel it appears as 4 different devices:
  2996.  
  2997.     /dev/rst0     - 2.3Gb             (8200 mode)
  2998.     /dev/rst8    - 5Gb               (8500 mode)
  2999.     /dev/rst16    - 2.3Gb compressed  (8200c mode)
  3000.     /dev/rst24    - 5Gb compressed    (8500c mode)
  3001.     
  3002.            The above assumes tape drive is installed at the default SCSI id.
  3003.  
  3004.     Under Solaris2.x do the following:
  3005.  
  3006.     Edit /kernel/drv/st.conf and add
  3007.  
  3008.     tape-config-list=
  3009.         "EXABYTE EXB-8505", "Exabyte 8505  8mm Helical Scan", "Exa8500c_sol2_3";
  3010.         Exa8500c_sol2_3 = 1,0x29,1024,0xCE39,4,0x14,0x15,0x90,0x8C,3;
  3011.  
  3012.     Once the device driver is re-loaded, the following densities will be
  3013.     accessible:
  3014.  
  3015.     /dev/rmt/0l   - 2.3Gb             (8200 mode)
  3016.     /dev/rmt/0m   - 5Gb               (8500 mode)
  3017.     /dev/rmt/0h   - 2.3Gb compressed  (8200c mode)
  3018.     /dev/rmt/0c   - 5Gb compressed    (8500c mode)
  3019.  
  3020.        The above assumes tape drive is installed at the default SCSI id.
  3021.  
  3022.        Since the default density specified above is 3 (last number in entry),
  3023.     when /dev/rmt/0 is specified, device /dev/rmt/0c (5Gb compressed) will
  3024.     be used.
  3025.  
  3026.     For SunOS and a 10-Gigibyte Exabyte the settings are as follows:
  3027.  
  3028.     /* Exabyte 8mm 10GB cartridge */
  3029.     {
  3030.             "Exabyte EXB-8500 8mm Helical Scan", 15, "EXABYTE EXB-8500",
  3031.             ST_TYPE_EXB8500, 1024,
  3032.             (ST_VARIABLE | ST_BSF | ST_BSR | ST_LONG_ERASE),
  3033.             5000, 5000,
  3034.             { 0x14, 0x15, 0x8C, 0x8C },
  3035.             {  0, 0, 0, 0 }
  3036.  
  3037.     The device is accessed via a +16 offset from the normal 
  3038.     tape devices ie /dev/rst{16,17}. Dump parameters are 
  3039.     dsb 54000 26000 126.
  3040.  
  3041.     For SunOS and the new SUN 14GB 8mm Drive:
  3042.  
  3043.     /* Exabyte 8mm 14GB TRI-DENSITY cartridge */
  3044.     {
  3045.             "Exabyte EXB-8505 8mm Helical Scan", 16, "EXABYTE EXB-8505",
  3046.             ST_TYPE_EXB8500, 1024,
  3047.             (ST_VARIABLE | ST_BSF | ST_BSR | ST_LONG_ERASE),
  3048.             5000, 5000,
  3049.             { 0x14, 0x15, 0x8C, 0x8C },
  3050.             {  0, 0, 0, 0 }
  3051.     }
  3052.  
  3053.  
  3054.     Note: Be sure to check out Exabytes web page at http://www.exabyte.com
  3055.  
  3056.  
  3057.     Last Updated:  May 22, 1996.
  3058.  
  3059.  
  3060.  
  3061. 84)     The keyboard keeps stop working after exiting X or Openwin.
  3062.     What to do?
  3063.  
  3064.     For the general case all you need to do is log in remotely
  3065.     and reset the keyboard using /usr/openwin/bin/kbd_mode -a
  3066.  
  3067.     If this does not work I have modified kbd_mode to do a full keyboard
  3068.      power on reset (ftp.ececs.uc.edu:/pub/sun-faq/Source/reset_keyboard.c)
  3069.  
  3070.     If that does not seem to help you may have a white on white
  3071.     screen so try to clear the colormap using clear_colormap.
  3072.  
  3073.     Make sure that you add kbd_mode -a  to all you X11 startup scripts.
  3074.  
  3075.     Last Updated:  April 14, 1995.
  3076.  
  3077.  
  3078. 85)     How do I re-build the kernel under SunOS4.x?
  3079.  
  3080.     Here is the procedure.
  3081.  
  3082.      1) cd /sys/`arch -k`/conf
  3083.      2) Read the README.
  3084.      3) Make a copy of the proper template file(ie cp GENERIC MYKERNEL)
  3085.      4) Edit MYKERNEL  - Remove any unneeded drivers. These are memory
  3086.                  wasters. Also, probably want to increase
  3087.                  MAXUSERS to at least 50.
  3088.      5) config MYKERNEL
  3089.      6) cd ../MYKERNEL
  3090.      7) make
  3091.      8) cp /vmunix /vmunix.save
  3092.      9) cp vmunix /vmunix
  3093.     10) Reboot machine to make the new kernel active. 
  3094.     
  3095.     Last Updated:  April 14, 1995.
  3096.     
  3097. 86)     How do I hook up a HP(or other) Desktop SCANNER?
  3098.  
  3099.     You need PINT which available from uniwa.uwa.edu.au (130.95.128.1)
  3100.      in /pub/pint.
  3101.  
  3102.     Last Updated:  March 31, 1995.
  3103.  
  3104. 87)     How do I find which process has a file open?
  3105.  
  3106.     Fuser and the the Public domain/Freeware utility lsof can be used
  3107.     to find processes that have files open and much more.
  3108.  
  3109.     Note: fuser on SunOS4.1.x is located in /usr/kvm.
  3110.  
  3111.     lsof can be ftped from vic.cc.purdue.edu:/pub/tools/unix/lsof/
  3112.  
  3113.     lsof and fuser are available for both Solaris 2.x and SunOS 4.1.x.
  3114.  
  3115.     Last Updated:  April 14, 1995.
  3116.  
  3117.  
  3118.     
  3119. 88)      How do I create a partition greater than 2-gig on SunOS4.1.x?
  3120.  
  3121.     The max size without any additional software is 2-gig under
  3122.     SunOS.  The only way to get larger partitions is to purchase
  3123.     Online: Disksuite for SunOS4.1.x from Sun. Not only can you create
  3124.     partitions of up to 1 TB, but you can grow partitions on the fly,
  3125.     mirror, and hotswap with ODS. However, you are still limited to
  3126.     2-Gig files.
  3127.  
  3128.     Note: Solaris2.3 or higher can have 1-Terabyte partitions.
  3129.  
  3130.  
  3131. 89)      Why do I keep having to answer the question 
  3132.     "CLEAN FLAG IN SUPERBLOCK IS WRONG; Fix?" when running fsck on
  3133.     an active filesystem?
  3134.  
  3135.     You are not supposed to under any circumstances run fsck on 
  3136.     a mounted filesystem. Under these cirumstances Fsck can itself
  3137.      cause inconsistencies to the filesystem and you should always
  3138.     you umount the filesystem frist.
  3139.     
  3140.  
  3141. 90)     Are dynamically linked setuid executables insecure?
  3142.  
  3143.     Not particularly.
  3144.  
  3145.     From the "ld" man page from SunOS 4.1.3:
  3146.  
  3147.           NOTE: when running a set-user- or set-group-ID program, ld.so
  3148.         will only search for libraries in directories it "trusts",
  3149.         which are /usr/lib, /usr/5lib, /usr/local/lib, and any
  3150.             directories specified within the executable as a result of
  3151.          -L options given when the executable was constructed.
  3152.  
  3153.     Of course you do always want to link with absolute pathnames
  3154.     when using the -L linker option and probably destroy any
  3155.     LD_* variables when running(just a little paranoia). 
  3156.  
  3157.  
  3158. 91)    How do I change the default router under Solaris1.x or Solaris2.x?
  3159.  
  3160.     Just create or edit the file /etc/defaultrouter and put the hostname
  3161.     or ip address of the router that you want to use.
  3162.  
  3163.     If you are not running NIS(yp), then add the router entry in the
  3164.     local /etc/hosts table.
  3165.  
  3166.     If you are running NIS(yp), then add the router entry in the NIS
  3167.     hosts map on the NIS master and run make which will build the NIS
  3168.     maps and push them to the other slave servers.
  3169.  
  3170.  
  3171. 92)    What is the difference between the Domestic vs International version
  3172.     of SunOS 4.1.x?
  3173.  
  3174.     There is no "domestic" vs "international" version of SunOS 4.1.x.
  3175.     There is only one version the "international".
  3176.  
  3177.     What makes a  "domestic" version of the SunOS is a the purchase
  3178.     and installation of US Encryption Kit available from with the
  3179.     United States and Canada(?).
  3180.  
  3181.     If you have installed this kit you must use the libc jumbo patch
  3182.     for the "domestic" version. Otherwise always install the 
  3183.     "international" version.
  3184.  
  3185.     If you have the symbols des_encrypt etc in your shared library,
  3186.      and vi -x works, and you the commands crypt(1) and des(1) you
  3187.     have the "domestic" version of the library and associated commands.
  3188.  
  3189.     Do an nm /lib/libc.a | grep des_encrypt | grep T
  3190.     if this cames back with anything you have the "domestic"
  3191.     libraries.
  3192.  
  3193.     Last Updated:  January 27, 1995.
  3194.  
  3195. 93)    Where can I get the latest version of TOP? 
  3196.  
  3197.     The latest version of "top" is always available via anonymous FTP
  3198.     from the host "eecs.nwu.edu" in the directory "/pub/top".  Additional
  3199.     modules will be made available in the directory "/pub/top/m".
  3200.  
  3201.     The current version supports both SunOS4.1.x and Solaris2.x 
  3202.     machines including full Multiprocessor support (even on machines
  3203.     with CPU labeled 0 and 2 and not 0 and 1).
  3204.  
  3205.     Last Updated:  January 27, 1995.
  3206.  
  3207. 94)    Can I run the SX card in a Sun running SunOS4.1.x?
  3208.  
  3209.     THEY DO NOT EXIST NOR WILL THEY(unless one of the Clone makers
  3210.     writes one). If you want to use the SX, YOU MUST USE Solaris 2.3 or
  3211.     above.
  3212.  
  3213.     If you MUST run Solaris 1.x then get your salesperson to exchange it
  3214.     for a TGX/TGX+(or other 8-bit card) or go with a 3rd party framebuffer
  3215.     such as the RasterFlex-24.
  3216.  
  3217. 95)    I just changed my shell to tcsh(or pick a favorite) and
  3218.     get  "530 User xyzz access denied" when ftping into this 
  3219.     machine. What is the problem?
  3220.  
  3221.     You need to list all "valid" shells in /etc/shells. An example
  3222.     of this file might be as follows:
  3223.  
  3224.         /bin/sh
  3225.         /bin/ksh
  3226.         /bin/csh
  3227.         /local/bin/tcsh
  3228.         /local/bin/zsh
  3229.         /local/bin/bash
  3230.         /local/bin/rc
  3231.  
  3232.     This files does not normally exist and the default members are
  3233.     /bin/csh and /bin/sh(and /bin/ksh on Solaris2.x).
  3234.  
  3235.     Last Updated:  January 10, 1995.
  3236.  
  3237. 96)    How do I put several dump images on one tape?
  3238.  
  3239.     All you need to do is use the No rewind devices. For example,
  3240.     to backup /, /usr, /var, and /home to one tape(assuming all
  3241.     will fit) you could do something like this:
  3242.  
  3243.     mt -f /dev/rst8 rew        # Rewind the tape to the beginning
  3244.     dump 0budfs 126 54000 /dev/nrst8 6000    /
  3245.     dump 0budfs 126 54000 /dev/nrst8 6000    /usr
  3246.     dump 0budfs 126 54000 /dev/nrst8 6000    /var
  3247.     dump 0budfs 126 54000 /dev/nrst8 6000    /home
  3248.  
  3249.     Where /dev/nrst8 is a no rewind device under SunOS. Any
  3250.     of the valid tape devices in /dev that start with a 'n' are
  3251.     no rewind devices.    
  3252.  
  3253.     Under Solaris change dump to ufsdump and /dev/nrst8 to /dev/rmt/0n
  3254.     All devices in /dev/rmt/ ending in a 'n' are no rewind devices.
  3255.  
  3256.     You can safely ignore any messages about dump rewinding the tape.
  3257.     To restore files off the tape use the following command:
  3258.  
  3259.         restore -ifs /dev/nrewinddevice filenumber  -- SunOS
  3260.         ufsrestore -ifs /dev/rmt/nrewinddevice filenumber  -- Solaris
  3261.  
  3262.         -ifs is for interactive restore  or use
  3263.             -rfs to restore entire dump file.
  3264.  
  3265.     It is a good idea to try restore something off this tape
  3266.     to verify that the dump worked. Of course you do not have to do
  3267.     this for ever tape just the first few and maybe spot check some
  3268.     after that.
  3269.     
  3270.     Note: the above method can be adopted to other backup commands
  3271.           like tar and cpio.
  3272.  
  3273.     Last Updated:  January 27, 1995.
  3274.  
  3275. 97)    Can I "dump" the whole disk to tape in one command?
  3276.     (even with several slices/partitions)
  3277.  
  3278.     No, you have to back up each slice separately because
  3279.     dump does not do "image" backups. See question  96 for
  3280.     the proper procedure.
  3281.  
  3282.     You could use the command dd to make an "image" backup of the
  3283.     entire disk but all you could do is restore the entire
  3284.     backup and not bits and pieces.
  3285.  
  3286.     Last Updated:  January 27, 1995.
  3287.  
  3288. 98)    Where do I get software for my HP JetDirect Ethernet Card?
  3289.  
  3290.     Software for both SunOS4.1.x and Solaris2.x is available.
  3291.  
  3292.     You can get it via WWW using the following:
  3293.  
  3294.         http://www.hp.com/Misc/Peripherals.html
  3295.  
  3296.     or get CTI-ifhp from the LPRng archive 
  3297.  
  3298.         http://www.astart.com/
  3299.  
  3300.     Last Updated:  June 8, 1998.
  3301.  
  3302. 99)    I do not know the root password, What do I do?
  3303.  
  3304.     First thing to try: (SunOS 4.x.x)
  3305.     
  3306.     Get to the boot monitor prompt by holding down the stop and
  3307.     A. Type sync to help ensure that you have no filesystem
  3308.     corruption on booting. You will need to hit STOP-A again to
  3309.     interrupt the boot process.
  3310.  
  3311.     Now at the '>' prompt type 
  3312.     
  3313.         b  -s 
  3314.  
  3315.     Or at the 'ok' prompt type 
  3316.  
  3317.         boot -s
  3318.  
  3319.     This should give you a root prompt as long as the console
  3320.     entry in /etc/ttytab is marked secure.
  3321.  
  3322.     If you get the '#' you should be able to edit the 
  3323.     the /etc/passwd file and remove the encrypted string for
  3324.     root's passwd or set it to what you want using the passwd
  3325.     command. 
  3326.  
  3327.     Once you are done type reboot to bring the machine back up.
  3328.  
  3329.     Second thing to try: (SunOS 4.1.x and Solaris2.x)
  3330.  
  3331.     Boot off the network or CD-ROM and mount the root device
  3332.     and edit the passwd file.
  3333.  
  3334.     Note: both of these assume no eeprom password.
  3335.  
  3336.     Last Updated:  January 17, 1995.
  3337.  
  3338. 100)    Where do I find a POP server for Solaris or SunOS?
  3339.  
  3340.     You can get qpop from the following location
  3341.  
  3342.         ftp://ftp.qualcomm.com/quest/unix/servers/popper/
  3343.  
  3344.     Or you can get the IMAP distribution which contains a IMAP server,
  3345.     a POP 2 server, and a POP 3 server from the University of Washington
  3346.     from
  3347.  
  3348.         ftp://pine.cac.washington.edu/mail/imap.tar.Z
  3349.  
  3350.     This site also contains a list of IMAP client software.
  3351.  
  3352.     You should avoid the old Berkeley popper because of
  3353.     its many bugs and it is no longer well supported.
  3354.     Both of the above popper programs are well supported.
  3355.  
  3356.     Last Updated: February 9, 1995.
  3357.  
  3358. 101)    How do I clear Stale NFS Filehandles?
  3359.  
  3360.     You have to umount the offending filesystem and remount.
  3361.     You may able to do something like this:
  3362.  
  3363.     mount -o remount /offending-filesystem
  3364.  
  3365.     If this does not work try:
  3366.  
  3367.     umount /offending-filesystem
  3368.     mount /offending-filesystem
  3369.  
  3370.     Finally, if none of the above works reboot.
  3371.  
  3372.     Last Updated:  January 17, 1995.
  3373.  
  3374. 102)    How can I use the same ethernet interface for two different IP networks?
  3375.  
  3376.     The Solaris kernel supports the concept of IP aliases and you
  3377.     can do something like this 
  3378.  
  3379.         ifconfig le0:1     ipaddr netmask ....
  3380.  
  3381.     Only 254 (1-255) virutal addresses per physical ethernet are supported.
  3382.     If you need more you will have to get another ethernet card.
  3383.     
  3384.     You can do the same under SunOS4.1.x if you install the VIF code.
  3385.     Can be picked up via anonymous FTP from:
  3386.  
  3387.             ftp://ftp.nethelp.no/pub/net/vif-1.11.tar.gz
  3388.  
  3389.     or one of the mirror sites in the US:
  3390.  
  3391.             ftp://ftp.netcom.com/pub/he/henderso/vif-1.11.tar.gz
  3392.             ftp://ftp.wimsey.com/pub/crypto/sun-stuff/vif-1.11.tar.gz          
  3393.     See the VIF README at
  3394.  
  3395.             http://www.nethelp.no/net/vif/readme.html
  3396.  
  3397.     or its FAQ at
  3398.  
  3399.             http://www.nethelp.no/net/vif/faq.html
  3400.     
  3401.     for more details.
  3402.  
  3403.     Last Updated:  July 8, 1996.
  3404.  
  3405.  
  3406. 103)     Where do I get CAP for Solaris (or SunOS 4.1.x)?
  3407.  
  3408.     Here is a list of ftp sites for CAP.
  3409.  
  3410.         munnari.OZ.AU           /mac/{cap60.tar.Z,cap.patches/*
  3411.         rutgers.EDU             /src/{cap60.tar.Z,cap60.patches/*
  3412.         ftp.kuis.kyoto-u.AC.JP  /net/cap/{cap60.tar.Z,cap60.patches/*.Z
  3413.         src.doc.ic.AC.UK        /mac/multigate/{cap60.tar.Z,cap.patches/*
  3414.  
  3415.     CAP is now at patch level 195.  Note that now, the main cap file
  3416.     is cap60.pl100.tar.Z, which has patches 1-100 applied.  The user
  3417.     should then get from cap.patches/
  3418.         patches.101-126.tar.Z
  3419.         patches.127-143.tar.Z
  3420.         patches.144-154.tar.Z
  3421.         patches.155-162.tar.Z
  3422.         patches.163-182.tar.Z
  3423.         patches.183-192.tar.Z
  3424.  
  3425.     and any more recent patches (193 through 195).
  3426.  
  3427.     Under Solaris make sure that you are using gcc or /opt/SUNWspro/bin/cc
  3428.     to compile. Do not use /usr/ucb/cc.
  3429.  
  3430.     Last Updated:  July 22, 1995.
  3431.  
  3432. 104)     Where do I get DOOM for Solaris (or SunOS 4.1.x)?
  3433.  
  3434.     Doom for SunOS 4.1.x is not available at this time and it
  3435.     is unlikely that it will be.
  3436.  
  3437.     Doom for Solaris2.4 is available and can be retrieved
  3438.     from playground.sun.com:/pub/doom/sundgadoomv1.8.tar.Z
  3439.     The X version of doom in this tar file works fine 
  3440.     under Solaris2.3. The DGA version does not.
  3441.  
  3442.     This is the SPARC version. There are no plans for
  3443.     an x86 version at this time.
  3444.  
  3445.     Last Updated:  January 25, 1995.
  3446.  
  3447.  
  3448. 105)    Why does "dump/ufsdump" tell me it is rewinding the tape even
  3449.     when I specified the "no rewind" device?
  3450.  
  3451.     Dump can not tell the difference between a "rewind device"
  3452.     and a "non rewind device". However, "dump" does
  3453.     not rewind the tape even though it says it is rewinding
  3454.     the tape.
  3455.  
  3456.     So you can safely ignore the "the tape rewinding" messages
  3457.     from dump when using "no rewind devices".
  3458.  
  3459.     Last Updated:  April 14, 1995.
  3460.  
  3461. 106)    How can you I speed up filesystem restores and/or copies?
  3462.  
  3463.     In all versions of SunOS 4.1.2 and later (including Solaris2.x) 
  3464.     you can use special filesystem level ioctl. A program written
  3465.     by Caspar Dik that uses this ioctl can be downloaded as
  3466.  
  3467.     ftp.ececs.uc.edu:/pub/sun-faq/Source/fastfs.c
  3468.  
  3469.     Please remember that using this program will in many
  3470.     cases cause fsck to be completely unable to fix your disk in
  3471.     the case of unexpected system shutdown.  Yes, it goes faster -
  3472.     at a very significant risk of losing the entire filesystem.
  3473.  
  3474.     When is using this appropriate?
  3475.     When:
  3476.  
  3477.     1) You're creating a new filesystem via a copy from somewhere else.
  3478.     2) You're removing all the files from a partition.
  3479.     3) You're updating a partition with files from elsewhere, and the
  3480.            entire contents are restorable.
  3481.  
  3482.     Remember, this doesn't make IO go any faster, it just allows metadata
  3483.     to be written asynchronously.  If you are creating a 100 M file, this
  3484.     won't help much.  If, on the other hand, you are writing 100000 1k
  3485.     files, this will help enormously.
  3486.  
  3487.     Remember to restore the safe mode before shutting the system down!
  3488.  
  3489.     Think of this as a large chainsaw; it can be useful but has significant
  3490.     chance of unintended side effects when used by the inexperienced.
  3491.  
  3492.     Last Updated:  April 14, 1995.
  3493.  
  3494. 107)     I just added a new device (ie harddisk) to Solaris I have rebooted
  3495.     but the system still can not find it. What do I do?
  3496.  
  3497.     You need to do a reconfigure reboot which requires
  3498.     you to do the following:
  3499.  
  3500.     Either:
  3501.          touch /reconfigure 
  3502.         reboot
  3503.     Or  
  3504.         reboot -- -r
  3505.     Or
  3506.  
  3507.     If you are at the prom prompt you can do: 
  3508.  
  3509.         ok boot -r
  3510.     or
  3511.          > b -r 
  3512.  
  3513.  
  3514.     Last Updated:  Sept 18, 1995.
  3515.  
  3516. 108)    I need to change the broadcast address from all 0's to 1's
  3517.     or where to set the broadcast address under SunOS4.x?
  3518.  
  3519.     By default SunOS4.x uses the "ancient" style of broadcast
  3520.     all 0's but all modern OS's use the standard all 1's.
  3521.  
  3522.     SunOS 4.x will gladly use all 1's for a broadcast but
  3523.     you have to tell it in /etc/rc.local. 
  3524.  
  3525.     Change the lines:
  3526.  
  3527.     echo -n "Configuring Network"
  3528.     /sbin/ifconfig -a netmask + broadcast + > /dev/null
  3529.     echo   " Complete."
  3530.  
  3531.  
  3532.     to
  3533.  
  3534.     echo -n "Configuring Network"
  3535.     /sbin/ifconfig -a netmask + broadcast + > /dev/null
  3536.     /sbin/ifconfig le0 broadcast 129.137.11.255
  3537.     echo   " Complete."
  3538.  
  3539.     Change the 129.137.11.255  number to the proper broadcast address
  3540.     for your site and use the proper ethernet device as well.
  3541.  
  3542.     Here is a program 
  3543.         ftp://ftp.ececs.uc.edu/pub/sun-faq/Source/netmask.c
  3544.     that can be used to calculate your broadcast address.
  3545.  
  3546.     You will have to set each interface's broadcast individually.
  3547.  
  3548.     Or if you are not afraid to use adb you can use the following 
  3549.     script to turn on all 1's in the kernel and fix the problem once
  3550.     and for all.  This method fixes ifconfig so that its 'broadcast +' 
  3551.     option works properly; all 1's instead of all 0's. That way you don't
  3552.     have to remember to change /etc/rc.local each time you change the
  3553.     machine's IP address. Also, you don't have to set each interface's 
  3554.     broadcast individually.                                     
  3555.  
  3556.  
  3557.     #!/bin/sh
  3558.  
  3559.     # Make sure that we're running as root or this is not going to work.
  3560.  
  3561.         if id | grep "^uid=0(" >/dev/null 2>&1; then
  3562.                 :
  3563.         else
  3564.                 echo Error: you must be superuser to run this program. 1>&2
  3565.                 exit 1
  3566.     fi
  3567.  
  3568.     
  3569.     OS=`uname`
  3570.     OSREV=`uname -r`
  3571.  
  3572.     if [ "$OS" != SunOS ]; then
  3573.         echo Invalid OS: $OS
  3574.         exit 1
  3575.     fi
  3576.  
  3577.     case "$OSREV" in
  3578.         4*)
  3579.             ;;
  3580.         *)
  3581.             echo Invalid OSREV: $OSREV
  3582.             exit 1
  3583.             ;;
  3584.     esac
  3585.  
  3586.     # This fixes the kernel in memory and on the disk.
  3587.     
  3588.     adb -k -w /vmunix /dev/mem <<EOF >/dev/null
  3589.     in_ifinit+0x1f0/W 0x92103fff
  3590.     in_ifinit+0x1f0?W 0x92103fff
  3591.     EOF
  3592.  
  3593.     # Now reconfigure the interface(s).
  3594.     
  3595.     ifconfig -a broadcast +
  3596.  
  3597.     # This keeps the fix from being backed out should the kernel ever
  3598.     # be rebuilt.
  3599.  
  3600.     FILE=/sys/`arch -k`/OBJ/in.o
  3601.     if [ ! -f ${FILE}.orig ]; then
  3602.         cp -p ${FILE} ${FILE}.orig
  3603.     fi
  3604.     adb -w $FILE <<EOF >/dev/null
  3605.     in_ifinit+0x1f0?W 0x92103fff
  3606.     EOF
  3607.  
  3608.     exit
  3609.  
  3610.     Last Updated:  Feb 5, 1997.
  3611.