home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / coherent / 6904 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  21.4 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!col.hp.com!monarch!mike
  2. From: mike@array.com (Mike Willett)
  3. Newsgroups: comp.os.coherent
  4. Subject: Coherent FAQ, Technical Info for Version 3.2
  5. Keywords: FAQ, Technical Info Coherent OS Version 3.2
  6. Message-ID: <3021@monarch.array.com>
  7. Date: 23 Jan 93 02:01:37 GMT
  8. Organization: Array Microsystems, Colorado Springs, CO. USA
  9. Lines: 533
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.        T E C H N I C A L  T I P S  F O R  C O H E R E N T  3.2
  18.  
  19.               Technical Tips FAQ for Rev 3.2 of Coherent
  20.  
  21.     Comp.os.coherent (Usenet) / Coherent list on ListServ@IndyCMS
  22.  
  23.                              FAQ Rev. 2.3
  24.  
  25.  
  26.                C O N T E N T S :
  27.                -----------------
  28.                Modem devices:
  29.                Remote logins:
  30.                Fast modems:
  31.                Simultaneous users:
  32.                Usenet news software:
  33.                Email packages:
  34.                The 64K question:
  35.                Compiler hints:
  36.                Hardware configurations:
  37.                Termio hints:
  38.                Curses:
  39.                More uucp:
  40.                How to create a bootable >>>R/W<<< floppy from Coherent:
  41.                Master Boot Reinstallation:
  42.                Line Printer Help:
  43.                Moving data from a Sun to Coherent:
  44.                Multi-Volume Archive:
  45.                SCSI MKFS Notes:
  46.                DOS to Coherent:
  47.                Uuinstall Bug Help:
  48.                Xwindows:
  49.                Tar Help:
  50.                Setting Boot Partition: DOS or Coherent?
  51.                A Backup Script:
  52.  
  53.                MISC:
  54.                Disclaimer:
  55.                Trademarks:
  56.  
  57.                      T E C H N I C A L  T I P S :
  58. -----------------------------------------------------------------------
  59.  
  60. MODEM DEVICES:
  61. Q: What devices should I use with a modem for dialing in / dialing out
  62.  
  63. A: For dialing in you should use a device with modem control. For example
  64.    com1r or com2r. That is important to ensure that when the calling site
  65.    dropped carrier, that also at your site SIGHUP is sent to already running
  66.    processes, to ensure that the modem hangs up (dropping DTR) and a new
  67.    getty is opened on that port to enable further logins.
  68.  
  69.    For dialing out or local terminals you do not need modem control
  70.    Also you do not have to worry about cabling problems, just use some
  71.    of those null modem cables available in most computer stores.
  72.  
  73. REMOTE LOGINS:
  74. Q:  How do I enable logins via modem to my machine:
  75.  
  76. A:  I assume that modem is set to AUTO-ANSWER (ATS0=1) and the cabling
  77.     is ok.
  78.     Edit the file  /etc/ttys. Here an example for com2:
  79.  
  80.     0rPcom2r
  81.  
  82.     0            = not yet enabled (enable = allow login, run getty)
  83.  
  84.     r            = remote access   (will enable asking of a password
  85.                                     for remote-access (see /etc/passwd)
  86.                    Why ? System security, additional password
  87.  
  88.     P            = speed (your modem is connected to the computer)
  89.                    P = 9600 Baud, I use this for my Telebit Modem
  90.  
  91.     com2r        = device with modem control, when CARRIER is lost it
  92.                    will sent SIGHUP to all processes running on that
  93.                    line and will also drop DTR so a modem hangup or
  94.                    a modern modem does a hardware reset.
  95.  
  96.      Now type the following:
  97.      enable com2r    (for Coherent 3.2 that's enough)
  98.      kill -1 1       (Coherent 3.0.0 or 3.1.0, Process INIT will start
  99.                       a getty on com2r)
  100.  
  101. FAST MODEMS:
  102. Q:    Can I use fast modems with Coherent 3.2?
  103.  
  104. A:    Yes you can. But you must think about the following:
  105.  
  106.       a) maximum  Baud rate between modem - machine is 9600 Baud
  107.          (Coherent as a multiuser/multitasking environment is
  108.           not fast enough for 19200 Baud)
  109.  
  110.       b) cps-rates in transfer depend on modem/method
  111.  
  112.          calling into my machine (T2500) with a USR, using sz for transfer:
  113.                    480 cps to 600 cps (compressed, uncompressed files)
  114.  
  115.          calling out with uucp (T2500):
  116.                    860 cps
  117.  
  118.          The rate may differ if you use a slow 286 or 386. The above results
  119.          were yielded with a 386/33.
  120.  
  121. SIMULTANEOUS USERS:
  122. Q:    I want to use Coherent 3.2 as a multiuser operating system. How many
  123.       users can work with it at the same time ?
  124.  
  125. A:    Now 11 User:
  126.       console   : 1
  127.       com1      : 1
  128.       com2      : 1
  129.       Multiport : 8
  130.       --------------
  131.                  11
  132.  
  133. USENET NEWS SOFTWARE:
  134. Q:    Is there any Net-News Software for Coherent ?
  135.  
  136. A:    Yes, there are several packages available:
  137.  
  138.        CNEWS  -  the famous package
  139.          difficult to install (although there is a nice installation
  140.          script in the Coherent version). Only for advanced users !
  141.          Has no reader !
  142.  
  143.        WNEWS 3.0  -  News for MINIX, ported to Coherent
  144.          based on BNEWS - small, not bad
  145.          Has no reader
  146.  
  147.        rn
  148.           the well known newsreader
  149.  
  150.        tass
  151.             curses based newsreader. Nice, but you should not have
  152.             too much groups or articles in /usr/spool/news.
  153.  
  154.        bsnews
  155.           small news package for receiving news via email
  156.  
  157.         and others...
  158.  
  159. EMAIL PACKAGES:
  160. Q:    I do not like Coherent's mailer. What can I use instead of it ?
  161.  
  162. A:    WMAIL 3.63  -  a minix port, MAILX-clone
  163.  
  164.       comb 1.29   -  curses based mailer, nice interface
  165.  
  166.       You should ensure that in both cases you have smail 2.5 as
  167.       a smart-mailer that understands domain addresses.
  168.       smail 2.5 is already in Coherent 3.2
  169.  
  170. THE 64K QUESTION:
  171. Q:    Does Coherent really have a 64 kb limitation ? I want to port
  172.       the GNU-C-Compiler and compile big programs.
  173.  
  174. A:    Coherent programs are limited to 64 K for code and 64 k for data
  175.       and stack. The limit is not in the compiler, it's in the kernel
  176.       or at least in the actual system design. No process can exceed this
  177.       limitation.
  178.       But Binaries in Coherent are about 40 % smaller so big programs
  179.       for "Real-UNIXES" may also be portable
  180.  
  181. COMPILER HINTS:
  182. Q:    I write a C-program that seems to be ok but it still core dumped.
  183.       Is this a compiler error ? Is my program wrong ?
  184.  
  185. A:    If a program needs a lot of space for local data (resided on the
  186.       stack in most cases) then the maximum size for the stack may be
  187.       exceeded and your return addresses or other important things were
  188.       overwritten.
  189.       With the program fixstack you can increase the size for the stack
  190.       (and also cut the space for data)
  191.       Try size my_prog before and after fixstacking to see the difference.
  192.  
  193. HARDWARE CONFIGURATIONS:
  194. Q:     What hardware (Motherboard, hard disk) do I need for Coherent ?
  195.  
  196. A:     Difficult question. Minimum is a AT 286 with 640 KB RAM and a
  197.        hard disk (MFM,RLL,ESDI,SCSI (some), IDE (some)) with at least
  198.        10 MB free disk space.
  199.  
  200.        Nevertheless Coherent is not the fastest operating system, so
  201.        a 386 with at least 25 MHZ and 4 MB RAM and a fast hard disk
  202.        (a hard disk is always too small !!!!) is the minimum config-
  203.        uration for a usable multi-user-operating.
  204.  
  205. TERMIO HINTS:
  206. Q:    I compiled a program that uses termio but it did not work.
  207.  
  208. A:    The termio in Coherent (at least 3.1.0 and the first 3.2.0) did
  209.       not work in all cases. So try the sgtty, that works fine.
  210.       When porting programs try to find the -DBSD-parts. There you will
  211.       find in most cases the sgtty-parts you need for porting.
  212.  
  213. CURSES:
  214. Q:    I compiled a program that uses curses but the screen sometimes get
  215.       garbled or the machine seems to hang
  216.  
  217. A:    Maybe you still have an old libcurses.a. Replace it with a newer
  218.       copy.
  219.  
  220. MORE UUCP:
  221. Q:    I often loose email or files after receiving them with UUCP.
  222.  
  223. A:    Try to get the newest UUCP-update from MWCBBS. The old packages
  224.       still have some problems. Check the permissions, at least for example
  225.       with comparing them with those on your original diskettes.
  226.       Check also the permissions of the needed directories.
  227.       In /usr/spool/uucp/Logs./uucp-program you will find the "hints" of the
  228.       "uucp-program" (uucico, uucp, uux,uuxqt) what goes wrong.
  229.       In Coherent 3.2. you have the program uucheck that will check your
  230.       uucp-installation and is also able to "fix" problems. But you have to
  231.       run it twice if you run it as root because the first time it creates
  232.       the needed directories and the second run sets the correct permission.
  233.  
  234. Q:    I am having a problem connecting to uucp sites not running Coherent
  235.       after updating to Coherent 3.2.  The error looks like a parity
  236.       problem, with an {expect} / {actually got} output like:
  237.         uu315323t 342og310n:   (With backslashes before the numbers)
  238.  
  239.       Again, get the latest UUCP package from MWCBBS.  The 3.2 Coherent
  240.       release may exhibit a parity problem which is cured with the latest
  241.       uucp release.
  242.  
  243. HOW TO CREATE A BOOTABLE >>>R/W<<< FLOPPY from Coherent
  244.         From: Peter Fillingham  fillingham@att.com
  245. The COHERENT Operating System Release Notes (Release 3.1.0) along with
  246. the  main  manual  suggest  ways  of  creating a bootable floppy.  One
  247. difficulty of this procedure  is  that,  after  producing  a  bootable
  248. floppy,  one  can't  write  to  it !  The following shell programs are
  249. suggested as a way making a bootable floppy,  and  below  is  the  fix
  250. recommended by mwc for making the bootable floppy system read-write.
  251.  
  252.     (0) first boot your system from your hard disk, login in as  root,
  253. use  mkdir to make a convenient subdirectory [e.g., /bin/temp ]. cd to
  254. /bin/temp. Place disk #1 of your mwc original floppies  in  drive  A:,
  255. then enter
  256.  
  257.         dd if=/dev/fha0 of=cohboot count=80 bs=30b
  258.  
  259. Run it in the background if you wish [follow the above line with an &;
  260. use  ps  -axfl  if  you  are curious].  This will take just over three
  261. minutes depending on the speed of your system.  What is  going  on  is
  262. that  dd  is  creating  an  image  of  your boot floppy in you default
  263. directory with the file name cohboot. When it finishes, remove the mwc
  264. original floppy, and insert a blank disk.
  265.  
  266. (1) Next run the following shell program:
  267.  
  268.         echo "/etc/fdformat -v /dev/fha0"
  269.         /etc/fdformat -v /dev/fha0
  270.         echo "/etc/badscan -o proto /dev/fha0 2400"
  271.         /etc/badscan -o proto /dev/fha0 2400
  272.  
  273.     Run it in the background if you wish; it  takes  time.   The  echo
  274.     lines  simply  display each command line just before it is carried
  275.     out to tell you what is going on.  The  second  and  fourth  lines
  276.     format  the  floppy  and  check  for bad blocks, respectively.  In
  277.     addition,  a  file  (proto)  is  being  built  in   your   default
  278.     subdirectory.   This  file  will contain a list of the bad blocks:
  279.     look for a line with %b in it. Probably it is best to use  only  a
  280.     floppy with NO bad blocks: so try until you find one.
  281.  
  282.     (2) make sure you have a subdirectory /f0 on your hard disk;
  283.         if not, use mkdir /f0.
  284.  
  285.     (3) Next run the following shell program:
  286.  
  287.         echo "/etc/mkfs /dev/fha0 proto"
  288.         /etc/mkfs /dev/fha0 proto
  289.         echo "cp /conf/boot.fha /dev/fha0"
  290.         cp /conf/boot.fha /dev/fha0
  291.         echo "dd if=cohboot of=/dev/fha0 count=80 bs=30b"
  292.         dd if=cohboot of=/dev/fha0 count=80 bs=30b
  293.         echo "/etc/mount /dev/fha0 /f0"
  294.         /etc/mount /dev/fha0 /f0
  295.         echo "cd /f0 "
  296.         cd /f0
  297.         echo " DONE but f0 still mounted !"
  298.  
  299.     The second line produces the file system on the floppy  using  the
  300.     information  from  file proto.  The fourth line copies boot.fha to
  301.     the floppy.  The sixth line transfers the  image  of  your  system
  302.     boot  floppy  to  your newly formatted disk (note all these things
  303.     take time). Finally, the floppy is mounted so that while you  have
  304.     booted  from the hard disk and have root permissions you can write
  305.     to the floppy. The last line simply rings the bell and  tells  you
  306.     it is done.
  307.  
  308.     (4) next (noting that your default directory is /f0, i.e. the
  309.           floppy disk) enter:
  310.  
  311.           mv begin autoboot
  312.                 then enter
  313.           db coherent
  314.                 then enter
  315.           ronflag
  316.                 the response is
  317.           ronflag=001
  318.                 then enter
  319.           .=0
  320.                 then a response appears
  321.           ronflag=000
  322.                 then enter
  323.           :q
  324.                 and you should get back your prompt.
  325.  
  326.     (5) Finally while the floppy is still mounted, cp over  your  most
  327.         useful  programs  to  the appropriate directories (e.g., vi or
  328.         me, du, df ...) Lastly umount f0, shutdown, sync and boot your
  329.         writable floppy.
  330.  
  331. MASTER BOOT REINSTALLATION:
  332.             From: doug@mwc.com (Doug Peterson)
  333.     I want to upgrade the DOS partition from MS-DOS 3.3 to 5.0, and the
  334.     installation program refuses to work with the Coherent master bootstrap
  335.     program. It no longer asks for the ability to boot Coherent!
  336.  
  337.     The problem specifically is caused be Microsoft's faulty update install
  338.     procedure. They assume you have no other operating system on the
  339.     computer.
  340.  
  341.     When the 5.0 update install is run, the procedure archives the original
  342.     master boot block of the hard drive and rewrites a brand new one.
  343.     Problem is, it takes Coherent's master boot along with it. To restore
  344.     the master boot is very simple:
  345.  
  346.     Use dos 5.0 fdisk to change the active partition to COHERENT. Reboot.
  347.  
  348.     Use COHERENT's fdisk utility with the -b option to rewrite a new master
  349.     boot. Specifically; fdisk -b /conf/mboot /dev/at0x <ENTER>
  350.  
  351.     Once completed, you can now boot either system no matter which one is
  352.     active or inactive.
  353.  
  354.  
  355. LINE PRINTER HELP: From: dave@uvm-gen!pete (Dave Peterson)
  356.     I have my printer hooked up to lpt1 and cannot get any output.  I have
  357.     checked my files, but, no luck.  What's the problem?
  358.  
  359.     1) ls -li   ( The i will list the inode number, this will tell you where
  360.                   you have linked /dev/lp to. )
  361.  
  362.     2) ln -f /dev/lpt2 /dev/lp  ( link to lpt2  IBM and MWC number the ports
  363.                                differently thus lpt2 is the first printer )
  364.                                [ you need to be root or bin to do the link ]
  365.  
  366.     This is a partial listing of my /dev directory note the first number is
  367.     the inode number.  I have linked lp to lpt2.
  368.       174 c-w--w--w-  2 bin        bin          3   1 Mon Nov 25 17:36 /dev/lp
  369.       101 c-w--w--w-  1 bin        bin          3   0 Fri Apr 27  1990 /dev/lpt1
  370.       174 c-w--w--w-  2 bin        bin          3   1 Mon Nov 25 17:36 /dev/lpt2
  371.       173 c-w--w--w-  1 bin        bin          3   2 Fri Apr 27  1990 /dev/lpt3
  372.  
  373.     As a final point when you send data to /dev/lpt2 use pipes not redirection.
  374.     Try cat (file) | /dev/lpt2  it works for me.
  375.  
  376. MOVING DATA FROM A SUN TO COHERENT:
  377.                     (From: PINEAU@uqac.uquebec.ca (Louis Pineau))
  378.     First, the floppy have to be formatted whether on the  sun  or  on
  379.     the  Coherent  system  (with fdformat /dev/rfd0c on the sun). Once
  380.     the floppy is formatted, there is no need to reformat or  mkfs  it
  381.     for the life of the floppy or until something unusual happens.
  382.  
  383.     To write and read the floppy, on both system (sun and coherent), I
  384.     use  the  command  "ustar"  since it can handle multi-volume files
  385.     (files that are too large to fit on a single floppy).
  386.  
  387.     Thus, on the sun, I do:
  388.       /usr/5bin/ustar -cvf /dev/rfd0c file [files ...]    to write on the floppy
  389.       /usr/5bin/ustar -tvf /dev/rfd0c                     to list the floppy
  390.       /usr/5bin/ustar -xvf /dev/rfd0c [file ...]          to read the floppy
  391.  
  392.     On my coherent  system,  I  use  the  same  commands  without  the
  393.     /usr/5bin  prefix  and with the proper floppy device (/dev/fva1 on
  394.     my system).
  395.  
  396.     I know that there is a way  to  read  or  write  ms-dos  formatted
  397.     floppy  but  in  order  to  mount  or unmount the floppy, you must
  398.     become superuser.
  399.  
  400. MULTI-VOLUME ARCHIVE: (From: jr@connie.de.convex.com (Joachim Riedel))
  401.     I'm trying to archive a 5 mb file (which is  itself  a  compressed
  402.     cpio file) from hard disk onto floppy disk (fva1). I've tried cpio
  403.     and tar and even pax directly but cannot get past one volume.
  404.  
  405.     Use the raw device (i.e. /dev/rfva1 ) instead of the device  fva1.
  406.  
  407. SCSI MKFS NOTES: Answer From: stephen@mwc.com (Stephen Davis)
  408.     I am trying to add a second scsi drive to my  system.   mkfs  will
  409.     not accept a proto file.  What do I do?
  410.  
  411.     You do not badscan a SCSI drive. Instead of giving  mkfs  a  proto
  412.     file, you give it the total number of blocks in the partition. The
  413.     number of blocks is listed in the partition table under f-disk.
  414.  
  415. DOS TO COHERENT:
  416.     Q: The question is, is it possible to read DOS-format 360KB-diskettes?
  417.  
  418.     A: yes it is :-)   From: lvds@tfpbbs.uucp (Laurent Cas)
  419.  
  420.     Here is the device type reference table:
  421.     Device name  Sectors/track  Heads  Sectors  Bytes   Format
  422.     /dev/f9a0          9          2      720    360 KB   5.25"
  423.     /dev/fqa0          9          2     1440    720 KB   3.5"
  424.     /dev/fha0         15          2     2400    1.2 MB   5.25"
  425.     /dev/fva0         18          2     2880    1.44 MB  3.5"
  426.  
  427.     If your 360KB drive is 'A:' (MSDOS reference) you  can  do  dos  t
  428.     /dev/f9a0  to  list  your  disk, or if your 360KB is 'B:' you will
  429.     have to do dos t /dev/f9a1
  430.  
  431.     drive A is number 0 and drive B is number 1 ; same for  partitions
  432.     on your hard disk...
  433.  
  434.     Cheers, Laurent.
  435.  
  436. UUINSTALL BUG HELP: (From norm@mwc.com)
  437.     Using Coherent 3.2, I run UUINSTALL, upon exiting, I am back at my
  438.     prompt,  but,  the  system  hangs.  the  only way to restart via a
  439.     reboot.  Is this problem specific to 3.2 or is it something I have
  440.     possibly done?
  441.  
  442.     This is a bug in the 3.2.0  release  of  uuinstall.  Occasionally,
  443.     upon  exiting,  it leaves your terminal in "raw" mode.  The Errata
  444.     sheet which is included with 3.2 releases mentions this, as far as
  445.     I  know.   To fix your terminal after exiting uuinstall, enter the
  446.     following (note that <ctrl-J> is the control key plus  the  letter
  447.     J):
  448.  
  449.             <ctrl-J> stty sane <ctrl-J>
  450.  
  451. XWINDOWS:  (From doug@mwc:)
  452.     From time to time,  we  get  people  asking  about  X  windows  on
  453.     Coherent.  Many  new entrants into the field of UNIX have probably
  454.     heard of the popular UNIX graphics interface called X-WINDOWS.
  455.  
  456.     X-WINDOWS was developed by MIT. To the best of our knowledge  they
  457.     still  hold  the rights to the source code and it is in the public
  458.     domain.
  459.  
  460.     To the best of our knowledge, the source code takes  up  110mb  of
  461.     disk  space!   The  binaries,  an  additional  12 - 20mb's of disk
  462.     space. It requires TCP or Streams support, neither of which is  in
  463.     COHERENT.
  464.  
  465.     X-windows it seems, has become somewhat of a popular GUI for  UNIX
  466.     in  a  very  short time. Various hardware firms have developed and
  467.     are marketing X-workstations, servers and cards.
  468.  
  469.     On page 14 of the November 1991 issue of UNIX REVIEW, is an ad for
  470.     X11  Release 5 for System V/386. The price advertised is $495 with
  471.     printed manuals,  $395  without.  So,  X  is  not  cheap  via  the
  472.     commercial route.
  473.  
  474.     Given  COHERENT  3.2's  small  model  compiler,  it  is  obviously
  475.     impossible at this time for COHERENT to even compile the code, let
  476.     alone run it.
  477.  
  478. Tar Help:
  479.     The Coherent version of tar has been known to create problems  for
  480.     users.   It  is  believed  that  the  latest  version  of  tar has
  481.     alleviated most of these problems. Some of the  original  problems
  482.     include  inability to read a tar archive to tar creating recursive
  483.     inode/file loops that can only be removed  by  "clri".   The  more
  484.     recent  Coherent releases also includes ustar, which appears to be
  485.     much more robust.  It has been suggested to use the ustar  command
  486.     instead of the Coherent native tar command in most cases.
  487.  
  488. Setting Boot Partition: DOS or Coherent?
  489.     Occasionally, a user may want to boot to  Coherent  for  the  most
  490.     part,  rather  than  come up in DOS by default.  You can leave the
  491.     DOS partition in tact, and switch between the preferred  operating
  492.     systems on as "as needed" basis.  To do this, simply use the fdisk
  493.     program in either operating system and make the  partition  active
  494.     for  the  operating  system that resides there. Reboot the system,
  495.     (AMI Bios system owners require a hard reset) and the system  will
  496.     now  boot to the partition made active with fdisk. For example, if
  497.     you wish to boot DOS by default, make the first partition  active.
  498.     If you want to boot Coherent by default, make the partition active
  499.     that Coherent resides on.
  500.  
  501. DISCLAIMER:
  502.     ANY REFERENCE TO THIS ARTICLE, IN ANY FORM, IS PURELY AT YOUR OWN RISK!
  503.     All opinions, tips, and instructions in this article are those  of
  504.     the  contributors,  and  not  of  any  company associated with the
  505.     individual contributor, or any company mentioned in this  article.
  506.     The  information  contained within is not guaranteed to be free of
  507.     errors in any way.
  508.  
  509.     The intention of this  note  is  only  to  inform  curious  usenet
  510.     readers  about  some  aspects of the operating system of Coherent,
  511.     and those companies mentioned are encouraged to  add  corrections,
  512.     additions,  or  suggest  deletions  to  this  note to as per their
  513.     policy or willingness to provide positive criticism.
  514.  
  515. TRADEMARKS
  516.     Unix is the trademark of AT&T / Unix System Laboratories, Inc.
  517.     Coherent is the trademark of the Mark Williams Company.
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540. -- 
  541. -------------------------------------------------------------------------------
  542. mike@array.com              So much fun, so little time to enjoy it....
  543. -------------------------------------------------------------------------------
  544.