home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / solaris2 / x.faq < prev   
Encoding:
Text File  |  1995-07-25  |  28.5 KB  |  748 lines

  1. -----    Solaris 2.x Frequently Answered Questions
  2.     Maintained by Ian Darwin, ian@sq.com
  3.     $Id: solaris2.faq,v 1.14 1993/05/15 17:11:08 ian Exp $ -----
  4.  
  5. [This is a rush job - I am getting sent out of the country for a week so this
  6. posting is incomplete - better partial than nothing. If you sent me updates
  7. and they're not here, please do not despair, I will get them in next time, I 
  8. hope.  -- ian]
  9.  
  10. The following is a list of questions that are frequently asked about
  11. Solaris 2.x.  You can help make it an even better-quality FAQ by writing a
  12. few lines on one topic that burned you while moving to Solaris 2.1 and
  13. sending it BY EMAIL ONLY to me, ian@sq.com. Thanks!
  14.  
  15. CONTENTS
  16.     GENERAL
  17.     1) A real list of questions will be here someday)
  18.     FOR MORE INFO
  19.     1) ditto
  20.     SYSTEM ADMINISTRATION
  21.     1) ditto
  22.     NETWORKING
  23.     1) ditto
  24.     SOFTWARE DEVELOPMENT
  25.     1) ditto
  26.  
  27. PART ONE - GENERAL
  28.  
  29. What's a Solaris anyway?
  30.  
  31.     Solaris(tm) is Sun's name for their UNIX-based user environment,
  32.     including the UNIX(tm) operating system, window system (X11-based),
  33.     and other stuff too.
  34.  
  35.     Solaris 1.x is based on SunOS4.1.x (x>=1), a version of UNIX that
  36.         is BSD-like with some SVR4 features.
  37.     Solaris 2.x is based on SunOS5.x, which is an SVR4-derived UNIX.
  38.     For more details, see the chart in the next-to-next question.
  39.  
  40. What is Solaris 2? Is it really SVR4 based?
  41.     Solaris 2.1 is an "operating environment" that includes the
  42.     SunOS 5.1 operating system and the OpenWindows 3.1 window environment.
  43.  
  44.     SunOS 5.0 and 5.1 are based on USL's SVR4.0. SVR4.0, in turn, was
  45.     developed jointly by AT&T and Sun while Sun was developing 4.1.0,
  46.     which is why things like RFS, STREAMS, shared memory, etc.,
  47.     are in SunOS 4.1.x, and why things like vnodes, NFS and XView
  48.     are in SVR4.0.
  49.  
  50. What machines does Solaris 2.x run on?
  51.  
  52.     Solaris 2.0 only ran on desktop SPARCstations and a few other Sun
  53.     machines.
  54.  
  55.     Solaris 2.1 and later comes in two flavors, SPARC and "x86".
  56.  
  57.     Solaris 2.1 for SPARC runs on all desktop SPARCstations and
  58.     clones, as well as all models of the Sun-4 family. Thee old FPU
  59.     on the 4/110 (and 260??) is not supported, so floating point
  60.     will be SLOW, but it does work.
  61.  
  62.     Solaris 2.1 for x86 is as of this writing still in the "OEM
  63.     release".  That means that it is available to developers but
  64.     isn't released to end users yet. It runs on a wide range of
  65.     high-end PC-architecture machines. "High-end" means: 16MB of
  66.     RAM and an 80486 (or 33MHz or faster 80386DX).  It will not run
  67.     on your 4 MB 16MHz 386SX, so don't bother trying!
  68.  
  69.     To summarize all this, Jim Prescott gave this chart, which I've updated:
  70.     Solaris    SunOS    OpenWin        Other    Comments
  71.     1.0    4.1.1B    2.0            (sun3 EOL)
  72.     1.0.1    4.1.2    2.0            (6[379]0-1[24]0 MP)
  73.     1.1    4.1.3    3.0            SP Viking support
  74.     2.0    5.0    3.0.1        ONC+    sun4c only
  75.        2.1SPARC    5.1    3.1         ONC+
  76.     2.1x86    5.1    3.1         ONC+    Available "soon" (OEM now)
  77.     2.2    5.2    3.2        ONC+    Avail in May(?)
  78.     2.?    5.?    4.0            Fall 1993??
  79.                         OpenWin 4 is X11R5 based: no
  80.                         NeWS, no SunView.
  81.  
  82. Will my XXX applications from 4.1.x run on Solaris 2?
  83.  
  84.     There is quite a bit of support in SunOS 5.x for running 4.1.x
  85.     binaries in an emulation mode called "Binary Compatibility"
  86.     (BCP).  This works by dynamically linking the 4.1.x binaries
  87.     with a shared library that emulates the 4.1.x binary interface
  88.     on top of 5.x, so there is some overhead. Programs will only
  89.     work if they were dynamically linked, and if they meet certain
  90.     other criteria. Best bet: try it and see.
  91.  
  92.     Be aware, though, that Sun WILL drop the binary compatibility 
  93.     package someday soon.  Try to wean yourself and your users from
  94.     depending on it, even if it means beating on your software
  95.     vendors to offer "native" Solaris2 applications.
  96.  
  97. Where is the XXX command gone now?
  98.  
  99.     There are too many of these changes to include in this FAQ.
  100.     The file "whatlist" is included in the "Admigration" package
  101.     (see below), was posted to Newsgroups comp.unix.solaris and
  102.     comp.sys.sun.admin by ft@cbnewsi.cb.att.com (frederick.d.true)
  103.     with the subject line
  104.  
  105.     Subject: INFO: Command summary, SunOS 4.x --> 5.x
  106.  
  107.     You can also FTP this file from ftp.cs.toronto.edu in
  108.     /pub/darwin/solaris2/whatlist.
  109.  
  110. Should I upgrade?
  111.  
  112.     That depends - on you, your situation, your application mix, etc.
  113.     Eventually SunOS4.1.x will go the way of the 3/50 - it'll still
  114.     be around, but Sun will no longer support it.
  115.  
  116. Is Solaris 2.1 reliable/stable enough to use?
  117.  
  118.     The concensus seems to be that yes, it is, for many applications
  119.     and most users. Your mileage may vary.
  120.  
  121.     As far as stability meaning "does it crash often?" then the
  122.     answer is that it is fairly stable.  There are a few patches
  123.     available, patch ids 100884 and 100858 that are supposed to fix
  124.     all of the bugs that I've seen crashes for.  There may be other
  125.     patches for fixing various bits and pieces: check with your
  126.     patch supplier for more details.
  127.  
  128.     Solaris 2.2 is expected in May '93, and should lay the last
  129.     major batch of instabilities to rest -- we hope.
  130.  
  131. PART TWO - FOR MORE INFO
  132.  
  133. How can I RTFM when I don't have it anymore?
  134.  
  135.     "RTFM" is an old saying: Read The Manual.  Sun still sells
  136.     printed manuals, but don't automatically distribute them. A
  137.     smaller, lighter, bookshelf-friendly :-) CD-ROM called "The
  138.     AnswerBook"(tm) contains all the printed documents in
  139.     machine-readable (PostScript) form, and a keyword search
  140.     engine. 90% of your introductory questions are answered therein!
  141.  
  142.     Note there are (at least) two answerbooks. The Solaris 2.1 CD itself
  143.     includes the "OpenWindows Answerbook", which has a few
  144.     OpenWindows book. There is also the "Solaris 2.1 System Software
  145.     AnswerBook" (SUNWabsso) which has almost *ALL* of the documents
  146.     (including another copy of /usr/man, but indexed for searching).
  147.  
  148.     As distributed, the Answerbook search engine runs only with the
  149.     OpenWindows server, not with MIT X11. This will change; for now,
  150.     if you insist on using the MIT server instead of what Sun provides,
  151.     you'll have to use one of several "answerbook workaround" scripts
  152.     that are in circulation.
  153.  
  154.     You should buy (or print from within Answerbook) at least the
  155.     reference manual and the System and Network Administration books,
  156.     because if your system becomes disabled you won't be able to
  157.     run the Answerbook to find out how to fix it...
  158.  
  159. What Software is available for Solaris 2.1?
  160.  
  161.     Most commercial software that ran on 4.x either will run in BCP
  162.     mode, or is available for Solaris 2.1, or is being ported now.
  163.  
  164.     A list of freeware (some "public domain", but mostly copyright-
  165.     but-freely-distributable) [as well as commercial software??]
  166.     that has been ported to Solaris 2.1
  167.     is posted monthly to the newsgroup comp.unix.solaris by
  168.     ric@updike.sri.com (Richard Steinberger). Look for this:
  169.  
  170.         Subject: Solaris SW list.  Monthly Post.
  171.  
  172.     If you can't wait, the list is also available via anonymous FTP
  173.     from updike.sri.com.
  174.  
  175. What FTP sites do I need to know about?
  176.  
  177.     SunSite (sunsite.unc.edu) - Sun sponsors an FTP site at the
  178.     University of North Carolina. Lots of good stuff here.
  179.  
  180.     OpCom. (opcom.sun.ca) - run by Sun Microsystems' OpCom group
  181.     (I don't think the acronym is public :-)) - lots of stuff. Here
  182.     is an extract from their README:
  183.  
  184.     pub/binaries    - binaries/man pages for Solaris 2.0 native binaries.
  185.  
  186.     pub/Cygnus      - the Cygnus port of gcc
  187.  
  188.     pub/newsletter  - issues of the monthly OpCom newsletter.
  189.  
  190.     pub/docs        - assorted documentation, papers, and other information.
  191.             - all of the RFCs
  192.  
  193.     pub/drivers     - information related to device driver writing under
  194.               under Solaris 2.0 as well as a skeleton SCSI driver.
  195.  
  196.     ls-lR.Z         - compressed recursive listing of files available
  197.               on the server.
  198.  
  199.     pub/tars        - compressed tars.
  200.  
  201.     pub/tmp         - place for uploading things to the server.
  202.  
  203.     pub/R5          - the unadultered MIT x11r5 distribution.
  204.  
  205.     pub/x11r5       - port of X11r5 to Solaris 2.0, binaries, libraries
  206.               and headers.  A compressed tar of this tree can
  207.               be found in tars.
  208.  
  209.     export.lcs.mit.edu - the master X11 site
  210.  
  211.     ftp.uu.net    - UuNet communication archives
  212.  
  213. What other FAQ's do I need to know about?
  214.  
  215.     All of them :-). But in particular you should see the FAQ's
  216.     in these newsgroups:
  217.     comp.windows.open-look - Anything related to OpenWindows or the
  218.         OPEN LOOK Graphical User Interface.
  219.  
  220.     The Sun-Managers mailing list (see below) has its own FAQ,
  221.         maintained by John DiMarco <jdd@cdf.toronto.edu>.
  222.         FTP from ra.mcs.anl.gov in the sun-managers directory.
  223.  
  224.     [others...]
  225.  
  226. What mailing lists should I get?
  227.  
  228.     First, read all the USENET newsgroups with "sun" in their name :-)
  229.  
  230.     1) The Florida SunFlash is a "closed" mailing list for Sun owners.
  231.     It contains mostly press releases from Sun and third-party
  232.     vendors.  This list contains information on conferences such as
  233.     the Solaris Developer's Conference as well.  It is normally
  234.     distributed regionally - to find out about a mail point in your
  235.     area, or for other information send mail to info-sunflash@Sun.COM.
  236.  
  237.     Subscription requests should be sent to sunflash-request@Sun.COM.
  238.     Archives are on solar.nova.edu, ftp.uu.net, sunsite.unc.edu,
  239.     src.doc.ic.ac.uk and ftp.adelaide.edu.au
  240.  
  241.     2) The Sun Managers list is an unmoderated mailing list for
  242.     *emergency-only* requests. Subscribe and listen for a while,
  243.     and read the regularly-posted Policy statement BEFORE sending
  244.     mail to it, and to get a feel for what kinds of traffic it carries.
  245.     Write to sun-managers-request@eecs.nwu.edu.
  246.  
  247. What books should I read?
  248.  
  249.     O'Reilly & Associates specializes in UNIX books.  Their "UNIX
  250.     In A Nutshell" has been updated for SVR4 and Solaris 2.0.  Get
  251.     their catalog by calling 800-998-9938 (1-707-829-0515) 7AM to
  252.     5PM PST.
  253.  
  254.     Prentice-Hall has reprints of much of the AT&T documentation.
  255.     I'm not sure how much of this you need - a lot of the same
  256.     material is in the Answerbook (see above).
  257.  
  258. PART THREE - SYSTEM ADMINISTRATION
  259.  
  260. How can I convert all my local changes that I've made over the years
  261. into their corresponding forms on Solaris 2?
  262.  
  263.     1) Do it by hand. You did document every single change and
  264.     check it into RCS, didn't you?
  265.  
  266.     2) Automate it, using the AMToolkit (Administration Migration 
  267.     Toolkit) from the OpCom FTP server (q.v.)!
  268.  
  269. What are "packages"?
  270.  
  271.     A SVR4 mechanism for "standardizing" the installation of
  272.     optional software. Most vendors are expected to use this
  273.     format for distributing add-on software for Solaris 2.x.
  274.  
  275.     Packages can be installed/deinstalled with pkgadd/pkgrm which
  276.     are standard SVR4 items, or with swm (CRT) or swmtool (GUI-based)
  277.     which are provided only in Solaris 2.
  278.  
  279. Why can't I write in /home?
  280.  
  281.     This is a common one! SunOS is delivered with the "automounter"
  282.     enabled. The automounter is designed for NFS sites, to
  283.     simplify maintenance of the list of filesystems that need
  284.     mounting. However it is a burden for standalone sites.
  285.  
  286.     The automounter takes over /home and in effect becomes the NFS
  287.     server for it, so it no longer behaves like a normal directory.
  288.     This is normally a Good Thing as it simplifies administration if
  289.     everybody's home directory is under /home.
  290.  
  291.     To kill it off for standalone or small networks, you can comment out
  292.     the three lines in /etc/init.d/nfs.client that start "if" (from the if
  293.     to the fi!!), and reboot.
  294.  
  295.     To learn about it, read the O'Reilly book
  296.     Managing NFS and NIS, or ftp the white paper 'The Art of Automounting". 
  297.     from sunsite.unc.edu in the directory /pub/sun-info/white-papers.
  298.  
  299. What is this junk mail about an error in the crontab entry?
  300.  
  301.     Solaris 2.1 (FCS on SPARC and OEM on Intel) shipped with a
  302.     blank line at the end of root's crontab file. The result is
  303.     that root gets mail at boot time and nightly thereafter,
  304.     complaining about an error in the crontab file and that it has
  305.     "ignored the entry".  Pretty hard work ignoring that blank
  306.     line, eh?  If the messages bug you (they should), su to root
  307.     and use "crontab -e" to edit root's crontab and delete the
  308.     blank line at the end of the file. Fixed in FCS on Intel
  309.     and 2.2 on SPARC.
  310.  
  311. Why are there no passwords in /etc/passwd?
  312.  
  313.     System V Release 4 includes a feature called "shadow passwords".
  314.     The encrypted passwords are moved out into a shadow password file
  315.     (called /etc/shadow in this release) that is NOT publicly readable.
  316.     The passwd file has always been readable so that, for example, ls -l
  317.     could figure out who owns what. But having the passwd encryptions
  318.     readable is a security risk (they can't be decrypted but the bad guy
  319.     can encrypt common words and names &c and compare them with the
  320.     encryptions).
  321.  
  322.     The Shadow Password feature is mostly transparent, but if you
  323.     do any passwd hacking you have to know about it!  And DO make
  324.     sure that /etc/shadow is not publicly readable!
  325.  
  326. Why can't I rlogin/telnet in as root?
  327.  
  328.     >... when I try to rlogin as root ...
  329.     >it gives me the message "Not on system console
  330.     >Connection closed.".  What have I left out?
  331.  
  332.     Solaris 2 comes out of the box a heck of a lot more secure than
  333.     Solaris 1.  There is no '+' in the hosts.equiv.  root logins are not
  334.     allowed anywhere except the console.  All accounts require passwords.
  335.     In order to allow root logins over the net, you need to edit the 
  336.     /etc/default/login file and comment out or otherwise change the 
  337.     CONSOLE= line.
  338.  
  339. How can I print from a Solaris 2 (or any System V Release 4) system to
  340. a SunOS4.x (or any other BSD) system?
  341.  
  342.     Hmmm, the lp system is totally different than what you're used to.
  343.     The System V Line Printer System is a lot more, well, flexible.
  344.     A cynic might say "complicated".  Here's a very quick guide --
  345.     see the man pages for each of these commands for the details.
  346.  
  347.     Let's say your Solaris2 workstation is called "sol" and the
  348.     4.1.x server is called "bertha" and you want the printer name
  349.     to be "printer" (imaginative, eh?).
  350.  
  351.     sol# lpsystem -t bsd bertha        # says bertha is a bsd system
  352.     sol# lpadmin -p printer -s bertha    # creates "printer" on "sol"
  353.                         # to be printed on "bertha"
  354.     sol# accept printer            # allow queueing
  355.     sol# enable printer            # allow printing
  356.     sol# lpstat -t                # check the status
  357.  
  358.     Finally, if that's your only printer, make it the default:
  359.  
  360.     sol# lpadmin -d printer
  361.  
  362.     On some systems you may have to turn on the port monitor.
  363.  
  364. I did that. Why does it now complain about invalid content types?
  365.  
  366.     I said it was complicated!
  367.  
  368.     For better or for worse, you need to know about printer content types.
  369.     See the man page for "lpadmin".
  370.  
  371.     To get transparent mode, try this:
  372.  
  373.     lpadmin -I any -p printer
  374.  
  375. Isn't there any easier way?
  376.  
  377.     The GUI-based Admintool has a Printer Manager that is supposed to
  378.     be able to do all this and more. Try it; Sun hopes you'll like it.
  379.  
  380. Now my jobs print but they stay in the queue after!?
  381.  
  382.     It's a known bug, and will probably get fixed in 2.3, since
  383.     2.2 is too close to being frozen.
  384.  
  385.     [Now you want to set up Solaris 2 as a print server?
  386.     You're on your own.]
  387.  
  388. What happened to /dev/MAKEDEV?
  389.  
  390.     Device drivers are linked in dynamically. When you add new
  391.     devices, just shutdown the system and do
  392.         boot ... -r    # use correct drive spec for "..."
  393.     to *r*ebuild the /devices and /dev directories.
  394.  
  395. What happened to /etc/rc and /etc/rc.local?
  396.  
  397.     They're now fragmented into 12 million tiny little pieces. Look in 
  398.     the following files to get oriented:
  399.         /etc/inittab - starting point for init
  400.         /sbin/rcS, /etc/rcS.d/* - booting stuff
  401.         /sbin/rc2, /etc/rc2.d/*,
  402.             /sbin/rc3, /etc/rc3.d/* - stuff for multi-user startup.
  403.     Note that all files in /etc/rc*.d/* are hardlinked from
  404.     /etc/init.d (with better names), so you should grep in there.
  405.  
  406.     There are many "run levels" to the System V init; the run
  407.     level 3 is normally used for "multi user with networking."
  408.  
  409. I can't understand that stuff; can't I have /etc/rc.local back?
  410. I just want to keep all my local changes in one place.
  411.  
  412.     No. You can never have rc.local back the way it was. But then, it
  413.     never really *was* purely a "local" rc file. To have a real
  414.     "local" rc file with just your changes in it, copy this file
  415.     into /etc/init.d/rc.local, and ln it to /etc/rc3.d/S99rc.local.
  416.     Put your startup stuff in the "start" section.
  417.  
  418.     ----- Cut here -----
  419.     # /etc/init.d/rc.local - to be linked into /etc/rc3.d as 
  420.     # S99rc.local -- a place to hang local startup stuff.
  421.     # started after everything else when going multi-user.
  422.  
  423.     # Ian Darwin, Toronto, November, 1992
  424.     # As with all system changes, use at own risk!
  425.  
  426.     case "$1" in
  427.     'start')
  428.         echo "Starting local services...\c"
  429.  
  430.         if [ -f /usr/sbin/mydaemon ]; then
  431.             /usr/sbin/mydaemon 1>/dev/console 2>&1
  432.         fi
  433.         echo ""
  434.         ;;
  435.     'stop')
  436.         echo "$0: Not stopping any service - use ucb shutdown for that."
  437.         ;;
  438.     *)
  439.         echo "Usage: $0 { start | stop }"
  440.         ;;
  441.     esac
  442.     ------ End of Cut Here -----
  443.  
  444. Speaking of that, why are there two versions of shutdown?
  445.     SVR4 (hence SunOS 5.x) tries to make everybody happy. The
  446.     traditional (slow) System V "shutdown" runs all the rc?.d/*
  447.     shell scripts with "stop" as the argument; many of them run
  448.     ps(!) to look for processes to kill. The UCB "shutdown" tells
  449.     init to kill all non-single-user processes, which is about two
  450.     orders of magnitude faster. Unfortunately, the UCB version does
  451.     everything it should *except* actually halt or reboot in
  452.     SunOS5.1 (and some other SVR4 implementations).
  453.  
  454. When will somebody publish a package of the BSD (4.3BSD Net2) "init",
  455.     "getty", and "rc/rc.local", so we can go back to life in the
  456.     good old days?
  457.  
  458.     I dunno. It should be doable. Wanna fund me to develop it?
  459.     Don't try this at home, kids!!!!! Experienced UNIX hackers only.
  460.  
  461.     If you get it working reliably and securely, let me know so I
  462.     can mention it in this FAQ!
  463.  
  464. Speaking of what, what have they done to our old friend getty? What is this
  465. damn pmadm thing that keeps cropping up?
  466.  
  467.     I was hoping you wouldn't ask. PMadm stands for Port Monitor Admin,
  468.     and it's part of a ridiculously complicated bit of software
  469.     over-engineering that is destined to make everybody an expert.
  470.  
  471.     Best advice for workstations: don't touch it! It works out of the box.
  472.     For servers, you'll have to read the manual [anybody done this yet?]
  473.     This should be in admintool in Solaris2.2 or 2.3, I hope.
  474.  
  475. How do I get the screen to blank when nobody's using it?
  476.  
  477.     Under 4.1.x you invoke screenblank in /etc/rc.local, but there's no
  478.     screenblank in Solaris 2.1.  Sun recommends that you
  479.     have everybody put `xset s on' in their .xinitrc, but this
  480.     may be hard to police, and in any event it won't work when nobody is
  481.     logged in.  The simplest workaround is to copy /usr/bin/screenblank
  482.     from 4.1.x and run it in binary compatibility mode.  See ``What
  483.     happened to /etc/rc and /etc/rc.local?'' for how to invoke it.
  484.  
  485.     Another possibility is to use xdm, but you'll have to use your own,
  486.     since the xdm shipped with Solaris 2.1 doesn't work.
  487.  
  488.     The 4.1.x screenblank didn't work for me; I use Jef Poskanzer's
  489.     freeware screenblank (FTP source from XXX various archive sites).
  490.  
  491. And what about screendump and screenload?
  492.  
  493.     They're gone too. Screendump from 4.1.1 works, at least for some
  494.     frame buffers.
  495.  
  496. So how about etherfind?
  497.  
  498.     There is a replacement for etherfind, but it has changed name;
  499.     in fact it's a whole new program. It IS better. To find it,
  500.     though, you would have to realize that network snooping is not
  501.     really ethernet-specific.  To end the suspense :-), here it is:
  502.  
  503.     % man -k snoop
  504.     snoop    snoop (1m)    - capture network packets and inspect them
  505.     %
  506.  
  507.     It works differently - it has an immediate mode, a capture-to-disk mode,
  508.     and a playback-from-disk mode.  Read the man page for details.
  509.  
  510. The "find" program complains that my root directory doesn't exist - is it mad?
  511.  
  512.     Yes! Actually, messages like
  513.  
  514.     find : cannot open /: No such file or directory.
  515.  
  516.     are due to a bug in the tree walking function (nftw(3)).  If it
  517.     runs into problems traversing the tree, it gives up and
  518.     incorrectly complains about the top level directory of the
  519.     tree.  [The submitter seems] to recall that the most common
  520.     case which caused trouble was a directory somewhere in the
  521.     directory hierarchy which was readable but not executable.
  522.     With the fix it will just complain about the directory to which
  523.     it couldn't chdir and skip descending that subtree.
  524.  
  525.  
  526. I'm having troubles with high-speed input on the Sparc serial ports.
  527. What should I do?
  528.  
  529.     Try using UUCP.  The Solaris 2.x sparc serial driver has trouble
  530.     receiving data at or above 9600 bps.  Symptoms include sluggish
  531.     response, `NOTICE: zs0: silo overflow' console messages, sending
  532.     spurious control-Gs to the serial port, and applications that cannot be
  533.     killed even with `kill -9'.  This problem surfaces in many
  534.     applications, including Kermit and tip.  UUCP seems immune, though,
  535.     because its protocol throttles input sufficiently.
  536.  
  537. How do I make ksh or csh be the login shell for root?
  538.  
  539.     Root's shell is /sbin/sh, which is statically linked.
  540.     Don't just insert a 'c' before "sh" as previously, as that would
  541.     look for /sbin/csh, which doesn't exist.  Don't just change it to 
  542.     /bin/csh, since that's really /usr/bin/csh, which is dynamically
  543.     linked, because:
  544.         a) /usr may not be mounted initially, and then
  545.            you're in deep (the shared libraries are in /usr!), and
  546.         b) There is code in the startup scripts that assumes that
  547.            everything critical is in /etc/lib, not /usr/lib.
  548.     Approach with caution!
  549.  
  550.     Safer bet - have an alternate root account, like "rootcsh",
  551.     with uid 0, and /bin/csh as its shell. Put it after root's entry in
  552.     the passwd file.  Only drawback: you now have to remember to
  553.     change all of root's passwds at the same time.
  554.  
  555.     Third bet - in root's .profile, check if /usr is mounted and, if so,
  556.     exec /bin/ksh or whatever.
  557.  
  558. What is this message: "automount: No network locking on thathost,
  559.     contact administrator to install server change."?
  560.  
  561.     The other machine (an NFS server) is running 4.1.x and needs a
  562.     patch from Sun to update its network lock daemon (lockd). If
  563.     you don't install the patch on the server, file locking will
  564.     not work on files mounted from "thathost". The 100075-09 patch
  565.     fixes a bunch of other lock manager problems, so it may be a
  566.     Good Thing To Get; however, it may also cause the machine on
  567.     which the patch is installed to have trouble talking to servers
  568.     with no patch or older patches, so Be Warned.
  569.  
  570. How do I make Solaris2 use my old ADAPTEC ACB-4000 and Emulex MD-21 disks?
  571.  
  572.     As with any hardware addition, first try the obvious (boot -r
  573.     after installing and power-cycling everything).
  574.  
  575.     The adaptec is no longer supported; man -s7 sd no longer even
  576.     lists it!  So I guess they go over the cliff. Either that, or
  577.     take the drives out and put them on a PC, where ST506 MFM
  578.     drives are still supported.
  579.  
  580.     The MD21 is more important (read, bigger disk on it). It shows
  581.     up in probe-scsi as two ESDI targets, but Solaris 2 won't touch
  582.     them; boot -r does not make devices for them. It is claimed
  583.     that the MD21+drive combo worked in its previous life,
  584.     something I can't too easily verify.
  585.  
  586.     The config:
  587.     ok probe-scsi | (transcribe to paper) | (transcribe from paper)
  588.     Target 0
  589.         Unit 0    Disk    EMULEX    MD21/S2    ESDIA00
  590.         Unit 1    Disk    EMULEX    MD21/S2    ESDIA00
  591.     Target 1
  592.         Unit 0    Disk    CDC    ... <-- this is what I'm booted from
  593.     Target 5
  594.         Unit 0    Tape    Removable
  595.     ok
  596.  
  597.     [Any clues? -- ian]
  598.  
  599. PART FOUR - NETWORKING
  600.  
  601. Can I use DNS with Solaris 2.1?
  602.  
  603.     1) Instability of in.named on Solaris 2.1.
  604.  
  605.     It seems that the in.named included in the Solaris 2.1 distribution
  606.     is terribly unstable. The easiest solution for now I have discovered
  607.     is to use the OLD (SunOS 4.1.2 in my case) in binary compatibility
  608.     mode. This works just fine. If it's slower I can't tell.
  609.     There's also a patch (100902-01) available now for 2.1.
  610.  
  611.     2) Using a Solaris 2.1 host and the DNS for name resolution.
  612.  
  613.     Under SunOS 4.1 it was next to impossible to run DNS name resolution
  614.     without either a kludge fix or the NIS (V2 I guess). Under Solaris
  615.     2.1 it is incredibly simple, but you must ignore what the manual
  616.     (SunOS 5.1 Administering NIS+ and DNS) says (it should be fixed
  617.     in Solaris 2.2). All that is required to make a non-NIS host
  618.     use the DNS for name resolution is to change the host: line in
  619.     the /etc/nsswitch.conf file to the following:
  620.  
  621.     hosts:    files dns
  622.  
  623.     (i.e., when looking for hosts, look in /etc/hosts first, if not
  624.     found there, try DNS, if still not found then give up) and set
  625.     up a correct version of /etc/resolv.conf to tell the resolver
  626.     routines (like gethostbyname) how to contact the DNS
  627.     nameserver. You must have the names of machines which are
  628.     somehow contacted during boot in the files in /etc and files
  629.     must appear first in the hosts: line, otherwise the machine
  630.     will hang during boot (at least ours did). Make sure that
  631.     /etc/netconfig is using switch.so. (It does from the factory.)
  632.  
  633.  
  634. Speaking of nsswitch.conf, what is it?
  635.  
  636.     An idea whose time has come (it came to Ultrix a few years
  637.     ago).  You can control which of the "resolver" services are
  638.     read from NIS (formerly YP), which from NIS+, which from the
  639.     files in /etc, and which are from DNS (but only "hosts" can
  640.     come from DNS).
  641.  
  642.     A common example would be:
  643.  
  644.     hosts: nis files
  645.  
  646.     which means ask NIS for host info and, if it's not found, try
  647.     the local machine's host table as a fallback.
  648.  
  649.     Advice: if you're not using NIS or DNS, suninstall probably put the
  650.     right version in. If you are, ensure that hosts and passwd come from
  651.     the network. However, many of the other services seldom if ever change.
  652.     When was that last time *you* added a line in /etc/protocols? If your
  653.     workstation has a local disk, it may be better to have programs
  654.     on your machine look up these services locally, so use "files".
  655.  
  656.     Terminology: Sun worried over the term "resolver", which
  657.     technically means any "get info" routine (getpwent(3),
  658.     gethostbyname(3), etc), but is also specifically attached to
  659.     the DNS resolver.  Therefore they used the term "source" to
  660.     mean the things after the colon (files/DNS/NIS/NIS+) and
  661.     "database" to mean the thing before the colon
  662.     (passwd/group/hosts/services/netgroup etc).
  663.  
  664. So what does [NOTFOUND=return] in nsswitch.conf mean, and where does it go?
  665.  
  666.     Type "man nsswitch.conf" for more info.  There is too much
  667.     detail to summarize here.  Briefly, [NOTFOUND=return] means
  668.     that the name service whose entry it *follows* should be
  669.     considered authoritative (so that if it's up and it says such a
  670.     name doesn't exist, believe it and return instead of continuing
  671.     to hunt for an answer).
  672.  
  673. PART FIVE - SOFTWARE DEVELOPMENT
  674.  
  675. Where is the C compiler?
  676.  
  677.     Where have you been? :-) Sun has dropped their old K&R C compiler.
  678.     Their new ANSI-standard C compiler is on the unbundled (extra cost)
  679.     SPARCcompiler/SPARCworks CD-ROM, which you have to license.
  680.     There are some other nice tools there too, like a "make tool" and
  681.     a visual idiff (interactive diff). One misfeature is that these tools
  682.     use a floating license manager that grants license usage in 15-minute
  683.     chunks, so you can't really share the compiler as you could with
  684.     a simpler floating license scheme.
  685.  
  686.     If you don't want to buy that, a free-software C compiler, gcc,
  687.     has been made available (source AND ready-to-run binaries) by
  688.     Cygnus Support for Solaris 2.  FTP it from ftp.uu.net:/vendor/cygnus,
  689.     or install it from the CDware CD (Volume 4).
  690.  
  691.     The Cygnus distribution includes:
  692.     byacc (yacc repl) gcc (ansi C compiler)    info patch
  693.     cc (ln to gcc)    gdb (good debugger)    
  694.     flex (lex repl)    gprof    makeinfo texindex
  695.  
  696.     Another version is gcc 2.3.3 from prep.ai.mit.edu, which
  697.     includes binaries and the source if you want to compile it
  698.     yourself but is more said to be more likely to work if you want
  699.     to compile X11R5.
  700.  
  701. Speaking of that, what else do I need to compile X11R5?
  702.  
  703.     There are several "patch kits" for X11R5 under Solaris 2.1.
  704.     Most of them require gcc 2.3.3 and you must have
  705.     run "fixincludes" when you install the gcc software.
  706.  
  707. What happened to NIT? What new mechanisms exist for low-level network access?  
  708.  
  709.     See man page DLPI(7). Try NFSWATCH 4.0 for sample code using DLPI.
  710.         FTP from harbor.ecn.purdue.edu (128.46.128.76, 128.46.154.76):
  711.                 pub/davy/nfswatch4.0.tar.Z
  712.         or gatekeeper.dec.com (16.1.0.2):
  713.                 pub/net/ip/nfs/nfswatch4.0.tar.Z
  714.  
  715. [Other questions as they get summarized.]
  716.  
  717. ACKNOWLEDGEMENTS
  718.     Most of this material is either written by me or sent to me
  719.     directly. Some of it is cribbed shamelessly (with collective
  720.     credit below) from USENET postings in several groups.
  721.  
  722. Thanks to:
  723.     Guy Harris <guy@auspex.com>
  724.     Lee Quin <lee@sq.com>
  725.     Dean Kemp at Sun Canada
  726.     Jim Prescott
  727.     Warren Strange, Sun Microsystems of Canada, Inc., Vancouver.
  728.     Dave Miner  <dave.miner@east.sun.com>
  729.     Pete Hartman <pwh@bradley.bradley.edu>
  730.     eggert@twinsun.com (Paul Eggert)
  731.     geertj@ica.philips.nl (Geert Jan de Groot)
  732.     Steve Bellenot <bellenot@math.fsu.edu>
  733.     Jennine Townsend <jennine@aimla.com>
  734.     bill@access.com (Bill Hunter)
  735.     Dave Miner <dave.miner@east.sun.com>
  736.     elling@eng.auburn.edu (Richard Elling)
  737.     jkp@anwsun.phya.utoledo.edu (Jens Petersohn)
  738.     Carl.Smith@Eng.Sun.COM (Carl Smith)
  739.     Thomas.Maslen@Eng.Sun.COM (Thomas Maslen)
  740.     ctchang@hawk.cc.as.edu.tw (Chin-Tang Chang)
  741.     Casper H.S. Dik, FWI, University of Amsterdam
  742.     Richard.Mathews@West.Sun.COM
  743.     Mike Kupfer  <kupfer@eng.sun.com>
  744.  
  745. ----- End of Solaris 2.x FAQ -- Maintained by Ian Darwin, ian@sq.com -----
  746.  
  747.  
  748.