home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / unix-faq / openunix / qt-faq < prev   
Encoding:
Internet Message Format  |  2004-04-26  |  235.2 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!pd7cy1no!shaw.ca!news-out.superfeed.net!propagator4-maxim.newsfeeds.com!propagator5-maxim!propagator2-maxim!feed-maxim.newsfeeds.com!news-in.spamkiller.net!xmission!nnrp.xmission!not-for-mail
  2. From: gerberb@zenez.com (Boyd Lynn Gerber)
  3. Newsgroups: comp.unix.unixware.misc,comp.answers,news.answers
  4. Subject: Quarterly ASCII posting of Caldera (SCO) OpenUNIX 8 FAQ
  5. Supersedes: <ou8faqqt_1075090554@news.xmission.com>
  6. Followup-To: comp.unix.unixware.misc
  7. Date: Mon, 26 Apr 2004 02:11:04 +0000 (UTC)
  8. Organization: XMission http://www.xmission.com/
  9. Lines: 7005
  10. Approved: news-answers-request@MIT.EDU
  11. Expires: 8 Aug 2004 02:11:01 GMT
  12. Message-ID: <ou8faqqt_1082945461@news.xmission.com>
  13. NNTP-Posting-Host: zenez.com
  14. X-Trace: terabinaries.xmission.com 1082945464 29319 166.70.62.2 (26 Apr 2004 02:11:04 GMT)
  15. X-Complaints-To: abuse@xmission.com
  16. NNTP-Posting-Date: Mon, 26 Apr 2004 02:11:04 +0000 (UTC)
  17. Summary: This posting gives an ASCII dump of the entire Caldera (SCO) OpenUNIX 8
  18.          FAQ for newsgroups quarterly.
  19. X-Disclaimer: Approval for *.answers is based on form, not content.
  20. Originator: gerberb@news.zenez.com (Boyd Lynn Gerber)
  21. Xref: senator-bedfellow.mit.edu comp.unix.unixware.misc:44617 comp.answers:56973 news.answers:270447
  22.  
  23. Archive-name: unix-faq/openunix/qt-faq
  24. Posting-Frequency: quarterly
  25. Version: 3.0.0a
  26. Last-modified: 2002/08/12
  27. URL: http://www.zenez.com/cgi-bin/ou8faq/faq.pl
  28. Maintainer:   Boyd Lynn Gerber <gerberb@zenez.com>
  29. Disclaimer: Approval for *.answers is based on form, not content.
  30.  
  31. The latest version of the OpenUNIX 8 (UnixWare 7) Faq is available from a few
  32. places.  The size is about 180 KB for the text version.
  33.  
  34. Web      http://www.zenez.com/cgi-bin/scouw7faq/faq.pl  Searchable html 
  35.                             version.
  36. Ftp      ftp://ftp.zenez.com/pub/zenez/FAQ/ou8faqqt.txt    Anon, unixtext)
  37.                             Current home.  
  38.                             
  39. Caldera (SCO) OpenUNIX 8 FAQ ASCII. 
  40.  
  41.          ____________________________________________________________
  42.         |                                                            |
  43.         |             OpenUNIX 8 FAQ       Version 3.00              |
  44.         |                        17th Revsion                        |
  45.         |                         12 Feb 2002                        |
  46.         |                                                            |
  47.         |  Author.............Matthew Schalit  mschalit@pacbell.net  |
  48.         |   Web version.......Boyd Gerber      gerberb@zenez.com     |
  49.         |    Hosting..........Tony Lawrence    tony@pcunix.com       |
  50.         `____________________________________________________________'
  51.  
  52.  
  53. 0.  Intro
  54. 1.  General Information
  55. 2.  User Related Information
  56. 3.  Media, Filesystems, and Disks
  57. 4.  The Network 
  58. 5.  System Administration
  59. 6.  Security
  60. 7.  Printing
  61. 8.  Third Party Software
  62. 9.  Useful Shell Commands
  63. 10. Migrating from OpenServer 5 to UnixWare 7
  64.  
  65.  
  66.  
  67. 0.  Intro
  68.  
  69.   0.1   WWWWW&H.
  70.   0.2   Copyright & Disclaimer
  71.   0.3   Where do I get a copy of this Faq?
  72.   0.4   May I translate the Faq?
  73.   0.5   May I host, maintain, or eradicate it?
  74.  
  75.  
  76.  
  77. 1.  General Information
  78.  
  79.   1.1   What's a node?  What's a host?
  80.   1.2   What's a nodename?  What's a hostname?
  81.   1.3   What's a Domain Name?
  82.   1.4   What's a Fully Qualified Domain Name?
  83.   1.5   Something doesn't work.  How do I fix it?
  84.   1.6   What's a disk, disc, or diskette?
  85.   1.7   What's a program?  What's a process?
  86.   1.8   What commands are used to install software?
  87.   1.9   How do I add a package on a disk?
  88.   1.10  How do I add a group of packages on a disk?
  89.   1.11  How do I add a package that's on a disc?  
  90.   1.12  What are the names of the Uw7 devices in /dev? 
  91.   1.13  What is stdin?  What is stdout?  What is stderr?
  92.   1.14  Why am I suddenly getting not privileged or no permissions errors?
  93.   1.15  How do I access DOS diskettes?
  94.   1.16  What are some really neat things about Uw7?
  95.   1.17  What's the Webtop?
  96.   1.18  What's Visionfs?
  97.   1.19  What's a sticky bit?
  98.   1.20  Who's logged into my Uw7 host?
  99.   1.21  What processes are being run by user foobar?
  100.   1.22  How do I boot a Uw7 computer?
  101.   1.23  How do I turn off a Uw7 computer or just reboot it?
  102.   1.24  How do I boot into single user mode?
  103.   1.25  What's an inode?
  104.   1.26  What's a hard link?
  105.   1.27  What's a symbolic link?
  106.   1.28  How many users are licensed on my Uw7 host?
  107.   1.29  What's a router?  What's a route?  What's a default route?
  108.   1.30  What's a hop?
  109.   1.31  What's ISL?
  110.   1.32  What's an ACL?
  111.   1.33  What are the minimum system requirements for Uw711?
  112.   1.34  Where do I get the two install diskettes and the HBA diskette?
  113.   1.35  In what order do I insert my HBA diskettes, one came from a 3rd party?
  114.   1.36  How do I list the installed software on the system?
  115.   1.37  How do I check and repair the installed software?
  116.   1.38  What's a MB?  What's a Mb?  What's a KB and a Kb?
  117.   1.39  How do I convert decimal numbers to binary numbers?
  118.   1.40  How do I convert binary to decimal?
  119.   1.41  Are the any Y2K or 2-digit vs. 4-digit year issues?
  120.   1.42  What are my biggest problems with Uw7?
  121.   1.43  How do I document my Uw7 System? (HW, SW...)
  122.   1.44  What about programming in UnixWare 7?
  123.   1.45  How do I migrate from OpenServer 5.0.x to UnixWare 7.1.1?
  124.   1.46  How do I get my IDE cdrom recognized during ISL?
  125.   1.47  SCO's been sold to Caldera, what will happen to UnixWare 7?
  126.   1.48  When will Open Unix 8 be released?
  127.   1.49  What is the LKP that will be in Open Unix 8?
  128.   1.50  Why do I see words with parentheses like fdisk(1M) and pwrite(2)?
  129.  
  130.  
  131. 2.  User Related Information
  132.  
  133.   2.1   What shell am I using?
  134.   2.2   How do I display Yurtle's user ID (UID) or group ID (GID)?
  135.   2.3   What's a really good shell that gives me useful commands?
  136.   2.4   Where are my users's home directories on UnixWare7?
  137.   2.5   What is User Equivalence and why is it important?
  138.   2.6   What do the permissions -rw-r--r do?  How about drwxr-xr-x ?
  139.   2.7   How do I use Korn shell command recall (history)?
  140.   2.8   How do I use Korn shell filename and directory name completion?
  141.   2.9   Can I display 132 columns on my terminal screen instead of 80?
  142.   2.10  How do I change the color of the terminal font or background?
  143.   2.11  How do I do an ls -l on a directory - not it's contents?
  144.   2.12  Why do I want to use 'less' ?
  145.   2.13  How do I impress changes made to my .profile on my environment?
  146.   2.14  How do I spell check this Faq?
  147.   2.15  How can I tell if an ftp download is still working?
  148.   2.16  How do I issue complex commands to an ftp server, like ls -lF ?
  149.   2.17  How do I copy and paste in the KDE from an eterm to another app?
  150.   2.18  How do I display my current working directory at a ksh prompt?
  151.   2.19  How do I display my current working directory at a bash prompt?
  152.   2.20  How do I type accented charaters in vi, Messenger, or Kedit?
  153.   2.21  What are the different ways to print documents?
  154.   2.22  How do I use ghostscript to format documents for an Epson 800?
  155.   2.23  How do I use VisionFS to print to a Windows shared printer?
  156.  
  157.  
  158.  
  159. 3.  Media, Filesystems, and Disks
  160.  
  161.   3.1   What's a partition?
  162.   3.2   What's a slice?
  163.   3.3   What's a filesystem?
  164.   3.4   What's an inode?
  165.   3.5   What does HBA stand for?
  166.   3.6   Can an HBA have more than one bus?
  167.   3.7   What is the lun number?
  168.   3.8   If a computer has two SCSI cards, which is c0 and which is c1?
  169.   3.9   What are the names of the disks, like /dev/dsk/c0b0t0d0s0 ?
  170.   3.10  What is the device name of the diskette drive?
  171.   3.11  How do I write files to a diskette and list them?
  172.   3.12  How do I format a 1.44 MB floppy?
  173.   3.13  How do I create a filesystem on a floppy?
  174.   3.14  How do I mount a floppy and view its contents?
  175.   3.15  How do I access the disc in my cd-rom drive?
  176.   3.16  What might a guru type when mounting a disc?
  177.   3.17  Can I burn a cdr in UnixWare 7.1.0?
  178.   3.18  What is the tape drive called?
  179.   3.19  What is a good tape drive to use with Uw7?
  180.   3.20  What are some of the tape commands I want to know?
  181.   3.21  What are the various filesystem types on Uw7?
  182.   3.22  What's the maximum filesystem size?
  183.   3.23  What's the maximum file size?
  184.   3.24  What's the logical block size?
  185.   3.25  Is there still that 64k inode limit by default?
  186.   3.26  How do I mount the filesystem on a disk, disc, or diskette?
  187.   3.27  Why would mounting fail?
  188.   3.28  Why would unmounting fail?
  189.   3.29  How do I list the disk geometry like Cylinders, Heads, Bytes/Sector?
  190.   3.30  How do list my partition and slice layout?  Is there a divvy?
  191.   3.31  How do I convert sectors to MB? 
  192.   3.32  How do I add a 2nd or 3rd disk drive to my system?
  193.   3.33  How do I partition a hard drive?
  194.   3.34  How do I create a slice in a partition?
  195.   3.35  How do I create a filesystem in a slice?
  196.   3.36  How do I use quotas on a vxfs filesystem in Uw7?
  197.   3.37  How do I fsck the root filesystem?
  198.   3.38  How do I enable Large File Support (for file sizes up to 1TB)?
  199.   3.39  Why aren't my new SCSI devices recognized after I install them?
  200.   3.40  Why isn't my Yamaha 4416S recognized after I install it?
  201.   3.41  How do I institute ACL's on a Uw7 system?
  202.   3.42  How do I superformat a diskette in Uw7?
  203.   3.43  Why doesn't my tape drive work with cpio, tar, and ArcServe?
  204.   3.44  How do I add additional swap space?
  205.   3.45  Why do all the files on a mounted CD-ROM have ';1' at the end?
  206.   3.46  How do I make an exact duplicate of an audio cd?
  207.   3.47  What are a good set of options to backup /home to cdr?
  208.   3.48  Do the memfs filesystems, /tmp and /var/tmp, use 50MB of RAM?
  209.   3.49  How do I convert the memfs filesystems to regular vxfs ones?
  210.  
  211.  
  212.  
  213.  
  214.  
  215. 4.  The Network 
  216.  
  217.   4.1   Do I need a nic in my Uw7 box?
  218.   4.2   What is a good brand of nic to use in Uw7?
  219.   4.3   How do I list my IP and MAC addresses for all configured nics?
  220.   4.4   How do I list my routing table?
  221.   4.5   How do I add a default route?  Is it permanent?
  222.   4.6   What is a Virtual Domain?
  223.   4.7   How do I add an IP alias?   Is it permanent?
  224.   4.8   Suddenly the network is slow, why?
  225.   4.9   Is there a firewall program for Uw7?
  226.   4.10  What is a TCP Wrapper?
  227.   4.11  What is a Packet Filter?
  228.   4.12  Why can't root ftp into Uw7?
  229.   4.13  What are the idiosyncrasies with the DNS Server Manager?
  230.   4.14  Why does logging into the CDE freeze for minutes, then restart?
  231.   4.15  What are network services?
  232.   4.16  What network services, that run by default, don't I need? 
  233.   4.17  Why can't I see computers on another subnet with Visionfs?
  234.   4.18  Can I synchronize my computer's clock with the correct time?
  235.   4.19  How do I use ntpdate?
  236.   4.20  How do I use xntpd?
  237.   4.21  Where is my domain name stored in the root filesystem?
  238.   4.22  Is DHCP possible with Uw7?
  239.   4.23  What are good IP addresses to use for my private LAN?
  240.   4.24  How do I setup Uw7 as a router for two subnets?
  241.   4.25  What is a good modem for Uw7?
  242.   4.26  How do I set up an outgoing ppp connection?
  243.   4.27  How do I set up an incoming ppp connection?
  244.   4.28  How do I set up bidirectional PPP? 
  245.   4.29  I want to disable a particular daemon, how is this done?
  246.   4.30  How do I apply changes made to /etc/inet/inetd.conf? 
  247.   4.31  How do I apply changes made to /etc/inet/config?
  248.   4.32  How do I boot an ftp user who is logged in?
  249.   4.33  How do I catch someone trying to port scan my Uw7 host?
  250.   4.34  What web servers are running or not on Uw7 after ISL?
  251.   4.35  Why can't I access the Webtop, my Netscape server, or Netscape Admin?
  252.   4.36  How do I configure remote Netscape administration?
  253.   4.37  What is the login:pass for Netscape Admin?  I can't log in.
  254.   4.38  What do I need to watch out for with ns-admin.conf?
  255.   4.39  How do I do NAT or DNAT or IP Masquerading on Uw7?
  256.   4.40  Why do I see a 'Disk not sane' error when booting off emergency disks?
  257.   4.41  Can I speed up DNS resolution on my SOHO network?
  258.   4.42  How do I set up well tuned cacheing DNS server?
  259.  
  260.  
  261.  
  262. 5.  System Administration
  263.  
  264.   5.1   What do I want to watch out for, right after ISL?
  265.   5.2   What do I want to set up, right after ISL?
  266.   5.3   In what order do I install all those PTFs?
  267.   5.4   What logs do I want to follow?
  268.   5.5   Where are errors recorded?
  269.   5.6   How do I remove the password prompt for a user with no password?
  270.   5.7   A program that was running has crashed and is locked up, why?
  271.   5.8   What are the keys I press to kill a foreground process?
  272.   5.9   How do I find and kill a background process?
  273.   5.10  What are the various 'kill' command arguments?
  274.   5.11  What are the Security Profiles and their password restrictions?
  275.   5.12  What are the restrictions on login names?
  276.   5.13  What's a umask?  What's the default umask?
  277.   5.14  What's an environment?  What's a .profile or .cshrc?
  278.   5.15  Where are all the possible places to set the environment?
  279.   5.16  Where do I change the default account aspects, like the login shell?
  280.   5.17  How do I reuse a UID after deleting the original user?
  281.   5.18  What are the advantages of command line 'userdel?'
  282.   5.19  What are the advantages of command line 'usermod?'
  283.   5.20  Where do I change the default password restrictions, such as length?
  284.   5.21  How do I record unsuccessful login attempts?
  285.   5.22  How do I lock an account?  How do I unlock an account?
  286.   5.23  How do I control process priority in Uw7, with nice?
  287.   5.24  What's good to know about cron in Uw7?
  288.   5.25  How do I monitor the amount of space left on my drives?
  289.   5.26  How do I determine disk usage by user?
  290.   5.27  How do I locate and remove 'core' files?
  291.   5.28  What is the DCU?  What do I need to know about it?
  292.   5.29  How do I spool a package rather than install it?
  293.   5.30  How do I change the resolution / colors on my video card?
  294.   5.31  Will you describe the boot process please?
  295.   5.32  What is the default run level for Uw7?  How do I set it?
  296.   5.33  What does 'Can't load stage3' mean?
  297.   5.34  What can I do at the boot: prompt?
  298.   5.35  Where do I set autoboot time, after which the system goes multiuser?
  299.   5.36  How do I boot unix.old?
  300.   5.37  How do I make a change to the /etc/inittab file?
  301.   5.38  Why does my system hang during startup or during shutdown?
  302.   5.39  How do I rebuild the kernel?
  303.   5.30  How do I rebuild the MBR or MBB?
  304.   5.41  How do I rebuild the boot slice?
  305.   5.42  How do I figure what process caused a core dump, such as core.242?
  306.   5.43  What are the important tunable parameters I might adjust like MAXUP?
  307.   5.44  How do I stop the X desktop or the CDE from running? 
  308.   5.45  How do I send a pop-up message to the Windows machines on my LAN?
  309.   5.46  How do I change the message I see at the login prompt?
  310.   5.47  How do I get the character terminals to blank the screen?
  311.   5.48  How do I load XFree86 instead of XSco?
  312.   5.49  How do I disable tty's on UnixWare 7?
  313.   5.50  How do I check which PTF patches are installed?
  314.  
  315.  
  316.  
  317.  
  318. 6.  Security
  319.  
  320.   6.1   What are the system security features?
  321.   6.2   What are permissions?
  322.   6.3   What are Tcp Wrappers and Packet Filters?
  323.   6.4   What are privileges?
  324.   6.5   What are the alternatives to su?  A user needs a privilege.
  325.   6.6   How do I use tfadmin, adminuser, and adminrole, instead of su?
  326.   6.7   What are some gaping security risks I need to patch immediately?
  327.   6.8   I'm not sure if I should apply a Uw7 security patch, what do I do?
  328.   6.9   How do I check which SSE security patches are installed?
  329.  
  330.  
  331.  
  332. 8.  Third Party Software
  333.  
  334.   8.1   openssl
  335.   8.2   ssh2 - openssh2
  336.   8.3   Star Office
  337.   8.4   Where do I find a piece of software call "xxxxxxxxxxx" for Uw7.1.0?
  338.   8.5   Lonetar, Backup Edge, Backup Professional 
  339.   8.6   What is on the Skunkware?
  340.   8.7   How do I enable 128-bit encryption with Netscape programs?
  341.   8.8   Wordperfect 8
  342.   8.9   How do I install the KDE?  Is it any good?
  343.   8.10  Where is Kermit for UnixWare 7?
  344.   8.11  Pine-4.33
  345.   8.12  Alladin Ghostscript gs7.00
  346.   8.13  Gnu-make-3.79.1
  347.   8.14  binuitils-2.11
  348.   8.15  gmp-3.1.1
  349.   8.16  libtool-1.4 
  350.   8.17  m4-1.4p
  351.   8.18  dejagnu-1.4
  352.   8.19  autoconf-2.50
  353.   8.20  gcc-3.00 
  354.   8.21  gnu-tar-1.13
  355.   8.22  bzip2-1.0.1
  356.   8.23  gdbm-1.8.0
  357.   8.24  flex-2.5.4a 
  358.   8.25  zlib-1.1.3
  359.   8.26  perl-5.6.0
  360.  
  361.  
  362.  
  363. 9.  Useful Shell Commands
  364.  
  365.   9.1  How do I search in every file for a string like "See foo?"
  366.   9.2  How do I find the largest files and directories?
  367.   9.3  How do I find the largest files?
  368.   9.4  How do I determine the number of free inodes?
  369.   9.5  How do I find the user who is using files in a filesystem and
  370.        thus preventing it from being unmounted?
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377. 10.  Migrating from OpenServer 5 to UnixWare 7
  378.  
  379.   10.1   SCO Migration Tools
  380.   10.2   SETUID bit 
  381.          
  382.          
  383.       
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  ______________________________
  392. |                              |
  393. | 0.   Intro                   |
  394. |______________________________|
  395.  
  396.  
  397.  
  398.   0.1   WWWWW&H?
  399.   12 Feb 2002
  400.   -----------------------------------------
  401.     Who   - Matthew Schalit, mschalit@pacbell.net, Age 34.
  402.             B.S. in Physics UCSB, UnixWare 7 ACE.
  403.         Contribs
  404.             Boyd Gerber, Roberto Zini, Jim Van Verth, Robert Lipe
  405.             Hops, mitrich, zigazou, James Richardson, tangent. T. Lawrence,
  406.             and others.
  407.     What  - This is a compilation of newsgroup questions from the Usenet
  408.             newsgroups comp.unix.unixware.misc, and comp.unix.sco.misc,
  409.             that deal with the Santa Cruz Operation UnixWare 7 operating 
  410.             system (SCO Uw7).  It can roughly be applied to Open Unix 8.
  411.     Where - I come from Northern California.
  412.     When  - This was originally posted to c.u.u.m. on 18 Oct 1999.
  413.             This is the 16th and final revision.  Caldera has moved on
  414.             to Open Unix 8 and that spells the end for this FAQ.
  415.     Why   - I was inspired to write this when I saw a goodly Linux guy
  416.             posting how there was no Faq but that Linux had a bunch.
  417.     How   - I publish the original straight text so that it's portable, and
  418.             Boyd Gerber handles the Web site version and the real time user
  419.             contribution program.  The web version is hosted by Tony Lawrence.
  420.  
  421.  
  422.  
  423.         Recent changes are dated 12 Feb 2002.   
  424.       
  425.  
  426.  
  427.  
  428.  
  429.   0.2   Copyright & Disclaimer
  430.   7 Dec 1999
  431.   ----------------------------------------
  432.      These bits have been posted to a newsgroup and as such are free.
  433.      Due to their nature, you may use them as you see fit.  Permission 
  434.      to use, copy, modify, and distribute this Faq for any purpose and 
  435.      without fee is hereby granted.  It'd be an honor.  Matthew Schalit 
  436.      makes no representations about the suitability of this Faq for any
  437.      purpose. It is provided "as is" without express or implied warranty.
  438.  
  439.  
  440.  
  441.  
  442.  
  443.   0.3   Where do I get a copy of this Faq?
  444.   12 Feb 2002
  445.   ----------------------------------------
  446.     The Faq can be found at it's home, in text, pdf, or postscript. 
  447.  
  448.     Ftp:    ftp://ftp.schalit.net/pub/Uw7Faq/
  449.     Web:    http://zenez.pcunix.com/cgi-bin/scouw7faq/faq.pl
  450.     Email:  mschalit@pacbell.net
  451.  
  452.     Send me some email and the file type if you'd like, and I'll send
  453.     it along.
  454.  
  455.     Looking through my ftp log, occasionally I see folks getting their 
  456.     download denied because their ftp client sent an invalid PORT command 
  457.     that used an ip address like 192.168.1.10.  Private address like that
  458.     fail because they are not routable, meaning the ftp server can't get 
  459.     the data to you.  So the server gives up and doesn't try.  In that case,
  460.     I recommend you try to use the passive ftp that Netscape does by default,
  461.     or via the Uw7 command line:
  462.  
  463.           ftp -p ftp.schalit.net
  464.  
  465.  
  466.  
  467.     If you want to host the FAQ, Boyd has a version that you can use with the 
  468.     FAQ-O-Matic on your site.  To get the FAQ-O-Matic version, go to:
  469.        ftp://ftp.zenez.com/pub/zenez/FAQ/Download/
  470.           The files you would need are as follows: 
  471.               SCO-uw7faq.tar.gz
  472.               FAQ-OMatic-2.711.tar.gz
  473.               README 
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.   0.4   May I translate this Faq?
  482.   8 Jun 2001
  483.   ----------------------------------------
  484.    The UnixWare community and I would appreciate any translations.
  485.    Send me some email [mschalit@pacbell.net] and I'll put a copy on my 
  486.    ftp site.  So far it's been translated into Turkish, and Slavic, and 
  487.    Portugese, though I haven't heard back from those folks.
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.   0.5   May I host, maintain, or eradicate it?
  495.   12 Feb 2002
  496.   --------------------------------------
  497.     Not much to do.  It's just another piece of history now, and was
  498.     published to the internet in comp.unix.unixware.
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  _________________________________
  505. |                                 |
  506. |1.  General Information          |
  507. |_________________________________|===========================================
  508.  
  509.  
  510.   1.1  What's a node?  What's a host?
  511.   18 Dec 2000
  512.   ----------------------------------------
  513.    Node and host are synonyms for 'computer.'  A node can also refer to 
  514.    a device file like /dev/rdsk/f03ht, your 1.44 MB diskette.
  515.  
  516.  
  517.   1.2  What's a nodename?  What's a hostname?
  518.   12 Dec 1999
  519.   ----------------------------------------
  520.    A nodename or a hostname is a computer's name.  Computers are given 
  521.    names so that they can be easily distinguished from one another in 
  522.    a network environment.  A nodename is a single word, eight characters 
  523.    or less, in lower case, that begins with a letter.  For the name to be 
  524.    compatible with uucp, keep the name seven characters or less.  Common 
  525.    names for people's computers are types of trees, countries, and names 
  526.    of their favorite Sci-Fi characters.  e.g.:
  527.  
  528.      tortola
  529.      redwood
  530.      luke
  531.      sales1
  532.  
  533.  
  534.   1.3  What's a Domain Name?
  535.   18 Sept 1999
  536.   ----------------------------------------
  537.    A domain name is the name that a group of computers all share.
  538.    We are familiar with common domain names like:
  539.  
  540.      sco.com
  541.      ibm.com
  542.      pacbell.net
  543.      sco.co.uk
  544.  
  545.    A domain name is the human-friendly representation of the network
  546.    address of a group of computers.
  547.  
  548.  
  549.  
  550.   1.4  What's a Fully Qualified Domain Name?
  551.   18 Sept 1999
  552.   ----------------------------------------
  553.    A FQDN is the complete name for a computer that specifies it on
  554.    a network.  It consists of the nodename + domain name:
  555.  
  556.      tortola.sco.com
  557.      uw7doc.sco.com
  558.      www.sco.com
  559.      luke.mydomain.net
  560.      www.deepspace.ucsb.edu
  561.  
  562.    A FQDN is the human-friendly representation of the IP address for
  563.    a host on a network.
  564.  
  565.  
  566.  
  567.   1.5  Something doesn't work.  How do I fix it?
  568.   12 Feb 2002
  569.   ----------------------------------------
  570.    There are the man pages, which contain the directions for each command
  571.    and some important files, too.  Use the 'man' or 'apropos' command to
  572.    look for a command or subject respectively:
  573.  
  574.       man grep
  575.       apropos security
  576.  
  577.    Use the help search engine on any UnixWare7 host to search for a word 
  578.    or words.  If the host is down, use the docserver at Caldera:
  579.  
  580.       http://localhost:457/                <--  For the UnixWare host.
  581.       http://www.caldera.com/suppot/docs   <--  At Caldera and updated.
  582.  
  583.  
  584.    My favorite places for information:
  585.  
  586.       http://www.google.com/           <--  Search the newsgroups
  587.       http://docsrv.caldera.com:80     <--  UnixWare7 Docs
  588.       http://docsrv.caldera.com:1997   <--  Open Unix 8 Docs
  589.       http://stage.caldera.com/ta/     <--  Caldera TA's (Technical Aritcles)
  590.  
  591.  
  592.  
  593.    The TA's have been greatly enhanced by the additions of many issues.  
  594.    Definitely take a look at the good work done there.  TA's generally
  595.    come in two flavors, informational and technical howto.  
  596.    
  597.  
  598.    The Usenet newsgroups that you will want to focus on are:
  599.       comp.unix.unixware.misc
  600.       comp.unix.sco.misc
  601.       comp.unix.sco.programmer
  602.       comp.unix.shell
  603.  
  604.  
  605.    There is an excellent Uw7 book recently published:
  606.       Henriksen G. & M., _UnixWare 7 System Administration_, MacMillan
  607.       Technical Publishing, USA, 1998.
  608.  
  609.  
  610.    There are excellent web sites by other good people at:
  611.       http://www.pcunix.com/
  612.       http://www.cruzio.com/~jeffl/sco/index.html
  613.  
  614.  
  615.  
  616.  
  617.  
  618.   1.6   What's a disk, disc, or diskette?
  619.   12 Dec 2001
  620.   ----------------------------------------
  621.    A disk refers to a hard disk.
  622.    A disc refers to a cd-rom or dvd.
  623.    A diskette refers to a floppy.
  624.  
  625.  
  626.  
  627.   1.7   What's a program?  What's a process?
  628.   12 Feb 2002
  629.   ----------------------------------------
  630.    A program is a file that is stored on a physical piece of media that can 
  631.    be run to perform a series of tasks.  A process is what you call that 
  632.    program when it is loaded into and running in memory.  The list of all
  633.    processes running on the computer is output with the command:
  634.  
  635.           ps -ef
  636.  
  637.    Sometimes a process can get stuck or go into an infinite loop.  Looking
  638.    at the process table with ps or with the command top is a good way to
  639.    check on your processes.  Top is available on Skunkware.
  640.  
  641.  
  642.  
  643.  
  644.   1.8  What commands are used to install software?
  645.   16 Oct 2001
  646.   ----------------------------------------
  647.    Software is usually bundled into an installable archive called a package.  
  648.    Packages are added, viewed, modified, and deleted with variations of the 
  649.    following commands.  See also the next question.
  650.  
  651.       pkgadd
  652.       pkginfo
  653.       pkgrm
  654.  
  655.  
  656.  
  657.   1.9  How do I add a package on a disk?
  658.   18 Dec 2000
  659.   ----------------------------------------
  660.    To add a package named '/tmp/myapp.pkg' do the following:
  661.  
  662.       cd /tmp
  663.       pkgadd -d `pwd`/myapp.pkg
  664.  
  665.    It is preferable to add a package utilizing the `pwd` command, because 
  666.    sometimes we're deep in a directory tree, and it's easier to let the shell 
  667.    complete that path name rather than type  
  668.      
  669.      pkgadd -d /home/yurtle/apps/uw7/skunk/squid/squid2.2/squid-2.2STABLE2.pkg
  670.  
  671.  
  672.  
  673.   1.10  How do I add a group of packages on a disk?
  674.   12 Feb 2002
  675.   ----------------------------------------
  676.    Let's say you have a bunch of Skunkware packages that you downloaded
  677.    and stored in /dload/skunk/*.pkg, then you can do the following:
  678.  
  679.       cd /dload/skunk
  680.       find `pwd` -name "*pkg" -ok pkgadd -d {} \;
  681.  
  682.    where
  683.       find       <-- the command searches your mounted filesystems
  684.       `pwd`      <-- is evaluated as your current path 
  685.       -name      <-- tell find that your looking for a specific file(s)
  686.       "*pkg"     <-- called splat pkg.
  687.       -ok        <-- pipe those complete pathnames to the next command
  688.                      if and only if the user presses the 'y' key after
  689.                      each found file is displayed to stdout.
  690.       pkgadd -d  <-- that's the package adding command
  691.       -d         <-- tells pkgadd that the next arg will be the path to the pkg
  692.       {}         <-- this is where find inserts the path it found one at a time
  693.       \;         <-- Escaped semi means end of the find command line.
  694.  
  695.  
  696.  
  697.  
  698.  
  699.   1.11  How do I add a package that's on a disc?
  700.   12 Feb 2002
  701.   ----------------------------------------
  702.    To add the package named 'less' from the first cd-rom drive:
  703.  
  704.          pkgadd -d cdrom1 less
  705.  
  706.    You can also install a bunch of apps from the same drive:
  707.  
  708.          pkgadd -d cdrom1 less gs xpm glibs gv xpdf top pine
  709.  
  710.  
  711.  
  712.  
  713.  
  714.   1.12  What are the names of the media devices (like disk, tape, etc...)
  715.   12 Feb 2002
  716.   ----------------------------------------
  717.     Open Unix comes with two neat commands called, 'getdev' and 'devattr'
  718.     which are often used one after the other:
  719.  
  720.       getdev | less
  721.       devattr -v diskette1
  722.  
  723.     1.44 Floppy  Raw character device name for formatting
  724.            /dev/rdsk/f03ht
  725.            /dev/rfd0
  726.  
  727.     1.44 Floppy  Block device name for mounting, taring, cpio, etc.
  728.            /dev/dsk/f03ht
  729.            /dev/fd0
  730.  
  731.     Tape:  /dev/rmt/ctape1    1st scsi drive, rewinding.
  732.  
  733.     Harddisk:  /dev/dsk/c0b0t0d0s0          the t0 and s0 parts change for
  734.       each device.
  735.  
  736.     See also:  Section (3), Media, Filesystems, and Disks !
  737.  
  738.  
  739.  
  740.  
  741.   1.13  What is stdin?  What is stdout?  What is stderr?
  742.   12 Feb 2002
  743.   ----------------------------------------
  744.    They're called file descriptors.
  745.  
  746.    stdin, standard in, refers to the data stream that is going into a process,
  747.    which is, by default, taken from the keyboard.  But the data characters can
  748.    be taken from a file, instead, and that's an example of redirecting 
  749.    standard input from a file.
  750.  
  751.    stdout, standard out, refers to the data stream that is coming from a 
  752.    running process.  By default, stdout is directed to your screen.  
  753.    Commands like 'ls' and 'cat' display their output to stdout.
  754.  
  755.    stderr, standard error, refers to the data stream of error messages
  756.    being generated by a process.  The registration nag displays itself to 
  757.    stderr, which is usually the console, ctrl-alt-esc.  Often stderr is sent
  758.    to the same place that stdout is directed to.
  759.  
  760.    stdin, stdout and stderr can all be redirected.  How to implement this 
  761.    is dependent on your shell.  
  762.  
  763.    Example of redirection with the Bourne shell. 
  764.  
  765.        <  /pub/phonelist           *Would be a stdin redirect
  766.        >  /tmp/printout            *Would be a stdout redirect
  767.        2> /tmp/errorfile           *Would be a stderr redirect 
  768.  
  769.        > /dev/null                 *Would be stdout sent to the null device 
  770.  
  771.        pkgchk -n base 2>&1  > /tmp/printout  *Would be a stdout redirect
  772.                                               to /tmp/printout, and a stderr
  773.                                               redirect to stdout's destination
  774.  
  775.  
  776.        ./configure > con.log 2>&1        *Would be a stdout redirect to the file
  777.                                           con.log and a stderr redirect to
  778.                                           stdout's destination.  When both 
  779.                                           stdout and stderr go to the same
  780.                                           file, you see nothing on the screen.
  781.  
  782.        make > make.log 2>&1              *Would be the same as above.
  783.  
  784.        make 2>&1 | tee make.log          *Would be a stderr redirect to the
  785.                                           destination of stdout, which is still
  786.                                           the display, but then redirect of
  787.                                           stdout through a pipe to the command
  788.                                           tee, which allows stdout to be 
  789.                                           displayed normally to the screen
  790.                                           while also copying it to make.log.
  791.  
  792.             (same as above but you can see the output as it's going)
  793.                                          
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.   1.14  Why am I suddenly getting not privileged or no permissions errors?
  801.   12 Feb 2002
  802.   ----------------------------------------
  803.    When something drastic occurs, such as the restoring of critical files,
  804.    the securities privilege database can get corrupted.  Symptoms could be
  805.    that a user tries to ping and they will see:
  806.  
  807.       UX:ping: ERROR: socket: permission denied
  808.  
  809.    Check it with:
  810.  
  811.        /sbin/initprivs
  812.  
  813.    If running that returns anything at all, then fix it immediately with
  814.  
  815.        /etc/security/tools/setpriv -x
  816.  
  817.    Other times the user may simply not have the privliges to access a proteced
  818.    command.  Check the filepriv and setpriv man pages for more information.
  819.    All users can't traceroute for instance, and that is by default.
  820.  
  821.  
  822.  
  823.  
  824.  
  825.   1.15  How do I access DOS diskettes?
  826.   12 Feb 2002
  827.   ----------------------------------------
  828.    In Uw7.1.x, the old DOS utilities have been replaced with the mtools 
  829.    programs located on Skunkware.  We now have:
  830.  
  831.       mdir mcopy mdel mmd mformat   
  832.  
  833.    Make sure to use the newest mtools *from Caldera's ftp site*
  834.    because mtools ver 3.9.1 has bugs that I wrote a mini-HOWTO about.
  835.  
  836.  
  837.  
  838.  
  839.  
  840.   1.16  What are some really neat things about Uw7?
  841.   12 Feb 2002
  842.   ----------------------------------------
  843.     There's not really anything special about Uw7.  There were
  844.     a couple of gimmicks, but they don't come with Open Unix 8.
  845.     It could handle 8 processors.
  846.     
  847.  
  848.  
  849.  
  850.   1.17  What is the Webtop?
  851.   12 Dec 2001
  852.   ----------------------------------------
  853.    The Webtop was a gimmick, a lite version of Tarentella.
  854.    
  855.    The Webtop let you run an application on Uw7 but display it
  856.    to any Netscape w/Java browser anywhere in the world.
  857.    
  858.    Support for it has been dropped.
  859.  
  860.  
  861.  
  862.  
  863.   1.18  What is Visionfs?
  864.   12 Feb 2002
  865.   ----------------------------------------
  866.    Visionfs was another gimmick that's been dropped.  Samba is the current
  867.    accepted method of connecting windows boxes to unix filesystems if you
  868.    don't want to deal with NFS.  TermVision is another product that is
  869.    reported to be excellent at this sort of SMB share access.
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.   1.19  What's a sticky bit?
  877.   12 Feb 2002
  878.   ----------------------------------------
  879.    A sticky bit is one of the permissions that can be set on a directory.
  880.    Most people are familiar with read and write permissions already.
  881.  
  882.       drwxrwxrwx         <--  A directory that any user can list,
  883.                               create/delete files in, or access.
  884.  
  885.    When the sticky bit is set on a directory, it means that anyone can
  886.    create files in the directory but users can only delete files they own.
  887.  
  888.       drwxrwxrwt         <--  Here the sticky bit is set. 
  889.  
  890.    The temp directory has the sticky bit set on it.  To set the sticky
  891.    bit on a directory called /foo as shown above, enter the command:
  892.  
  893.       chmod 1777 /foo
  894.  
  895.    There's also the possibility that the x bit will not
  896.    be set for "others," as in drwxrwxrw-, and the sticky
  897.    bit perms for that setup would then be drwxrwxrwT.
  898.  
  899.    On another note, man 2 chmod specifies how the sticky bit on an ELF
  900.    executable can be set to make an instance of that file stay in memory 
  901.    after the last user terminates their instance of that process, thus 
  902.    making that ELF run faster the next time.
  903.  
  904.    
  905.  
  906.  
  907.  
  908.  
  909.   1.20  Who is logged into my Uw7 host?
  910.   18 Dec 2000
  911.   ----------------------------------------
  912.    You can use the 'who -Hu' command.  You can also use the 'last' command.
  913.    You can forcibly logout a user by looking for the pid of the shell they 
  914.    have logged into.  The pid is listed in the right most column.  Issue a 
  915.    kill -2 <pid>, or a kill -9 <pid> if needed.
  916.  
  917.  
  918.  
  919.   1.21  What processes are being run by user foobar?
  920.   24 Sept 1999
  921.   ----------------------------------------
  922.    You can use the 'ps -u foobar' command.
  923.  
  924.  
  925.  
  926.   1.22  How do I boot a Uw7 computer?
  927.   24 Sept 1999
  928.   ----------------------------------------
  929.    When you turn on the power, you will see a UnixWare 7 splash
  930.    screen after your computer POST's.  There is a 5 second delay
  931.    and then it will autoboot into multiuser mode.  If for some reason
  932.    you are presented with a   boot:  prompt, you can type   go  
  933.    and press Enter.
  934.  
  935.  
  936.  
  937.  
  938.   1.23  How do I turn off a Uw7 computer or just reboot it?
  939.   24 Sept 1999
  940.   ----------------------------------------
  941.    As root, from the / directory enter:
  942.  
  943.       shutdown -g0 -y -i0      <--  To shut it off
  944.       shutdown -g0 -y -i6      <--  To reboot it
  945.  
  946.    both commands wait for zero seconds before beginning the shutdown,
  947.    and both commands require no further 'yes' responses.
  948.  
  949.  
  950.  
  951.  
  952.  
  953.   1.24  How do I boot into single user mode?
  954.   12 Feb 2002
  955.   ----------------------------------------
  956.    Turn on the computer or reboot it, and when you see the
  957.    splash screen, press the space bar.  At the boot: prompt, type:
  958.  
  959.        initstate=1
  960.        go
  961.  
  962.    Boot: is not sensitive to case.  You can abbreviate commands with enough
  963.    letters to be unique.  So b will work for boot, g for go.  You can get
  964.    some limited help with a ? at the boot: prompt.
  965.  
  966.  
  967.    Do not attempt to go to single user mode from multiuser mode.
  968.    This barely works, and you will get many errors.  Always reboot
  969.    to single user mode as decribed above.
  970.  
  971.    Do not attempt to go to multiuser mode from single user mode.
  972.    To get to multiuser mode, always reboot!  If you don't, you will most 
  973.    likely have a crippled system.
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.   1.25  What's an inode?
  981.   12 Feb 2002
  982.   ----------------------------------------
  983.    An inode is a data structure that contains information about a file.
  984.    An inode is similar to a card in the card-catalog of a library.
  985.    But instead of keeping track of the Title, Author and Dewey Decimal System
  986.    number, inodes keep track of:
  987.  
  988.  
  989.      * mode                       -  d,l,c,b  (Directory, Link, Device Files)
  990.      * link count                 -  the number of hard links to the file
  991.      * owner                      -
  992.      * group                      -
  993.      * size in bytes              -
  994.      * time stamps                -  mtime, ctime, atime
  995.      * data block addresses       -  Pointers to the real data
  996.  
  997.  
  998.  
  999.    You can see how an inodes points to a file in a filesystem, just as a 
  1000.    Table of Contents entry points to a chapter in a book, or a cardfile
  1001.    from a card-catalog points to the area of the Library by Dewey number.
  1002.  
  1003.       * Each filesystem has one set of inodes like there is one 
  1004.         card-catalog in each libaray.
  1005.  
  1006.       * Inodes are referred to by numbers starting from 2.
  1007.  
  1008.       * There has been historically a limit of 64K inodes per 
  1009.         filesystem, and we had to watch out that we didn't 
  1010.         create too many files.  Not anymore.
  1011.  
  1012.       * You have unlimited inodes on vxfs filesystems.
  1013.  
  1014.       * Each file has an inode assigned to it when it is created.
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.   1.26  What's a hard link?
  1021.   9 Oct 1999
  1022.   ----------------------------------------
  1023.    A hard link is an additional name for a file.  When a user creates
  1024.    a hard link, an inode number / name pair is entered into the target
  1025.    directory, and that inode is the same number as the original inode.
  1026.    Thus both names have the same inode number.
  1027.  
  1028.    Hard links can not cross filesystem boundaries (filesystems have 
  1029.    different inode tables).  Hard links can't link directories.
  1030.  
  1031.  
  1032.  
  1033.   1.27  What's a symbolic link?
  1034.   9 Oct 1999
  1035.   ----------------------------------------
  1036.    A symlink is sometimes called a soft link and is another
  1037.    way to provide multiple names for the same file.  A symlink
  1038.    can cross filesystem boundaries and can link directories.
  1039.  
  1040.    Physically, when a user creates a symlink, a new file entry is created
  1041.    in the target directory, and that file's inode contains pointers
  1042.    to the original file's data block addresses.
  1043.  
  1044.  
  1045.  
  1046.   1.28  How many users are licensed on my Uw7 host?
  1047.   9 Oct 1999
  1048.   ----------------------------------------
  1049.    You can run the uname -l command.
  1050.  
  1051.  
  1052.  
  1053.   1.29  What's a router?  What's a route?  What's a default route?
  1054.   12 Feb 2002
  1055.   ----------------------------------------
  1056.    Router:
  1057.     A router is a network device that is used to connect two different
  1058.     networks together.  The difference in the networks can be as trivial
  1059.     as that they are on different subnets, or complex as in
  1060.     connecting and translating a DSL line to a local LAN, for example.
  1061.     A router can be a separate device as in a Cisco router or a router
  1062.     can be a computer with 2 network cards.  A firewall is a router that
  1063.     only allows specific traffic to pass between networks.
  1064.  
  1065.    Static Route:
  1066.     When a computer on network A needs to talk to a computer on network B,
  1067.     the data passes out through network A's router that is also connected 
  1068.     to network B.  The router between network A and network B needs to be 
  1069.     told that traffic destined for B exits the router through B's ethernet 
  1070.     card.  When you specify that, you specify a static route from A to B.
  1071.     You also need to tell the router that traffic destined for A exits the
  1072.     router on A's NIC.  So you need two static routes on the router between
  1073.     A and B.  These static routes get created automatically by scoadmin netw.
  1074.     
  1075.  
  1076.    Default Route:
  1077.     The default route sends all traffic without a static route out through
  1078.     the default gateway.  So all traffic has some route to go through.
  1079.     Once again we have network A connected to network B through a router,
  1080.     and network B connected to network C through a different router.  When
  1081.     a host on A wants to talk to a host on C, we could specify a static route, 
  1082.     but that quickly becomes rediculous when we consider having to specify
  1083.     static routes to google, caldera, ibm, sourceforge, etc.  Instead we use 
  1084.     a default route, rather than many static routes.  The default route is
  1085.     the fall back.  It says to a router that if you don't have a path 
  1086.     specified to get traffic from A to C, then just send the traffic out 
  1087.     the default route.  
  1088.     
  1089.     
  1090.  
  1091.  
  1092.   1.30  What's a hop?
  1093.   11 Oct 1999
  1094.   ----------------------------------------
  1095.    When we speak of the number of hops that it takes for data to get from 
  1096.    computer A to computer B, we are referring to the number of routers that 
  1097.    the data passes through to get there.
  1098.  
  1099.  
  1100.  
  1101.   1.31  What's ISL?
  1102.   13 Oct 1999
  1103.   ----------------------------------------
  1104.    ISL stands for Initial System Load, which is what we call it when
  1105.    you install UnixWare 7.
  1106.  
  1107.  
  1108.  
  1109.   1.32  What an ACL?
  1110.   12 Feb 2002
  1111.   ----------------------------------------
  1112.    ACL stands for Access Control List, and an ACL is a list of permissions
  1113.    that correspond to a file the same way UID:GID and -rwxr-xr-- do.  The
  1114.    ACL permissions are an extension of the usual permissions on a file.
  1115.    ACL's give us a way to let specific users access files, users who would
  1116.    not otherwise have access.  See also the ACL question(s) in the System
  1117.    Administration section.  When there is an an active ACL list for a
  1118.    file, then ls -l will show a (+) sign after the permissions bit, i.e.:
  1119.  
  1120.       -rwxr-xr-x+
  1121.  
  1122.    ACL's can be used to let two different groups have access to a file,
  1123.    or they can be used on a more specific per user basis.  ACL's can also 
  1124.    be put onto a directory, and then new files will inherit the default ACL's.
  1125.    
  1126.    Unfortunately SCO shipped 7.0.1, 7.1.0, and 7.1.1 with broken default 
  1127.    directory acl'S and never fixed them.  Files didn't inherit the default
  1128.    acl's, but that's fixed now.
  1129.  
  1130.    Default directory ACL's work in Open Unix 8.
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.   1.33  What are the minimum system requirements for Uw711?
  1139.   12 Feb 2002
  1140.   ----------------------------------------
  1141.    32 MB RAM, 486DX, mouse, SVGA, floppy, cd-rom or nic to install,
  1142.    and a 1.2 GB hard drive (500MB for small footprint server).
  1143.    That would be rather meager, though; so try to use at least a Pentium
  1144.    with 64 MB ram.  
  1145.  
  1146.    *** Please be sure to use supported hardware that is listed at ***
  1147.                    http://www.caldera.com/chwp/
  1148.  
  1149.  
  1150.  
  1151.   1.34  Where do I get the two install diskettes and the HBA diskette?
  1152.   12 Feb 2002
  1153.   ----------------------------------------
  1154.    Normally those diskettes were packaged with the Uw7 media kit that you got.
  1155.    When they are lost or corrupted, you can recreate them from images 
  1156.    that are on your Uw7 Install Disc #1.  Those images are stored
  1157.    on the disc in
  1158.  
  1159.       /info/images/Boot_ima.1
  1160.       /info/images/Boot_ima.2
  1161.       /info/images/Hba_imag
  1162.  
  1163.     To make a diskette from one of those images, choose one way:
  1164.  
  1165.       A)  Use a Uw7 machine, cd to the /info/images directory and:
  1166.            
  1167.              format -E /dev/rfd0
  1168.              dd if=<image> of=/dev/rfd0 bs=512k
  1169.  
  1170.           I patiently run an exhaustive verify on all my diskette
  1171.           formats, but that's just me.
  1172.  
  1173.       B)  Use the program rawrite2 which is available on the net.
  1174.           Run this in a DOS window somewhere distasteful:
  1175.  
  1176.              rawrite2 -f d:\info\images\Boot_ima.1 -d A:
  1177.  
  1178.       C)  Use the floppycp program, available on the net, for
  1179.           DOS or Win.
  1180.  
  1181.       D)  These days, WinImage 6 is the best way to make diskette
  1182.           images.
  1183.  
  1184.     If you don't have the CD's then you can find the install diskettes
  1185.     on the Caldera FTP site in one of the ptf's.
  1186.  
  1187.  
  1188.  
  1189.  
  1190.   1.35  In what order do I insert my HBA diskettes, one came from a 3rd party?
  1191.   18 Dec 2000
  1192.   ----------------------------------------
  1193.    When you are given an HBA diskette for Uw7 from a third party hardware
  1194.    vendor like DPT or Mylex, you will insert that diskette first and insert
  1195.    the SCO supplied HBA diskette last, during the ISL process.  The install
  1196.    process will use the first installed driver, if there were two installed.
  1197.  
  1198.  
  1199.  
  1200.  
  1201.   1.36  How do I list the installed software on the system?
  1202.   12 Feb 2002
  1203.   ----------------------------------------
  1204.    You can use the pkginfo command as in:
  1205.  
  1206.       pkginfo | less
  1207.       pkginfo -l <pkgname like nsfast or xpdf>
  1208.       pkginfo | grep skunk
  1209.       pkginfo | grep patch
  1210.       pkginfo | grep sse
  1211.       
  1212.       pkginfo -c patch
  1213.       pkginfo -c system
  1214.  
  1215.       pkginfo -lc patch | grep PSTAMP
  1216.  
  1217.  
  1218.       
  1219.  
  1220.  
  1221.  
  1222.   1.37  How do I check and repair the installed software?
  1223.   18 Dec 2000
  1224.   ----------------------------------------
  1225.    People are tempted to use the pkgchk -n command to check if there
  1226.    are any errors in the installed packages.  This is ok.  But it
  1227.    is NOT ok whatsoever to use pkgchk -f to fix things up.  The
  1228.    Uw7 Release 7.1 Getting Started Guide specifically states,
  1229.    on p. 65,
  1230.  
  1231.       'It is typical to see a number of errors when running this command
  1232.        (pkgchk or pkgchk -n), due to the number of and interaction 
  1233.        between the various packages on your system.  You should make a
  1234.        note of any errors you find, but do not attempt to fix these
  1235.        errors with pkgchk -f.  This command is currently not
  1236.        supported and may cause your system to fail or not reboot. 
  1237.        There is no current workaround.'
  1238.  
  1239.    I like to run:
  1240.                    pkgchk -n base 2>&1 > /tmp/pout
  1241.  
  1242.    Less the pout file and fix what's wrong.  Post to c.u.u.m with 
  1243.    questions if you have troubles.
  1244.  
  1245.  
  1246.  
  1247.  
  1248.   1.38  What's a MB?  What's a Mb?  What's a KB and a Kb?
  1249.   12 Feb 2002
  1250.   ----------------------------------------
  1251.     Definitions         Conversion Factors
  1252.     -----------         ------------------    
  1253.     MB - Megabyte        1 MB = 1,024 KB = 1,048,576 B
  1254.     Mb - Megabit
  1255.  
  1256.     KB - Kilobyte        1 KB = 1,024 B
  1257.     kb - Kilobit
  1258.  
  1259.     B  - byte            1 B  = 8 b
  1260.     b  - bit
  1261.                        512 B  = 1 block
  1262.  
  1263.    
  1264.  
  1265.  
  1266.  
  1267.   1.39  How do I convert decimal numbers to binary numbers?
  1268.   14 Oct 1999
  1269.   ----------------------------------------
  1270.    To convert decimal to binary, draw yourself the following
  1271.    chart, and I'll convert 184 to binary:
  1272.  
  1273.        7    6    5    4      3   2   1   0      <-- two to this power 
  1274.       128   64   32   16     8   4   2   1      <-- equals the number below it
  1275.  
  1276.  
  1277.    To convert 184, I think to myself:
  1278.      *  184 has at least a 128 in it, so I put a one in the 128's column.
  1279.  
  1280.         1
  1281.  
  1282.      *  184-128 = 56 ,  which is less that 64, so there are no 64's.  Put a 0
  1283.         in the 64's columns and a one in the 32's instead.
  1284.  
  1285.         1    0    1
  1286.  
  1287.      *  56-32 = 24, so I need a 16 and an 8 to make 24, no 4's, 2's, or 1's.
  1288.  
  1289.         1    0    1    1     1    0   0   0
  1290.  
  1291.    So 184 = 10111000.  I hope that wasn't too confusing.
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.   1.40  How do I convert binary to decimal?
  1298.   14 Oct 1999
  1299.   ----------------------------------------
  1300.    To convert binary back to decimal, draw the usual chart:
  1301.  
  1302.       7    6    5    4     3    2    1    0
  1303.      128   64   32   16    8    4    2    1
  1304.  
  1305.    Then, to convert 11011011, for instance, write it below the columns,
  1306.  
  1307.       1    1    0    1     1    0    1    1    which looks like:
  1308.  
  1309.      128 + 64 + 0  + 16  + 8  + 0  + 2  + 1  =  219
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.   1.41  Are the any Y2K or 2-digit vs. 4-digit year issues?
  1316.   12 Feb 2002
  1317.   --------------------------------------
  1318.    For UnixWare 7.1.1, you need:  ptf7651a, part of set71101.
  1319.  
  1320.    Everyone should probably check out the SCO y2k download page at:
  1321.  
  1322.          http://www.sco.com/support/y2klist.html
  1323.          
  1324.    UnixWare 7 will not function after 2036.
  1325.    UnixWare 7 has problems if you try to install it to a computer
  1326.    whose BIOS clock current.  You may have to set the BIOS clock
  1327.    back to mid 2001, install, then reboot and reset the BIOS clock
  1328.    to the correct time.
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.   1.42  What are my biggest problems with Uw7?
  1337.   12 Feb 2002
  1338.   --------------------------------------
  1339.    Well, they fixed them all(most) :)
  1340.  
  1341.    Thanks.
  1342.  
  1343.    There are two that are 5 years old, leftover from 7.0.0. 
  1344.  
  1345.    1)  'man' is so broken it's not even funny.  MANPATH.  ORDER.  Eherrmm.
  1346.        man -a doesn't work correctly if you have an open source version 
  1347.        of a program installed that has the same name as system program. 
  1348.        Man will only find the SCO html version and stops searching correctly 
  1349.        for any other possible versions in /usr/local/man even though MANPATH
  1350.        is set and those directories get searched during man commands.
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.   1.43  How do I document my UW 7 System? (HW, SW...)
  1357.   12 Feb 2002
  1358.   --------------------------------------
  1359.    There are a number of ways to view and/or create a text file of your 
  1360.    UnixWare 7 hardware configuration, but there's no dmesg.
  1361.  
  1362.    There's sysinfo and hw.
  1363.  
  1364.    In November 2000, Sco released TLS712, sysinfo.  Sysinfo(1M) gives the
  1365.    most comprehensive way to list your entire Unixware setup, in both
  1366.    text or html, and it includes these commands, among others: 
  1367.  
  1368.  
  1369.       A. The resmgr(1M) command outputs your hardware configuration (DCU) 
  1370.          information: 
  1371.                                     /sbin/resmgr > /tmp/hw
  1372.  
  1373.  
  1374.       B. The prtconf(1M) command prints system memory and peripheral 
  1375.          configuration. 
  1376.                                     /usr/sbin/prtconf 
  1377.  
  1378.  
  1379.       C. The sdiconfig(1M) command queries the storage device interface 
  1380.          subsystem to determine which disk, tape and scsi controllers 
  1381.          are present.  To list the controllers and the attached devices, 
  1382.          use the command: 
  1383.                                     /sbin/sdiconfig  -l
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.   1.44  What about programming in UnixWare 7?
  1390.   12 Feb 2002
  1391.   --------------------------------------
  1392.    The SCO Programmer's FAQ tries to answer these questions for both 
  1393.    OpenServer 5 and UnixWare 7.
  1394.  
  1395.    There are also a few tips scattered in the descriptions of third party
  1396.    software in Section (8).
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.   1.45  How do I migrate from OpenServer 5.0.x to UnixWare 7.1.1?
  1404.   12 Feb 2002
  1405.   --------------------------------------
  1406.    Please see the complete coverage in  Section 10, Migrating from 
  1407.    OpenServer 5 to UnixWare 7.  This is obsolete with Open Unix 8.
  1408.    I suggest reading on Caldera's site now.
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.   1.46  How do I get my IDE cdrom recognized during ISL?
  1418.   12 Feb 2002
  1419.   --------------------------------------
  1420.      Some people want to install Uw7 from IDE cdrom, rather than
  1421.   from a network, tape, or SCSI cdrom.  To do so, we load drivers
  1422.   from two HBA diskettes and set the cdrom as secondary master if
  1423.   it's alone on it's controller.
  1424.  
  1425.      Loading drivers from an HBA diskette is similar to how DOS 
  1426.   users load atapi.sys and mscdex.exe for DOS.  Adding drivers 
  1427.   lets the OS access the device.
  1428.  
  1429.      In Uw7, there's no error if you don't load the right driver.
  1430.   What will happen is no cdrom will be listed to install from.
  1431.  
  1432.      Some IDE cdroms need a newer driver that's not on the
  1433.   Uw7.1.1 HBA diskette that came in the media kit.  Check
  1434.  
  1435.             ftp://ftp.caldera.com/pub/unixware7/drivers/
  1436.  
  1437.   for the latest HBA diskettes.  Follow these guidelines to get your 
  1438.   IDE cdrom recognized during ISL.
  1439.  
  1440.       1)  Set the ide cdrom as the secondary MASTER if it's alone on it's 
  1441.           controller.  
  1442.  
  1443.       2)  Otherwise set it as the slave to a master hard drive.
  1444.  
  1445.       3)  During ISL, when asked for HBA diskettes:
  1446.  
  1447.                *  load the ide_hba_#### diskette first.
  1448.                *  load the hba_711a diskette last.
  1449.  
  1450.  
  1451.   (SCSI cdroms are handled by the SCSI host adapter they are
  1452.   connected to, which also gets a driver from the HBA diskette)
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.   1.47  SCO's been sold to Caldera, what will happen to UnixWare 7?
  1462.   12 Feb 2002
  1463.   ------------------------------
  1464.      UnixWare 7.x.x is deprecated.  Use Open Unix 8 from Caldera now.
  1465.      
  1466.      
  1467.  
  1468.  
  1469.   1.48  When will Open Unix 8 be released?
  1470.   12 Jul 2001
  1471.   ------------------------------
  1472.     Open Unix 8 was released on July 2, 2001.
  1473.  
  1474.  
  1475.  
  1476.  
  1477.   1.49  What's the LKP that'll be in Open Unix 8?
  1478.   12 Feb 2002
  1479.   ------------------------------
  1480.     One of the main features of Caldera Open Unix 8 is the LKP, which stands 
  1481.     for Linux Kernel Personality.  It's a Linux kernel running at the same
  1482.     time as the Unix kernel.  It's a full install of Caldera Open Linux 3.1
  1483.     on top of Open Unix 8.
  1484.  
  1485.  
  1486.  
  1487.  
  1488.   1.50  Why do I see words with parentheses like fdisk(1M) and pwrite(2)?
  1489.   16 Oct 2001
  1490.   -------------------------------------
  1491.       The notation is meant to tell you which man section those
  1492.     commands are described in.  The section is in parentheses,
  1493.     and the word can refer to a program, a built-in command, a file,
  1494.     or sometimes a looser concept.
  1495.  
  1496.       You have a library of man pages, divided into sections.
  1497.     For instance, the restriced system administration commands 
  1498.     are in the 1M section.  Those commands are described in the 
  1499.     intro(1M) man page, and the programs are stored in /usr/sbin.  
  1500.     To read the intro(1M) man page, type this:
  1501.  
  1502.                man 1M intro
  1503.  
  1504.       The section names, like 1M, 2, 3, 3S, 4, 4tcp, etc., are case
  1505.     sensative.  Be sure to watch that when using man.
  1506.  
  1507.       To read the intro(4tcp) page, you'd type:   
  1508.  
  1509.                man 4tcp intro
  1510.  
  1511.       The reason you'd use the section names, rather than just typing
  1512.     man intro, would be your desire to specify which of the many "intro"
  1513.     pages you want to retrieve.  As another example, there are two passwd
  1514.     man pages, passwd(1) and passwd(4).
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  _________________________________
  1522. |                                 |
  1523. |  2.  User Related Information   |
  1524. |_________________________________|===========================================
  1525.  
  1526.   2.1  What shell am I using?
  1527.   18 Sept 1999
  1528.   ----------------------------------------
  1529.    Use the 'ps' command:
  1530.  
  1531.       ps
  1532.  
  1533.  
  1534.   2.2   How do I display Yurtle's user ID (UID) or group ID (GID)?
  1535.   7 Dec 1999
  1536.   ----------------------------------------
  1537.    Use the 'id' command to display all the UID and all the groups:
  1538.  
  1539.       id yurtle
  1540.  
  1541.  
  1542.  
  1543.   2.3  What is a really good shell that gives me useful commands?
  1544.   18 Sept 1999
  1545.   ----------------------------------------
  1546.    People enjoy the Korn Shell, ksh, for everyday use.  It gives the
  1547.    user the ability to do command recall and filename completion.
  1548.    The default root shell is the Bourne shell, sh, which is considered more
  1549.    secure because it does not have command line history, but is
  1550.    limited and rather old.  Bash is the Borne Again Shell, a newer
  1551.    version of the Bourne Shell which is well liked also.
  1552.  
  1553.  
  1554.  
  1555.  
  1556.   2.4  Where are my users's home directories on UnixWare7?
  1557.   18 Dec 2000
  1558.   ----------------------------------------
  1559.    The home directories are all in '/home' which is often
  1560.    created as slice number 4 on the first disk drive:
  1561.  
  1562.       /home   is mounted on   /dev/dsk/c0b0t0d0s4
  1563.  
  1564.    Yurtle's home directory would be   /home/yurtle   for instance.
  1565.    Norton's home directory would be   /home/norton   for instance.
  1566.    
  1567.    When logged in as norton, these are equivalent:
  1568.  
  1569.           ~/ 
  1570.           /home/norton/
  1571.           $HOME/
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.   2.5  What is User Equivalence and why is it important?
  1578.   12 Feb 2002
  1579.   ----------------------------------------
  1580.    User equivalence exists on a network when the following
  1581.    occurs on _all_ computers on that network:
  1582.  
  1583.       a given user has the same username, UID, and password
  1584.       a given user belongs to the same groups
  1585.       a given group has the same GID
  1586.  
  1587.    This enables all users to have transparent access no matter
  1588.    what terminal they sit down at.  It also enables users to
  1589.    utilize commands such as 'rlogin.'  It's been pointed out to me that
  1590.    the rcommands will work if strict user equivalence is not upheld.
  1591.  
  1592.  
  1593.  
  1594.  
  1595.   2.6  What do the permissions -rw-r--r do?  How about drwxr-xr-x ?
  1596.   18 Dec 2000
  1597.   ----------------------------------------
  1598.    Permissions control whether users can list, create, delete, access,
  1599.    read, modify, or run a file.  Definitions are as follows:
  1600.  
  1601.       Directory Perms                              File Perms
  1602.      -----------------                            ------------
  1603.       r = ls the directory                         r = cat a file
  1604.       w = create / delete files in the dir.        w = modify file with vi
  1605.       x = access the directory                     x = execute a file
  1606.  
  1607.    To answer the question, the first example lets the owner read and
  1608.    write to the file, and everyone else can only read it (excluding root).
  1609.    In the second example, the directory is set up so that the owner 
  1610.    of the directory can list files in the directory, create/delete them, 
  1611.    and access the directory.  Everyone else, except root, can only list 
  1612.    the files and access the directory.  
  1613.  
  1614.    Note that DELETING a file depends on the directory w permission and the
  1615.    directory's owner/group, NOT on the file's w permission! 
  1616.  
  1617.    List permissions with the 'ls -l' command.
  1618.  
  1619.    Permission numerical equivalents:
  1620.  
  1621.       read    = 4
  1622.       write   = 2
  1623.       execute = 1
  1624.  
  1625.    You add the numerical equivalents together, eg on files:
  1626.  
  1627.            644               755                111
  1628.           / | \             / | \              / | \
  1629.         rw-r--r--         rwxr-xr-x          --x--x--x
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.   2.7  How do I use Korn shell command recall (history)?
  1636.   18 Dec 2000  contribs Hops
  1637.   ----------------------------------------
  1638.         <Esc> k        then use your h,j,k,l vi type commands
  1639.  
  1640.      What you've typed can be recalled again on the command line
  1641.    so that you can just press 'Enter' to re-execute the command.
  1642.    Commands can then be edited, too.  Just use your vi skills.
  1643.    
  1644.  
  1645.    __ Details __
  1646.  
  1647.    The history of  commands is kept in the user's directory as
  1648.    $HOME/.history.
  1649.  
  1650.    First the user needs to log in using the Korn shell, which is the
  1651.    default shell for new users.  The user's $HOME/.profile needs to
  1652.    contain the lines:
  1653.  
  1654.       EDITOR=vi
  1655.       export EDITOR
  1656.  
  1657.    Make those changes, then make them happen by running your .profile:
  1658.  
  1659.       . ~/.profile
  1660.  
  1661.    Go ahead and type a few harmless commands like 'cal' and 'banner hello' 
  1662.    to prime your history file; then you are ready to use it.  When you want 
  1663.    to work with a command in your history, press the 'Esc' key once.  This
  1664.    puts you into a single line vi editor, in command mode, that has opened
  1665.    your history file.  To cycle up or down through the commands in your
  1666.    history, use the 'j' and 'k' keys just as you would in vi.  When you find
  1667.    the command you want, press Enter.
  1668.  
  1669.    Because you are using a single line vi, you can use all the usual
  1670.    vi commands to move about and alter the command as needed.  Things
  1671.    to try are the search '/' keystroke in order to search through your
  1672.    history for the command you are looking for and the 'w' or 'b' keystrokes.
  1673.  
  1674.    =============
  1675.      The equivalent for emacs style editing is 
  1676.  
  1677.                set -o emacs 
  1678.  
  1679.        or 
  1680.  
  1681.                EDITOR=emacs
  1682.                export EDITOR
  1683.  
  1684.        or ksh invocation as 
  1685.  
  1686.                ksh -o emacs 
  1687.  
  1688.        The playback and editing keys are then the normal movement sequences 
  1689.        ^P, ^N, ^B, ^F, ^A, ^E. 
  1690.  
  1691.   ====================
  1692.      Use of Arrow keys can be enabled in ksh88 and previous with the 
  1693.      following set in your ~/.profile
  1694.  
  1695.         # fn keys for ansi terminal or xterm alias 
  1696.         __A='^P'        # UpArr alias 
  1697.         __B='^N'        # DwnArr alias 
  1698.         __C='^F'        # RghtArr alias 
  1699.         __D='^B'        # LftArr alias 
  1700.         __H='^A'        # Home
  1701.     
  1702.  
  1703.      ( The ^x form here is the real control character)
  1704.  
  1705.      ---------------  
  1706.      for ksh93 and later the above will not work instead you need:
  1707.  
  1708.         # test for ksh93 - (dropped ERRNO) 
  1709.         set keybinding handling 
  1710.         [[ ${ERRNO:-unset} == "unset" ]] && { 
  1711.  
  1712.            alias array='typeset -A'
  1713.            
  1714.            typeset -A KeyTable
  1715.            trap 'eval "${KeyTable[${.sh.edchar}]}"' KEYBD
  1716.            
  1717.            function keybind # key [action]
  1718.            {
  1719.                typeset key=$(print -f "%q" "$2")
  1720.                case $# in
  1721.                2)  KeyTable[$1]=' .sh.edchar=${.sh.edmode}'"$key"
  1722.                    ;;
  1723.                1)  unset KeyTable[$1]
  1724.                    ;;
  1725.                *)  print -u2 "Usage $0 key [action]"
  1726.                    return 2 # usage errors return 2 by default
  1727.                    ;;
  1728.                esac  
  1729.            }
  1730.            keybind $'\t' $'\E\E'  # Tab -> file/cmd completion
  1731.            keybind $'\E[A' $'\020'  # up
  1732.            keybind $'\E[B' $'\016'  # down
  1733.            keybind $'\E[C' $'\006'  # right
  1734.            keybind $'\E[D' $'\002'  # left 
  1735.            keybind $'\E[H' $'\001'  # beginning of line 'Home'
  1736.            keybind $'\E[Y' $'\005'  # 'End' of line
  1737.    =============
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.   2.8  How do I use Korn shell filename and directory name completion?
  1747.   18 Dec 2000   contribs Hops
  1748.   ----------------------------------------
  1749.    The Korn shell can be used to help someone type out the long name of
  1750.    a file or directory.  Often we give gzipped archives such a long
  1751.    descriptive name that it takes too long to type the whole thing. 
  1752.  
  1753.    To use name completion, use the Korn or Bash shell with the EDITOR 
  1754.    variable set to 'vi' as described in (2.7).  Then start typing
  1755.    something like 
  1756.  
  1757.       cd /opt/net
  1758.  
  1759.    then press:
  1760.  
  1761.       'Esc'
  1762.       '\'
  1763.  
  1764.    The keystrokes Esc, then \ will complete the name net to netscape if
  1765.    net contains enough characters to uniquely identify the only possible
  1766.    name as 'netscape.'  If there are two or more files or directories
  1767.    that start with net, then nothing will change on your screen.
  1768.   =================
  1769.  
  1770.      For emacs mode the equivalent character sequence is Esc Esc. 
  1771.      That can be mapped to the more convenient TAB key with the trap and 
  1772.      keybind function listed in the section on command line history recall 
  1773.      and playback and the following binding in ~/.profile 
  1774.  
  1775.          keybind $'\t' $'\E\E'  # Tab -> file/cmd completion
  1776.   =================
  1777.  
  1778.  
  1779.  
  1780.  
  1781.   2.9   Can I display 132 columns on my terminal screen instead of 80?
  1782.   5 Nov 1999
  1783.   ----------------------------------------
  1784.    This is still not possible in a regular terminal screen like vt04.
  1785.    It is possible, though, to do on the CDE in a dtterm by clicking on 
  1786.    Options --> Window Size -->  132 columns.
  1787.  
  1788.  
  1789.  
  1790.  
  1791.   2.10  How do I change the color of the terminal font or background?
  1792.   22 Sept 1999
  1793.   ----------------------------------------
  1794.    Use the 'setcolor' command.  I like to leave the default white
  1795.    on black for regular characters and change the inverse, as in:
  1796.  
  1797.       setcolor -r yellow red
  1798.  
  1799.    This looks good to me when I pipe things to 'less.'
  1800.  
  1801.  
  1802.  
  1803.  
  1804.   2.11  How do I ls -l a directory but not its whole contents?
  1805.   9 Oct 1999
  1806.   ----------------------------------------
  1807.    When you try to ls -l /tmp to see what the permissions are on /tmp,
  1808.    the command lists the contents of /tmp instead.  To stop that, type:
  1809.  
  1810.       ls -ld /tmp
  1811.  
  1812.    You can remember the -d as standing for 'directory.'
  1813.  
  1814.  
  1815.  
  1816.    2.12  Why do I want to use 'less' ?
  1817.    12 Feb 2002
  1818.    --------------------------------------
  1819.     Less is an excellent Skunkware program that can be pkgadd'd.
  1820.     Less is more.  Less has the following excellent aspects:
  1821.  
  1822.       * Less can scroll up and down line by line
  1823.       * Less can scroll horizontally, left and right
  1824.       * Less can be configured to not wrap long lines (ps -ef !!)
  1825.       * Less uses all the usual vi commands like h, j, k, l, and /.
  1826.       * Less can tail a growing log file just like tail -f does.
  1827.       * Less will highlight text strings found using /.
  1828.       * Less lets you edit what you see, just press v to go to vi.
  1829.  
  1830.     To get the most out of less, I like to do the following in my .profile:
  1831.  
  1832.       setcolor -r yellow red
  1833.       LESS=MS
  1834.       export LESS
  1835.  
  1836.     This sets the highlight colors, and exports the -M and -S arguments
  1837.     to less which makes less put file %'s at the bottom of the screen and
  1838.     makes less not wrap long lines (scroll right with the arrow key).
  1839.  
  1840.  
  1841.  
  1842.   2.13  How do I impress changes made to my .profile on my environment?
  1843.   15 Oct 1999
  1844.   -----------------------------------------
  1845.    You can type the command
  1846.  
  1847.       . $HOME/.profile
  1848.  
  1849.    using the . with a space after it causes the file to be run.
  1850.  
  1851.  
  1852.  
  1853.  
  1854.   2.14  How do I spell check this Faq?
  1855.   12 Feb 2002
  1856.   ----------------------------------------
  1857.    Skunkware's got an excellent spell checker called ispell.
  1858.    It's interactive and has the '?' command for help.
  1859.  
  1860.       pkgadd -d cdrom1 ispell
  1861.  
  1862.       ispell -M -b -S -L4 -B uw7faq
  1863.  
  1864.            where 
  1865.              -M   Display menu of commands at the bottom of the screen
  1866.              -b   Make a backup copy of the file uw7faq
  1867.              -S   Sort the list of suggestions by probable correctness
  1868.              -L4  Print four lines of context around the misspelled word
  1869.              -B   Attempt to catch run together words like redwoodforrest
  1870.          uw7faq   The filename to be checked 
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.   2.15  How can I tell if an ftp download is still working?
  1879.   26 Dec 1999
  1880.   -------------------------------------
  1881.    The ftp client program has a useful feature called hash, which
  1882.    when turned on, prints a bunch of #####, 1 for each 1KB downloading.
  1883.  
  1884.    Just issue the 'hash' command at the ftp prompt, the same way that
  1885.    you issue the 'bin' command.
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.   2.16  How do I issue complex commands to an ftp server, like ls -lF?
  1892.   12 Feb 2002
  1893.   --------------------------------------
  1894.    The ftp client program lets you issue complex argument lists within
  1895.    quotation marks, as in:
  1896.  
  1897.       ftp>  ls "-l ptf*"
  1898.  
  1899.    The trick is just to quote everything after the first command,
  1900.    I think, so that the shell doesn't interpret them.
  1901.  
  1902.    It only took me 10 years of ftp'ing to learn that one :)
  1903.    There's also
  1904.    
  1905.             ls |less
  1906.             cat README -
  1907.             cat README |less
  1908.    
  1909.    which are examples of how you pipe data a local shell command.
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.   2.17  How do I copy and paste in the KDE from an eterm to another app?
  1917.   6 May 2001
  1918.   --------------------------------------
  1919.     Use your left mouse button to select text.
  1920.     It's copied automatically.
  1921.     Paste with a middle-click (or chord-click).
  1922.  
  1923.     I'm able to paste into Netscape's email, even though  alt+v doesn't 
  1924.     work and Edit|Paste is stippled out.
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.   2.18  How do I display my current working directory at a ksh prompt?
  1933.   4 Feb 2001
  1934.   --------------------------------------
  1935.     People like to see their hostname and working directory in their 
  1936.     prompt, like:
  1937.  
  1938.          Yoda:/var/tmp>$
  1939.  
  1940.     This can be easily done in ksh by editing your .profile.
  1941.     Change the PS1 line or create it to read:
  1942.  
  1943.          PS1='Yoda:$PWD\>\$'
  1944.  
  1945.     but use your own hostname, rather than Yoda.  Be sure to surround
  1946.     the PS1 definition in single quotes, or it won't update when you
  1947.     change directories.
  1948.  
  1949.  
  1950.          
  1951.  
  1952.  
  1953.  
  1954.   2.19  How do I display my current working directory at a bash prompt?
  1955.   4 Feb 2001
  1956.   --------------------------------------
  1957.     You can have bash display your hostname and working directory
  1958.     at the prompt in this form:
  1959.  
  1960.          yoda:/var/tmp>$
  1961.  
  1962.     by changing the PS1 line or creating in your .profile to read:
  1963.  
  1964.          PS1='\h:$PWD>\$'
  1965.  
  1966.     The defninition must be in single quotes, or it won't update
  1967.     the prompt when you change directories.  If you like to see your 
  1968.     hostname capitalized like I do, then hardcode it into your .profile 
  1969.     like this:
  1970.  
  1971.         PS1='Yoda:$PWD>\$'
  1972.          
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.   2.20  How do I type accented charaters in vi, Messenger, or Kedit?
  1982.   28 Jun 2001
  1983.   --------------------------------------
  1984.     Uw7 supports compose keys and dead keys in X.
  1985.  
  1986.      
  1987.      Quickly:   In Kedit...
  1988.      ---------------------------------------------------------
  1989.           The compose key is               ^T
  1990.           Press the compose key(s)         ctrl+shift+t
  1991.           Release.
  1992.           Now Press                        c/
  1993.                 
  1994.  
  1995.      Synopsis:
  1996.      ----------
  1997.           <Compose key> <character> <accent>
  1998.  
  1999.  
  2000.      Examples:   press these keys and see what they create
  2001.      --------------------------------------------------------
  2002.           ^Te'
  2003.           ^Ta*
  2004.           ^TY=
  2005.           ^Tae
  2006.           ^T??
  2007.           e^T^2 are the w00t w00t.
  2008.  
  2009.  
  2010.  
  2011.     I've had success with Kedit, Netscape Messenger, and in an Eterm.
  2012.     So vi is no problem.  It doesn't work in an xterm, though, nor
  2013.     does it work on a regular tty, as far as I can figure.
  2014.  
  2015.  
  2016.  
  2017.       Detail
  2018.       ---------
  2019.        a)  You need your locale to be en_US-ISO8859-1 or similar,
  2020.            not C.  The locales that end in 8859-1 or similar support
  2021.            accented characters.  Use these commands to show the
  2022.            locale for a logged in user and to set the locale on a 
  2023.            per-user basis:
  2024.  
  2025.                 /bin/locale
  2026.                 scoadmin acc
  2027.  
  2028.            To set the locale system wide, edit /etc/default/locale.
  2029.  
  2030.        b)  Once your locale is set, log in and startx.
  2031.  
  2032.        c)  Boot up Netscape Navigator and bookmark the mapchan file
  2033.            that's used to tranlate keystrokes:
  2034.               file:/usr/lib/mapchan/ISO8859-1/ISO8859-1
  2035.  
  2036.            If nor using 8859-1, choose the file that matches what
  2037.            you've chosen.
  2038.  
  2039.             
  2040.        d)  The important section (it's big):
  2041.   
  2042.               compose 0x14   # Compose character (^T)
  2043.               ' ' ' ' 0240    # NBSP
  2044.               '"' ' '  0xa8   # umlaut accent
  2045.               '\'' ' ' 0xb4   # acute accent
  2046.               '+' '+' '#'     # number sign
  2047.               'A' 'A' '@'     # commercial at
  2048.               '(' '(' '['     # opening bracket
  2049.               '/' '/' '\\'    # backslash
  2050.               '/' '<' '\\'    # backslash
  2051.               ')' ')' ']'     # closing bracket
  2052.               '^' ' ' '^'     # circumflex accent
  2053.               '>' ' ' '^'     # circumflex accent
  2054.               '`' ' ' '`'     # grave accent
  2055.               '(' '-' '{'     # opening brace
  2056.               '/' '^' '|'     # vertical line
  2057.               'L' 'V' '|'     # vertical line
  2058.               'l' 'v' '|'     # vertical line
  2059.               ')' '-' '}'     # closing brace
  2060.               '~' ' ' '~'     # tilde
  2061.               '-' ' ' '~'     # tilde
  2062.               '!' '!' 0241    # inverted !
  2063.               'c' '/' 0242    # cent sign
  2064.               'C' '/' 0242    # cent sign
  2065.               'c' '|' 0242    # cent sign
  2066.               'C' '|' 0242    # cent sign
  2067.               ...
  2068.  
  2069.  
  2070.          The good stuff starts down there with the inverted ! statement.
  2071.          Any line where the third field is in 0222 style notation is
  2072.          an accented character when created with the compose key and
  2073.          the first two characters.
  2074.  
  2075.  
  2076.  
  2077.      e)  The compose key is listed above.  Once you press it, Uw7 knows
  2078.          the next two keystrokes are meant to compose the character and 
  2079.          an accent.  
  2080.  
  2081.          Compose character:              ^T
  2082.          But take care!  That's not      ctrl + t,
  2083.          that's                          ctrl + shift + t
  2084.  
  2085.          You need to press and hold each key until they are all pressed, 
  2086.          in the order listed, then release them all.  If you accidentially
  2087.          get dyslexic and press shift+ctrl+t, you're out of luck.
  2088.  
  2089.  
  2090.          You can change your compose key.  To do so, change the
  2091.          line that says:
  2092.               compose 0x14   # Compose character (^T)
  2093.          to read some other hex value, and that's it.  Very tidy.
  2094.  
  2095.  
  2096.  
  2097.  
  2098.      f)  Let's make a cent sign, and an inverted exclamation.
  2099.          Open up Netscape Messenger and compose new mail.
  2100.          Click in the body area and type a few keys and spaces,
  2101.          then:
  2102.       
  2103.               1) Press this:        ^T
  2104.               2) see this:           nothing, cursor doesn't move
  2105.               3) Press this:         c
  2106.               4) see this:           nothing, cursor waits for 2nd character
  2107.               5) Press this:         /
  2108.               6) see this:           Ã³
  2109.  
  2110.  
  2111.               1) Press this:         ^T!!
  2112.               2) see this:           Ã­
  2113.  
  2114.  
  2115.      That's about it.
  2116.  
  2117.  
  2118.  
  2119.  
  2120.      Notes:
  2121.      -----------
  2122.             In Windows, you compose the cent sign by engaging your NUMLOCK
  2123.             key, then _holding down_ the ALT key while pressing 0162 on the 
  2124.             keypad:       ALT 0162
  2125.             When you relase the ALT key, the accented character will appear.
  2126.             
  2127.             Windows uses the synopsis:
  2128.  
  2129.                   <ALT> <4 digit decimal value>
  2130.  
  2131.             where the decimal value is similar to
  2132.  
  2133.                  0064
  2134.                  0164
  2135.                  0283
  2136.  
  2137.         Win see also: http://www.ramsch.org/martin/uni/fmi-hp/iso8859-1.html
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.   2.21  What are the different ways to print documents?
  2147.   2 Jul 2001
  2148.   -------------------------------------
  2149.      You can print to nearly every printer on the planet by dumping straight
  2150.   ascii text to the printer.  They will print it in Courier 10pt font,
  2151.   usually.
  2152.  
  2153.      You can print a graphics rich, color document, by converting it 
  2154.   to postscript (ps) and then sending that ps file directly to a
  2155.   printer that understands ps.  Most top of the line HP laserjets
  2156.   understand ps.  Most inkjets don't, unless you pay the extra $200
  2157.   to get the license and upload the code to the printer rom.
  2158.  
  2159.      You can print a graphics rich, color document, to a printer that
  2160.   uses a complex escape (ESC) code language and that has a driver written
  2161.   for it in the program ghostscript (gs).   Most printers satisfy these
  2162.   requirements.  So gs comes in very handy when printing to printers
  2163.   attached to the Unix box, a Windows box, or to a print-server (like an
  2164.   HP JetDirect 300x attached to your ethernet).
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.   2.22  How do I use ghostscript to format documents for an Epson 800?
  2171.   12 Feb 2002
  2172.   -------------------------------------
  2173.     The Epson Stylus Color 800 is similar to the other Epson InkJet
  2174.   printers that were sold like crazy in 1999 and 2000:
  2175.              Epson 400
  2176.              Epson 600
  2177.              Epson 800
  2178.              Epson 1440
  2179.  
  2180.     They all do 1440x720 dpi color, on all different paper stocks.
  2181.   The better ones just do it faster.  They can't do ps by default, and 
  2182.   they are Windows printers basically.  So we need to use gs to format 
  2183.   the print job with the proper ESC/P2 sequences to activate the options
  2184.   we see in the windows printer properties page.
  2185.  
  2186.     The Epson Stylus Color line of printers is supported in gs by the
  2187.   uniprint driver.  You can learn how to compile gs7.xx in Section 8.12,
  2188.   Alladin Ghostscript.  You can see what printer drivers are compiled
  2189.   into your gs by using the command:
  2190.  
  2191.             gs -h
  2192.  
  2193.   You can read up on this topic in the gs-7.xx source docs:
  2194.         file:/home/matthew/Dev/gs7.xx/doc/Devices.htm
  2195.   
  2196.   That's a really important file.
  2197.  
  2198.   There's a upp file for any Epson Stylus 800, high-res, 720x720,
  2199.   called:
  2200.  
  2201.            stc800p.upp
  2202.  
  2203.   Here's the command I'd use to create a printable version of tiger.ps,
  2204.  
  2205.       gs @stc800p.upp -sOutputFile=/var/tmp/printout tiger.ps -c quit
  2206.  
  2207.  
  2208.           
  2209.   
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.   2.23  How do I use VisionFS to print to a Windows shared printer?
  2216.   2 Jul 2001
  2217.   -------------------------------------
  2218.      The trick to setting up VisionFS is to read the PDF file that
  2219.    they tuck away in this path:
  2220.  
  2221.         file:/usr/vision/bin/pctools/en_US/docs/vfsintro.pdf    
  2222.  
  2223.      Here's the nuts and bolts of the subject.  When you have a WindowsNT
  2224.    or Win2K computer with a shared printer attached to it, if you have an 
  2225.    account on that computer and rights to print on it, then you're set on 
  2226.    the Windows side.
  2227.  
  2228.      As root, it's helpful if you make a symlink to the visionfs program
  2229.    in /usr/local/bin so that your users don't have to modify all their
  2230.    paths.
  2231.  
  2232.             # ln -s /usr/vision/bin/visionfs /usr/local/bin/visionfs
  2233.  
  2234.      Then get the list of shared printers on the NT host "luke."
  2235.      Print to one of them:
  2236.  
  2237.         $ visionfs print //luke --user matthew
  2238.         Password for matthew? **********
  2239.         P2D2                                        <Active>  0 jobs
  2240.         EPSON800                                    <Active>  0 jobs
  2241.  
  2242.         $ visionfs print //luke/P2D2 /var/tmp/printout --user matthew
  2243.         Password for matthew? ***********
  2244.         Your print job is ###
  2245.  
  2246.  
  2247.  
  2248.   Summary:    gs @stc800p.upp -sOutputFile=/var/tmp/printout tiger.ps -c quit
  2249.   Summary:    visionfs print //luke --user matthew
  2250.   Summary:    visionfs print //luke/P2D2 /var/tmp/printout --user matthew
  2251.  
  2252.  
  2253.       There's a way to make a unix printer that you can just lp the
  2254.     file to and skip the visionfs print command.  That's in the manual.
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  ____________________________________
  2266. |                                    |
  2267. | 3.  Media, Filesystems, and Disks  |
  2268. |____________________________________|
  2269.  
  2270.   3.1   What's a partition?
  2271.   14 Oct 1999
  2272.   ----------------------------------------
  2273.    A disk can be subdivided into one to four continuous sections
  2274.    called partitions.  In reality, Unixware7 likes to use only one Unix
  2275.    partition per disk, but the others can be raw for database use.
  2276.    Inside a partition are slices (or just raw space as I mentioned).
  2277.  
  2278.  
  2279.  
  2280.   3.2   What's a slice?
  2281.   14 Oct 1999
  2282.   ----------------------------------------
  2283.    A slice is a subdivision of a partition.  There can be from zero to 184
  2284.    slices in a partition.  Inside a slice is a filesystem.
  2285.  
  2286.  
  2287.  
  2288.   3.3   What's a filesystem?
  2289.   14 Oct 1999
  2290.   ----------------------------------------
  2291.    A filesystem is a data structure (sort of like an array) that contains
  2292.    a superblock, an inode list, and data blocks.  This data structure is
  2293.    used to provide the operating system access to files and data.
  2294.    The data blocks hold the actual file data, and the inodes keep track
  2295.    of things like permissions and where the actual data is.
  2296.  
  2297.  
  2298.  
  2299.   3.4   What's an inode?
  2300.   12 Feb 2002
  2301.   ----------------------------------------
  2302.     Please see Section 1.25, "What is an Inode?"
  2303.  
  2304.  
  2305.  
  2306.   3.5   What does HBA stand for?
  2307.   18 Dec 2000   contribs Boyd Gerber
  2308.   ----------------------------------------
  2309.     HBA stands for Host Bus Adapter.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.   3.6   Can an HBA have more than one bus?
  2316.   12 Feb 2002    contribs Boyd Gerber
  2317.   ----------------------------------------
  2318.    Yes, a dual channel SCSI adapter like the AHA3940 is an example 
  2319.    of two scsi buses.  If this was the only HBA on the mainboard, and
  2320.    the builtin IDE controllers were disabled in the BIOS, then the
  2321.    HBA's would be:
  2322.  
  2323.        c0b0t?d?s?
  2324.        c0b1t?d?s?
  2325.  
  2326.    The b# is the part that changes for multibus adapters.
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.   3.7   What is the lun number?
  2334.   12 Feb 2002   contribs Boyd Gerber
  2335.   ----------------------------------------
  2336.    Lun stands for Logical Unit Number.  Some SCSI devices have the ability
  2337.    to chain up to seven devices off of one SCSI ID.  eg. the Iomega Beta 44.
  2338.    The primary controller is logical unit zero and the slaves start with one
  2339.    and continue for each device. 
  2340.  
  2341.        This drawing may help
  2342.  
  2343.         SCSI HBA-----------SCSI ID 5-|--Lun 0 Primary CDROM drive
  2344.                       |              |--Lun 1 Slave CDROM drive
  2345.                       |              |-- ....
  2346.                       |              |--Lun 7 Slave CDROM drive
  2347.                       |
  2348.                       |----SCSI ID 6----Lun 0 Primary CDROM
  2349.                       |              |--...
  2350.                       -----SCSI ID 0----...
  2351.  
  2352.  
  2353.    The SCSI device can have 8 lun numbers from 0-7 
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.   3.8   If a computer has two SCSI cards, which is c0 and which is c1?
  2360.   12 Feb 2002   contribs Boyd Gerber
  2361.   ----------------------------------------
  2362.     UnixWare starts with IO address.  For example a mixture of IDE and SCSI 
  2363.     would be as follows: 
  2364.  
  2365.        IDE Primary Controller would be c0.
  2366.        IDE Secondary Controller would be c1.
  2367.        SCSI Controller would be c2. 
  2368.  
  2369.     Usually SCSI controllers are chosen the same way they are listed as 
  2370.     the BIOS loads.  You may be able to modify this behavior in your SCSI 
  2371.     BIOS.  Contact your SCSI HBA manufacturer for more information.
  2372.  
  2373.     You may also be able to modify the loading order in the dcu.
  2374.     There's a TA or a doc in the search engine about it.
  2375.      
  2376.     You may get some info from resmgr or from sdiconfig -l.
  2377.    
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.   3.9   What are the names of the disks, like /dev/dsk/c0b0t0d0s0 ?
  2384.   12 Feb 2002
  2385.   ----------------------------------------
  2386.    The hard disks are named in subdirectories of /dev:
  2387.    
  2388.       /dev/dsk          block devices for mounting, mdir, tar, and dd.
  2389.       /dev/rdsk         raw character devices for format
  2390.  
  2391.    The hard disks are always named starting with c#b#t#d# then either
  2392.    an s# or p# making either of the following for raw devices:
  2393.  
  2394.       /dev/rdsk/c#b#t#d#s#
  2395.       /dev/rdsk/c#b#t#d#p#
  2396.  
  2397.    You can remember this because it Can't Be That Difficult --> c_b_t_d.
  2398.    Use the s# designation when you're referring to a slice and the p#
  2399.    designation when you are referring to a partition.  
  2400.  
  2401.    You can use s0 to refer to the entire partition (when using prtvtoc).
  2402.    You can use p0 to refer to the entire disk.
  2403.  
  2404.    The # in s# is HEX !  Be sure to use hex when referring to 
  2405.    slices higher than 9, as in c0b0t0d0sc for the 12th slice 
  2406.    (a=10, b=11, c=12, d=13, e=14, f=15).
  2407.  
  2408.    The c, b, t, and d stand for:
  2409.  
  2410.       c# is the controller number (like c0 or c1 for each HBA or IDE controller)
  2411.       b# is the bus number of the HBA.  This is usually 0, as in b0.  
  2412.       t# is the scsi id.  t# for IDE is 0=primary, 1=slave.
  2413.       d# is the lun number (also usually 0 as in d0).
  2414.  
  2415.    On a small system without raid and only one Adaptec scsi HBA, the
  2416.    c, b, and d, don't change, and you use the different scsi id's (t#) to
  2417.    refer to each different drive, as in:
  2418.  
  2419.       /dev/rdsk/c0b0t0d0s0                    /dev/rdsk/c0b0t12d0s0
  2420.       /dev/rdsk/c0b0t1d0s0                    /dev/rdsk/c0b0t13d0s0
  2421.       /dev/rdsk/c0b0t3d0s0
  2422.  
  2423.    See also the Sections preceding this question.
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.   3.10  What is the device name of the diskette drive?
  2430.   18 Dec 2000
  2431.   ----------------------------------------
  2432.    The first 1.44 floppy drive is usually referenced as
  2433.  
  2434.       /dev/dsk/f03ht       <--- These are equivalent and are
  2435.       /dev/fd0             <--- for mounting, tar, dd
  2436.  
  2437.       /dev/rdsk/f03ht      <--- These are equivalent and are
  2438.       /dev/rfd0            <--- for formatting 
  2439.  
  2440.  
  2441.    Diskettes are referenced by device files in
  2442.  
  2443.       /dev/dsk/*     <--  Block devices (diskettes with filesystems)
  2444.       /dev/rdsk/*    <--  Raw devices   (diskettes made with tar or cpio)
  2445.  
  2446.       /dev/dsk/f03ht    <-- First  1.44 MB block diskette
  2447.       /dev/dsk/f13ht    <-- Second 1.44 MB block diskette
  2448.       /dev/rdsk/f03ht   <-- First  1.44 MB raw diskette
  2449.       /dev/rdsk/f13ht   <-- Second 1.44 MB raw diskette
  2450.  
  2451.       /dev/dsk/f05ht    <-- First  1.2  MB block diskette
  2452.       /dev/rdsk/f05ht   <-- First  1.2  MB raw diskette
  2453.       /dev/rdsk/f15ht   <-- Second 1.2  MB raw diskette
  2454.  
  2455.    The specific device file to use depends on the density and size of 
  2456.    the diskette and drive.  The device file name consists of:
  2457.  
  2458.       f0  or  f1     <--  The first or second drive respectively
  2459.       3h             <--  3.5"  high density (1.44 MB)
  2460.       5h             <--  5.25" high density (1.2 MB)
  2461.       t              <--  The t specifies the entire disk
  2462.  
  2463.    There are other diskette device identifiers like 3c, 3e, 3d, 5d, which 
  2464.    can be found in the man 7 fd.  In theory, /dev/[r]f03ct refers to 1.68 MB
  2465.    and 1.722 MB diskettes.
  2466.  
  2467.  
  2468.  
  2469.  
  2470.   3.11  How do I write files to a diskette and list them?
  2471.   18 Dec 2000
  2472.   ----------------------------------------
  2473.    One method is format the floppy, create a vxfs filesystem on it,
  2474.    mount the floppy, copy the files to the mount directory, then ls that
  2475.    directory.
  2476.  
  2477.    Another method is to format the floppy, then use tar to write the files
  2478.    to the floppy.  Use tar again to list the files.  A disadvantage of tar 
  2479.    is that you can't use wildcards (*) when extracting files.  Tar on Uw7
  2480.    can back up empty directories, unlike that in OS5.
  2481.  
  2482.    A very good method of writing files to diskettes is to format the floppy,
  2483.    then use cpio.
  2484.  
  2485.    Finally, you can take a DOS format floppy and mcopy the files to it,
  2486.    then list them with mdir.
  2487.  
  2488.  
  2489.  
  2490.  
  2491.   3.12  How do I format a 1.44 MB floppy?
  2492.   12 Feb 2002
  2493.   ----------------------------------------
  2494.    Use the format command on the raw diskette:
  2495.  
  2496.       format -V /dev/rfd0           <-- First 1.44 MB floppy and verify.
  2497.    
  2498.    or use the following for an exhaustive verify:
  2499.   
  2500.       format -E /dev/rfd0           <-- I use -E for assurance, because
  2501.                                         it write verifies every sector.
  2502.                                         It's worth a few minutes.
  2503.  
  2504.  
  2505.  
  2506.  
  2507.   3.13  How do I create a filesystem on a floppy?
  2508.   19 Sept 1999
  2509.   ----------------------------------------
  2510.    First format the floppy with an exhaustive verify, as this is the only
  2511.    surefire way to root out bad sectors.  Then use the 'mkfs' command:
  2512.  
  2513.       mkfs -F vxfs /dev/fd0 2880
  2514.  
  2515.    which will create a vxfs filesystem on the first floppy drive with
  2516.    a size of 2880 512-byte blocks (1.44 MB).
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.   3.14  How do I mount a floppy and view the contents?
  2523.   18 Dec 2000
  2524.   ----------------------------------------
  2525.    Mount the floppy with the 'mount' command, then list the contents 
  2526.    using the 'ls' command:
  2527.  
  2528.          mount -F vxfs /dev/fd0 /mnt
  2529.      or  mount -F dosfs /dev/fd0 /mnt
  2530.  
  2531.    then  ls -l /mnt
  2532.  
  2533.    If the floppy doesn't have a filesystem on it, or the mount point 
  2534.    directory doesn't exist, then the mount will fail.
  2535.  
  2536.    Be absolutely sure to umount the diskette before you remove it
  2537.    from its drive.
  2538.  
  2539.  
  2540.  
  2541.  
  2542.   3.15  How do I access the disc in my cd-rom drive?
  2543.   Sept 22 1999 
  2544.   ----------------------------------------
  2545.    The disc has a filesystem on it, which is called a 'cdfs' filesystem
  2546.    in Uw7, and it needs to be mounted to be accessed:
  2547.  
  2548.       mount -r -F cdfs /dev/cdrom/cdrom1 /mnt
  2549.  
  2550.    where;
  2551.       mount     <--  The command needs to be run by by a privileged user.
  2552.       -r        <--  Specifies read only.
  2553.       -F cdfs   <--  Describes the filesystem type as 'cdfs'
  2554.       /dev/...  <--  Specifies the first cdrom drive (a block device).
  2555.       /mnt      <--  The directory to which the disc is mounted. 
  2556.                      It must exist before running the 'mount' command.
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.   3.16  What might a guru type when mounting a disc?
  2563.   12 Feb 2002
  2564.   ----------------------------------------
  2565.    One can use the '-o <option_args>' argument to the mount command to
  2566.    do useful things like disallowing SUID, setting r-xr--r--, and 
  2567.    converting caps to lower-case, as in:
  2568.  
  2569.       mount -r -F cdfs -o nosuid,dperm=544,nameconv=l /dev/cdrom/cdrom1 /mnt
  2570.  
  2571.    One could make a shell function of that command in their .profile so as
  2572.    to make it easily available:
  2573.  
  2574.   mcd1() { mount -r -F cdfs /dev/cdrom/cdrom1 /mnt && echo "Cd mounted.\n" ;}
  2575.       
  2576.    
  2577.    From the mount(1M) page,
  2578.      'The CDROM media may or may not have values set for items such as 
  2579.       the User ID (UID), Group ID (GID), permissions, etc. If a value 
  2580.       is not recorded on the CDROM, a default value is assigned by the 
  2581.       software. The default value is either taken from the 
  2582.       /etc/conf/pack.d/cdfs/space.c file, or from the value specified 
  2583.       with the -o option of the mount command.'
  2584.  
  2585.    'mkisofs,' part of the cdtools on Skunkware, properly writes the
  2586.    permissions when creating the ISO image.
  2587.  
  2588.  
  2589.  
  2590.  
  2591.   3.17  Can I burn a cdr in UnixWare 7.1.x?
  2592.   12 Feb 2002
  2593.   ----------------------------------------
  2594.      Cdtools enables you to burn both cdr's and cdrw's.  I found
  2595.    the latest version, 1.10, off the net and compiled it because 
  2596.    burning cd's is tricky.  I'd like to limit the environmental 
  2597.    disaster of coasters, if you know what I mean.
  2598.  
  2599.      The file sco_notes.txt contains the method to burn a cd.  
  2600.    That's somewhere on Caldera's website and distilled here. 
  2601.  
  2602.    You'll want to run the following command as root, once you have
  2603.    cdtools installed:
  2604.  
  2605.        cdrecord -scanbus
  2606.  
  2607.    That let me see that my scsibus,target,lun for my cdrw was 0,4,0.
  2608.        0,4,0     4) 'PLEXTOR  ' 'CDR       PX820T' '1.08' Removable CD-ROM
  2609.  
  2610.  
  2611.    1) You don't need an /etc/default/cdrecord file.  It's doesn't
  2612.       work right anyway. 
  2613.  
  2614.    2) Let's say you downloaded the Caldera Workstation 3.1 iso image.
  2615.       Cd to the directory it's in.
  2616.    
  2617.    3) cdrecord -v dev=0,4,0 speed=8 workstation-3.1.iso
  2618.         - or -
  2619.       cdrecord -v dev=0,4,0 speed=8 -dao workstation-3.1.iso
  2620.  
  2621.    4) mount -r -F cdfs /dev/cdrom/cdrom1 /mnt
  2622.  
  2623.  
  2624.   Here's how to create your own iso image of the files in a directory
  2625.   and how to burn it in DAO mode, as an ISO9660 Data Mode 1 disc, without 
  2626.   Joliet nor RockRidge extensions:
  2627.  
  2628.    2) Copy all the files that you want to a temporary directory
  2629.       called /home/tmp/cdi and arrange the files the way you want them
  2630.       on the final cdr that you are going to burn.
  2631.    3) # cd /home/tmp/cdi
  2632.    4) # mkisofs -L -l -v -r -V mydisc -o /home/tmp/out.img .
  2633.    5) # cdrecord -v dev=0,4,0 speed=8 -dao /home/tmp/out.img
  2634.    6) # mount -r -F cdfs /dev/cdrom/cdrom1 /mnt
  2635.  
  2636.    That worked well for me.
  2637.  
  2638.    (1) The default file doesn't work.  If you make a valid one and only
  2639.    use it rather than specifying a dev=, then you'll burn coasters.  
  2640.    (2) is self-explanatory.  (3) cdrecord needs to run as root, or else 
  2641.    you need to set up the SUID and SGID and permissions stuff.  (4) Change 
  2642.    to the correct directory.  (5)  It is necessary to make an ISO filesystem 
  2643.    image of all your files, and the flags are important, and so is the '.' 
  2644.    which is just like the relative pathname notation in cpio.  I got the 
  2645.    args from the SCO_NOTES.html file included in the archive. The -V mydisc 
  2646.    is what labels the cdrom "MYDISC".  (6)  Burn the cd now.  (7)  I'd eject, 
  2647.    then insert and mount the cd.
  2648.  
  2649.    If you want to do a simulated burn, then add the -dummy flag to the
  2650.    cdrecord command line.
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.   3.18  What is the tape drive called?
  2659.   18 Dec 2000
  2660.   ----------------------------------------
  2661.    The tape drive device files are in /dev/rmt/*
  2662.    The first device on each list is the easiest to remember,
  2663.    but all devices in a column are equivalent.  In this scsi setup,
  2664.    the tape device is at scsi id=2.
  2665.  
  2666.       Rew/Non-Ret     Non-Rew/Non-Ret      Rew/Ret        Non-Rew/Ret
  2667.         ctape1            ntape1           rtape1           nrtape1  
  2668.          c0s0             c0s0n            c0s0r            c0s0nr
  2669.        c0b0t2l0         c0b0t2l0n         c0b0t2l0r        c0b0t2l0nr
  2670.  
  2671.  
  2672.        
  2673.                            Unload after op
  2674.                               utape1  
  2675.                              c0b0t2l0u
  2676.    
  2677.  
  2678.     Use a device like ctape2 if you have a second drive.
  2679.    
  2680.  
  2681.    
  2682.  
  2683.  
  2684.   3.19  What is a good tape drive to use with Uw7?
  2685.   12 Feb 2002
  2686.   ----------------------------------------
  2687.    Any scsi tape drive should be functional, with some devices offering newer 
  2688.    options like fast positioning to index marks, etc.  Hewlett Packard DAT 
  2689.    drives are well liked and have One Button Disaster Recovery, but DAT 
  2690.    technology is at the end of it's lifetime.  Nowadays, Exabyte/Ecrix are 
  2691.    making the VXA-1 that is 8mm, LVD, 33/66MB and excellent.  Sony makes 
  2692.    great tape drives, also.
  2693.  
  2694.  
  2695.  
  2696.  
  2697.   3.20  What are some of the tape commands I want to know?
  2698.   9 Oct 1999
  2699.   ----------------------------------------
  2700.    The tapecntl command is used to manipulate the tape device directly.  
  2701.    Some commands will not work on all tape drives as each tape drive 
  2702.    supports slightly different subsets of all the potential scsi tape 
  2703.    commands.  Common tapecntl commands are:
  2704.  
  2705.      tapecntl -r      - Reset the tape drive
  2706.      tapecntl -w      - Rewind the tape.
  2707.      tapecntl -u      - Eject the tape.
  2708.      tapecntl -C      - List the hardware compression setting
  2709.      tapecntl -c 3    - Enable all hardware compression
  2710.      tapecntl -c 0    - Disable all hardware compression
  2711.      tapecntl -v      - Set the drive to read/write in variable block lengths
  2712.      tapecntl -f 512  - Set the drive back to r/w in 512 byte block lengths!
  2713.  
  2714.    The default tape i/o block length for r/w is fixed at 512 bytes.
  2715.    The default tape device that all the above commands refer to is ntape1.
  2716.    To use one of these commands like reset, I would type:
  2717.  
  2718.       tapecntl -r /dev/rmt/ntape1
  2719.  
  2720.  
  2721.  
  2722.   3.21  What are the various filesystem types on Uw7?
  2723.   18 Dec 2000
  2724.   ------------------------------------
  2725.    Uw7 is based around the Vxfs filesystem.  It also supports:
  2726.  
  2727.       dosfs   -  For DOS.
  2728.       cdfs    -  For cdrom's, both Rockridge and High Sierra/ISO9660
  2729.       bfs     -  For the boot file system
  2730.       nfs     -  As in Sun's NFS.
  2731.       nucfs   -  Netware for Unix
  2732.       s5      -  For HBA installation diskettes and OSR5
  2733.  
  2734.  
  2735.       
  2736.   3.22  What's the maximum filesystem size?
  2737.   15 Oct 1999
  2738.   ------------------------------------
  2739.    The maximum vxfs filesystem size is 1 TB.
  2740.  
  2741.  
  2742.  
  2743.   3.23  What's the maximum file size?
  2744.   15 Oct 1999
  2745.   ------------------------------------
  2746.    The maximum vxfs file size is 1 TB.
  2747.  
  2748.  
  2749.  
  2750.   3.24  What's the logical block size?
  2751.   18 Dec 2000
  2752.   ------------------------------------
  2753.    The logical block size is set during ISL when creating the filesystem.
  2754.    In the sco docs, it's defined as "the size of the blocks that the kernel
  2755.    uses to read and write data."(1)  It can be set to 1024, 2048, 4096, or
  2756.    8192 bytes.  The default is 1024.  This logical block size is not what
  2757.    we usually think of as a block, which we say is 512 bytes, historically.
  2758.  
  2759.   ________
  2760.   1.  http://localhost:457/FS_admin/_Choosing_a_Logical_Block_Size.html
  2761.  
  2762.  
  2763.  
  2764.   3.25  Is there still that 64k inode limit by default?
  2765.   15 Oct 1999
  2766.   ------------------------------------
  2767.    There is no 64K inode limit on a vxfs filesystem by default, beginning
  2768.    with Uw7.1.0.
  2769.  
  2770.  
  2771.  
  2772.   3.26  How do I mount the filesystem on a disk, disc, or diskette?
  2773.   18 Dec 2000
  2774.   ------------------------------------
  2775.    A filesystem must be mounted before it can be used.  Here are the
  2776.    commands that one can use to mount various media:
  2777.  
  2778.       Disk:      mount -F vxfs /dev/dsk/c0b0t0d0s4 /home
  2779.       Disc:      mount -r -F cdfs /dev/cdrom/cdrom1 /mnt
  2780.       Diskette:  mount -F vxfs  /dev/fd0 /mnt
  2781.                  mount -F dosfs /dev/fd0 /mnt
  2782.  
  2783.    The examples refer to the first floppy drive, first cdrom, and
  2784.    to mounting the Home filesystem.
  2785.  
  2786.    We use the block devices, /dev/dsk/*, for mounting filesystems.
  2787.   
  2788.  
  2789.  
  2790.  
  2791.   3.27  Why would mounting fail?
  2792.   15 Oct 1999
  2793.   ------------------------------------
  2794.    An attempt to mount a filesystem will fail if the directory to which 
  2795.    you are mounting does not exist, or if that directory contains files
  2796.    that are in use, or if you refer to the filesystem as the wrong type.
  2797.    Only a privileged user can use the mount command.
  2798.  
  2799.  
  2800.  
  2801.   3.28  Why would unmounting fail?
  2802.   18 Dec 2000
  2803.   ------------------------------------
  2804.    A filesystem will not unmount if someone is using the filesystem, which
  2805.    includes having cd'd into the filesystem and leaving that terminal in 
  2806.    that directory, and when a user is using a file as in vi.  Only a 
  2807.    privileged user can use the mount command.
  2808.  
  2809.    See the section in this faq about fuser to clear the umount lock.
  2810.  
  2811.  
  2812.  
  2813.  
  2814.   3.29  How do I list the disk geometry like Cylinders, Heads, Bytes/Sector?
  2815.   12 Feb 2002
  2816.   ------------------------------------
  2817.    The disk geometry is very important to understand so that one can
  2818.    successfully partition and slice their hard drives.  The disk geometry
  2819.    is different with each system, and can be changed with a setting in
  2820.    your scsi host adapter Bois called "Enable BIOS translation for
  2821.    DOS drives over 1GB."  
  2822.  
  2823.    To list your geometry, type the command:
  2824.  
  2825.         prtvtoc -p /dev/rdsk/c0b0t0d0s0
  2826.  
  2827.    where you will need to use the correct target id, etc., and be sure
  2828.    that you specify s0 as the slice so that you refer to the entire 
  2829.    partition.
  2830.  
  2831.    I used to say that you could use the partsize command also, but
  2832.    it doesn't tell you the correct values the way prtvtoc does.  This
  2833.    is especially true if you have BIOS translation enabled.
  2834.  
  2835.    Prtvtoc always shows a translated geometry structure for drives with
  2836.    scsi id's 0 and 1 on the boot controller, even if you BIOS translation 
  2837.    disabled.  That's so it's easier to boot (the whole drive is < 1024 cyls).
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.   3.30  How do I list my partition and slice layout?  Is there a divvy?
  2846.   15 Oct 1999
  2847.   ------------------------------------
  2848.    For partitions, use fdisk.  For slices use prtvtoc.  There may be a 
  2849.    nifty program like divvy in the future, but, for now, use the following 
  2850.    command to list the slice layout to a file in /tmp:
  2851.  
  2852.       prtvtoc -f /tmp/mytoc
  2853.  
  2854.    If you do a cat /tmp/mytoc, you will see something like the 
  2855.    following, where;
  2856.  
  2857.    SLICE is the slice number in decimal, 
  2858.    TAG   designates whether it is a root, boot, swap, home, or .... slice 
  2859.    FLAG  field defines whether the slice is valid, read-only, and/or
  2860.          unmountable (that field is similar to the permissions field 644 
  2861.          or 755 in that it contains numbers that are added  
  2862.    START and SIZE  fields refer to the sector that the slice begins
  2863.                    on and the number of sectors that the slice occupies, 
  2864.                    respectively.
  2865.  
  2866.       #SLICE    TAG     FLAGS   START    SIZE
  2867.        0        0x5     0x201   63       16305912
  2868.        1        0x2     0x200   1076355  6152895
  2869.        2        0x3     0x201   642600   433755
  2870.        3        0x0     0x0     0        0
  2871.        4        0xb     0x200   7229250  8787555
  2872.        5        0x0     0x0     0        0
  2873.        6        0xc     0x201   64260    578340
  2874.        7        0x1     0x201   63       34
  2875.        8        0xd     0x201   97       15968
  2876.        9        0x0     0x0     0        0
  2877.       10        0x9     0x200   16065    48195
  2878.       11        0x0     0x0     0        0
  2879.       12        0x0     0x0     0        0
  2880.       13        0x0     0x0     0        0
  2881.       14        0x0     0x0     0        0
  2882.       15        0xf     0x201   16016805 16065
  2883.       
  2884.  
  2885.    An important slice to look at is slice 4, the home slice, because you
  2886.    will use it as a perfect template for creating your own slices, when 
  2887.    you need to.  The 0xb and 0x200 are what I'm referring to.
  2888.  
  2889.  
  2890.  
  2891.  
  2892.   3.31  How do I convert sectors to MB? 
  2893.   2 Jul 2001
  2894.   ------------------------------------
  2895.    First you need to do a 'prtvtoc' on the hard drive, so that you can 
  2896.    determine the bytes/sector.  On my IBM hard drive, 1 sector = 512 Bytes.  
  2897.    You can multiply this by 1, twice, as in:
  2898.  
  2899.        1  sect.      1024 Bytes       1024 KB 
  2900.       ---------  x  ----------   x   ---------     =   2048 sect./ MB 
  2901.       512 Bytes        1 KB            1 MB 
  2902.  
  2903.    Using the beauty of cross-multiplication, we can see that Bytes
  2904.    cancels Bytes, KB cancels KB, and we are left with sectors/MB.
  2905.    So on my system, to convert sectors to MB, I would divide the 
  2906.    number of sectors by 2048 sect./MB.
  2907.  
  2908.  
  2909.  
  2910.  
  2911.   3.32  How do I add a 2nd or 3rd disk drive to my system?
  2912.   12 Feb 2002
  2913.   ------------------------------------
  2914.    It is fairly straightforward to add another drive to a UnixWare
  2915.    system, thanks to the command 'diskadd.'  You don't need to do
  2916.    anything to the system before you install the drive.  After shutting 
  2917.    down, installing the drive with the correct termination, and jumpering 
  2918.    it for the correct scsi id and auto-spinup, you can restore power and 
  2919.    run your HBA BIOS setup program to match your HBA to your drive 
  2920.    capabilities (on an Adaptec scsi HBA like a 2940UW, you would press
  2921.    CTRL-A during POST).  Then boot into multiuser mode.  As root, run:
  2922.  
  2923.       diskadd c0b0t1d0
  2924.  
  2925.    to add the disk.  Use the right c#b#t#d# for your setup.
  2926.  
  2927.    The diskadd program will take you through:
  2928.  
  2929.       fdisk        --   Is invoked to allow you to create a partition
  2930.       disksetup    --   Is run which helps you to do the following:
  2931.          * Surface Analysis   (not necessary for scsi drives)
  2932.          * Create the VTOC (Volume Table of Contents)
  2933.          * Write the bad track and bad sector table to the drive
  2934.          * Create the layout of slices on the new drive (up to 13 of them)
  2935.          * Use mkfs to make filesystems
  2936.          * Creates the lost+found directories automatically in any filesystem.
  2937.          * Creates the mount point directories.
  2938.          * Mounts the filesystems.
  2939.          * Updates the vfstab file.
  2940.  
  2941.    The 'disksetup' program walks you through all the steps via a simple
  2942.    series of questions.  It is well written and works smoothly.  You will
  2943.    need to know how many MB you want each slice to be, and what they
  2944.    will be called, and that's about it.
  2945.  
  2946.  
  2947.    *********************
  2948.    Some caveats:
  2949.  
  2950.       1)  UnixWare uses a slice representation like c0b0t0d0xx
  2951.           for almost everything that needs a drive named.
  2952.  
  2953.       2)  That naming has no partition information in it !!
  2954.           So you can't specify what partition you mean when you type
  2955.           c0b0t0d0s4 to refer to a slice.  
  2956.  
  2957.       3)  The only way for UnixWare to know what partition contains
  2958.           slice 4, is for it to mark that partition active.
  2959.  
  2960.       4)  Thus you can only use one partition for filesystems on each 
  2961.           hard drive.  And that one partition needs to be active for
  2962.           the system to know where to go.  The only exception is
  2963.           when you use a whole additional partition for one filesystem
  2964.           and no slices (call it /dev/dsk/c#b#t#d#p#  <-- no s).
  2965.  
  2966.       5)  In the active Unix partition, you can have 183 slices.  Diskadd 
  2967.           only helps you create up to 13.  Any additional slices need to be 
  2968.           hand created.  On the 2nd drive with scsi id=1, the slices would 
  2969.           be 1 through b8 (because slices are listed in hex):
  2970.  
  2971.             /dev/rdsk/c0b0t1d0s1
  2972.             /dev/rdsk/c0b0t1d0s2
  2973.             /dev/rdsk/c0b0t1d0s3
  2974.                   ...
  2975.             /dev/rdsk/c0b0t1d0sb6
  2976.             /dev/rdsk/c0b0t1d0sb7     <--- Slice #'s are in hex, b7 = 183.
  2977.  
  2978.           I couldn't get 184 to work; so for now, I'll claim 183.
  2979.  
  2980.       6)  The situation where you would have more than one partition on 
  2981.           another drive is where you need a raw partition for Database
  2982.           storage or you are using the trick of one filesystem taking up a
  2983.           whole partition with no slices in it.
  2984.  
  2985.  
  2986.  
  2987.  
  2988.   3.33  How do I partition a hard drive?
  2989.   18 Dec 2000
  2990.   ------------------------------------
  2991.    It is not very common to partition a hard drive with UnixWare, because of
  2992.    the caveats listed in (3.29).  If you find yourself needing to add a
  2993.    partition for some raw space or for dedication of the entire partition
  2994.    to a filesystem (odd), go ahead and use 'fdisk.'  Reboot and remake
  2995.    your emergency boot and root disks.
  2996.  
  2997.  
  2998.  
  2999.  
  3000.   3.34  How do I create a slice in a partition?
  3001.   2 Jul 2001
  3002.   ------------------------------------
  3003.    People add a slice if they want to make another filesystem or add additional
  3004.    swap space.  Most slices were created the easy way, during ISL or when you 
  3005.    added a drive and ran diskadd.  If you need more than 13 slices or you 
  3006.    just postponed adding them until later, you'll want to do the following:
  3007.  
  3008.  
  3009.       1) Choose a drive with an active UW partition with free space in it.
  3010.       2) Print the VTOC to a temp file called mytoc.
  3011.       3) Look at mytoc and determine what slice number to use.
  3012.       4) Determine from mytoc where to start your new slice.
  3013.       5) Determine using math how many sectors to use... The Magic Multiplier.
  3014.       6) Edit and save mytoc with the new slice #, TAG, FLAG, START, and SIZE.
  3015.       7) Impress mytoc back onto the partition as the new VTOC. 
  3016.       8) Reboot if you changed the root disk drive or if you added a slice
  3017.          above number 15.
  3018.  
  3019.  
  3020.    After that is done, the slice is ready for a filesystem and mounting.
  3021.    Here is an in-depth example of the above procedure:
  3022.  
  3023.       1) I'll choose the partition that is on my first hard drive
  3024.          because it has some free space on it and it has an easy to
  3025.          follow example slice (/home).  That means scsi id 0.
  3026.  
  3027.       2) prtvtoc -f /tmp/mytoc /dev/rdsk/c0b0t0d0s0
  3028.  
  3029.       3) less /tmp/mytoc
  3030.          The output is shown below.  Slice 5 is empty.  I'll use 5.
  3031.   
  3032.       #SLICE    TAG     FLAGS   START    SIZE
  3033.        0        0x5     0x201   63       16305912
  3034.        1        0x2     0x200   1076355  6152895
  3035.        2        0x3     0x201   642600   433755
  3036.        3        0x0     0x0     0        0
  3037.        4        0xb     0x200   7229250  8787555
  3038.        5        0x0     0x0     0        0
  3039.        6        0xc     0x201   64260    578340
  3040.        7        0x1     0x201   63       34
  3041.        8        0xd     0x201   97       15968
  3042.        9        0x0     0x0     0        0
  3043.       10        0x9     0x200   16065    48195
  3044.       11        0x0     0x0     0        0
  3045.       12        0x0     0x0     0        0
  3046.       13        0x0     0x0     0        0
  3047.       14        0x0     0x0     0        0
  3048.       15        0xf     0x201   16016805 16065
  3049.  
  3050.       4)  To determine where to start, you need to look and see where
  3051.           the last slice ends because the unallocated space begins at
  3052.           then end of the last slice.  A cylinder begins at the end of
  3053.           the last slice.  From the above output, I can see 
  3054.           slice 0, the whole partition, starts at 63 and is 16305912 sectors 
  3055.           long.  It is important to realize that:
  3056.  
  3057.               (start sector)  +  (number of sectors)  =  (beginning sector
  3058.                                                           of empty space).
  3059.  
  3060.           For example, a hypothetical slice that starts at sector 0 
  3061.           and is 10 sectors long.  Then:
  3062.  
  3063.                  ( 0 )        +        ( 10 )         =   10
  3064.  
  3065.           which means that the slice takes up sectors 0-9, and sector 10
  3066.           is where the free space starts.
  3067.  
  3068.           Back to the real chart, we see:  (63) + (16305912) = (16305975) 
  3069.           which tells me that the drive ends on 16305975.  Now I look for 
  3070.           the last slice which is the slice with the highest start number, 
  3071.           15 in this case.  Below is a listing of slice 15 again:
  3072.  
  3073.       #SLICE    TAG     FLAGS   START     SIZE
  3074.       15        0xf     0x201   16016805  16065
  3075.  
  3076.  
  3077.       I want to start at the beginning of the unallocated space.  
  3078.       The formula says:
  3079.  
  3080.                                16016805 + 16065 =  16032870 
  3081.  
  3082.       So the answer to this section is:   The START sector = 16032870.
  3083.  
  3084.       5) How many sectors to use.... The Magic Multiplier.
  3085.          I've determined where to start the slice in part (4), and 
  3086.          that sector is on a cylinder boundary.  I also want it to 
  3087.          end on a cylinder boundary.  So I need to determine about 
  3088.          how many sectors I have to play with, and then calculate 
  3089.          how many I need to make my slice end on a cylinder boundary.  
  3090.          I do a quick prtvtoc as described in question (3.25):
  3091.          
  3092.            #TYPE   HEADS   CYLS   SECS   SECSZ
  3093.              4     255     1115    63     512
  3094.  
  3095.          So now I am armed with the data that a track is 63 sectors around,
  3096.          and a cylinder is 255 tracks high.  That's 255 tracks that are 63
  3097.          sectors around or (255 x 63)=16065 sectors.  
  3098.          
  3099.          That's the Magic Multiplier...: 16065.
  3100.          There are 16065 sectors in a cylinder.
  3101.          The sector size of my new slice needs to be a multiple of 16065.
  3102.          Every START listed in the table is an even multiple of 16065.
  3103.  
  3104.          By using the Magic Multiplier this way, we assure ourselves that
  3105.          our slices start at the beginning of a cylinder and end at the
  3106.          end of a cylinder.
  3107.  
  3108.          In this example, I subtract to get the amount of space available:
  3109.          
  3110.                    16305975     Partition ends on this sector.
  3111.                 -  16032870     New slice starts on this sect.
  3112.                -------------
  3113.                 =    273105     I have this much unalloc'd space to play with.
  3114.  
  3115.          Doing a little multiplying I see that, if I try a few multiples of
  3116.          the Magic Multiplier:
  3117.  
  3118.              14 * 16065 =  224910
  3119.              15 * 16065 =  240975 
  3120.              16 * 16065 =  257040
  3121.              17 * 16065 =  273105
  3122.  
  3123.              
  3124.          I'll choose the second one.  My answer is then:   SECZ = 240975
  3125.  
  3126.  
  3127.  
  3128.       6) So far I've decided:
  3129.  
  3130.          TAG   = 0x4        from man edvtoc  0x4   means user filesystem
  3131.          FLAG  = 0x200      from man edvtoc  0x200 means valid to use
  3132.          SLICE = 5          from Step (3)
  3133.          START = 16032870   from Step (4)
  3134.          SECSZ = 240975     from Step (5)
  3135.  
  3136.          The edited file looks like this:
  3137.  
  3138.                   /tmp/mytoc
  3139.         +---------------------------------------------
  3140.         |#SLICE    TAG     FLAGS   START    SIZE
  3141.         | 0        0x5     0x201   63       16305912
  3142.         | 1        0x2     0x200   1076355  6152895
  3143.         | 2        0x3     0x201   642600   433755
  3144.         | 3        0x0     0x0     0        0
  3145.         | 4        0xb     0x200   7229250  8787555
  3146.         | 5        0x4     0x200   16032870 240975      
  3147.         | 6        0xc     0x201   64260    578340
  3148.         | 7        0x1     0x201   63       34
  3149.         | 8        0xd     0x201   97       15968
  3150.         | 9        0x0     0x0     0        0
  3151.         |10        0x9     0x200   16065    48195
  3152.         |11        0x0     0x0     0        0
  3153.         |12        0x0     0x0     0        0
  3154.         |13        0x0     0x0     0        0
  3155.         |14        0x0     0x0     0        0
  3156.         |15        0xf     0x201   16016805 16065
  3157.         |
  3158.  
  3159.  
  3160.  
  3161.        7)  Now impress this on the drive with 'edvtoc' as in:
  3162.  
  3163.                edvtoc -f /tmp/mytoc /dev/rdsk/c0b0t0d0s0
  3164.  
  3165.  
  3166.      We are done.  Slice #5 is created as....   /dev/rdsk/c0b0t0d0s5.
  3167.      No need to reboot because the device node for slice 5 exists already.
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.   3.35  How do I create a filesystem in a slice?
  3174.   15 Oct 1999
  3175.   ------------------------------------
  3176.    Now that we have a slice, we need a filesystem on it.  To 
  3177.    do this we'll use the 'mkfs' command twice: once to list the 
  3178.    mkfs command used to create /home and once to create a vxfs 
  3179.    filesystem on the new slice.  
  3180.  
  3181.       1)  mkfs -m /dev/dsk/c0b0t0d0s4 > /tmp/doit
  3182.  
  3183.           This command is used to list the mkfs command that was used to
  3184.           create /home.  We'll use this because it is almost identical to
  3185.           the command that we need to make our vxfs filesystem.  This
  3186.           is the output of the command: 
  3187.  
  3188.         mkfs -F vxfs -o ninode=unlimited,bsize=1024,version=4, \
  3189.         inosize=256,logsize=1024,nolargefiles /dev/dsk/c0b0t0d0s4 8787554
  3190.           
  3191.           where I have used a \ to denote that the mkfs command was one long
  3192.           line.  Now vi doit and change it to specify our new slice, then
  3193.           execute it as follows.
  3194.  
  3195.        2)  vi /tmp/doit as follows to add a vxfs filesystem to slice 5
  3196.            that we created in Question (3.34):
  3197.  
  3198.                   /tmp/doit
  3199.       ______________________________________________________________________
  3200.      | mkfs -F vxfs -o ninode=unlimited,bsize=1024,version=4,inosize=256, \
  3201.      | logsize=1024,nolargefiles /dev/dsk/c0b0t0d0s5 272790
  3202.      |
  3203.  
  3204.            In this file I changed the last two "words."  Save the file.
  3205.  
  3206.         3)  Use your new 'doit' file to create the filesystem:
  3207.  
  3208.                 # sh /tmp/doit
  3209.  
  3210.       Now there is a filesystem on our new slice.  To complete the whole
  3211.       process, we want to create a mount point directory like /home2, and
  3212.       then go into Scoadmin Filesystem to let the system know about the
  3213.       mount configuration and to let it update /etc/vfstab so that we can
  3214.       simply type:  mount /home2  instead of the whole c0b0t0d0s5 stuff, 
  3215.       anytime we want to mount it.
  3216.  
  3217.  
  3218.  
  3219.  
  3220.   3.36  How do I use quotas on a vxfs filesystem in Uw7?
  3221.   7 Dec 1999
  3222.   -------------------------------------
  3223.    Quotas allow you to set limits on how much space is allotted to each 
  3224.    user.  These limits work on vxfs filesystems and can be hard or soft.
  3225.    They can limit the user by KB or by the number of files created. 
  3226.  
  3227.    Here is a cookbook method to create a quota on the /home filesystem
  3228.    so that Yurtle is limited to 200 MB and/or 1000 files in her home 
  3229.    directory, /home/yurtle:
  3230.  
  3231.       A.  Log in as root 
  3232.  
  3233.       B.  touch /home/quotas      <-- only if the file doesn't exist.
  3234.  
  3235.       C.  edquota -F vxfs yurtle
  3236.           In this file, change the line so that it says:
  3237.             blocks soft=180000 hard=200000, inodes soft=900 hard=1000
  3238.  
  3239.       D.  quotaon -F vxfs /home
  3240.  
  3241.    To see a report of the quota usage on a filesystem type the following:
  3242.  
  3243.       repquota -F vxfs /home
  3244.  
  3245.  
  3246.  
  3247.   3.37  How do I fsck the root filesystem?
  3248.   12  Feb 2002
  3249.   --------------------------------------
  3250.    In general the root filesystem knows when it's dirty and it will fsck
  3251.    itself automatically.  You can still do it by hand but only if you boot
  3252.    off of your emergency diskettes and if you did not mount root first.
  3253.    You would switch to a unix shell and type:
  3254.    
  3255.           fsck -F vxfs -o full /dev/rdsk/c0b0t0d0s1
  3256.    
  3257.    You could add the -y flag if you want to automatically answer yes to all
  3258.    the questions fsck may ask you.   I used s1 in the command above because
  3259.    that is the number of the root slice in a default Uw7 install.
  3260.    
  3261.  
  3262.    You can fsck other slices, when they are unmounted.
  3263.    To fsck /home, you can do the following:
  3264.  
  3265.      1)  Warn users and get them all to log off.
  3266.      2)  fuser -uc /home                     <-- list files in use in /home
  3267.      3)  fuser -u /dev/dsk/c0b0t0d0s4        <-- same as above (-c is tight)
  3268.      3)  fuser -k /dev/dsk/c0b0t0d0s4        <-- kill user proc's using files.
  3269.      4)  umount /home                        <-- unmount /home
  3270.      5)  fsck -F vxfs -o full /dev/dsk/c0b0t0d0s4
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.   3.38  How do enable Large File Support (for file sizes up to 1TB)?
  3277.   12 Feb 2002
  3278.   --------------------------------------
  3279.    To enable large file support on a filesystem you must either:
  3280.  
  3281.       A.  Create a filesystem with the mkfs command and list largefile
  3282.           support as one the options.
  3283.  
  3284.       B.  Or use the fsadm command on a filesystem that already exists,
  3285.  
  3286.              fsadm -F vxfs -o largefiles /data    <---  /data is a mounted FS.
  3287.  
  3288.     Then set the ulimit to unlimited as in:
  3289.  
  3290.              ulimit -f unlimited
  3291.              defadm login ULIMIT=unlimited
  3292.              /etc/conf/bin/idtune -m SFSZLIM 0x7FFFFFFF
  3293.              /etc/conf/bin/idtune -m HFSZLIM 0x7FFFFFFF
  3294.              /etc/conf/bin/idbuild -B
  3295.              cd /
  3296.              shutdown -g0 -y -i6
  3297.  
  3298.  
  3299.     And it'd be done permanently for all users for /data.  You can do the 
  3300.     same thing for / rather than /data, if you want largefile support on 
  3301.     the root filesystem.  UnixWare has an sdighost -l command that will
  3302.     list all your drives and their names.  Sometime people have trouble
  3303.     with largefiles when they are not using the right device names to start.
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309.  
  3310.  
  3311.   3.39  Why aren't my new scsi devices recognized after I install them?
  3312.   18 Oct 1999
  3313.   --------------------------------------
  3314.    Scsi devices that are added to the system, when the power is off, will
  3315.    be recognized during POST by your scsi hba.  Be sure to enter the
  3316.    hba config program so that your hba settings match your device's
  3317.    capabilities.  Then you can boot to single user mode (only  for the
  3318.    sake of speed) and run  sdiconfig -l   to get a listing of your devices
  3319.    which looks similar to:
  3320.  
  3321.  
  3322.       0:0,7,0: HBA     : (adsb,1) Adaptec PCI SCSI
  3323.         0,0,0: DISK    : IBM     DRVS09V         0140
  3324.         0,1,0: DISK    : IBM     DDRS-34560D     DC1B
  3325.         0,2,0: TAPE    : HP      HP35480A        T603
  3326.         0,3,0: CDROM   : PLEXTOR CD-ROM PX-40TS  1.00
  3327.  
  3328.    If all of your devices are not listed, but were found by the hba
  3329.    during POST, then you may need to check scsi id's and termination.
  3330.    Be sure that you have inserted the cable with Pin 1 matching the
  3331.    red stripe on the cable, and try to use the best cables you can.
  3332.    After pulling on cables and bending them, they can fail.
  3333.    Also, be sure your hba BIOS is the most recent version.
  3334.  
  3335.  
  3336.  
  3337.  
  3338.   3.40  Why isn't my Yamaha 4416S recognized after I install it?
  3339.   18 Oct 1999
  3340.   --------------------------------------
  3341.    The Yamaha 4416S cd-writer/rewriter, known as the 4x4x16, doesn't
  3342.    like to run at scsi ID 5 or 6.  For that matter, it doesn't like 7
  3343.    either.  I've had devices mysteriously vanish and reappear on
  3344.    the 68 and 50-pin chains when the 4416 is at id 5 or 6.
  3345.    Try switching to id 3 or something.  Also, be sure your hba BIOS is
  3346.    the most recent version.  There is good thread on Usenet about
  3347.    the 4416s being "intermittently detected."
  3348.  
  3349.  
  3350.  
  3351.  
  3352.   3.41  How do I institute ACL's on a Uw7 system?
  3353.   28 Apr 2001
  3354.   --------------------------------------
  3355.    ACL's can be created, deleted, or modified by root or by the
  3356.    owner of a file.  Use various forms of the commands:
  3357.  
  3358.       getacl
  3359.       setacl
  3360.  
  3361.    Below are two examples of using ACL's:
  3362.  
  3363.    Ex.1) Simple  --  /usr/local/man directories
  3364.    ----------------------------------------------------------------
  3365.      *  All your skunkware man pages get installed into
  3366.            /usr/local/man/man1  ...  /usr/local/man/man8
  3367.  
  3368.         But they need to be converted and _written_ to the 
  3369.             /usr/local/man/cat1 ... cat8
  3370.         directories before thay can be displayed properly.
  3371.  
  3372.         But writing to the cat1 ... cat8 directoires is not 
  3373.         allowed by the permissions on those directories
  3374.          -rwxr-xr-x   root sys    cat1
  3375.          -rwxr-xr-x   root sys    cat2
  3376.          ...
  3377.          -rwxr-xr-x   root sys    cat8
  3378.  
  3379.         when you're logged in as your normal username.
  3380.  
  3381.  
  3382.  
  3383.      *  This can be fixed by adding write permissions with ACL's 
  3384.         for certain users (yourself).  If you set this up, then 
  3385.         you won't get those nagging "wrong display" errors.
  3386.  
  3387.                  # cd /usr/local/man
  3388.                  # getacl cat1
  3389.                  # setacl -r -m u:matthew:rwx cat1
  3390.                  # ls -l
  3391.                  # getacl cat1
  3392.  
  3393.         That'll do it.   Now just replace the cat1 by cat* to set 
  3394.         this on all the cat directories.
  3395.  
  3396.  
  3397.  
  3398.  
  3399.     Ex.2)  Detailed  --  Adding ACL's for a user and a groups
  3400.     ------------------------------------------------------------------
  3401.  
  3402.    
  3403.      *  We'll be adding 'r--' permissions on a file 
  3404.         for two entities, the group 'graphics' and the user 'sysop':
  3405.  
  3406.      *  We'll add these permissions because the file is called
  3407.         /home/data/turt/logo, and the relevant permissions are:
  3408.  
  3409.       drwxr-xr-x    2 root     sys              Oct 20 21:00  data
  3410.       drwxrwx---    2 root     turtles          Oct 22 21:20  turt
  3411.       -rw-rw----    1 yurtle   turtles          Oct 20 22:00  logo
  3412.  
  3413.         and from the permissions, we can see that sysop and the graphics
  3414.         group can't read nor access the turt directory, nor can they
  3415.         read the actual file, logo.
  3416.  
  3417.         Thus we'll have to add acl's for both turt and logo, to give sysop 
  3418.         and graphics read access all the way down the path.  It's very important
  3419.         to be sure that the perms are correct for each directory and file
  3420.         in the path.
  3421.  
  3422.      *  Here are the before and after ACL's, then we'll discuss how to do it:
  3423.  
  3424.             Before ACL's                             After ACL's
  3425.    -------------------------------      --------------------------------------
  3426.  
  3427.    # file: logo      # file: turt       # file: logo         # file: turt
  3428.    # owner: yurtle   # owner: root      # owner: yurtle      # owner: root
  3429.    # group: turtles  # group: turtles   # group: turtles     # group: turtles
  3430.    user::rw-         user::rwx          user::rw-            user::rwx
  3431.    group::rw-        group::rwx         user:sysop:r--       user:sysop:r-x
  3432.    class:rw-         class:rwx          group::rw-           group::rwx
  3433.    other:---         other:---          group:graphics:r--   group:graphics:r-x
  3434.                                         class:rw-            class:rwx
  3435.                                         other:---            other:---
  3436.  
  3437.  
  3438.      *  As root or Yurtle, cd into    /home/data/
  3439.  
  3440.      *  You can list the ACL with     getacl turt
  3441.      *  You set the ACL with    -->   setacl -m u:sysop:r-x turt
  3442.                                       setacl -m g:graphics:r-x turt
  3443.      *  Then cd /home/data/turt -->   setacl -m u:sysop:r-- logo
  3444.                                       setacl -m u:graphics:r-- logo
  3445.  
  3446.  
  3447.  
  3448.    Default Directory ACL's
  3449.    ***********************
  3450.  
  3451.    Let's say that you get tired of adding r-- permissions for sysop
  3452.    to all the files in the directory turt, and you want to set a default 
  3453.    ACL entry on that directory.  Well, it's broken.  It's been
  3454.    broken since 7.0.0.  It works on Open Unix 8.0.0 though.
  3455.  
  3456.    Here's how to add a default ACL entry, should it ever work:
  3457.  
  3458.      *  As root, cd in /home/data
  3459.      *  Set the ACL on the directory:   setacl -m d:u:sysop:r-- turt
  3460.  
  3461.  
  3462.  
  3463.  
  3464.   3.42  How do I superformat a diskette in Uw7?
  3465.   18 Dec 2000
  3466.   ---------------------------------------
  3467.    As of this version, I can't get this to work on Uw7.  There is a device 
  3468.    for reading and writing to a 1.68MB floppy if you have formatted it first 
  3469.    on another OS, /dev/[r]dsk/f03ct (man 7 fd).
  3470.  
  3471.    You can use DOS fdformat (written in 1991).  Reboot into MS-DOS mode, run
  3472.        
  3473.        FREAD                   (loads a TSR)
  3474.        FDFORMAT A: F168        (or F144, or F163, or F172)
  3475.  
  3476.    The standard way to format a floppy is to use 80 tracks and 18 sectors
  3477.    per track, but for DOS format diskettes, Microsoft reserved 3 sectors 
  3478.    of every track for undelete information.  This space can be used for 
  3479.    your data.  You can increase the size of your DOS diskette from 1440K 
  3480.    to 1680K.  The concept, again, is to use 21 sectors per track, instead 
  3481.    of only 18 sectors per track, though the data will be interleaved, which
  3482.    makes accessing them a bit slower.
  3483.  
  3484.    
  3485.  
  3486.  
  3487.  
  3488.   3.43  Why doesn't my tape drive work with cpio, tar, and ArcServe?
  3489.   25 Oct 1999
  3490.   ---------------------------------------
  3491.    ArcServe has a quirk where is takes over exclusive control of the tape
  3492.    drive when it is installed.  Other commands like cpio and tar will not
  3493.    work with your tape drive until you type, as root,
  3494.  
  3495.       astop
  3496.  
  3497.    This stops the ArcServe daemon and returns tape control to the system.
  3498.    When you are finished using the tape, go ahead and type astart to
  3499.    return control to ArcServe.  On a side note, most people prefer a
  3500.    'super-tar' program from a third party vendor for their backup needs.
  3501.  
  3502.  
  3503.  
  3504.   3.44  How do I add additional swap space?
  3505.   18 Dec 2000
  3506.   ---------------------------------------
  3507.    There are two ways to add some swap space to your computer: 
  3508.      
  3509.      1) add another swap slice, the same size, on a different drive.
  3510.      2) or add a file and dedicate it to swap.  
  3511.  
  3512.    The latter idea is mediocre at best.  The following example will 
  3513.    describe adding a swap slice.  
  3514.    
  3515.    Issues to note:
  3516.    ----------------
  3517.     *  The kernel will distribute the usage of multiple swaps on different 
  3518.        drives in a stripe style, if the swaps are identical size.
  3519.     *  It doesn't fill them sequentially or wait for busy drives.
  3520.     *  So we strive for identical sized swap slices.
  3521.     *  If the slice can't be identical in size, then larger.
  3522.     *  We can always make the swaps identical size in /etc/swaptab (in blocks).
  3523.     *  Adding a slice was discussed in Section (3.30).  
  3524.   
  3525.  
  3526. Here we go:
  3527.    
  3528.  
  3529.    --- Adding a swap slice ---
  3530.    There are two ways:
  3531.  
  3532.    A) When you installed the drive with diskadd then prtvtoc/edvtoc.
  3533.       This is kludgey, because the disksetup slice adding program
  3534.       is not coded to specifically deal with swap slices.
  3535.  
  3536.    B) After the disk is installed, add a swap slice just like you would 
  3537.       add any other slice, except swap has a 0x3 tag.   I'll describe
  3538.       this way, so as to augment (3.30).  See that section if you need 
  3539.       to recall how to add a slice, in general.  
  3540.  
  3541.   Given:
  3542.     A Uw711 system with two scsi hard drives on the same controller,
  3543.     labeled with id 0, and id 12.  Both drives have one Uw7 partition
  3544.     that is active.  I know that disk2 slice 180 is free, so I'll use that:
  3545.     (It's probably better to use the lower numbers and work your way up,
  3546.     but I'd like to illustrate a slice number above 16 and issues like hex 
  3547.     names and device nodes).
  3548.  
  3549.   Solution:
  3550.    1)  Determine the exact size and specifications of the swap
  3551.        slice on disk1 that we'll duplicate on disk2.
  3552.  
  3553.           prtvtoc -p /dev/rdsk/c0b0t0d0s0
  3554.           prtvtoc -f /tmp/mytoc /dev/rdsk/c0b0t0d0s0
  3555.           cat /tmp/mytoc | grep 0x3
  3556.  
  3557.        I know that the TAG for a swap slice is 0x3.  So I can grep 
  3558.        /tmp/mytoc for that TAG  which shows, with my added titles, that:
  3559.  
  3560.        SLICE      TAG      FLAG       START       SECSZ
  3561.           2       0x3      0x201      642600      433755
  3562.  
  3563.        I see that I'm trying to add a swap slice that's 433755 sectors.
  3564.  
  3565.        From the prtvtoc -p I see that disk1 has  1115C, 255H, 63S/T, 512B/S.
  3566.        A bit of math (255 * 63) tells me that the Magic Number for a disk1 
  3567.        cylinder is 16065 sectors.  Now (433755 / 16065) = 27 cylinders.  
  3568.        And I can calculate that (433755 * 512) = 222082560 bytes.  
  3569.  
  3570.        So from all this I gather my requirements: 
  3571.  
  3572.           A)  My new swap slice SLICE = 180.
  3573.           B)  My new swap slice TAG = 0x3
  3574.           C)  My new swap slice FLAG = 0x201
  3575.           D)  My new swap slice START is yet to be determined.
  3576.           E)  My new swap slice SECSZ would like to be = 433755
  3577.           F)  My new swap slice cylinders would like to be = 27.
  3578.  
  3579.    2)  Examine disk 2 and see if I can create that layout.  The big issue 
  3580.        I'll face is my disk geometries may be different.  I am trying
  3581.        to have all swaps the identical size and have all swaps start and  
  3582.        end on cylinder boundaries.  Here is a head to head comparison of the
  3583.        output of the following commands on the two slices:
  3584.  
  3585.           prtvtoc -p /dev/rdsk/c0b0t0d0s0
  3586.           prtvtoc -p /dev/rdsk/c0b0t12d0s0
  3587.  
  3588.            Cyl       Heads    Sec/Trk   Bytes/Sec    Magic Number
  3589.           1115        255       63         512          16065
  3590.           8748        64        32         512          2048
  3591.  
  3592.        
  3593.        Check out the different Magic Numbers (sector size of a cylinder).
  3594.        I can't make both swaps the same number of bytes if the second swap 
  3595.        slice is to end on a cylinder boundary.
  3596.  
  3597.        I will get around this by making the new swap slice at least as large
  3598.        as the first swap slice, in sectors that means >= 433755.  Then I'll
  3599.        make them exactly the same number of blocks in /etc/swaptab.  In this
  3600.        area of administration, 1 sector = 1 block = 512 bytes.
  3601.      
  3602.        (2048 * 212) = 434176 sectors = SECSZ      <--  Answer.
  3603.  
  3604.    3)  Now I'll create the second swap slice.  This involves the procedure
  3605.        outlined in Section (3.30) above.  I'll follow that procedure but use
  3606.        the values I calculated in this Section, instead:
  3607.  
  3608.        To summarize,
  3609.  
  3610.            i.  prtvtoc -f /tmp/swaptoc /dev/rdsk/c0b0t12d0s0
  3611.           ii.  vi /tmp/swaptoc.
  3612.          iii.  My new swap slice  -        SLICE = 180
  3613.           iv.  My new swap slice  -        TAG   = 0x3
  3614.            v.  My new swap slice  -        FLAG  = 0x201
  3615.           vi.  I see that I can start on   START = 821248
  3616.          vii.  I showed that my   -        SECSZ = 434176
  3617.         viii.  Add slice 180 to swaptoc using values from iii, iv, v, vi, vii.
  3618.           ix.  Save /tmp/swaptoc and exit vi.
  3619.            x.  edvtoc -f /tmp/swaptoc /dev/rdsk/c0b0t12d0s0
  3620.  
  3621.  
  3622.    4)  The second swap slice is created and now I add it to the list of
  3623.        devices that swap uses, by adding the block device to the
  3624.        /etc/swaptab file and making the exact same block size as the original.
  3625.        I used slice 180 on drive 2, and that looks like:
  3626.  
  3627.            Raw device           /dev/rdsk/c0b0t12d0sb4
  3628.            Block Device         /dev/dsk/c0b0t12d0sb4
  3629.  
  3630.        so /etc/swaptab looks like:
  3631.        +----------------------------------------------------------------
  3632.        | #swapname               offset(in blocks)     size(in blocks)
  3633.        | /dev/swap                       0                   -
  3634.        | /dev/dsk/c0b0t12d0sb4           0                433755 
  3635.        |
  3636.  
  3637.  
  3638.    5)  Reboot.  Here I thought I was done without a reboot if I just entered
  3639.        swap -c to load the /etc/swaptab file, but I got a Device not found
  3640.        error.  Low and behold, the raw and block devices for the second
  3641.        disk slice 180 were not created after I did the edvtoc.  My first
  3642.        instinct was to make the device nodes by hand with mknod, so I did....
  3643.  
  3644.             mknod /dev/rdsk/c0b0t12d0sb4 c 7679 436
  3645.             mknod /dev/dsk/c0b0t12d0sb4 b 7679 436
  3646.  
  3647.        Wrong again!  The devices were made fine, but swap -c still said
  3648.        Device not found.  A bit more reading of man vtoc told me that
  3649.        the device nodes for slices 1-15 are created, but 16-183 are not,
  3650.        unless the slice exists.  This is all done at boot time, so I 
  3651.        concluded I needed a reboot :-/.  I rm'd the two device nodes I
  3652.        had created, rebooted, and everything worked perfectly.
  3653.  
  3654.        swap -l  lists the new swap
  3655.  
  3656.          path                         dev       swaplo   blocks     free
  3657.          /dev/swap                    7679,2       0     433752    433752
  3658.          /dev/dsk/c0b0t12d0sb4        7679,436     0     433752    433752
  3659.  
  3660.  
  3661.  
  3662.  
  3663.  
  3664.  
  3665.   3.45 Why do all the files on a mounted CD-ROM have ';1' at the end?
  3666.   18 Dec 2000   contribs mitrich@kes.kc.ru
  3667.   ---------------------------------------
  3668.     That means that CD was recorded using JOLIET filesystem. 
  3669.  
  3670.     You need to invoke SCO Admin, then Filesystem Manager.  Then point to the
  3671.     CD-ROM mount entry, select 
  3672.  
  3673.           Mount-> Modify Mount Config->Advanced Options->
  3674.           Filename Conversion-> Suppress version and (;). 
  3675.  
  3676.  
  3677.     From the command line it will be like this: 
  3678.  
  3679.          mount -F cdfs -o\ dsearch=x,nmconv=m,dperm=0555,fperm=0555,ro \
  3680.          /dev/cdrom/cxbxtxlx /CD-ROM_1 
  3681.  
  3682.     So it is better to use a script or alias for mounting.
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.   3.46   How do I make an exact duplicate of an audio cd?
  3694.   12 Jul 2001
  3695.   ----------------------------------
  3696.      Cdrtools-1.10 has all the programs you'll need to rip cd's in 
  3697.   UnixWare 7.  To do this, you can follow a method similar to this 
  3698.   one, which uses a Plextor 8 speed cdr.
  3699.  
  3700.     Plextor cdr is called     ==>     dev=0,4,0 
  3701.  
  3702.  
  3703.    To rip -->      # mkdir tracks
  3704.    To rip -->      # cd tracks
  3705.    To rip -->      # cdda2wav -v255 -D0,4,0 -B -Owav
  3706.    To rip -->      # cdrecord -v dev=0,4,0 speed=8 -dao -useinfo *.wav
  3707.  
  3708.  
  3709.  
  3710.  
  3711.  
  3712.  
  3713.   3.47   What are a good set of options to backup /home to cdr?
  3714.   12 Jul 2001
  3715.   ----------------------------------
  3716.     The trick is to choose a set of options to the mkisofs
  3717.   command that will preserve the filenames, the perms, and
  3718.   as much original inode information as possible.
  3719.  
  3720.     The following are good.  I use 'em, and I haven't 
  3721.   discovered any problems yet.
  3722.  
  3723.        sco_notes version  ==>      mkisofs -l -L -r -v -V home1 -o iso.img .
  3724.        altered version    ==>      mkisofs -R -U -v -V home1 -o iso.img .
  3725.  
  3726.  
  3727.        -U  force untranslated filenames (includes all the following!)
  3728.                -allow-lowercase      lowercase chars ok in filenames
  3729.                -allow-multidot       multiple dots ok in filenames
  3730.                -d                    don't add a trailing . to filenames
  3731.                -l                    allow 31 char filenames
  3732.                -L                    filenames can begin with a .
  3733.                -N                    omit version numbers in filenames
  3734.                -no-iso-translate    do not translate # and ~ in filenames
  3735.                -relaxed-filenames   all 7-bit chars are allowed in filenames
  3736.  
  3737.        -R   engage Rockridge extensions with SUSP extensions.
  3738.        -v   verbose
  3739.        -V home1          this lables the disk home1.
  3740.        -o iso.img        this puts the output in a file called iso.img
  3741.        .                 the last period tells it where to start.
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.   3.48  Do the memfs filesystems, /tmp and /var/tmp, use 50MB of RAM?
  3748.   12 Feb 2002
  3749.   ---------------------------------------
  3750.      The memfs filesystems are not exactly like ramdisks that
  3751.   reserve a section of ram.  Memfs uses ram dynamically.  If the
  3752.   directories are empty, the ram is not used.
  3753.  
  3754.      The memfs filesystems on UnixWare 7 default to 10 MB for /tmp
  3755.   and 40 MB for /var/tmp, which is not used when the directories
  3756.   are empty.  It's safe to make them around 100 MB if you want, during
  3757.   the ISL.
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.   3.49  How do I convert the memfs filesystems to regular vxfs ones?
  3765.   12 Jul 2001
  3766.   ---------------------------------------
  3767.      All you have to do is umount /tmp and /var/tmp in order for
  3768.   them to become to regular subdirectories of root again.  Use
  3769.   the umount command to do that.
  3770.  
  3771.      To make it permanent, umount the memfs filesystems and remove
  3772.   their entries from /etc/vfstab using vi.  You can't use the Scoadmin
  3773.   Filesystem Manager to do any memfs operations, so do all that from
  3774.   the command line.
  3775.  
  3776.      The SCO Docs for UnixWare 7 state that a memfs /tmp is required
  3777.   for their emergency repair to work.  
  3778.  
  3779.  
  3780.  
  3781.  
  3782.  
  3783.  
  3784.  _______________________________
  3785. |                               |
  3786. |  4.  The Network              |
  3787. |_______________________________|
  3788.  
  3789.  
  3790.   4.1   Do I need a nic in my Uw7 box?
  3791.   18 Dec 2000   contribs zigazou@libertysurf.fr
  3792.   ----------------------------------------
  3793.    From postings in the c.u.u.m newsgroup and some personal experience,
  3794.    Uw7 expects to be on a network.  A system without a network card will 
  3795.    function erratically.  The contributor stated,
  3796.  
  3797.       'Deferring the installation of the NIC is possible 
  3798.        during UnixWare 7 installation.  But you have to 
  3799.        keep in mind that "ns-admin" will not correctly 
  3800.        setup its files if it is installed before the NIC.
  3801.        It is the origin of the dot problem in ns-admin.conf, 
  3802.        because domain name would have not been set as NIC was 
  3803.        not yet installed.  Reinstalling the package as stated 
  3804.        after the NIC installation corrects the problem.'
  3805.  
  3806.  
  3807.  
  3808.   4.2   What is a good brand of nic to use in Uw7?
  3809.   12 Feb 2002
  3810.   ----------------------------------------
  3811.    Any brand of NIC that's tested and certified by Caldera will
  3812.    be listed on the Compatible Hardware Page:
  3813.  
  3814.       http://www.caldera.com/chwp/
  3815.  
  3816.    Only use hardware that's listed!  People are not always successful 
  3817.    who focus on a supported chipset, rather than a supported nic from 
  3818.    a brand name vendor.
  3819.  
  3820.  
  3821.  
  3822.  
  3823.  
  3824.   4.3   How do I list my IP and MAC addresses for all configured nics?
  3825.   24 Sept 1999
  3826.   ----------------------------------------
  3827.    Use the 'ifconfig -a' command to see a good deal about net0, net1, etc.
  3828.    You can also find the Media Access Control (MAC) address with:
  3829.  
  3830.       ndstat
  3831.       arp -a
  3832.       cat /etc/inet/macaddr
  3833.  
  3834.    It is useful to poke around with ndstat to understand how you can 
  3835.    modify your MAC address if you are doing fail-over tasks.
  3836.  
  3837.    To get the MAC addresses of all the NICS on your subnet:
  3838.  
  3839.       *  You can enable replies to broadcast pings on all the Uw7 hosts.
  3840.       *  You can then ping your subnet's broadcast address.
  3841.       *  All the Uw7 nics will respond.
  3842.       *  Run an 'arp -a' and all the NICS + MAC's + IP's will be listed.
  3843.  
  3844.    To use 'inconfig' to enable response to broadcast pings,
  3845.    you will want to direct each host to reply to icmp activity:
  3846.  
  3847.       inconfig arpt_keep 1200
  3848.       inconfig icmp_reply_broadcast 1
  3849.  
  3850.    This will make arp keep it's data in it's cache for 1200 sec, and
  3851.    direct the nics to reply as described.
  3852.  
  3853.  
  3854.  
  3855.   4.4   How do I list my routing table?
  3856.   24 Sept 1999
  3857.   ----------------------------------------
  3858.    Use the 'netstat -rn' command to see the table using IP addresses.
  3859.    Use the 'netstat -r'  command to see the table using host and network names.
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.   4.5   How do I add a default route?  Is it permanent?
  3866.   12 Feb 2002
  3867.   ----------------------------------------
  3868.    Use the 'route' command again, for systems with standard netmasks
  3869.    like 255.0.0.0, or 255.255.0.0, or 255.255.255.0 as in:
  3870.  
  3871.       route add default 10.1.1.254
  3872.  
  3873.    If you have a more creative netmask, you will need to use
  3874.    more arguments to your route command to specify that.
  3875.    The default route will not stay around after a reboot.  To make a 
  3876.    route 'permanent' you will need to 'add' it at every reboot.
  3877.    This is as simple as the route add command above.  Modify line 4a
  3878.    in your /etc/inet/config:
  3879.  
  3880.       original config file
  3881.    +-----------------------
  3882.    | ...
  3883.    | #4a:/usr/sbin/route::n::add default router_placeholder:
  3884.    | ...
  3885.    |
  3886.  
  3887.   
  3888.       modified config file
  3889.    +-----------------------
  3890.    | ...
  3891.    | 4a:/usr/sbin/route::y::add default 10.1.1.254:
  3892.    | ...
  3893.    |
  3894.  
  3895.    
  3896.    Changes to /etc/inet/config will not take affect until you reboot.
  3897.    Be sure that your /etc/resolv.conf properly points to any new DNS
  3898.    reachable with your new routing if necessary.
  3899.  
  3900.  
  3901.  
  3902.  
  3903.  
  3904.  
  3905.   4.6   What is a Virtual Domain?
  3906.   24 Sept 1999
  3907.   ----------------------------------------
  3908.    A Virtual Domain is created when you add an 2nd IP address to one nic.
  3909.    You can configure your machine so that it provides email, FTP, and web
  3910.    services for several different domains... just add more IP aliases.
  3911.    Then configure the services to use with the virtual domain.
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.   4.7   How do I add an IP alias?   Is it permanent?
  3918.   18 Dec 2000
  3919.   ----------------------------------------
  3920.    Use the 'ifconfig' command to add or remove an alias:
  3921.  
  3922.       ifconfig net0 alias 10.1.1.100
  3923.       ifconfig net0 -alias 10.1.1.100
  3924.  
  3925.    You can test your new alias with the 'ping' command.  If you have put 
  3926.    the alias on a different subnet than the real address of the nic, then
  3927.    you will need to configure a route for one network to talk to the
  3928.    other virtual network.  With an alias, you can keep your old IP address
  3929.    functional, if ever you change yours.
  3930.  
  3931.    An alias is not permanent.  You can make it stay, though, by creating 
  3932.    an rc.2 shell script, S70ipalias.  Here's mine, which logs to the syslog.
  3933.  
  3934.  
  3935.  
  3936.      -------------------- begin /etc/rc2.d/S70ipalias ----------------------
  3937.      #!/bin/sh
  3938.  
  3939.      #======================
  3940.      # File:  /etc/rc2.d/S70ipalias 
  3941.      # Auth:  M.Schalit
  3942.      # Desc:  Sets up aliases for net0,
  3943.      #        and logs them to the syslog.
  3944.      #
  3945.      # Usage:  S70ipalias <start|stop>  
  3946.      # Date:  26 Nov 2000
  3947.      #=======================
  3948.  
  3949.      usage()
  3950.      {
  3951.         echo "Usage:  $0 <start|stop>\n"
  3952.      }
  3953.  
  3954.  
  3955.        # Set up a few variables.  Fill in ALIAS1, and make NUN1 say
  3956.        # net0 or net1 or whatever nic you're putting the alias on.
  3957.        # The nic gets the alias, ALIAS1.
  3958.        # The NUN1 variable stands for Network Unit Number 1.
  3959.  
  3960.      ALIAS1=10.240.68.94
  3961.      NUN1=net0 
  3962.  
  3963.      IP1=`/usr/sbin/ifconfig $NUN1 | grep "inet " | cut -d" " -f2`
  3964.  
  3965.  
  3966.      case "$1" in 
  3967.         start)   /bin/logger S70ipalias: initializing.
  3968.                  if [ "$NUN1" -a "$ALIAS1" -a "$IP1" ]
  3969.                  then
  3970.                     /usr/sbin/ifconfig $NUN1 alias $ALIAS1
  3971.                     IPA1=`/usr/sbin/ifconfig $NUN1 | grep "alias" | \
  3972.                            cut -d" " -f3`
  3973.                  /bin/logger S70ipalias: ${NUN1},$IP1 has the alias $IPA1
  3974.                  fi
  3975.                  ;;
  3976.  
  3977.         stop)
  3978.               /usr/sbin/ifconfig $NUN1 \-alias 
  3979.               ;;
  3980.  
  3981.         *)
  3982.            usage
  3983.            ;;
  3984.      esac
  3985.  
  3986.      exit 0
  3987.      -----------------------------  End S70ipalias  ------------------------
  3988.  
  3989.  
  3990.  
  3991.  
  3992.   4.8   Suddenly the network is slow, why?
  3993.   9 Oct 1999
  3994.   ----------------------------------------
  3995.    This is a common job interview question.  There are many possibilities:
  3996.  
  3997.       A)  There is a runaway process hogging cpu slices... use ps -ef.
  3998.       B)  If the slow-down happens at the same time, look for machinery
  3999.           being run nearby the network or server at that time.
  4000.       C)  Check netstat -i for ierrs or oerrs that are increasing.
  4001.       D)  Check other netstat outputs for suspicious results.
  4002.       E)  Is your filesystem out of free space, ram, or swap?
  4003.       F)  Can you put a packet sniffer on the cable?
  4004.       G)  Who had access to the server, and what was recently changed?
  4005.       H)  Mismatched nics and hubs. Try to use all 3com, or Intel, etc.
  4006.       I)  A nic is getting confused trying to do auto-negotiation.
  4007.           Boot to DOS and run the NIC's configuration utility to force
  4008.           the nic to the proper speed (10Mbps or 100Mbps) and the
  4009.           proper duplex (hubs use half, only switches and routers use full).
  4010.       J)  Start swapping cables and hardware with known functioning ones.
  4011.  
  4012.  
  4013.       
  4014.  
  4015.   4.9   Is there a firewall program for Uw7?
  4016.   12 Feb 2002
  4017.   ----------------------------------------
  4018.    There is no firewall application per se for Uw7.  SCO training manuals
  4019.    state the following:
  4020.  
  4021.       'A firewall is not a simple switch that you select on or off.
  4022.        Instead, it is a series of components that you can use to build
  4023.        your security system, like adding bricks in a wall.'
  4024.  
  4025.       'A properly configured Uw7 system can accomplish (being a firewall).
  4026.        To achieve this, the system should be:
  4027.  
  4028.           *  Set up as the connection between networks
  4029.  
  4030.           *  Configured with security features such as TCP wrappers,
  4031.              packet filters, and proxy servers.
  4032.  
  4033.           *  Running minimal services and have as few accounts as possible
  4034.              to reduce the risk of penetration.'
  4035.  
  4036.    People get defeated when attempting to use Uw7 as a firewall because
  4037.    it can not do NAT (network address translation).  As of Dec, 2000,
  4038.    NAT for Uw7 is rumored to be under testing, though I heard that in May.
  4039.    When it gets here, that'll be great.
  4040.  
  4041.    Often people want to setup a private LAN connected to the Internet via 
  4042.    one registered IP address.  This needs NAT to do completely.  Proxy
  4043.    servers help, but are limited to doing web and ftp, and need proxy
  4044.    capable clients.  NAT doesn't have these limitations.  
  4045.  
  4046.    If your ISP provides you with a block of IP addresses, then you can use
  4047.    proxy arp to make a Uw7 system that's a transparent, packet filtering
  4048.    firewall bridge.
  4049.  
  4050.    People enjoy using Linux for NAT/firewall.  Other excellent
  4051.    alternatives include the GnatBox (www.gnatbox.com) and the
  4052.    Linux Embedded Appliance Firewall (LEAF, leaf.sf.net).  I use LEAF.
  4053.  
  4054.    For an excellent firewall reference, please see the O'Reilly book,
  4055.    _Building Internet Firewalls_.  You may wish to create the following:
  4056.  
  4057.                      
  4058.         ISP <--> LRP -- Internal Protected Network
  4059.                     \
  4060.                      DMZ  (Web,Ftp,DNS,Mail Servers)
  4061.  
  4062.  
  4063.  
  4064.  
  4065.  
  4066.   4.10  What's a TCP Wrapper?
  4067.   18 Dec 2000
  4068.   ----------------------------------------
  4069.    There are many services that run on Uw7 such as ftpd, and telnetd.
  4070.    TCP wrappers are programs that 'wrap' around these services and
  4071.    only allow permitted traffic to flow to them.  The allowing and
  4072.    denial of access is controlled by /etc/hosts.allow and /etc/hosts.deny.
  4073.    TCP wrappers are enabled by default and set to allow all.  They
  4074.    are enabled/disabled in /etc/inet/inetd.conf.
  4075.  
  4076.    Server daemon programs that can use tcp wrappers are often named
  4077.    in.ftpd, in.telnetd, in.rlogind, etc. . . . 
  4078.  
  4079.  
  4080.  
  4081.  
  4082.   4.11  What is a Packet Filter?
  4083.   18 Dec 2000  contribs Boyd Gerber
  4084.   ----------------------------------------
  4085.    A packet filter is a set of rules that control the movement
  4086.    of data in and out of your ethernet cards. 
  4087.  
  4088.    What's being checked are packets between the Network and Internet layers
  4089.    of the TCP protocol stack.
  4090.  
  4091.    As such, packet filters can restrict which packets are allowed to 
  4092.    enter or exit through a nic.
  4093.  
  4094.    Packet filters are not enabled by default, and can be created using
  4095.    the Scoadmin Packet Filter Manager.
  4096.  
  4097.  
  4098.  
  4099.    _______ Boyd said _______
  4100.      The graphical manager is not perfect, you sometimes have to manually
  4101.      fiddle with the filters in: 
  4102.  
  4103.         /etc/pf.d/IP
  4104.  
  4105.      See also the man page pushfilter(1M)
  4106.      
  4107.      Don't try this under 7.0.1 or 7.1 without all the patches. The 
  4108.      systems corrupts its control files and renders the whole TCP/IP 
  4109.      framework useless.  Unless you have some experience in these 
  4110.      control files there only way to get the TCP back is a reinstall. 
  4111.    _________________________
  4112.  
  4113.  
  4114.  
  4115.  
  4116.  
  4117.  
  4118.  
  4119.  
  4120.   4.12  Why can't root ftp into Uw7?
  4121.   24 Sept 1999
  4122.   ----------------------------------------
  4123.    Root is denied ftp access by default, as a security consideration.
  4124.    To enable root to ftp, remove 'root' from the file /etc/ftpusers,
  4125.    and be sure that root's login shell is not commented out in the file
  4126.    /etc/shells.
  4127.  
  4128.  
  4129.  
  4130.  
  4131.   4.13  What are the idiosyncrasies with the DNS Server Manager?
  4132.   12 Feb 2002   contribs James Richardson
  4133.   ----------------------------------------
  4134.    If you start it and exit it without creating any DNS servers,
  4135.    it will still automatically create a 'caching only' nameserver.
  4136.    That's a feature.  
  4137.  
  4138.    The DNS server manager GUI was recently updated with a ptf.
  4139.    It's tight now.  It has a nice feature to update your db.cache
  4140.    file, which is the list of root servers in /etc/inet/named.d/.
  4141.    
  4142.  
  4143.    _____ James said _____
  4144.      It seems to add extra ;; in files when a zone is 
  4145.      transfered.  You'll see errors in the startup log,
  4146.      and just delete the extra ; 
  4147.  
  4148.  
  4149.  
  4150.  
  4151.  
  4152.  
  4153.   4.14  Why does logging into the CDE freeze for minutes, then restart?
  4154.   24 Sept 1999
  4155.   ----------------------------------------
  4156.    This is often the result of a misconfigured DNS or /etc/resolv.conf.
  4157.    Be sure to have the proper nameservers listed, and check nslookup
  4158.    to be sure you get the correct results returned from DNS.  Try a
  4159.    bogus name like 'bogus' at the nslookup prompt.  If the command
  4160.    hangs, then you have a problem with DNS.  Your system can also
  4161.    hang if your default route is down and your first nameserver
  4162.    listed in /etc/resolv.conf is on the next subnet.
  4163.  
  4164.  
  4165.  
  4166.   4.15  What are network services?
  4167.   24 Sept 1999
  4168.   ----------------------------------------
  4169.    A Uw7 system runs many programs in the background that are designed
  4170.    to respond to and communicate with a user's program.  This is called
  4171.    the server/client model.  We refer to a server process as a service,
  4172.    which waits for communication on one or more ports.  People are
  4173.    familiar with such services as ftp, and telnet.  These are
  4174.    offered by the corresponding processes ftpd, telnetd, and httpd
  4175.    on ports 21, 23, and 80.   These services are mapped out in a text
  4176.    file called /etc/services.
  4177.  
  4178.  
  4179.  
  4180.   4.16  What network services, that run by default, don't I need? 
  4181.   18 Dec 2000
  4182.   ----------------------------------------
  4183.    Many people do not need to run routed on their small LAN, especially
  4184.    if they have their default route and other routes statically entered.
  4185.    There are a lot of legacy daemons like finger, talk, ntalk, and systat.
  4186.    You just have to have a close look.  Running old daemons is a sure-fire
  4187.    way to leave your network open.  Telnetd and ftpd are problems!
  4188.  
  4189.    For instance, UnixWare 7.1.1 ships with wu-ftpd 2.4.2academ.
  4190.    There's no end the the CERT alerts about old versions of wu-ftpd,
  4191.    older that 2.6.0 being root compromised.  Plus, wu-ftpd is enabled by
  4192.    default.
  4193.  
  4194.  
  4195.  
  4196.   4.17  Why can't I see computers on another subnet with Visionfs?
  4197.   24 Sept 1999
  4198.   ----------------------------------------
  4199.    Visionfs uses NetBIOS names for name to IP address resolution, but NetBIOS
  4200.    broadcasts don't cross routers.  A solution is to edit:
  4201.  
  4202.       /etc/lmhosts
  4203.       c:\windows\lmhosts 
  4204.       c:\winnt\system32\drivers\etc\lmhosts
  4205.  
  4206.    or put a Visionfs host on each subnet.
  4207.  
  4208.  
  4209.  
  4210.   4.18  Can I synchronize my computer's clocks with the correct time?
  4211.   24 Sept 1999
  4212.   ----------------------------------------
  4213.    There are extremely accurate time-keeping systems called atomic clocks
  4214.    that keep the world's time exact.  You can access this exact time
  4215.    if you have a link to your ISP up, by running the simple program 
  4216.    'ntpdate.'  If you want to set up a more elaborate time synch system, 
  4217.    like a time server to synch all your workstations to, then use 'xntpd.'
  4218.  
  4219.  
  4220.  
  4221.  
  4222.   4.19  How do I use ntpdate?
  4223.   24 Sept 1999
  4224.   ----------------------------------------
  4225.    Ntpdate is not a service but a one-shot program that uses the default
  4226.    route (usually to your ISP) to communicate with the time servers 
  4227.    you specify.  The atomic clocks are called Stratum 1 servers, and 
  4228.    should not be used.  They communicate, in turn, with high powered 
  4229.    and reliable, computer time servers called Stratum 2 servers, which 
  4230.    are polled by many people who run Stratum 3 servers.  We often poll 
  4231.    Stratum 2 and 3 servers.  Good time servers can be found at:
  4232.  
  4233.       http://www.eecis.udel.edu/~mills/ntp/servers.html
  4234.  
  4235.    An example 'ntpdate' command that I have aliased is:
  4236.  
  4237.       ntpdate tock.cs.unlv.edu clock.psu.edu clock.tricity.wsu.edu
  4238.               ns.scruz.net ntp.cox.smu.edu
  4239.  
  4240.    which is typed all on one line.  At least four time serves are used
  4241.    which increases the accuracy of the time returned.
  4242.  
  4243.  
  4244.  
  4245.  
  4246.   4.20  How do I use xntpd?
  4247.   18 Dec 2000
  4248.   ----------------------------------------
  4249.    First some general concepts.  Xntpd is running by default because an 
  4250.    (empty) ntp.conf exists.  Xntpd is started from an entry in 
  4251.    /etc/inet/config.  Xntpd which implements the Network Time
  4252.    Protocol (NTP) is not trivial, and there is a newsgroup called 
  4253.    comp.protocols.time.ntp where this topic is discussed in detail.
  4254.    You can interact with an xntpd daemon by using the xntpdc command.
  4255.  
  4256.    The further away in network hops a time server is from an atomic clock,
  4257.    the less reliable it is.  This reliability is called the server's stratum.
  4258.     
  4259.      Stratum 1 == Atomic clocks.  Please don't use these.
  4260.      Stratum 2 == Secondary servers.
  4261.      Stratum 3 == Uw7 local clocks default to 3 but should be set to 10 !!!
  4262.      Stratum 5 == A good level for your local ntp server.
  4263.      Stratum 10 = The proper level for clients and their local clock.
  4264.  
  4265.    For every 100 hosts on your intranet, you should configure one ntp client
  4266.    to poll two stratum 2 servers (in case one is down).  Then configure all
  4267.    the other hosts to poll your freshly synchronized, local time server.
  4268.  
  4269.  
  4270.    xntpd-mini-HOWTO:
  4271.    -----------------
  4272.  
  4273.       A)  Determine which Secondary servers to poll from the list at
  4274.           http://www.eecis.udel.edu/~mills/ntp/servers.html
  4275.  
  4276.       B)  Add appropriate entries to /etc/inet/ntp.conf by using the
  4277.           scoadmin Client Manager -->  Add a Client -->  NTP client.
  4278.           Here there is a bug.  You will need to tab and click around
  4279.           on the different entries before the scoadmin tcl script will
  4280.           allow your cursor into the IP address field.  Now you can
  4281.           enter the names of the two time servers you chose in step (A).
  4282.           Then enter 127.127.1.0 which is your local clock (RTC) address.
  4283.           Click ok and exit the Client Manager.  Configuring like this
  4284.           through the Client Manager is what enables the client side
  4285.           of xntpd and the server side also.  Exit the Client Manager.
  4286.  
  4287.       C)  Edit your new /etc/inet/ntp.conf file:
  4288.  
  4289.                   original /etc/inet/ntp.conf
  4290.                +-----------------------------------------
  4291.                |  broadcastclient no
  4292.                |  server 128.xxx.xxx.97
  4293.                |  server 192.xxx.xxx.41
  4294.                |  server 127.127.1.0
  4295.                |  driftfile /etc/inet/ntp.drift
  4296.                |  
  4297.  
  4298.  
  4299.                   modified /etc/inet/ntp.conf
  4300.                +-----------------------------------------
  4301.                |  broadcastclient no
  4302.                |  server 128.xxx.xxx.97
  4303.                |  server 192.xxx.xxx.41
  4304.                |  server 127.127.1.0
  4305.                |  fudge 127.127.1.0 stratum 5
  4306.                |  driftfile /etc/inet/ntp.drift
  4307.                |  
  4308.  
  4309.    You can see that the fudge line was added to set the stratum of the
  4310.    local time server.  Let's call that local time server ns1.local.com.
  4311.    To configure the other 99 hosts on your network to use ns1, then
  4312.    you would do the same A, B, C procedure above, but only use the
  4313.    ns1.local.com and 127.127.1.0 addresses.  Fudge the 99 hosts to stratum 10.
  4314.  
  4315.    Observe the effects of xntpd in /var/adm/syslog.  You'll want to be
  4316.    sure that your default route is brought up in /etc/inet/config, 
  4317.    because then it is established before xntpd tries to use it.
  4318.  
  4319.    If you want to debug the daemon, observe its status, or modify a
  4320.    setting while it's running, you can use xntpdc.
  4321.  
  4322.  
  4323.  
  4324.   4.21  Where is my domain name stored in the root filesystem?
  4325.   24 Sept 1999
  4326.   ----------------------------------------
  4327.    You can search every local file for the domain name string
  4328.    using the find command along with xargs for speed:
  4329.  
  4330.       find / -type f | xargs fgrep -l "domain" > /tmp/p.out
  4331.  
  4332.    Xargs is a command line program that groups a bunch of fgreps and
  4333.    processes them all at once instead of one at a time.
  4334.  
  4335.  
  4336.  
  4337.  
  4338.   4.22  Is DHCP possible with Uw7?
  4339.   12 Feb 2002
  4340.   ----------------------------------------
  4341.    Uw7 has both dhcp client and server capabilities.  
  4342.  
  4343.  
  4344.  
  4345.  
  4346.   4.23  What are good IP addresses to use for my private LAN?
  4347.   18 Dec 2000   contribs  tangent
  4348.   ----------------------------------------
  4349.    The following information is taken from rfc1918, a Request For
  4350.    comments by Y. Rekhter, et. al., which obsoleted the older rfc1597.
  4351.    Read this document on the web at:
  4352.  
  4353.       http://www.faqs.org/rfcs/rfc1918.html
  4354.  
  4355.      'The Internet Assigned Numbers Authority (IANA) has 
  4356.       reserved the following three blocks of the IP address 
  4357.       space for private intranets:
  4358.  
  4359.           10.0.0.0        -   10.255.255.255  (10/8 prefix)
  4360.           172.16.0.0      -   172.31.255.255  (172.16/12 prefix)
  4361.           192.168.0.0     -   192.168.255.255 (192.168/16 prefix)
  4362.  
  4363.  
  4364.  
  4365.     Use one of those ranges.  I could go on forever about networks,
  4366.     ip addresses and netmasks, and tangent started to, but this is just
  4367.     meant to be a quick list of what the numbers are.  I don't like 
  4368.     remembering 172.16, 172.31, or whatever.
  4369.  
  4370.  
  4371.  
  4372.   _____ tangent's comments here on subnetting and netmasks are on file at
  4373.            http://zenez.pcunix.com/cgi-bin/scouw7faq 
  4374.  
  4375.  
  4376.  
  4377.  
  4378.   4.24  How do I setup Uw7 as a router for two subnets?
  4379.   18 Dec 2000
  4380.   ----------------------------------------
  4381.    This is accomplished with two NIC's in the Uw7 host, configured
  4382.    with IP addresses on the two subnets.  The procedure looks like this:
  4383.  
  4384.  
  4385.       A.  Install the 2nd nic in the case.
  4386.       B.  Boot off a DOS disk and run the nic config utility
  4387.       C.  Add the 2nd card with a good nodename like myhost1.
  4388.       D.  Give the card the right IP on the new subnet.
  4389.       E.  Click advanced to set ipsendredirects and ipforwarding.
  4390.  
  4391.  
  4392.    Be sure to run each NIC's configuration utility which is usually
  4393.    a DOS application in order to fix the card's irq and address if
  4394.    it is an ISA card.  You might want to fix the speed and duplex also.
  4395.  
  4396.    Then with one card already configured as myhost.mydom.net, 
  4397.    use 'netcfg' to configure the other card and enter its name as 
  4398.    myhost1.  Enter the appropriate IP address and be sure to select 
  4399.    Advanced Options so that you can check the box Use As Router?  Yes.  
  4400.    That sets ipforwarding and ipsendredirects to deal with proxy arp,
  4401.    After saving and exiting, the scoadmin network will add entries in your
  4402.    /etc/hosts and your DNS A record file db.mydom.net (if it exists).
  4403.  
  4404.    Then you should be able to go to the hosts on each subnet
  4405.    and add the route to the other subnet.
  4406.  
  4407.  
  4408.  
  4409.   4.25  What is a good modem for Uw7?
  4410.   24 Sept 1999
  4411.   ----------------------------------------
  4412.    An external modem is the way to go.  Many people are happy with
  4413.    Sportsters, Zoom 56Ks, Multitech, etc...
  4414.  
  4415.    Don't use an internal modem.  It may work, but poorly.
  4416.    Don't use an internal PCI modem.  It will never work.
  4417.  
  4418.    You'll want to apply set71101.
  4419.    
  4420.    
  4421.    
  4422.  
  4423.   4.26  How do I set up an outgoing PPP connection?
  4424.   18 Dec 2000
  4425.   --------------------------------------
  4426.    This is most easily accomplished via the gui scoadmin ppp.
  4427.    Given:  Zoom external on COM1 for a dialout PPP to my ISP.
  4428.            My IP:   Assigned at login
  4429.            ISP IP:  Assigned at login
  4430.            ISP DNS:  206.xxx.yyy.12
  4431.            ISP DNS:  206.www.zzz.12
  4432.  
  4433.    I am going to start by installing the modem and configuring the serial
  4434.    port it is connected to, then configuring the PPP link with the PPP
  4435.    Connection Wizard....
  4436.  
  4437.      1)  Log in as root to the CDE and start the scoadmin Network Config
  4438.          Manager.  Select View --> WAN.  If you had no modems installed,
  4439.          your window will show no devices.
  4440.      
  4441.      2)  Select Hardware --> Add new WAN device --> Modem.
  4442.          This starts the modem manager.
  4443.          
  4444.      3)  Select Modem --> Add --> Manual Configuration.
  4445.          ( I could have used Auto, because the Zoom 56K is detectable).
  4446.      
  4447.      4)  Select your modem manufacturer and model.  I'll use
  4448.          Zoom V.34X, because almost every Zoom script is identical,
  4449.          and this as good as any.  Select the term/00m port that is what 
  4450.          we call COM1.  Then click the Configure Port... button, before 
  4451.          you click OK.
  4452.          
  4453.      5)  This button takes you into the Serial Configuration Manager.
  4454.          Port Type = COM1 Modem
  4455.          Configure Port = Outgoing Only
  4456.          Speed = Auto
  4457.          Then ok to exit.  Then ok to exit again.  Then Host --> Exit.
  4458.          Back in the Network Configuration Manager, Go ahead and exit
  4459.          it also,
  4460.          
  4461.      6)  Testing the Modem:  Now work at a terminal prompt.  
  4462.             
  4463.             *   Set the correct UID:GID on the serial port to uucp:uucp
  4464.                   chown uucp:uucp /dev/term/00m
  4465.             
  4466.             *   Directly connect to the modem with cu:
  4467.                   cu -l /dev/term/00m
  4468.                 You should enter the connection screen and see a message.
  4469.                 You may see an AT.  Type AT and press Enter, and you will
  4470.                 see an OK or 0.  If you don't, type ATE1 and Enter, and
  4471.                 then AT again.  That E1 turns echo on, which you need to see
  4472.                 the data, but you don't need for PPP, that's why it's off.
  4473.                 You could always just try an ATZ, then AT.  Don't worry about 
  4474.                 about the state you leave it in.
  4475.                 
  4476.             *   Test that link to see if you get a dial tone:
  4477.                   ATDT
  4478.                 You will hear it after typing that.
  4479.                 
  4480.             *   Type ~. and Enter to disconnect.
  4481.          
  4482.          If any of the modem aspects don't work, then you'll need to 
  4483.          troubleshoot your modem and phone line, which is beyond the scope
  4484.          of this Faq.  Fix that before you go on.  The SCO doc's contain
  4485.          good modem troubleshooting help.
  4486.           
  4487.      7)  Now with a working modem, restart the Scoadmin Network
  4488.          Configuration Manager again to build the PPP link.  Choose
  4489.          View --> WAN and then select Software --> Configure PPP...
  4490.          Then choose View --> Bundles screen.  Then Wizard --> Add.   
  4491.          Then Outgoing, Start.
  4492.  
  4493.      8)  In the Outgoing : Bundle window, setup the following:
  4494.      
  4495.             Provider bundle name:   earthlink
  4496.             Remote System:          epop-sr
  4497.             Telephone:              2334492  then  Add
  4498.             How to Connect:         Use pppattach  then Next.
  4499.      
  4500.      9)   Outgoing : PPP Authentication
  4501.      
  4502.             Authentication Protocol:  None
  4503.             Next...
  4504.             
  4505.      10)  Outgoing : Login Script
  4506.      
  4507.             Use Script:  Yes
  4508.             Login Script:  All are left unchanged except
  4509.               2nd Send:  ELN/mschalit    <-- My login name
  4510.               3rd Send:  **********      <-- My password
  4511.               
  4512.            Your username will probably be just your email name,
  4513.            but earthlink requires me to prepend an ELN/ before
  4514.            my username for logging in.  Then next....
  4515.          
  4516.      11)  Outgoing : IP Network Protocol:
  4517.      
  4518.             Local address assigned by:   Remote
  4519.             Local IP address/hostname:   0.0.0.0
  4520.             Remote address assigned by:  Remote
  4521.             Remote IP address/hostname:  0.0.0.0
  4522.             Use as default route:        Yes
  4523.             Local host acts as gateway:  No
  4524.             Act as Proxy for arp:        No
  4525.             
  4526.           Here I use 0.0.0.0 because it is a manual attach link.
  4527.           I select use as default route, because theoretically, this
  4528.           is a PPP link to an ISP who will link me out to the world.
  4529.           I want any data, not destined for my local computers, to go out 
  4530.           to the Internet through my ISP by default, thus the default route.
  4531.           The local host will not act as a gateway for all the other computers
  4532.           on my LAN so that they can get their data out, in this example.  
  4533.           The act as proxy for arp is related to the gateway, and this is
  4534.           also not needed, because I am not forwarding all data from my
  4535.           LAN out to the net, just from the Uw7 host to the net.
  4536.           
  4537.      12)  Outgoing : Name Servers
  4538.      
  4539.             Domain Search Order:
  4540.             
  4541.               schalit.net
  4542.             
  4543.             Name Server Search Order:  Put your local DNS server last if any.
  4544.             
  4545.                206.xxx.yyy.12
  4546.                206.www.zzz.12
  4547.             
  4548.             Then next....
  4549.       
  4550.      13)  Outgoing : Link Devices
  4551.       
  4552.             Flow Control:         Hardware
  4553.             Multilink max links:  1
  4554.             Selected Link Devices:  Add the COM1 ACU  device.
  4555.             Then Finish.  You're done.
  4556.      
  4557.    Now that the link has been created, exit all managers and we'll test it.
  4558.    Note these facts:  Manual pppattach links will not be listed in ifconfig -a
  4559.    until the link is brought up.  Part of the ifconfig setup is an option
  4560.    called 'RFC1323' which gets set on all ifconfig devices.  This RFC option
  4561.    conflicts with VJ Header Compression.  RFC1323 is on by default, and
  4562.    VJ Header compression is off by default, so the setup is ok at this point,
  4563.    but I've found that rfc1323 mucks up some web pages from finishing to load
  4564.    or to send, so look in the ifconfig man page and consider turning this
  4565.    off if you have a good link but some pages don't complete.  To turn off
  4566.    rfc1323, do the following:
  4567.    
  4568.          ifconfig ppp0 -rfc1323
  4569.          
  4570.    
  4571.    Testing and Monitoring the dialout PPP link:
  4572.    
  4573.       To test and monitor the state of the pppd as you make the
  4574.       outgoing PPP link, use the ppptalk command:
  4575.       
  4576.         ppptalk debug med bundle earthlink
  4577.         ppptalk debug med link link_0
  4578.         pppattach earthlink &
  4579.         tail -f /var/adm/log/ppp.log
  4580.         
  4581.      That will set debugging on the bundle and the link device, and
  4582.      dial the earthlink bundle, and then tail the PPP log.  If it stays
  4583.      on line with the ISP, then your link succeeded.  Often times you
  4584.      will have to read the log closely to see what your ISP rejected and
  4585.      to modify your PPP configuration to fit that.  
  4586.      
  4587.      PPP is sensitive to what ptf's you've applied, also.  Be sure to
  4588.      apply set71101 after ISL.
  4589.      
  4590.      If you want you modem speaker on until you connect, then you will
  4591.      need to edit your /etc/uucp/default/modem.name.file and change
  4592.      the Speaker line to read ATM1.
  4593.      
  4594.      After my link was up and it didn't hang up on me right away, I
  4595.      typed  ping www.google.com and it worked, so I'm going to stop here.    
  4596.           
  4597.           
  4598.            
  4599.  
  4600.   4.27  How do I set up an incoming PPP connection?
  4601.   27 Oct 1999
  4602.   --------------------------------------
  4603.    This exciting example of modern networking begins with no modem.
  4604.    Follow step (1) through (4) of the above procedure in (4.26).
  4605.    Continue here with (5) below.  
  4606.    
  4607.    The big picture is that I intend to add a modem that is configured
  4608.    as incoming/outgoing (this is the key to success!).  I'll test 
  4609.    the modem outward using cu on the Uw7 computer to my ISP and inward 
  4610.    allowing Uw7 to answer a call from Hyperterminal on NT4 SP5.
  4611.    
  4612.    I'll then make an incoming PPP bundle so that I can dial in from
  4613.    NT4 and login as my unix username, mschalit.
  4614.    
  4615.    After (1) - (4) above:
  4616.    
  4617.    
  4618.      5)  This button takes you into the Serial Configuration Manager.
  4619.          Port Type = COM1 Modem
  4620.          Configure Port = Incoming & Outgoing
  4621.          Speed = 115200
  4622.          Then ok to exit.  Then ok to exit again.  Then Host --> Exit.
  4623.          Back in the Network Configuration Manager, Go ahead and exit
  4624.          it also,
  4625.          
  4626.      6)  Testing the Modem:  Working at a terminal prompt.  
  4627.             
  4628.             *   Set the correct UID:GID on the serial port to uucp:uucp
  4629.                 if it's not correct:
  4630.                 
  4631.                   chown uucp:uucp /dev/term/00m
  4632.             
  4633.             *   Directly connect to the modem with cu:
  4634.                   cu -l /dev/term/00m
  4635.                 You should enter the connection screen and see a message.
  4636.                 You may see an AT.  Type AT and press Enter, and you will
  4637.                 see an OK or 0.  If you don't, type ATE1 and Enter, and
  4638.                 then AT again.  That E1 turns on echo, which you need to see
  4639.                 the data, but you don't need for PPP, that's why it's off.
  4640.                 You can also type ATZ and Enter to reset the modem, then AT.
  4641.                 Don't worry about about the state you leave it in.
  4642.                 
  4643.             *   Test that link to see if you get a dial tone:
  4644.                   ATDT
  4645.                 You will hear it after typing that.  Hit ~. to
  4646.                 disconnect and reconnect with cu -l /dev/term/00m
  4647.                 
  4648.             *   Test the link outbound... Dial the ISP, login, etc.
  4649.                    ATDT 2xxyy92
  4650.                 After you login, disconnect with ~.
  4651.             
  4652.             *   Test the link incoming... I got on my NT4 box and
  4653.                 ran Hyperterminal and dialed my Uw7 modem.  It
  4654.                 answered and I hit enter to get a Login prompt.
  4655.                 I logged in as myself and was able to ls -l and
  4656.                 cal and banner hello a bunch of times.  Good.
  4657.             
  4658.             *   Test the link outbound again.
  4659.             *   Test the link inbound again.
  4660.             
  4661.          All those tests show me that the modem is stable and will
  4662.          answer calls and make calls repeatedly.  Good news. 
  4663.           
  4664.      7)  Now with a working modem, restart the Scoadmin Network
  4665.          Configuration Manager again to build the PPP link.  Choose
  4666.          View --> WAN and then select Software --> Configure PPP...
  4667.          Then choose View --> Bundles screen.  Then Wizard --> Add.   
  4668.          Then Incoming, Start.
  4669.  
  4670.  
  4671.      8)  In the Incoming : Remote Access Window...
  4672.            Remote access bundle:  sysop
  4673.            Authentication methods...
  4674.              Enable Chap                 = No
  4675.              Enable Pap                  = No
  4676.              Enable login                = Yes
  4677.              Enable Caller ID            = No
  4678.            Then Next...
  4679.            
  4680.      9)  In the Incoming : Login screen.......
  4681.             Username:  rasop
  4682.             Password:  entered something here
  4683.          Next
  4684.      
  4685.     10)  In the Incoming : IP Network Protocol window.....
  4686.          I left it on local and left my local address in there...
  4687.     
  4688.            Local address assigned by:     Local
  4689.            Local IP Address/hostname:     10.1.1.1
  4690.            Remote address assigned by:    Local
  4691.            Remote IP address/hostname:    10.1.1.103
  4692.            Use as default route:          No
  4693.            Local host acts as gateway:    Yes
  4694.            Act as proxy for arp:          Yes
  4695.          Then next......
  4696.         
  4697.     11)  In the Incoming : Advertise DNS
  4698.            Advertise DNS servers:         Yes
  4699.            Primary server address:        10.1.1.1    (because I have one)
  4700.            Secondary:                     
  4701.          The next....
  4702.         
  4703.     12)  In the Incoming : Link Devices window.........
  4704.     
  4705.            Flow Control:           Hardware
  4706.            Multilink max links:    1
  4707.            Selected devices:       COM1  Add >>
  4708.          Then finish, then exit, then exit.
  4709.     
  4710.     Now we are ready to dial in from another computer.  I have set up
  4711.     my NT4 box with a PPP link to Uw7.  I told NT to bring up a
  4712.     terminal window during the modem negotiation so that I can 
  4713.     type in my login:pass.  That's on the Script tab in the Edit
  4714.     Modem Properties.  I told it not to do software compression and
  4715.     not to do VJ header compression due to the modem compression
  4716.     and the rfc1323 being enabled.
  4717.     
  4718.     When I dial, a little window pops up with three fields:
  4719.        username
  4720.        password
  4721.        domain
  4722.        Check Box for save password
  4723.     It doesn't matter what I enter there, because I will end up logging
  4724.     in with the terminal window.  I entered something and it dialed out and
  4725.     popped up the terminal window.  I logged in as rasop and gave it
  4726.     the password, and it worked.
  4727.     
  4728.         
  4729.            
  4730.       
  4731.   4.28  How do I set up bidirectional PPP? 
  4732.   18 Dec 2000
  4733.   ----------------------------------------
  4734.    To do bidirectional PPP, it's a whole lot easier to have two modems,
  4735.    where one handles each direction.
  4736.  
  4737.    In an old SCO Network Administration class, I met a guy named Fred,
  4738.    who was an old BBS'er.  He was able to get bidirectional PPP working 
  4739.    between two Uw711 hosts.  The key is that they were both Uw7, configured
  4740.    similarly, and had similar network configuration needs.    
  4741.  
  4742.    After installing set71101, he did the following:
  4743.  
  4744.       A)  Setup both hosts with PPP links using the Wizard as Outgoing only.
  4745.  
  4746.       B)  On machine A, both IP addresses are Assigned By Local.
  4747.           In both spaces put in the real IP addresses of the two hosts.
  4748.  
  4749.       C)  On machine B, both IP addresses are Assigned by Remote.
  4750.           Use fake addresses like 127.0.0.2 and 127.0.0.3.
  4751.  
  4752.       D)  After exiting all the scoadmin managers, restart them
  4753.           and go back into Network Manager --> Wan --> Configure PPP,
  4754.           Modify the bundle and select the box to fix it as BiDirectional.
  4755.  
  4756.       E)  Then you can setup the logins, and it should work.
  4757.  
  4758.  
  4759.  
  4760.  
  4761.   4.29  I want to disable a particular daemon, how is this done?
  4762.   12 Feb 2002
  4763.   ----------------------------------------
  4764.    You can ask yourself the following questions:
  4765.  
  4766.       a)  Is it stand-alone and started via a script in /etc/rc2.d?
  4767.       b)  Or does it start from /etc/inet/config
  4768.       c)  Or does it start from /etc/inet/inetd.conf
  4769.       d)  Is it run from the Service Access Facility (SAF)?
  4770.  
  4771.    Often you will just need to comment something out in the right file.
  4772.  
  4773.  
  4774.  
  4775.  
  4776.   4.30  How do I apply changes made to /etc/inet/inetd.conf? 
  4777.   12 Feb 2002
  4778.   ----------------------------------------
  4779.    Changes made to this file can be applied by 
  4780.  
  4781.  
  4782.       sacadm -k -p inetd
  4783.       sacadm -s -p inetd
  4784.  
  4785.    to stop and start it.
  4786.  
  4787.  
  4788.  
  4789.   4.31  How do I apply changes made to /etc/inet/config?
  4790.   7 Dec 1999
  4791.   ----------------------------------------
  4792.    Changes made to the config file will only take effect after
  4793.    tcp is restarted which can only be done with a reboot.
  4794.  
  4795.  
  4796.  
  4797.  
  4798.   4.32  How do I boot an ftp user who is logged in?
  4799.   18 Dec 2000
  4800.   ----------------------------------------
  4801.    This can be accomplished with ftpwho or ps:
  4802.  
  4803.       ftpwho
  4804.       ps -ef | grep ftpd | grep -v grep
  4805.  
  4806.  
  4807.    which will list everyone who's using ftp into your site.
  4808.    Choose the offender and note the PID.  Let's say it is 767.
  4809.  
  4810.       kill 767
  4811.  
  4812.    gives them the boot. :-)
  4813.  
  4814.  
  4815.  
  4816.  
  4817.   4.33  How do I catch someone trying to port scan my Uw7 host?
  4818.   24 Sept 1999  by Jim Van Verth
  4819.   ----------------------------------------
  4820.    The curious out there like to scan the ports of publicly available
  4821.    computers.  At times they are trying to attack your system.  So
  4822.    you can run a dummy service on an unused port that'll send mail to
  4823.    root if someone tries to connect to the port.
  4824.  
  4825.    Let's call the new service we are going to create 'probe.'
  4826.    Let's have probe run on port 999, which is unused.
  4827.    Let's make a batch file that probe runs called 'etcprobe.'
  4828.    Probe will be added with an entry in /etc/services.
  4829.    Probe will be started with an entry in /etc/inet/inetd.conf.
  4830.    Etcprobe will be stored in /usr/local/bin.
  4831.  
  4832.  
  4833.        /usr/local/bin/etcprobe
  4834.   +-------------------------------------------------------------------
  4835.   | #!/bin/sh
  4836.   | netstat -an | grep 999 | grep ESTAB | mail -s "Probe Alert!!" root
  4837.   |
  4838.  
  4839.  
  4840.         /etc/services
  4841.   +------------------------------
  4842.   |  ...
  4843.   |  ...
  4844.   |  probe     999/tcp
  4845.   |  ...
  4846.  
  4847.  
  4848.         /etc/inet/inetd.conf
  4849.   +----------------------------------------------------------------------
  4850.   | ...
  4851.   | probe   stream   tcp   nowait   root  /usr/local/bin/etcprobe   probe
  4852.   | 
  4853.  
  4854.  
  4855.    Now apply the changes made to inetd.conf with the kill command.
  4856.    Test that probe is working by trying to telnet to port 999.
  4857.    You'll get mail to root in a few seconds.
  4858.  
  4859.  
  4860.  
  4861.   4.34  What web servers are running or not on Uw7 after ISL?
  4862.   24 Sept 1999
  4863.   ----------------------------------------
  4864.    After Initial System Load (ISL), only the scohelphttpd is running.
  4865.    Netscape Fastrack Server is not running.
  4866.    Netscape Fastrack Administration Server is not running.
  4867.  
  4868.       scohelphttp query
  4869.       nsfast query
  4870.       /usr/ns-home/admserv/ns-admin query
  4871.  
  4872.  
  4873.  
  4874.  
  4875.   4.35  Why can't I access the Webtop, my Netscape server, or Netscape Admin?
  4876.   18 Dec 2000
  4877.   ----------------------------------------
  4878.    This happens when no Netscape servers are enabled on those ports.
  4879.    The Webtop runs off your usual Netscape server on port 80.
  4880.  
  4881.       nsfast enable
  4882.  
  4883.    The Netscape Admin server in another daemon run on port 620.
  4884.  
  4885.       /usr/ns-home/admserv/start-admin
  4886.  
  4887.    There are also instances where an error or a misconfigured
  4888.    magnus.conf file will make it difficult or impossible to run the
  4889.    server to which that file referred.  It is easy to burger your
  4890.    magnus.conf file when you alter your domain name or your network
  4891.    IP address, or when you defer network installation during ISL.
  4892.  
  4893.  
  4894.  
  4895.  
  4896.  
  4897.   4.36  How do I configure remote Netscape administration?
  4898.   24 Sept 1999
  4899.   ----------------------------------------
  4900.    Edit the /usr/ns-home/admserv/ns-admin.conf file and modify the 
  4901.    "Addresses" line from
  4902.  
  4903.       Addresses 10.1.1.1
  4904.  
  4905.    to read
  4906.  
  4907.       Addresses (10.1.1.1|10.1.1.2)
  4908.  
  4909.    in order to let both 10.1.1.1 and 10.1.1.2 run Netscape Admin Server.
  4910.  
  4911.  
  4912.  
  4913.  
  4914.   4.37  What is the login:pass for Netscape Admin?  I can't log in.
  4915.   18 Dec 2000
  4916.   ----------------------------------------
  4917.    The login is   admin
  4918.    The pass  is   root's password set during ISL
  4919.  
  4920.    If you ever change root's password with 'passwd,' it will not
  4921.    change the Netscape AdminServe password.  Be sure to type in the
  4922.    one that you entered during ISL.
  4923.  
  4924.    Sometimes this can get garbled, so have a look at
  4925.  
  4926.       /usr/ns-home/admserv/admpw
  4927.  
  4928.    to be sure there is a password.  The password in that file
  4929.    should be in encrypted form.  Sometimes you just press Enter
  4930.    as the password.
  4931.  
  4932.    Change the nsadmin password by first starting and going into
  4933.    the Nsadmin server.  Once you log in with the old password,
  4934.    you will see a button on the bottom of the page to Configure
  4935.    Administration.  Hit that and then Access Control.
  4936.  
  4937.  
  4938.  
  4939.  
  4940.   4.38  What do I need to watch out for with ns-admin.conf?
  4941.   24 Sept 1999
  4942.   ----------------------------------------
  4943.    The Netscape Administration Server config file 
  4944.    /usr/ns-home/admserv/ns-admin.conf  can give people problems if there
  4945.    is a trailing dot in the ServerName or if the servername is wrong.
  4946.    This can occur if the hostname has been changed.  If things
  4947.    get bad, fix them with: 
  4948.  
  4949.       pkgrm nsadmin
  4950.       pkgadd -d cdrom1 nsadmin
  4951.    
  4952.  
  4953.  
  4954.  
  4955.   4.39  How do I do NAT or DNAT or IP Masquerading on Uw7?
  4956.   12 Feb 2002
  4957.   ----------------------------------------
  4958.    There is no way currently to do this in Uw7.  It is proposed and in
  4959.    beta testing as of 7 Dec 1999 when this question was first written.
  4960.    SCO never released NAT for Uw7 and Caldera isn't going to for Ou8.
  4961.  
  4962.    People also like to use Linux to do this, but a full SuSE install isn't 
  4963.    quite elegant enough when compared to the following:
  4964.  
  4965.       http://www.gnatbox.com/
  4966.       http://leaf.sourceforge.net/
  4967.  
  4968.    The GnatBox, pronounced like the bug, and LEAF are both mini Linux OS's 
  4969.    that fit on a single diskette and don't need a cdrom or hard drive.  
  4970.    They both contain firewall/NAT capability, support for many common network 
  4971.    cards and programs.  They are rock solid, fast, and very stable.  The 
  4972.    GnatBox is $1000, and uses a parallel port dongle (booo).  A LEAF is 
  4973.    of course, free :).  I've used them both.  I continue to use the LEAF on an
  4974.    old P150, and I think it's very good.
  4975.  
  4976.  
  4977.  
  4978.  
  4979.   4.40  Why do I see a 'Disk not sane' error when booting off emergency disks?
  4980.   12 Jul 2001
  4981.   ---------------------------------------
  4982.    This error can be caused by several things.  First, you might be
  4983.    using the Veritas Filesystem package with ODM.  Secondly, you may be
  4984.    lacking some critical ptf's like set71101 or ptf7430g, the Emergency
  4985.    Repair ptf.  And finally, this error will occur if you try to use
  4986.    the emergency repair disks on an unpartitioned hard drive.  If your
  4987.    hard drive isn't parititoned and you see the disk not sane error,
  4988.    then you can get to prompt and use fdisk to create an active unix
  4989.    partition that takes 100% of the disk.  Then continue with the restore.
  4990.  
  4991.    Beware Veritas and that it can't unencapsulate an encapsulated 
  4992.    boot disk.  There's a TA for those restores.
  4993.  
  4994.    I use a Super-Tar, like Lonetar from Cactus software, to have disaster
  4995.    recovery and emergency boot utilities. 
  4996.  
  4997.  
  4998.  
  4999.   
  5000.  
  5001.   4.41  Can I speed up DNS resolution on my SOHO network?
  5002.   12 Feb 2002
  5003.   ---------------------------------------
  5004.     On a SOHO network that uses their ISP's namerservers only and no 
  5005.   nameservers on the LAN, adding a cacheing DNS server will speed up
  5006.   name resolution. 
  5007.  
  5008.     The easiest place to do that is on your LEAF firewall/router.
  5009.   Use the dnscache program from djbdns at http://cr.yp.to/ .
  5010.  
  5011.   Also you can set up tinydns on the same router to resolve internal
  5012.   network private address names.  Then the lookups for your internal
  5013.   names don't go out to the official DNS sites that have no idea what 
  5014.   to do with 192.168.x.y.
  5015.  
  5016.  
  5017.  
  5018.  
  5019.   4.42  How do I set up well tuned cacheing DNS server?
  5020.   12 Feb 2002
  5021.   ---------------------------------------
  5022.  
  5023.     Look at the howto's on the LEAF site from J. Nilo, and look at
  5024.   the howto's at http://cr.yp.to/
  5025.  
  5026.  
  5027.  
  5028.  
  5029.  
  5030.  
  5031.  
  5032.  ______________________________
  5033. |                              |
  5034. |  5.  System Administration   |
  5035. |______________________________|
  5036.  
  5037.  
  5038.   5.1   What do I want to watch out for, right after ISL?
  5039.   12 Feb 2002
  5040.   ----------------------------------------
  5041.    Don't go changing your host name, your domain name, or your IP address 
  5042.    willy nilly.  That data is stored in too many places.
  5043.  
  5044.    Xntpd will be running with an empty ntp.conf file.
  5045.  
  5046.    Routed will be running.
  5047.  
  5048.    Wu-ftpd 2.4.2 will be running and it is very very insecure!
  5049.  
  5050.    There are a lot of security problems.  See http://www.caldera.com/
  5051.  
  5052.    Be careful of starting the DNS manager; it can start a caching DNS server.
  5053.  
  5054.    Netscape server on 80, Netscape Admin Server on 620, Webtop, and Visionfs
  5055.    are not enable be default, but scohelphttp on 457 is.
  5056.  
  5057.    You need to immediately re-apply update710 if you just installed Uw7.1.0.
  5058.  
  5059.    You need to look closely at whether there is an updated NIC driver,
  5060.    an updated Graphics driver, or Audio driver.  There are quite a few.
  5061.  
  5062.    The scohelp files need to be indexed.   You may still be installing
  5063.    software, so decide and then index it.
  5064.  
  5065.    Root can't ftp in by default.
  5066.  
  5067.    Be sure to apply set71101 as soon as possible.
  5068.  
  5069.    Skunkware apps will need /usr/local/bin in your PATH, and they'll need
  5070.    /usr/local/man in your MANPATH, which is kept in /etc/default/man.
  5071.  
  5072.    ORDER=, in /etc/default/man is too long, and overflows man's buffer!
  5073.    It needs to be less than 255 characters long.  Caldera is working on this.
  5074.  
  5075.  
  5076.  
  5077.  
  5078.   5.2   What do I want to set up, right after ISL?
  5079.   12 Feb 2002   contribs Boyd Gerber
  5080.   ----------------------------------------
  5081.    Here are some personal suggestions.  Your results will vary as
  5082.    your hardware varies.
  5083.  
  5084.    Please check the Quick Overview of Patches and Supplements at
  5085.       ftp://ftp.sco.com/SLS/README.UW7.Supplements 
  5086.       http://www.sco.com/support/ftplists/uw7list.html/
  5087.    for the latest list of patches.
  5088.  
  5089.  
  5090.       A) apply set71101.
  5091.       B) /etc/hosts, and ping a few things for curiosity's sake.
  5092.       C) A few user accounts
  5093.       D) Create /.profile and add a few aliases and EDITOR=vi.
  5094.       E) All drivers at ftp://ftp.sco.com/pub/drivers/UW711/
  5095.       F) Security sse and erg patches from Caldera.
  5096.       G) Make emergency Boot and Root diskettes
  5097.       H) Protect server by disabling unneeded services.
  5098.       I) nsfast enable.
  5099.       J) ln -s /usr/bin/clear /usr/bin/cls  :)
  5100.       K) /usr/vision/bin/visionfs setup
  5101.       L) gzip, glibs, xpm, less, gs, gv, bash, pine, gcc, glib.  
  5102.       M) A backup program.
  5103.       N) scoadmin Network Manager --> configure my nic to auto speed/duplex
  5104.       O) umask, ulimit, NPROC, and other tunables.
  5105.       P) create /.profile with a few aliases.
  5106.       Q) Set up my default route.
  5107.       R) Set up nameserver entries in /etc/resolv.conf if I have an active
  5108.          link to a DNS server.
  5109.       S) Add /usr/local/bin to the path in /etc/profile.
  5110.       T) Add /usr/local/man to the MANPATH in /etc/default/man.
  5111.       U) Create DNS server and Printers if necessary.
  5112.  
  5113.     Apply set71101 and life will be much better.
  5114.  
  5115.  
  5116.  
  5117.  
  5118.   5.3   In what order do I install all those PTF's?
  5119.   18 Dec 2000
  5120.   ----------------------------------------
  5121.     Apply set71101 first, then any other one that you think
  5122.     you need.  Order is much less important, now with 7.1.1 and set71101.
  5123.  
  5124.  
  5125.  
  5126.  
  5127.   5.4   What logs do I want to follow?
  5128.   7 Dec 1999
  5129.   ----------------------------------------
  5130.    There are a few logs that will grow over time and ones
  5131.    that contain useful information:
  5132.  
  5133.       *  /var/adm/syslog
  5134.       *  /var/adm/log/osmlog
  5135.       *  /var/adm/log/ppp.log
  5136.       *  /usr/vision/vfsdata/logs/error.log
  5137.       *  /.dt/startlog
  5138.       *  /.dt/errorlog
  5139.       *  /var/adm/sulog
  5140.       *  /var/webtop/log/error.log 
  5141.       *  /usr/ns-home/httpd-scohelphttp/logs/access
  5142.       *  /usr/ns-home/httpd-80/logs/access
  5143.       *  /usr/ns-home/admserv/access
  5144.  
  5145.  
  5146.  
  5147.   5.5   Where are errors recorded?
  5148.   18 Dec 2000
  5149.   ----------------------------------------
  5150.    In all the files in section (5.3) and:
  5151.  
  5152.       *  /var/dt/Xerrors
  5153.       *  /usr/ns-home/admserv/errors
  5154.       *  /usr/ns-home/admserv/cron.error
  5155.       *  /usr/ns-home/httpd-80/logs/errors
  5156.       *  /usr/ns-home/httpd-scohelphttp/logs/errors
  5157.       *  /var/uucp/.Admin/errors
  5158.       *  $HOME/.dt/errorlog
  5159.       *  /var/adm/log/*.err
  5160.  
  5161.     Also note that problems often echo an error message to stderr,
  5162.     which may or may not be set to your current screen.  After an error
  5163.     switch to the console with <Ctrl>+<Alt>+<Esc> and look for anything
  5164.     there that may help.  The other day, my Kde desktop wouldn't run,
  5165.     it'd get 95% of the way loaded, with a mouse and grey background,
  5166.     then crash out.  By switching to the console, I was able to see that it
  5167.     couldn't find some qt stuff.  I had accidentally rm'd the qt directory.
  5168.  
  5169.  
  5170.  
  5171.  
  5172.   5.6  How do I remove the password prompt for a user with no password?
  5173.   12 Feb 2002    contrib  Roger Gibson
  5174.   ----------------------------------------
  5175.      For the user you create that does not require a password enter 
  5176.    the following command so they are not prompted for the password.  
  5177.    Log in as root and enter the command:
  5178.  
  5179.                        passwd -d username
  5180.  
  5181.  
  5182.   _________
  5183.     From the passwd(1) man page,
  5184.         'Privileged users are not forced to comply with 
  5185.          password aging and password construction requirements. 
  5186.          Such users can create a null password by pressing 
  5187.          <Enter> in response to the prompt for a new password. 
  5188.          (This differs from passwd -d because the Password: 
  5189.          prompt will still be displayed.)
  5190.     So be sure to examine passwd(1) and /etc/default/passwd in order
  5191.     to define your system-wide password requirements in conjunction
  5192.     with your descision for no password or for a NULL password.
  5193.  
  5194.     As a security precaution, you might want to restrict logins from
  5195.     users without passwords to the console or to a specific computer
  5196.     using tcp wrappers and files like ftpusers(4tcp).
  5197.  
  5198.  
  5199.  
  5200.  
  5201.  
  5202.   5.7   A program that was running has crashed and is locked up, why?
  5203.   25 Sept 1999
  5204.   ----------------------------------------
  5205.    When a program crashes, it's the running processes that are hanging.
  5206.    When a program crashes, we need to run a ps -ef and grep the output
  5207.    for the name of the program or the name of the process and kill it
  5208.    off if necessary.
  5209.  
  5210.  
  5211.  
  5212.  
  5213.   5.8   What are the keys I press to kill a foreground process?
  5214.   7 Dec 1999
  5215.   ----------------------------------------
  5216.    When you are running a program that is seemingly stuck, like an
  5217.    nslookup that isn't working, you can press the 'Delete' key or
  5218.    'ctrl-c'.  If neither of those work, you can try 'ctrl-\', but
  5219.    that will dump a core.
  5220.  
  5221.  
  5222.  
  5223.  
  5224.  
  5225.   5.9   How do I find and kill a background process?
  5226.   7 Dec 1999
  5227.   ----------------------------------------
  5228.    Let's say that a process called tasker is hung and we need to kill it.
  5229.    Run the command:
  5230.  
  5231.        ps -ef | grep tasker | grep -v grep
  5232.  
  5233.    and get the PID of the process.  Let's say the PID is 8376.  Type:
  5234.  
  5235.        kill 8376           <--  First try this.  It's the nicest kill.
  5236.        kill -1 8376        <--  If that doesn't work, try this.
  5237.        kill -2 8376        <--  If it's being stubborn, try this.
  5238.        kill -9 8376        <--  This will kill anything, but it's rough.
  5239.  
  5240.    After you try the first kill, do another ps -ef to see if the process
  5241.    is still running.  If it is try the next kill, and so on.
  5242.  
  5243.  
  5244.  
  5245.  
  5246.  
  5247.   5.0   What are the various 'kill' command arguments?
  5248.   25 Sept 1999
  5249.   ----------------------------------------
  5250.    There is a nice discussion of this in 'man 5 signal.'
  5251.    Some of the different kills in order of increasing power:
  5252.  
  5253.       kill -15  SIGTERM   Exit    Terminated
  5254.       kill -1   SIGHUP    Exit    Hangup
  5255.       kill -2   SIGINT    Exit    Interrupt
  5256.       kill -3   SIGQUIT   Core    Quit
  5257.       kill -9   SIGKILL   Exit    Killed
  5258.  
  5259.  
  5260.  
  5261.  
  5262.   5.11  What are the Security Profiles and their password restrictions?
  5263.   25 Sept 1999
  5264.   ----------------------------------------
  5265.    Low              Passwords not required
  5266.    Traditional      Passwords required.  Default minimum == 3 chars.
  5267.    Improved         Passwords required.  Default minimum == 6 chars.
  5268.    High             Passwords required.  Default minimum == 8 chars.
  5269.  
  5270.  
  5271.  
  5272.  
  5273.  
  5274.   5.12  What are the restrictions on login names?
  5275.   25 Sept 1999
  5276.   ----------------------------------------
  5277.    Then maximum login name length is 254 characters.  Any name longer
  5278.    than 8 characters must be created using the useradd command.
  5279.    The name should not contain upper case letters.  No colons.
  5280.    It can't start with a number.
  5281.  
  5282.  
  5283.  
  5284.  
  5285.  
  5286.   5.13  What's a umask?  What's the default umask?
  5287.   7 Dec 1999
  5288.   ----------------------------------------
  5289.    The umask is a set of numbers like 0022.  It specifies which 
  5290.    permissions to withhold when a directory or file is created.  The 
  5291.    default umask is set in /etc/profile and /etc/cshrc.  For Low and 
  5292.    Traditional, it's 0022.  For Improved and High, it's 0077.  To see 
  5293.    what permissions a file or directory will get when created, do the 
  5294.    following:
  5295.  
  5296.       always start with                    1  7  7  7 
  5297.       write in the umask                   0  0  2  2
  5298.       subtract                           --------------
  5299.       equals the directory perms.  -->     1  7  5  5
  5300.       which we see as                       drwxr-xr-x
  5301.       to get file perms enter              1  1  1  1
  5302.       and subtract again                 --------------
  5303.       equals the file perms.    ----->     0  6  4  4
  5304.       which we see as                       -r-xr--r--
  5305.  
  5306.  
  5307.  
  5308.  
  5309.   5.14  What's an environment?  What's a .profile or .cshrc?
  5310.   12 Feb 2002
  5311.   ----------------------------------------
  5312.    A users environment is a series of name=value pairs that
  5313.    hold values specific to that user.  People are familiar with
  5314.    the environment variables named PATH and HOME.  The environment for
  5315.    a user can be set in their $HOME/.profile or their $HOME/.cshrc
  5316.    if the user is using csh.  Type this command to see you Environment
  5317.    variables:
  5318.  
  5319.           set | less
  5320.  
  5321.  
  5322.  
  5323.  
  5324.  
  5325.   5.15  Where are all the possible places to set the environment?
  5326.   18 Dec 2000 
  5327.   ----------------------------------------
  5328.    All the possible places include:
  5329.  
  5330.       /etc/profile
  5331.       /etc/cshrc
  5332.       /etc/default/su
  5333.       $HOME/.profile
  5334.       $HOME/.login
  5335.       $HOME/.cshrc
  5336.       $HOME/.dtprofile
  5337.  
  5338.    though I don't claim to have found every one.  It's a mystery to
  5339.    me sometimes where these PATHS are created.
  5340.  
  5341.  
  5342.  
  5343.  
  5344.  
  5345.   5.16  Where do I change the default account aspects, like the login shell?
  5346.   12 Feb 2002
  5347.   ----------------------------------------
  5348.    You can use the 'defadm' command to manipulate your /etc/default/* files:
  5349.  
  5350.       defadm useradd
  5351.  
  5352.    You can also do that from the scoadmin account manager.  You can also
  5353.    manipulate the skel files.
  5354.  
  5355.  
  5356.  
  5357.  
  5358.  
  5359.   5.17  How do I reuse a UID after deleting the original user?
  5360.   25 Sept 1999
  5361.   ----------------------------------------
  5362.    By default, Uw7 doesn't let you reuse a UID for a period of one year.
  5363.    The default can me modified with 'defadm userdel.'  The aging UIDs 
  5364.    can be found in and deleted from:
  5365.  
  5366.       /etc/security/ia/ageduid
  5367.  
  5368.  
  5369.  
  5370.  
  5371.   5.18  What are the advantages of command line 'userdel?'
  5372.   18 Dec 2000   contribs:  OLC zigazou
  5373.   ----------------------------------------
  5374.    The command line userdel will allow you to remove a user but leave
  5375.    their home directory intact.  It will allow you to specify when to
  5376.    allow the UID to be reused.
  5377.  
  5378.    _____ zigazou said _____
  5379.      Using userdel is better than directly modifying /etc/passwd and 
  5380.      /etc/shadow because it also keeps /etc/security/ia/audit, index 
  5381.      and master files up to date.  Though index and master may be 
  5382.      edited manually as they are plain ASCII text files, audit is 
  5383.      a binary file with fixed-length fields.  
  5384.  
  5385.  
  5386.  
  5387.  
  5388.  
  5389.   5.19  What are the advantages of command line 'usermod?'
  5390.   18 Dec 2000   contribs:  OLC  zigazou
  5391.   ----------------------------------------
  5392.    The command line usermod will allow you to change a UID or a login name.
  5393.  
  5394.    _____ zigazou said _____
  5395.      Using usermod is better than directly modifying /etc/passwd and 
  5396.      /etc/shadow because it also keeps /etc/security/ia/audit, index 
  5397.      and master files up to date.  Though index and master may be 
  5398.      edited manually as they are plain ASCII text files, audit is 
  5399.      a binary file with fixed-length fields. 
  5400.  
  5401.  
  5402.  
  5403.  
  5404.  
  5405.   5.20  Where do I change the default password restrictions, such as length?
  5406.   25 Sept 1999
  5407.   ----------------------------------------
  5408.    Use the command 'defadm login' to view these restrictions.  The
  5409.    defadm command will let you change the settings too.  You can
  5410.    always use vi on /etc/default/login.
  5411.  
  5412.  
  5413.  
  5414.  
  5415.   5.21  How do I record unsuccessful login attempts?
  5416.   18 Dec 2000
  5417.   ----------------------------------------
  5418.    To get the all /etc/default/login subsystems to work, make sure to put
  5419.    in a value for MAXTRYS, such as MAXTRYS=30.  
  5420.  
  5421.    To Make the System Log:
  5422.  
  5423.    You can create the file
  5424.  
  5425.       -rw-------   root  sys  0  /var/adm/loginlog
  5426.  
  5427.    with the touch command and the chmod command.  Then enter:
  5428.  
  5429.       defadm login MAXTRYS=50       <--  because that needs to be non-null.
  5430.       defadm login LOGFAILURES      <--  to see what it is set at.
  5431.       defadm login LOGFAILURES=2    <--  if you want to log after two failures.
  5432.  
  5433.  
  5434.  
  5435.  
  5436.   5.22  How do I lock an account?  How do I unlock an account?
  5437.   7 Dec 1999
  5438.   ----------------------------------------
  5439.    You can use the command line utilities on user foobar's account:
  5440.  
  5441.       passwd -l foobar      <--  to lock the account named foobar
  5442.       passwd  foobar        <--  to unlock the account by issuing a new pass.
  5443.  
  5444.    There was a bug that's just been solved with a TA and a PTF that
  5445.    fixes the problem where you could not create an account and force
  5446.    the user to change their password at the next login.  We were faced
  5447.    with a locked account instead of being faced with a logged in user 
  5448.    looking at the password change screen.  Thanks SCO!
  5449.  
  5450.  
  5451.  
  5452.  
  5453.  
  5454.   5.23  How do I control process priority in Uw7, with nice?
  5455.   12 Feb 2002
  5456.   ----------------------------------------
  5457.    Nice, renice, and  priocntl are the commands
  5458.  
  5459.    The priority of a process is an integer value that represents
  5460.    how much time to spend working on that process versus the other 
  5461.    processes.  The priority in Uw7 ranges from -20 to 20, for very nice
  5462.    to very much a cpu hog, respectively.
  5463.  
  5464.    To view a process's priority, whose PID is 842, use   priocntl -d 842
  5465.  
  5466.  
  5467.    Ex. 1.  Making myprog nicer to other users:
  5468.    ------------------
  5469.    If you're about to run myprog, use                   nice -n 10 myprog
  5470.    If myprog is a process with pid 842, use           renice -n 10 842
  5471.  
  5472.  
  5473.  
  5474.    Ex. 2.  Making myprog grab more cpu cycles so that it completes faster:
  5475.    ----------------------
  5476.    Only a privileged user can boost a priority.
  5477.  
  5478.    If you're about to run myprog, use                   nice -n -10 myprog
  5479.    If myprog is a process with pid 842, use           renice -n -10 842
  5480.  
  5481.    
  5482.    When you run a program in the background with an &, it's priority is -4.
  5483.    When you run a program in the foreground, it gets a 0.
  5484.    That's a difference of only 5, but we know from experience that's big.
  5485.  
  5486.    When you use renice, it reports back strange things that you'll just
  5487.    have to stare at to understand.  You can trust the output from priocntl.
  5488.  
  5489.  
  5490.  
  5491.  
  5492.  
  5493.   5.24  What's good to know about cron in Uw7?
  5494.   25 Sept 1999
  5495.   ----------------------------------------
  5496.    It checks the validity of your cronfile when you modify it with 
  5497.    'crontab -e' and exit.  You can't have any empty lines in a crontab 
  5498.    file, or the whole file will be ignored.  List your crontab with 
  5499.    'crontab -l.'
  5500.  
  5501.  
  5502.  
  5503.  
  5504.  
  5505.   5.25  How do I monitor the amount of space left on my drives?
  5506.   7 Dec 1999
  5507.   ----------------------------------------
  5508.    Root can use the commands such as these:
  5509.  
  5510.       dfspace
  5511.       quot -F vxfs /
  5512.       du -ks /etc
  5513.       repquota -F vxfs /home
  5514.  
  5515.  
  5516.  
  5517.  
  5518.   5.26  How do I determine disk usage by user?
  5519.   5 Nov 1999
  5520.   -----------------------------------------
  5521.    Use the quot command and give it a filesystem mount point as an argument.
  5522.    It will list the number of blocks used by user.
  5523.  
  5524.       quot -F vxfs /home
  5525.       quot -F vxfs /
  5526.  
  5527.  
  5528.  
  5529.  
  5530.   5.27  How do I locate and remove 'core' files?
  5531.   12 Feb 2002
  5532.   -----------------------------------------
  5533.    In Uw7, there are system files named
  5534.  
  5535.       core.4.html
  5536.       core.ph
  5537.       core.h
  5538.  
  5539.    so searching for core* and rm'ing that would be an oops.
  5540.    What is safer, is a find with an rm that confirms before removing
  5541.    the file so that you can spare the core.ph file and others.
  5542.  
  5543.    All core files in Uw7 that are dumped by processes are named core.PID;
  5544.    where PID is the processes id.  To remove them, try the following:
  5545.  
  5546.       find / -name "core.*" -ok rm {} \;
  5547.  
  5548.    Then press 'y' for the core files you want to delete that look like
  5549.  
  5550.           core.1234
  5551.           core.123
  5552.           core.12345
  5553.  
  5554.  
  5555.  
  5556.  
  5557.   5.28  What is the DCU?  What do I need to know about it?
  5558.   9 Oct 1999
  5559.   -----------------------------------------
  5560.    The DCU is the Device Configuration Utility which is a character
  5561.    based, menu driven interface for viewing and modifying the hardware
  5562.    configuration of your computer, such as IRQ's and port addresses.
  5563.  
  5564.    You can always exit and cancel any changes.  It is one of the only 
  5565.    ways to see your hardware setup, unlike OpenServer 5 which had the 
  5566.    handy hwconfig -h.  Uw7 also has resmgr.
  5567.  
  5568.    During ISL, you have only one chance to enter the DCU.  You can not go
  5569.    back using the F9 key and enter it a second time.  You can't enter it
  5570.    once you skip it.
  5571.  
  5572.    During ISL, it is a good idea to go into the DCU and disable any HBA
  5573.    drivers for which you don't have hardware.  There are about a dozen
  5574.    or so, and you don't need them all.  
  5575.  
  5576.  
  5577.  
  5578.  
  5579.   5.29  How do I spool a package instead of install it?
  5580.   18 Jan 2001
  5581.   ------------------------------------------
  5582.    You can do this with pkgadd -s spooldir.  Here's an example of
  5583.    how to spool a package called /var/tmp/gnomelibs.pkg to /junk/spooldir:
  5584.  
  5585.       pkgadd -s /junk/spooldir -d /var/tmp/gnomelibs.pkg
  5586.  
  5587.    This will create /junk/spooldir/gnomelibs/ that contains the standard
  5588.    layout for a package, which you might be curious about.  That layout 
  5589.    looks like the following, but only the first three items remain
  5590.    constant.  The last one I've seen named root:
  5591.  
  5592.  
  5593.      drwx------    2 root    sys        96 Jan 18 16:55 install
  5594.      -rw-r--r--    1 root    sys       253 Oct 30 10:01 pkginfo
  5595.      -rw-r--r--    1 root    sys     60840 Oct 30 10:01 pkgmap
  5596.      drwx------    3 root    sys        96 Jan 18 16:55 reloc
  5597.  
  5598.    Your perms may be less restrictive, because I use C2 security.
  5599.  
  5600.  
  5601.  
  5602.  
  5603.   5.30  How do I change the resolution / colors on my video card?
  5604.   12 Feb 2002
  5605.   ------------------------------------------
  5606.    To make adjustments to your display settings, you can use the scoadmin 
  5607.    video manager in either CHARM or GUI mode.  You have the ability with 
  5608.    this manager to test the settings first, before making them permanent.
  5609.    It's really important to use the lastest graphics drivers from Caldera.
  5610.    They can be found at:
  5611.  
  5612.        ftp://ftp.caldera.com/pub/unixware7/drivers/
  5613.  
  5614.  
  5615.  
  5616.  
  5617.  
  5618.  
  5619.  
  5620.   5.31  Will you describe the boot process please?
  5621.   7 Dec 1999
  5622.   ------------------------------------------
  5623.    The boot process was taught to me in my Uw7 Admin II class at
  5624.    the Open Learning Center in Santa Cruz.  Here is what happens
  5625.    when you push the power button on a Uw7 computer:
  5626.  
  5627.       A.  The mainboard BIOS loads runs a series of tests called POST,
  5628.           for Power On Self Test.
  5629.       B.  After POST, the BIOS loads Sector 0, Cylinder 0 on the
  5630.           boot drive that was chosen in the BIOS setup (A,C).
  5631.       C.  This sector is what we call the Master Boot Block, or the
  5632.           Master Boot Record (MBB or MBR).  This contains the partition
  5633.           table which is read to determine the active partition.
  5634.       D.  The secondary bootstrap then reads sector 0 of the Active 
  5635.           partition and loads what it finds there.  On Uw7, this is the 
  5636.           boot slice, # 7, which is raw data and contains the boot program.
  5637.       E.  The boot program runs and we see the splash screen.
  5638.           If no keys are pressed for 5 seconds, then the system continues
  5639.           to boot up.  If a key is pressed, you see a boot: prompt and the
  5640.           system pauses.  When the system continues loading, boot reads 
  5641.           some or all of the following files from /stand:
  5642.  
  5643.             stage3.blm
  5644.             bfs.blm
  5645.             dcmp.blm
  5646.             hd.blm
  5647.             platform.blm
  5648.             smallfs.blm
  5649.  
  5650.            If the computer can't find /stand, then you will get an error
  5651.            like, "Can't load Stage3."
  5652.  
  5653.       F.  Boot reads and acts upon the data in:
  5654.           
  5655.             /stand/boot
  5656.             /stand/bootmsgs
  5657.  
  5658.       G.  Boot loads and runs the kernel, unix.
  5659.  
  5660.       H.  After the kernel is successfully loaded and running in memory, 
  5661.           you see the message, "The system is coming up."
  5662.  
  5663.    --------
  5664.  
  5665.       a.  The kernel runs sysproc (as PID 0), which starts init.
  5666.  
  5667.       b.  Init (as PID 1) executes, and reads inittab to set the initial 
  5668.           run level and mount filesystems.
  5669.  
  5670.       c.  Init goes through the inittab and runs all the programs it is 
  5671.           told to, based on the run level that the system is entering.
  5672.  
  5673.       d.  Almost always, this includes reading and running /etc/rc2 which
  5674.           runs all the S##scripts in /etc/rc2.d.
  5675.  
  5676.       e.  init starts the login sessions (via /etc/rc.d)
  5677.                starts File and Print sharing (via /etc/rc3.d)
  5678.                starts programs after logins have started (via /etc/dinit.d)
  5679.  
  5680.    Then you should see a login prompt, either GUI or terminal text.
  5681.  
  5682.  
  5683.  
  5684.  
  5685.   5.32  What is the default run level for Uw7?  How do I set it?
  5686.   18 Dec 2000
  5687.   ------------------------------------------
  5688.    The default run level is 2.  It's rarely 3 but would be so if you
  5689.    installed Netware or NFS utilities.
  5690.  
  5691.    Set the default run level in /etc/inittab.  The line you want to edit
  5692.    looks like:
  5693.  
  5694.       is:3:initdefault:
  5695.  
  5696.  
  5697.      
  5698.   5.33  What does 'Can't load stage3' mean?
  5699.   7 Dec 1999
  5700.   ------------------------------------------
  5701.    As described above in the boot process question, the system will return
  5702.    a "Can't load stage3" error when it can't find the file /stand/stage3.blm
  5703.    when the system is booting.  This commonly happens when you've installed 
  5704.    Uw7 into a partition so that the /stand slice exists entirely or in part 
  5705.    beyond the 1024th cylinder.
  5706.  
  5707.  
  5708.  
  5709.  
  5710.   5.34  What can I do at the boot: prompt?
  5711.   18 Dec 2000
  5712.   ------------------------------------------
  5713.    If you hit the spacebar when you see the Uw7 splash screen, you can
  5714.    access the usual unix style  boot:  prompt.  You can't type ls, but
  5715.    you can type dir.  You can type ? to get a list of commands.  
  5716.    You can boot the computer by typing boot, b, go, or g, then Enter.
  5717.    You can boot to init 1 by typing initstate=1, then go.  You can boot
  5718.    the unix.old kernel by typing bootprog=unix.old, then go.  You
  5719.    can boot to a DOS partition by typing:  b hd(0,dos)
  5720.  
  5721.  
  5722.  
  5723.  
  5724.   5.35  Where do I set autoboot time, after which the system goes multiuser?
  5725.   15 Oct 1999
  5726.   ------------------------------------------
  5727.    You can set the variable AUTOBOOT=15 in the file /stand/boot
  5728.    to set the autotimeout at 15 seconds, instead of 5 seconds.
  5729.    This is the number of seconds that the splash screen will
  5730.    stay up before autobooting the system.
  5731.  
  5732.    You can also set a variable called TIMEOUT=60 in /stand/boot
  5733.    to set the number of seconds to 60, that the computer will wait at
  5734.    a boot:  prompt before booting.  Normally the computer will wait
  5735.    indefinitely (TIMEOUT=0) if the user presses a key during the 
  5736.    AUTOBOOT delay and causes the boot: prompt to appear.
  5737.  
  5738.  
  5739.  
  5740.  
  5741.   5.36  How do I boot unix.old?
  5742.   18 Dec 2000
  5743.   ------------------------------------------
  5744.    To boot the old kernel, unix.old, that was running before you relinked
  5745.    the kernel, type the following at the boot:  prompt,
  5746.  
  5747.       bootprog=unix.old
  5748.       go
  5749.  
  5750.  
  5751.  
  5752.   5.37  How do I make a change to the /etc/inittab file?
  5753.   12 Feb 2002
  5754.   ------------------------------------------
  5755.    We often make changes to the /etc/inittab file when we want to
  5756.    to make a change to the initstate or how a terminal is behaving.
  5757.    To make a permanent change to the inittab file, you will need to
  5758.    edit two files:
  5759.  
  5760.       /etc/conf/init.d/kernel
  5761.       /etc/inittab
  5762.  
  5763.    Manually editing these two files works well.  The inittab file is
  5764.    made from the kernel file whenever the idmkinit command is run.
  5765.  
  5766.  
  5767.  
  5768.   5.38  Why does my system hang during startup or during shutdown?
  5769.   15 Oct 1999
  5770.   ------------------------------------------
  5771.    The system executes one file at a time in the /etc/rc2.d directory
  5772.    and waits for the file to finish running before it starts the next
  5773.    file.  Sometimes the ppp or the lp script can hang, and you can
  5774.    see this by typing ps -ef.  Look for an S##script that is stuck.
  5775.  
  5776.  
  5777.  
  5778.   5.39  How do I rebuild the kernel?
  5779.   20 Oct 1999
  5780.   ------------------------------------------
  5781.    To rebuild the kernel: 
  5782.    
  5783.       *  log in as root 
  5784.       *  /etc/conf/bin/idbuild -B
  5785.       *  shutdown -g0 -y -i6
  5786.  
  5787.    By rebooting with the -i6, the environment maker idmkenv is run on reboot.
  5788.  
  5789.  
  5790.  
  5791.   5.40  How do I rebuild the MBB or MBR?
  5792.   7 Dec 1999
  5793.   ------------------------------------------
  5794.    Sometimes the MBB of the computer's root hard drive gets trashed and
  5795.    you will not be able to boot the computer from the hard drive.  You will
  5796.    probably see a NO SYSTEM DISK, or NO OS error from the BIOS.   If you 
  5797.    boot from your boot/root emergency disks, you can use fdisk to recreate
  5798.    your MBB.  Enter the fdisk program and you'll see the MBR option on
  5799.    the main menu.  These days, I'm using a SuperTar more often, because
  5800.    two of them have Emergency Recovery Programs.
  5801.  
  5802.  
  5803.  
  5804.   5.41  How do I rebuild the boot slice?
  5805.   7 Dec 1999    by Tony Nelson
  5806.   ------------------------------------------
  5807.    If your boot slice has been corrupted, boot will not load, and
  5808.    probably nothing will appear on your screen after POST.  You will
  5809.    see no Uw7 splash screen.  If you need to rebuild your boot slice,
  5810.    you can do this as follows:
  5811.  
  5812.       *   Boot off the emergency disks
  5813.       *   Mount the filesystems
  5814.       *   Access a Unix shell
  5815.       *   /mnt/usr/bin/disksetup -b /mnt/etc/boot /dev/rdsk/c0b0t0d0s0
  5816.       *   exit
  5817.       *   ctrl-alt-F1
  5818.       *   Reboot
  5819.  
  5820.  
  5821.  
  5822.  
  5823.   5.42  How do I figure what process caused a core dump, such as core.242?
  5824.   7 Dec 1999  by Robert Lipe
  5825.   ------------------------------------------
  5826.    You can easily find this information by typing:
  5827.  
  5828.       # file core.242
  5829.  
  5830.         core.242:      ELF 32-bit LSB core file 80386 Version 1
  5831.                        Arguments = '/etc/ifor_pmd '
  5832.   
  5833.  
  5834.  
  5835.  
  5836.  
  5837.   5.43  What are the important tunable parameters I might adjust like MAXUP?
  5838.   12 Feb 2002
  5839.   ------------------------------------------
  5840.   There isn't much you can tune to increase performance.  Most 
  5841.   parameters are autotuned these days on Uw7.
  5842.   
  5843.   There are a few important tunables that you may run into like MAXUP,
  5844.   ULIMIT, and MAXLINK.  Search your http://localhost:457/ pages for
  5845.   Tunable Parameters and read about them.  The first three sections are
  5846.   the important ones.  Here's a summary:
  5847.  
  5848.   To view a tunable:      /etc/conf/bin/idtune -g MAXUP
  5849.   To set a tunable:       /etc/conf/bin/idtune -m MAXUP 250
  5850.  
  5851.   Now there are two types of tunable parameters, internet and KERNEL.
  5852.   
  5853.     *  internet:  parameter names are lower case
  5854.                   tunables stored in /etc/inet/dfl
  5855.                   
  5856.     *  KERNEL:    parameter names are upper case
  5857.                   tunables are stored in /etc/conf/mtune.d
  5858.                                          /etc/conf/autotune.d
  5859.   
  5860.  
  5861.   Important ones are:                             Default Value:
  5862.   
  5863.     *  ULIMIT    block size of the largest file          2097151
  5864.                  listed in /etc/default/login
  5865.                  
  5866.     *  MAXLINK   Maximum number of subdirectories           1000
  5867.                  allowed in a directory
  5868.                  changed with idtune.
  5869.                  
  5870.     *  MAXUP     Maximum number of processes an               80
  5871.                  unprivileged user can run.
  5872.                  changed with idtune.
  5873.  
  5874.     *  NPROC     The maximum number of processes             400
  5875.                  possible on the system.
  5876.                  changed with idtune.
  5877.     
  5878.     *  SFSZLIM   Soft size limit for a user file           3FFFFFFF
  5879.        HFSZLIM   Hard size limit for a user file           3FFFFFFF
  5880.        
  5881.     *  SFNOLIM   Soft limit on the number of files a user opens.
  5882.        HFNOLIM   Hard limit on the number of files a user opens.
  5883.  
  5884.     *  NUMREGPT 
  5885.     *  NUMSCOPT
  5886.  
  5887.     *  RSTCHOWN
  5888.     *  CONSOLE_SECURITY
  5889.     *  USER_RDTSC
  5890.  
  5891.     *  SHMMAX
  5892.     *  SEGKMEM_BYTES
  5893.  
  5894.  
  5895.  
  5896.  
  5897.   
  5898.  
  5899.  
  5900.   5.44  How do I stop the X desktop or the CDE from running?
  5901.   30 Oct 1999
  5902.   -------------------------------------
  5903.    You can use the following commands to have an affect on the CDE or
  5904.    what people commonly call the X desktop:
  5905.    
  5906.       scologin enable
  5907.       scologin disable
  5908.       scologin start
  5909.       scologin stop
  5910.    
  5911.    You don't need to scologin stop when you change your video settings.
  5912.    Any new settings will take affect the next time you log in.
  5913.    
  5914.    If you run a scologin stop, then log in on some terminal like vt04,
  5915.    you can do do a startx to bring up the PMWM instead of the CDE.
  5916.    Or you can type startx -cde to bring up the CDE manually.
  5917.    
  5918.  
  5919.  
  5920.    
  5921.   5.45  How do I send a pop-up message to the Windows machines on my LAN?
  5922.   18 Dec 2000
  5923.   ---------------------------------------
  5924.    With Visionfs, root can send a broadcast pop-up message to Windows machines.
  5925.    The command is something like:
  5926.  
  5927.      /usr/vision/bin/visionfs message --to luke --from Sysop Hello World.
  5928.  
  5929.    The message can be longer than Hello World.  The message can be
  5930.    longer than one line and formatted.  Send the message with quotes,
  5931.    and you'll see your secondary prompt, usually >, indicating your shell
  5932.    is waiting for you to complete the command (which needs the ending ")
  5933.  
  5934.     # /usr/vision/bin/visionfs message --to luke --from Sysop "
  5935.     > Hello Pappy,
  5936.     >
  5937.     > I've got a little update for you.
  5938.     >
  5939.     > The address you wanted was:  Ben Franklin
  5940.     >                              1600 Pennsylvania Ave
  5941.     >                              Washington D.C,  90036"
  5942.  
  5943.  
  5944.  
  5945.  
  5946.  
  5947.   5.46  How do I change the message I see at the login prompt?
  5948.   12 Feb 2002
  5949.   ----------------------------------------
  5950.    Modify the /etc/issue file.  Normally you're presented with:
  5951.  
  5952.        Welcome to UnixWare 7.1.1
  5953.        The system's name is yoda.
  5954.  
  5955.        Login (vt04): 
  5956.  
  5957.    You can have this give more or less information as your security
  5958.    needs dictate.
  5959.  
  5960.    For telnet, you can supress the message with in.telnetd -h in your
  5961.    inted.conf file.  To make your own message, you can use the banner
  5962.    trick in /etc/hosts.allow.
  5963.  
  5964.  
  5965.  
  5966.  
  5967.   5.47  How do I get the character terminals to blank the screen?
  5968.   26 Dec 1999
  5969.   ----------------------------------------
  5970.    There is a kernel parameter called TBLNK that you can easily 
  5971.    modify with vtblank (1M):
  5972.  
  5973.       # vtblank           -  View TBLNK seconds and (on | off) state
  5974.       # vtblank -s 60     -  Set the screen to blank after 60 sec, turn on.
  5975.       # vtblank -m 1      -  Set the screen to blank after 1 min, turn on.
  5976.       # vtblank -o off    -  Disable screen blanking, leave TBLNK unchanged.
  5977.       # vtblank -o on     -  Enable screen blanking.
  5978.  
  5979.  
  5980.  
  5981.  
  5982.  
  5983.   5.48  How do I load XFree86 instead of XSco?
  5984.   18 Dec 2000   contribs Boyd Gerber
  5985.   ----------------------------------------
  5986.     For example the Mach64 card. 
  5987.  
  5988.     1. cp /usr/dt/config/Xservers to /etc/dt/config/Xservers
  5989.     2. Edit /etc/dt/config/Xservers so that the line 
  5990.  
  5991.     * Local local@console /usr/bin/X11/X :0 -noexit 
  5992.  
  5993.     becomes 
  5994.  
  5995.     * Local local@console /usr/X11R6/bin/XF86_Mach64 :0 
  5996.       
  5997.  
  5998.  
  5999.  
  6000.  
  6001.   5.49  How do I disable tty's on UnixWare 7?
  6002.   18 Dec 2000   contribs Boyd Gerber
  6003.   ----------------------------------------
  6004.     Look at the man page on pmadm for more information.
  6005.  
  6006.  
  6007.     pmadm -d -p contty -s XXX      # where XXX is the tty number to disable.
  6008.     pmadm -e -p contty -s 8        # will enable it
  6009.  
  6010.  
  6011.  
  6012.  
  6013.  
  6014.  
  6015.  
  6016.   5.50  How do I check which PTF patches are installed?
  6017.   8 Jun 2001
  6018.   ----------------------------------------
  6019.       You can run the pkginfo command on the patch set, then
  6020.     pipe it into grep to filter out the chaff and then into
  6021.     sort to put in the order that they use on the SCO Quick
  6022.     List of Patches page. 
  6023.  
  6024.        pkginfo -lc patch | grep PSTAMP | sort -nr | less
  6025.  
  6026.       Your SSE's get listed first, then your PTF's.
  6027.                       
  6028.   
  6029.  
  6030.  
  6031.  
  6032.  
  6033.  
  6034.  
  6035.  
  6036.  ______________________________
  6037. |                              |
  6038. |   6.  Security               |
  6039. |______________________________|
  6040.  
  6041.  
  6042.   6.1   What are the system security features?
  6043.   7 Dec 1999
  6044.   --------------------------------------
  6045.    The system controls access to files via permissions and user logins.  
  6046.    The system controls access to and from the network via Tcp Wrappers and 
  6047.    Packet Filters.  The system controls access to sensitive system commands
  6048.    via permissions and privileges, using the commands su, tfadmin,
  6049.    adminrole, and adminuser.  There is a special type of user besides
  6050.    root called a system owner, that is a security risk, and should not
  6051.    be used willy nilly.  It turns out that anyone with system owner
  6052.    privilege can issue the command  /sbin/tfadmin passwd root and change 
  6053.    root's password.  It's not a good idea to give people system owner 
  6054.    accounts.  
  6055.  
  6056.    There is a Skunkware program called sudo, an enhanced su, that people 
  6057.    like also.
  6058.  
  6059.  
  6060.  
  6061.  
  6062.   6.2   What are permissions?
  6063.   25 Oct 1999
  6064.   --------------------------------------
  6065.    Permissions are the -rwxr-xr-- bits and the UID:GID on the file that you 
  6066.    see when you do a long listing on a file.  These are discussed in 
  6067.    Section (2.6) and elsewhere.
  6068.  
  6069.  
  6070.  
  6071.  
  6072.   6.3   What are Tcp Wrappers and Packet Filters?
  6073.   12 Feb 2002
  6074.   --------------------------------------
  6075.    Tcp wrappers control who is allowed to access the services run via inetd.
  6076.    And packet filters control exactly which packets are allowed to move in 
  6077.    and out of each NIC.  Both allow and deny certain things to happen
  6078.    based on a set of rules that are checked in order.  The first rule to
  6079.    match the item being tested is the rule that gets applied.  UnixWare 7 
  6080.    came with both.
  6081.  
  6082.  
  6083.  
  6084.   6.4   What are privileges?
  6085.   7 Dec 1999
  6086.   --------------------------------------
  6087.    Users need to be granted the privilege to run important system commands
  6088.    like kill, shutdown, and ifconfig.  Privileges are an additional way, 
  6089.    besides permissions, to control who can run sensitive commands like 
  6090.    shutdown and ifconfig.  By using privileges, root can grant the right 
  6091.    to run a command or group of commands, rather than give out the root 
  6092.    password and telling the user to use su.  When a user has been granted 
  6093.    privileges to use a command, they execute that command as if they were
  6094.    root, using that command as an argument to the tfadmin command, as in
  6095.  
  6096.       /sbin/tfadmin shutdown -g0 -y -i6
  6097.  
  6098.    (The system maintains a security privilege database, and it can get 
  6099.    corrupted.  Check it by typing /sbin/initprivs and fix it with
  6100.    /etc/security/tools/setpriv -x)
  6101.  
  6102.  
  6103.  
  6104.  
  6105.  
  6106.   6.5   What are the alternatives to su?  A user needs a privilege.
  6107.   25 Oct 1999
  6108.   --------------------------------------
  6109.    Instead of granting every right by giving out the root password and
  6110.    telling someone to use su, we use the tfadmin command and the privilege
  6111.    mechanism.  This allows us to grant specific access.
  6112.  
  6113.  
  6114.  
  6115.  
  6116.   6.6   How do I use tfadmin, adminuser, and adminrole, instead of su?
  6117.   18 Dec 2000
  6118.   --------------------------------------
  6119.    To use privileges instead of su, we do the following:
  6120.  
  6121.       A)  Create a group of commands that a user needs, called a role,
  6122.           with the adminrole command
  6123.       B)  Assign a user or users to that role with adminuser.
  6124.       C)  Then they can execute the commands using tfadmin.
  6125.  
  6126.    This is straightforward enough.  The following is an example, where I'll 
  6127.    grant the privilege to use 'kill' and 'shutdown' to Yurtle:
  6128.  
  6129.  
  6130.    Script started on Mon Oct 25 20:56:10 1999
  6131.    # id | awk '{ print $1 " " $2 }'
  6132.    UID=0(root) GID=3(sys)
  6133.    #
  6134.    # /bin/adminrole -n SCRAM
  6135.    # /bin/adminrole -a kill:/bin/kill:allprivs SCRAM
  6136.    # /bin/adminrole -a shutdown:/sbin/shutdown:allprivs SCRAM
  6137.    # /bin/adminuser -n -o SCRAM yurtle
  6138.    # 
  6139.    # ^D
  6140.    
  6141.    script done on Mon Oct 25 21:00:45 1999
  6142.  
  6143.  
  6144.    That's all there is to it.  Yurtle can kill and shutdown now,
  6145.    as long as initprivs returns nothing and they type their command like:
  6146.  
  6147.      /sbin/tfadmin shutdown -g0 -y -i0
  6148.  
  6149.  
  6150.  
  6151.  
  6152.   6.7   What are some gaping security risks I need to patch immediately?
  6153.   12 Feb 2002
  6154.   --------------------------------------
  6155.  
  6156.      Caldera has released quite a few interim security patches for buffer
  6157.    overflow vulnerabilities.  These are serious if you have users on your 
  6158.    UnixWare 7 machine that may probe your system.  Eventually they will
  6159.    be wrapped up into an SSE patch, I figure, but you can apply them now.
  6160.  
  6161.  
  6162.      Also, recently there have been issues with rtpm and ntp.  These have 
  6163.    been taken care of by PTF's 7691 and 7710.  Even though they started out
  6164.    as SSE's, they've now been rolled into PTF's.
  6165.  
  6166.      There are several CERT advisories that pertain directly to UnixWare 711.
  6167.    As such, these documented security risks are well known throughout the
  6168.    net underground, and if someone knows your system, they may try these.
  6169.    If system security is at all important to you, then apply the SSE patches.
  6170.  
  6171.    I am running the following SSE patches on 7.1.1
  6172.  
  6173.       SSE 7033   Bind
  6174.       SSE 7039   Su
  6175.       SSE 7042   Xlock
  6176.       SSE 7046   Uidadmin
  6177.       SSE 7047   xauto 
  6178.       SSE 7053   Package tools
  6179.       SSE 7059   rtpm
  6180.       SSE 7060   scohelp
  6181.       SSE 7065   telnet
  6182.       SSE 7066   ftp
  6183.  
  6184.       PTF 7684   verity scohelp
  6185.       PTF 7691   rtpm
  6186.       PTF 7710   ntp
  6187.  
  6188.  
  6189.    And I compiled my own wu-ftpd 2.6.2, so I don't use SSE 7658.
  6190.  
  6191.    There's a hole in Pine up through 4.10.  There are many other 
  6192.    attacks  that people can use to exploit Unix.  Have a look at:
  6193.    http://oliver.efri.hr/~crv/security/bugs/list.html
  6194.    for an extensive list of security exploits that may pertain to you.
  6195.    
  6196.    There's a way for people to flood your ports and create a DoS attack.
  6197.    The http://www.sco.com/security page has a way to guard against that.
  6198.  
  6199.    There is a feature that anyone with system owner privileges on Uw7
  6200.    can change root's password with /sbin/tfadmin passwd root.
  6201.  
  6202.    Any emergency recovery diskettes that you make are like master keys
  6203.    to your system.  Anyone with those can reboot your computer and boot
  6204.    off of those (if the floppy is enabled) and change root's password.
  6205.    Try to guard those as tightly as you guard root.
  6206.  
  6207.    The Tcp Wrappers are excellent, and you may want to use them to
  6208.    protect telnet, rlogin, and rsh, so that people can't just log in 
  6209.    remotely.  People like to use ssh to do secure telnet.
  6210.  
  6211.    It's very important to get the correct files from Caldera's security
  6212.    site on their web page.
  6213.  
  6214.  
  6215.  
  6216.  
  6217.  
  6218.  
  6219.   6.8   I'm not sure if I should apply a Uw7 security patch, what do I do?
  6220.   31 Oct 1999
  6221.   --------------------------------------
  6222.    Each SSE### patch will only install on the exact version of UnixWare 
  6223.    for which it was written.
  6224.  
  6225.  
  6226.  
  6227.  
  6228.  
  6229.   6.9  How do I check which SSE security patches are installed?
  6230.   8 Jun 2001
  6231.   ----------------------------------------
  6232.     You can run the pkginfo command on the patch set, then
  6233.   pipe it into grep to filter out the chaff and then into
  6234.   sort to put in the order of latest patch first.
  6235.  
  6236.        pkginfo -lc patch | grep PSTAMP | sort -nr | less
  6237.  
  6238.     Your SSE's get listed first, then your PTF's.
  6239.  
  6240.  
  6241.  
  6242.  
  6243.  
  6244.  
  6245.   6.10  What does 'unable to invoke login scheme means' ?
  6246.   2 Jul 2001
  6247.   -------------------------------------
  6248.     You will see this message in your syslog if someone makes a telnet 
  6249.   connection to your host but doesn't complete the login process within
  6250.   the timeout period.
  6251.  
  6252.  
  6253.  
  6254.  
  6255.  
  6256.  
  6257.  
  6258.  
  6259.  
  6260.  
  6261.  
  6262.  
  6263.  
  6264.  
  6265.  ______________________________
  6266. |                              |
  6267. | 8.  Third Party Software     |
  6268. |______________________________|
  6269.  
  6270.  
  6271.  
  6272.  
  6273.  
  6274.  
  6275.   8.1  openssl-0.9.6b            www.openssl.org
  6276.   12 Jul 2001
  6277. ------------------------------------------------------------------------
  6278.   You don't need openssl-engines which is an experimental library
  6279.   for crypto card peripherals.
  6280.  
  6281.   1)  Guess correct host.
  6282.   2)  ./config threads    <---  configure using threads.
  6283.   3)  make                <---  Uses cc.  Very nice build.
  6284.   4)  make test           <---  Excellent.  Passes all the extensive tests.
  6285.   5)  make install
  6286.  
  6287.  
  6288.  
  6289.  
  6290.  
  6291.  
  6292.   8.2  ssh2 - openssh-2.9.2p2      www.openssh.org
  6293.   12 Jul 2001
  6294.   ----------------------------------------
  6295.    openssh2 needs openssl, zlib and a few others.  Check the INSTALL
  6296.    file.
  6297.  
  6298.      1) Guesses correct host.
  6299.      2) ./configure --x-libraries=/usr/X/lib \
  6300.         --x-includes=/usr/X/include --with-ipv4-default
  6301.      3) gmake
  6302.      4) no tests
  6303.      5) gmake install
  6304.      6) /etc/rc2.d/S99sshd start
  6305.  
  6306.  
  6307.   Up and running well.  I can login.
  6308.  
  6309.  
  6310.  
  6311.  
  6312.  
  6313.   8.3  Star Office
  6314.   18 Sept 1999   contribs Roberto Zini
  6315.   ----------------------------------------
  6316.    Star Office 5.0 ran on UnixWare 7, but is buggy and hard to find.
  6317.  
  6318.    Star Office 5.1  does not run on Uw7.1.1 due to the lack of
  6319.    thread support in lxrun at this time.  Look for Sun to
  6320.    distribute a Java version of Star Office in the end of 1999.
  6321.  
  6322.    Now at the end of 2000, it looks like Sun has frozen work on a Java
  6323.    version, but they released Star Office 5.2.  It requires glibc 2.1.0.
  6324.    No reports yet.
  6325.  
  6326.  
  6327.  
  6328.  
  6329.   8.4  Where do I find a piece of software called "xxxxxxxxxxx" for Uw7.1.0?
  6330.   12 Feb 2002
  6331.   ----------------------------------------
  6332.    There were many programs available for UnixWare7 on Skunkware.
  6333.  
  6334.       http://www.caldera.com/skunkware/
  6335.  
  6336.    There is an archive for UnixWare called Freebird, located at:
  6337.  
  6338.       http://www.freebird.org/
  6339.  
  6340.  
  6341.  
  6342.  
  6343.   8.5  Lonetar, Backup Edge, Backup Professional
  6344.   6 Jan 2000
  6345.   ----------------------------------------
  6346.    I've used Lonetar for years and I swear by it.  I have heard many
  6347.    people who will say the exact same thing for Backup Edge.  Both of 
  6348.    those have Emergency Recovery software.  I've used Airbag and it
  6349.    has a bunch of nice features.  Beware of the Putfront, though.
  6350.    Backup Professional is another product by Cactus and it worked well
  6351.    for me, but was too tricky for me to be happy with.
  6352.  
  6353.    When using Lonetar on Uw7.1, it will modify the access times of all
  6354.    your files that it backs up, corrupting your security privilege
  6355.    database (initprivs).  This can be fixed with setpriv -x as described
  6356.    elsewhere in this Faq.  This can be prevented by editing the
  6357.    Ltar.X.cron and Ltar.X.tape files in /etc/lone-tar, where you would
  6358.    replace the 'X' with 'M' 'V' 'S' and 'I' for Master, Verify, Selective, 
  6359.    and Incremental.  The details are in the new Lonetar online Faq.
  6360.    You'll end up searching for OPTIONS= and removing any lower case 'a'.
  6361.  
  6362.  
  6363.  
  6364.  
  6365.  
  6366.   8.6  What is on Skunkware?
  6367.   18 Sept 1999
  6368.   ----------------------------------------
  6369.    Here is a list of the programs on the Uw7.1.0 OLSS disc:
  6370.  
  6371.    a2ps aalib Acme addressbo AnswerGar apache ApacheJMe astrolog autoconf 
  6372.    bash bb bison bladeenc blt24g bzip2 calc catdoc cdrecord cgiwrap Count 
  6373.    cpio ctags cvs dejagnu ecu egcs elvis enhydra enscript eperl esound Eterm 
  6374.    expect528 fetchmail file fileutils findutils flex fnlib freefonts freeWAIS 
  6375.    ftwalk fvwm fvwm95 fweb fwf gawk gdb getline gimp glibs glimpse gnucash 
  6376.    gnuplot gphoto groff gs guile gutils gv gzip htdig httpanaly hypermail 
  6377.    ImageMagi infozip inn ipalias irc ispell itcl301 jikes jsdk kde less lsof 
  6378.    lwgate lyx majorcool majordomo make maplay mathrec mc md5 mgdiff mkpkg 
  6379.    mpack mpeg2enco mpegplay mpg123 mtools mutt mysql nana ncftp nedit nvi 
  6380.    objc orion palmpilot patch pixmap povray procdump procmail psutils python 
  6381.    qtfree rcs rpm rxvt sbart sentry sgmltools sharutil skunkperl slrn snd 
  6382.    squid stl strobe sudo swing tanked tar tcl804 tclx804 tcsh teTeX texinfo 
  6383.    tik timidity tk804 tkinfo top transfig treeps ttutils vim vrwave wget 
  6384.    WindowMak xanim xaos xascii xautolock xboing xbuffy xcoral xdiary xdir 
  6385.    xearth xemacs xfig xfishtank xgalaga xgrabsc xhtml xinvest xkobo xlockmore 
  6386.    xmailbox xmcd XmHTML xmix Xmixer xmmix xpaint xpdf xpipeman3 xpm xpool 
  6387.    xquote xrolodex xscavenge xscreensa Xswallow xt xv xwave zircon zsh
  6388.  
  6389.  
  6390.  
  6391.  
  6392.   8.7   How do I enable 128-bit encryption with Netscape programs?
  6393.   12 Feb 2002
  6394.   ---------------------------------------
  6395.    The 128-bit program is called /opt/netscape/netscape-us  and it
  6396.    is already on your system, but you need to pay $20 to your var to
  6397.    get the COLA.  I am looking at my COLA for 128-bit Netscape, and it
  6398.    it titled, 
  6399.                "SCO Strong Encryption Supplement"
  6400.  
  6401.    Run the Scoadmin License Manager and add in the new COLA license 
  6402.    number and code.  Then run encrypt_config.  See it's man page.
  6403.  
  6404.  
  6405.  
  6406.   8.8   Wordperfect 8
  6407.   20 Oct 1999
  6408.   -------------------------------------
  6409.    The Wordperfect 8 Linux version works with lxrun, except for
  6410.    a bug where the program may exit right after printing.
  6411.  
  6412.  
  6413.  
  6414.  
  6415.  
  6416.   8.9   How do I install the KDE?  Is it any good?
  6417.   12 Feb 2002
  6418.   --------------------------------------
  6419.      I would update my graphics drivers and install set71101, then the 
  6420.    rest should go very smoothly.
  6421.   
  6422.      I installed KDE 1.1.2 the other day, after downloading it from
  6423.    Caldera skunkware, and I was amazed at how effortless it was to 
  6424.    install and how outstanding an interface it is.  Thanks to Ron Record, 
  6425.    and the other goodly folks at Caldera.
  6426.  
  6427.      On the Caldera website, you'll find a procedure to install the KDE.
  6428.  
  6429.  
  6430.  
  6431.    
  6432.    
  6433.  
  6434.   8.10   Where is Kermit for UnixWare 7?
  6435.   18 Dec 2000   contribs fdc@columbia.edu
  6436.   --------------------------------------
  6437.     Kermit communications software for serial and network connections, 
  6438.     file transfer, character-set translation, alpha and numeric paging, 
  6439.     and scripting can be downloaded from the Kermit Project website at 
  6440.     Columbia University:
  6441.  
  6442.        http://www.columbia.edu/kermit/ 
  6443.     
  6444.  
  6445.  
  6446.  
  6447.  
  6448.   8.11  Pine-4.33
  6449.   2 Jul 2001
  6450.   --------------------------------------
  6451.    This version supports threads.  
  6452.    Downloads:      http://www.washington.edu/pine/
  6453.  
  6454.  
  6455.    $ gzcat pine4.33.tar.gz | tar xvopf - 
  6456.  
  6457.    Then cd into the pine4.33 directory, go down into doc/tech-notes/
  6458.    and read index.html.
  6459.  
  6460.    Here's what you'll learn:
  6461.         1)  Pine builds on UnixWare 7.x.x using the command:   build uw2
  6462.         2)  Before you build it, you probably want to edit a few files:
  6463.  
  6464.                 pine4.33/pine/makefile.uw2
  6465.                 pine4.33/pico/makefile.uw2
  6466.                 pine4.33/pine/osdep/os-sv4.h
  6467.                 pine4.33/pico/osdep/os-sv4.h
  6468.  
  6469.       
  6470.     pine/makefile.uw2:   In this file I changed:
  6471.                OPTIMIZE=    -O -Kpentium_pro
  6472.                DEBUG=       #-g -DDEBUG
  6473.  
  6474.     pico/makefile.uw2:   In this file I changed:
  6475.                OPTIMIZE=    -O -Kpentium_pro
  6476.                DEBUG=       #-g -DDEBUG
  6477.  
  6478.     pine/osdep/os-sv4.h:   In this file I changed:
  6479.                #define DF_MAILCHECK  "600"
  6480.                #define MAXFILLCOL    "132"
  6481.  
  6482.     pico/osdep/os-sv4.h:   In this file I changed:
  6483.                #include <locale.h>
  6484.                #define MAILDIR   "/var/mail"
  6485.                #define SPELLER   "/usr/local/bin/ispell"
  6486.  
  6487.  
  6488.     The choice to optimize was mine, after I had already
  6489.     built and tested this a few times.
  6490.  
  6491.     Then I compiled it in it's top level directory ./pine4.33.
  6492.  
  6493.     I used the build uw2 command to compile it:
  6494.  
  6495.              ./build uw2 > make.log 2>&1
  6496.  
  6497.     while I switched to another terminal and
  6498.  
  6499.              less make.log
  6500.              shift+f
  6501.  
  6502.     so I can tail the log file.
  6503.  
  6504.     After building it, it's on to installing it.  To install Pine,
  6505.     log in as root, copy the files pico, pilot, and pine from ./bin to 
  6506.     /usr/local/bin,  chown them to root:sys, and chmod them to 555.
  6507.  
  6508.     The others executables like imapd and mtest are optional to install.
  6509.  
  6510.     After installing Pine, it's on to configuring it's system-wide defaults.
  6511.     To configure Pine's system wide defaults, create the file pine.conf
  6512.     as follows:
  6513.  
  6514.       1)  Log in as root.
  6515.       2)  cd /usr/local/lib
  6516.       3)  pine -conf > pine.conf 
  6517.       4)  chmod 644 pine.conf
  6518.       5)  cp -p pine.conf pine.conf.fixed
  6519.       6)  vi pine.conf.fixed:
  6520.              looking to change _only_ the items you 
  6521.              want fixed, ie. users can't change those defaults.
  6522.              See also mine below....
  6523.       7)  Once you set up those fixed items, DELETE all the other fields
  6524.           you didn't touch.  You don't want them fixed.
  6525.       8)  vi pine.conf:
  6526.              Set the system-wide defaults that the user can change.
  6527.              See also mine below....
  6528.  
  6529.  
  6530.  
  6531.            pine.conf.fixed 
  6532.        -------------------------------------------------
  6533.       |smtp-server=yoda
  6534.       |feature-list=allow-changing-from,
  6535.       |     compose-maps-delete-key-to-ctrl-d,
  6536.       |     quell-dead-letter-on-cancel,
  6537.       |     quell-user-lookup-in-passwd-file
  6538.       |
  6539.       |local-fullname=Matt Schalit
  6540.       |local-address=matthew
  6541.       |ssh-path=/usr/local/bin/ssh
  6542.       |
  6543.  
  6544.  
  6545.  
  6546.            pine.conf  
  6547.        -------------------------------------------------
  6548.       |user-domain=pacbell.net
  6549.       |nntp-server=news.pacbell.net
  6550.       |feature-list=compose-cut-from-cursor,
  6551.       |     enable-sigdashes,
  6552.       |     enable-search-and-replace,
  6553.       |     enable-reply-indent-string-editing,
  6554.       |     include-text-in-reply,
  6555.       |     reply-always-uses-reply-to,
  6556.       |     enable-background-sending,
  6557.       |     enable-delivery-status-notification,
  6558.       |     compose-sets-newsgroup-without-confirm,
  6559.       |     news-post-without-validation,
  6560.       |     delete-skips-deleted,
  6561.       |     prefer-plain-text,
  6562.       |     quell-extra-post-prompt,
  6563.       |     enable-aggregate-command-set,
  6564.       |     enable-full-header-cmd,
  6565.       |     enable-jump-shortcut,
  6566.       |     enable-goto-in-file-browser,
  6567.       |     enable-tab-completion,
  6568.       |     disable-take-last-comma-first,
  6569.       |     enable-dot-files,
  6570.       |     expunge-without-confirm,
  6571.       |     no-expunge-without-confirm-everywhere,
  6572.       |     quell-folder-internal-msg,
  6573.       |     quit-without-confirm,
  6574.       |     show-plain-text-internally
  6575.       |character-set=ISO-8859-1
  6576.       |speller=/usr/local/bin/ispell
  6577.       |composer-wrap-column=128
  6578.       |sort-key=thread
  6579.  
  6580.  
  6581.  
  6582.     9)  Now just remove any previous ~/.pinerc files and run pine.
  6583.         Use the S for Setup
  6584.         Use the C for Config
  6585.         Change a few things, like your name if necessary.
  6586.         To read news, enter an nntp-server.  If your nntp-server
  6587.         login name is differnt from you UnixWare 7 username, then
  6588.         you need to make your nntp-server: field look like this,
  6589.       
  6590.                      news.pacbell.net/user=matt123
  6591.  
  6592.         Otherwise, leave off the /user=matt123 part and just use
  6593.         your news server's FQDN.
  6594.  
  6595.     10) Finally exit pine and do the final trick:  setting the From:
  6596.            What I mean by this everyone's email has a return address
  6597.            on it in the From: field.
  6598.  
  6599.            Everybody needs to specify a From: by hand, unless you own 
  6600.            a registered, named domain, and are running pine from there.
  6601.            When I set my user-domain in pine.conf to pacbell.net, I'm
  6602.            setting the right hand side of the @.  When I set my From:
  6603.            as desribed below, I'm setting the whole email@address.com.
  6604.  
  6605.            To set your From:   vi ~/.pinerc
  6606.  
  6607.           Part of my ~/.pinerc  
  6608.        -----------------------------------------------------------
  6609.       |customized-hdrs=From: Matt Schalit <mschalit@pacbell.net>
  6610.       |
  6611.  
  6612.  
  6613.     That's about it.  Pine pauses a lot when reading news, so don't
  6614.     be alarmed if it takes a long time to enter a group.
  6615.  
  6616.  
  6617.  
  6618.     
  6619.  
  6620.  
  6621.   8.12 Alladin Ghostscript gs7.00
  6622.   2 Jul 2001
  6623.   ----------------------------------------
  6624.         ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs700/
  6625.  
  6626.   1)  Read the doc/build.htm
  6627.   2)  Read the doc/make.htm
  6628.   3)  Read the doc/install.htm
  6629.   4)  No host, no configure porgram.
  6630.   5)  Hard to build.  You can get away with skunkware gs, but don't bother
  6631.       if you care about your apps.
  6632.   6)  cd src
  6633.   7)  cp unix-gcc.mak unix-gcc.mak.orig
  6634.   8)  vi unix-gcc.mak
  6635.         At this point you have to modify the file and make a bunch of settings
  6636.         that are not easy to figure out.  You have to read and experiment a lot.
  6637.         Here's the variables that I changed or added, others that were left alone
  6638.         I'll not put in here:
  6639.  
  6640. INSTALL = /usr/local/bin/install
  6641. JSRCDIR=/home/matthew/Uber/Gnome/jpeg-6b
  6642. PSRCDIR=/home/matthew/Uber/Gnome/libpng-1.0.10
  6643. SHARE_LIBPNG=1
  6644. ZSRCDIR=/home/matthew/Uber/Gnome/zlib-1.1.3
  6645. SHARE_ZLIB=1
  6646. AR=/usr/local/bin/ar
  6647. RANLIB=/usr/local/bin/ranlib
  6648. XCFLAGS=-DSVR4
  6649. EXTRALIBS=-lsocket -lnsl
  6650. STDLIBS=-pthread -lm
  6651. XINCLUDE=-I/usr/X/include
  6652. XLIBS=Xt SM ICE Xext X11
  6653. XLIBDIRS=-L/usr/X/lib
  6654. XLIBDIR=
  6655. SYNC=posync
  6656. DEVICE_DEVS2=$(DD)cljet5.dev $(DD)stcolor.dev
  6657.  
  6658.  
  6659.    9) gmake
  6660.   10) Here's how to test it out.
  6661.         a)  cd lib
  6662.         b)  ../bin/gs ../examples/tiger.ps
  6663.  
  6664.   11) gmake install
  6665.   12) Fix perms if you have a strong umask like I do.
  6666.  
  6667.  
  6668.  
  6669.  
  6670.     
  6671.  
  6672.  
  6673.   8.13  Gnu-make-3.79.1
  6674.   12 Feb 2002
  6675.   -------------------------------------
  6676.     Probably best to get this off of OSTools from Caldera's download page.
  6677.  
  6678.  
  6679.  
  6680.  
  6681.  
  6682.   8.14   binuitils-2.11    
  6683.   12 Feb 2002
  6684.   -------------------------------------------------------------------------
  6685.      Use OSTools version of these program from Caldera downloads.
  6686.    
  6687.  
  6688.  
  6689.  
  6690.  
  6691.   8.15  gmp-3.1.1
  6692.   2 Jul 2001
  6693.   -------------------------------------
  6694.   1)  Guesses correct host, even though it calls it a pentium2-sco-sysv5uw7.1.1
  6695.       because it optimizes it for my pentium2.
  6696.   2)  cd objdir
  6697.   3)  ../gmp-3.1.1/configure
  6698.   4)  gmake
  6699.   5)  gmake check  -ok.  all tests passed.
  6700.  
  6701.  
  6702.  
  6703.  
  6704.  
  6705.  
  6706.  
  6707.   8.16  libtool-1.4.2  From Gnu.org
  6708.   12 Feb 2002
  6709.   -------------------------------------
  6710.     This one if very complicated unless you get the libtool.m4.patch
  6711.    off my ftp site and apply it all the way down the libtool source tree.
  6712.    See the bug-libtool list for more details from Larry Roseman and me.
  6713.  
  6714.  
  6715.  
  6716.  
  6717.  
  6718.  
  6719.   8.17  m4-1.4p
  6720.   2 Jul 2001
  6721.   -------------------------------------
  6722.   1)  Guesses wrong host.
  6723.   2)  CC="/bin/cc -Kalloca"  CPPFLAGS=-I/usr/local/include ./configure \
  6724.       --host=i586-sco-sysv5uw7.1.1 --with-gmp --enable-shared
  6725.   3)  gmake
  6726.   4)  gmake check      - ok.  All 72 tests passed.
  6727.   5)  gmake install
  6728.   6)  ln -s /usr/local/bin/m4 /usr/local/bin/gm4
  6729.       You'll want to do this symlink, because apps look for gm4.
  6730.  
  6731.  
  6732.  
  6733.  
  6734.  
  6735.  
  6736.  
  6737.  
  6738.   8.18  dejagnu-1.4
  6739.   2 Jul 2001
  6740.   -------------------------------------
  6741.  
  6742.   1)  Wrong host, use the method below to specify the host....
  6743.   2)  ./configure  --x-includes=/usr/X/include --x-libraries=/usr/X/lib \
  6744.       --with-tclinclude=/usr/local/bin i586-sco-sysv5uw7.1.1
  6745.   3)  gmake
  6746.   4)  gmake info
  6747.   5)  gmake install
  6748.  
  6749.  
  6750.  
  6751.  
  6752.  
  6753.  
  6754.  
  6755.  
  6756.  
  6757.   8.19  autoconf-2.50
  6758.   12 Feb 2002
  6759.   -------------------------------------
  6760.      Use the OSTools version of autoconf from Caldera downloads.
  6761.  
  6762.  
  6763.  
  6764.  
  6765.  
  6766.   8.20   gcc
  6767.   12 Feb 2002
  6768.   -------------------------------------
  6769.   1)  I wrote up a gcc-mini-HOWTO at
  6770.  
  6771.            ftp://ftp.schalit.net/pub/mini-HOWTO/
  6772.  
  6773.    But it's much better to use the OSTools version from Caldera downloads
  6774.    along with UDK Feature Supplement 711b.
  6775.  
  6776.  
  6777.  
  6778.  
  6779.  
  6780.  
  6781.  
  6782.   8.21  gnu-tar-1.13
  6783.   2 Jul 2001
  6784.   -------------------------------------
  6785.    1)  Wrong host.
  6786.    2)  ./configure --host=i586-sco-sysv5uw7.1.1 --disable-largefile \
  6787.        --disable-nls --x-includes=/usr/X/include --x-libraries=/usr/X/lib
  6788.    3)  gmake
  6789.    4)  gmake check    - ok.  10/10 tests passed
  6790.    5)  gmake install prefix=/usr/local
  6791.    6)  ln -s /usr/local/bin/tar /usr/local/bin/gtar
  6792.  
  6793.  
  6794.  
  6795.  
  6796.  
  6797.   8.22  bzip2-1.0.1
  6798.   2 Jul 2001
  6799.   -------------------------------------
  6800.   1)  No configure, so host is not used.
  6801.   2)  gmake    - ok.  compiles the static lib and passes all tests.
  6802.   3)  gmake -f Makefile-libbz2_so     - ok.  Makes the shared lib.
  6803.   4)  gmake install PREFIX=/usr/local
  6804.   5)  cp libbz2.so.1.0.1 /usr/local/lib
  6805.   6)  cp bzip2-shared /usr/local/bin
  6806.   7)  chmod 755 /usr/local/bin/bzip2-shared  /usr/local/lib/libbz2.so.1.0.1
  6807.   8)  wrong 711 perms on a lot of bzip2 files
  6808.  
  6809.  
  6810.  
  6811.  
  6812.  
  6813.  
  6814.  
  6815.  
  6816.   8.23  gdbm-1.8.0
  6817.   2 Jul 2001
  6818.   -------------------------------------
  6819.   1) wrong host
  6820.   2) The ltmain and ltconfig.sh in this app are too old.
  6821.         cp /usr/local/share/libtool/ltconfig .
  6822.         cp /usr/local/share/libtool/ltmain.sh .
  6823.  
  6824.   3) LDFLAGS=-L/usr/ucblib NM=/usr/local/bin/nm ./configure \
  6825.      --host=i586-sco-sysv5uw7.1.1 --x-libraries=/usr/X/lib \
  6826.      --x-includes=/usr/X/include
  6827.  
  6828.   4) gmake
  6829.   5) gmake install fails to work.  Need to install manually.
  6830.   6) gmake -n install
  6831.        This command just prints out what the install script
  6832.        wanted to do, and you can do it by hand.   This may
  6833.        be why things work poorly and my results need to be
  6834.        double checked.
  6835.  
  6836.  
  6837.  
  6838.  
  6839.  
  6840.  
  6841.  
  6842.   8.24  flex-2.5.4a     ftp.gnu.org/pub/non-gnu/flex/
  6843.   2 Jul 2001
  6844.   -------------------------------------
  6845.   1) correct host?
  6846.   2) ./configure
  6847.   3) gmake check
  6848.   4) gmake bigcheck
  6849.   5) gmake install
  6850.  
  6851.  
  6852.  
  6853.  
  6854.  
  6855.  
  6856.  
  6857.  
  6858.  
  6859.  
  6860.   8.25  zlib-1.1.3
  6861.   12 Feb 2002
  6862.   -------------------------------------
  6863.     You can install this from skunkware.  It's been around a long time.
  6864.  
  6865.  
  6866.  
  6867.  
  6868.  
  6869.  
  6870.  
  6871.  
  6872.   8.26  perl-5.6.1
  6873.   12 Feb 2002
  6874.   -------------------------------------
  6875.   Perl is complicated to install because it has about 72 questions 
  6876.   that you need to answer in order for it to be configure for the gmake.
  6877.   The best way is to just start doing it, as versus read all the files
  6878.   it tells you to.  You can bail out and start again.
  6879.  
  6880.   I posted to the comp.unix.sco.misc newsgroup with an output of all
  6881.   the 72 variables to create a working version.  There are many options 
  6882.   that will make perl fail its tests, so you might want to skim over
  6883.   those if you decide to have a go at it.
  6884.  
  6885.  
  6886.  
  6887.  
  6888.  
  6889.  
  6890.  
  6891.  
  6892.  
  6893.  
  6894.  
  6895.  _____________________________________
  6896. |                                     |
  6897. |   9.  Useful Shell Commands         |
  6898. |_____________________________________|
  6899.  
  6900.  
  6901.  
  6902.   9.1 How do I search in every file for a string like "See foo?"
  6903.   18 Sept 1999 
  6904.   ----------------------------------------
  6905.    To find the string "See foo" in every local file, one can do a 'find'
  6906.    and 'fgrep' utilizing 'xargs' to run a group of fgreps at once which
  6907.    is more efficient than running one fgrep at a time: 
  6908.  
  6909.      find / -type f -mount | xargs fgrep -le "See foo" 
  6910.  
  6911.  
  6912.  
  6913.   9.2  How do I find the largest files and directories?
  6914.   18 Sept 1999
  6915.   ----------------------------------------
  6916.    To find the largest files and directories, in units of kilobytes
  6917.    one can use 'du,' 'sort,' and 'less' to list the files from largest
  6918.    to smallest:
  6919.  
  6920.       du -akx | sort -nr | less 
  6921.  
  6922.  
  6923.  
  6924.   9.3  How do I find the largest files?
  6925.   12 Jul 2001
  6926.   ----------------------------------------
  6927.    To find the largest files, in units of bytes, excluding files smaller
  6928.    than 1 MB, one can use find, ls, awk, sort, and less:
  6929.  
  6930.           find / -type f -size +2048 -exec ls -l {} + | \
  6931.           awk '{ print $5 "\t" $9 }' | sort -nr | less
  6932.  
  6933.    The same find again, but in units of kilobytes:
  6934.  
  6935.           find / -type f -size +2048 -exec ls -l {} + | \
  6936.           awk '{ print int($5/1024) "\t" $9 }' | sort -nr | less
  6937.  
  6938.  
  6939.  
  6940.  
  6941.  
  6942.   9.4  How do I determine the number of free inodes?
  6943.   18 Sept 1999
  6944.   ----------------------------------------
  6945.    Use the 'df' command:
  6946.  
  6947.       df -i
  6948.  
  6949.  
  6950.  
  6951.  
  6952.   9.5  How do I find the user who is using files in a filesystem and
  6953.          thus preventing it from being unmounted?
  6954.   18 Dec 2000
  6955.   ----------------------------------------
  6956.    Use the 'fuser' command, and notice that it refers to block devices
  6957.    unless you throw the '-c' flag which lets you use mount points:
  6958.  
  6959.       fuser -cu /home     <--  List all PIDs(usernames) using files in /home
  6960.       fuser -u /dev/fd0   <--  List all PIDs(usernames) using the first floppy
  6961.       fuser -u /dev/dsk/c0b0t0d0s4  <-- " using slice 4 on disk 0 ( /home )
  6962.  
  6963.  
  6964.  
  6965.  
  6966.  
  6967.  
  6968.  
  6969.  
  6970.  ____________________________________________________
  6971. |                                                    |
  6972. |   10.  Migrating from OpenServer 5 to UnixWare 7   |
  6973. |____________________________________________________|
  6974.  
  6975.  
  6976.  
  6977.  
  6978.  
  6979.   10.1   SCO Migration Tools
  6980.   8 Jun 2001   contrib  Boyd Gerber
  6981.   ----------------------------------------
  6982.     SCO provides a set of Migration Tools to UnixWare 7.
  6983.       
  6984.          http://www.sco.com/migration/
  6985.  
  6986.     Always check the following links for the latest information 
  6987.     on UnixWare 7. 
  6988.  
  6989.        http://www.sco.com/unixware7/documentation
  6990.        http://www.sco.com/upgrade/ 
  6991.     or 
  6992.        http://wdb1.sco.com/clbk_web/owa/dwn_customer
  6993.  
  6994.          
  6995.  
  6996.  
  6997.  
  6998.  
  6999.  
  7000.   10.2   SETUID bit 
  7001.   8 Jun 2001   contrib   zigazou@libertysurf.fr
  7002.   ------------------------------------------
  7003.        SETUID and SETGID bits allow a process to gain higher privileges 
  7004.      than the caller.
  7005.  
  7006.        Under UnixWare 7, a program also needs to gain privileges 
  7007.      from the system by asking even if it can gain them (similarly 
  7008.      to Windows NT).
  7009.     
  7010.        If a C program has a call to the setreuid function like this : 
  7011.  
  7012.              setreuid(geteuid(),geteuid());
  7013.  
  7014.      and the SETUID bit is set correctly, it will work under OpenServer 
  7015.      but not under UnixWare.  You need to put some privileges on the 
  7016.      executable file by using the filepriv shell command to make it
  7017.      work under UnixWare 7: 
  7018.  
  7019.              filepriv -f setuid programfile.exe
  7020.  
  7021.  
  7022.  
  7023. -- 
  7024. --
  7025. Boyd Gerber <gerberb@zenez.com>
  7026. ZENEZ    1042 East Fort Union #135, Midvale Utah  84047
  7027.