home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / answers / hp-faq < prev    next >
Internet Message Format  |  1993-12-15  |  76KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!nic.hookup.net!swrinde!cs.utexas.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!news.mentorg.com!hpcan240.mentorg.com!dracula!gcagle
  2. From: gcagle@dracula.mentorg.com (Greg Cagle)
  3. Newsgroups: comp.sys.hp.hpux,comp.sys.hp,news.answers,comp.answers
  4. Subject: comp.sys.hp.hpux FAQ
  5. Followup-To: comp.sys.hp.hpux
  6. Date: 15 Dec 1993 18:15:35 GMT
  7. Organization: Mentor Graphics
  8. Lines: 1908
  9. Approved: news-answers-request@MIT.Edu
  10. Distribution: world
  11. Message-ID: <2enk87$cvl@hpcan240.mentorg.com>
  12. Reply-To: greg_cagle@mentorg.com
  13. NNTP-Posting-Host: dracula.mentorg.com
  14. Xref: senator-bedfellow.mit.edu comp.sys.hp.hpux:1957 comp.sys.hp:41416 news.answers:15852 comp.answers:3035
  15.  
  16. Archive-name: hp-faq
  17. Last-modified: 1993/12/13
  18. Version: 2.6
  19.  
  20. comp.sys.hp.hpux FAQ (Frequently Asked Questions)
  21.  
  22. Subject: 1. INTRODUCTION
  23.  
  24. This article contains the answers to some Frequently Asked Questions (FAQ) often
  25. seen in the USENET newsgroup comp.sys.hp.hpux. Discussion in this document
  26. centers around Hewlett-Packard computer systems running  the HP-UX operating
  27. system; the focus tends to be on the series 700  workstations, although topics
  28. are also applicable to series 800 machines, and to a lesser degree, series 300
  29. and 400 machines. It is posted biweekly, on or about the 1st and the 15th. 
  30.  
  31. Many FAQs, including this one, are available via FTP on the archive site
  32. rtfm.mit.edu in the directory pub/usenet/news.answers.   The name under which
  33. this FAQ is archived appears in the Archive-nameline  above (hp-faq).
  34.  
  35. Questions marked with a "+" are new to this issue, and questions with changes
  36. since the last issue are marked by a "!".
  37.  
  38. Submissions, corrections, comments, input, complaints, attaboys, etc., should be 
  39. directed to Greg Cagle <greg_cagle@mentorg.com>.
  40.  
  41. The content of this article is the sole responsibility of the author and
  42. contributors, and does not necessarily represent their employers or
  43. Hewlett-Packard.
  44.  
  45. Subject: 2. TABLE OF CONTENTS
  46.  
  47. 1. INTRODUCTION
  48. 2. TABLE OF CONTENTS
  49. 3. FINDING INFORMATION
  50. 3.1  Where can I get a copy of this FAQ file?
  51. 3.2  Courses on HP-UX
  52. 3.3! Interex, The International Association of HP Computer Users
  53. 3.4  InterWorks, The International HP Workstation Users Group
  54. 3.5! Interex HP Users Conferences 1994
  55. 3.6! InterWorks Conference 1994
  56. 3.7  HP-UX publicly available software from InterWorks.
  57. 3.8! Anonymous FTP Sites for HP-UX, and UNIX related software.
  58. 3.9  Where can I get a "Demo CD" with software for HP-UX?
  59. 3.10  HP-UX patch information and mailing list.
  60. 3.11  How can I send mail to an "hpdesk" address?
  61. 3.12  What are the known issues with porting BSD-based programs to HP-UX?
  62. 3.13  Who is this George Carter and how do I get rid of his posts?
  63. 3.14+ What periodicals are available that focus on HP-UX?
  64. 4. THIRD PARTY VENDORS
  65. 4.1  Third party vendors for RAM.
  66. 4.2  Third party vendors for peripherals
  67. 5. UTILITIES
  68. 5.1  ASCII to Postscript converter.
  69. 5.2  How do I make perl on HP-UX?
  70. 5.3! What is the status of the various gnu items on HP-UX?
  71. 6. X WINDOW SYSTEM, MOTIF, AND HP-VUE
  72. 6.1  X11 libraries (Athena, etc.) and utilities (imake, etc.).
  73. 6.2  How can I display an image on the root window with HP-VUE?
  74. 6.3  How do I get a scroll bar on hpterms?
  75. 6.4  How can I put a title in my hpterm titlebar?
  76. 6.5  How come my hpterms keep going away by themselves?
  77. 6.6  How come my HP X/Motif clients take a LONG time to display on a Sun?
  78. 6.7  How can I get my login stuff to work under HP-VUE?
  79. 6.8  How can I get console messages to go to an hpterm?
  80. 6.9  What happened to the vuewm key accelerators at VUE 3.0?
  81. 6.10  How come I can no longer disable the caps lock key with xmodmap?
  82. 6.11  How come vi behaves strangely in xterms at 9.01?
  83. 6.12  How do I disable HP-VUE?
  84. 6.13  What's a good termcap entry for hpterm?
  85. 6.14  My screen is wedged. What should I do?
  86. 6.15  How can I get an X client to come up in an alternate workspace?
  87. 6.16  Where did xline go at 9.01?
  88. 6.17  How can I get HP-VUE to not override colors?
  89. 6.18  How can I override the system default printer in vuepad?
  90. 7. OPERATING SYSTEM
  91. 7.1  Can I have filenames longer than 14 chars?
  92. 7.2  How can I tell what filesets have been loaded on my system?
  93. 7.3  How do I safely remove software from my system?
  94. 7.4  What's the scoop on HP-UX 9.0/9.01?
  95. 7.5  How come HP-UX doesn't support NFS root access?
  96. 7.6  Can I get HP-UX to try DNS ahead of NIS?
  97. 7.7  How come the LOGnnnn files in /usr/adm keep growing and growing?
  98. 7.8  How come I can't lock mail or other files on a Sun?
  99. 7.9  What are the known issues with HP-UX 8.07?
  100. 7.10  Why are mail files in /usr/mail are owned by daemon instead of the recipient?
  101. 7.11  How can I tell if I need more than a 2-user license?
  102. 7.12  How can I tell what patches are in the kernel?
  103. 7.13  How come I have to hit return after control-d in the Korn shell?
  104. 7.14  How do I boot into single user mode?
  105. 7.15  How come my Korn shell login hangs?
  106. 7.16  How can I avoid those annoying copyright notices on login?
  107. 7.17  How can I turn off quota checking?
  108. 7.18! What are the issues with HP-UX 9.01?
  109. 7.19  Why does chown behave differently at 9.01?
  110. 7.20  How can I track log files and core files?
  111. 7.21  How much memory can a process use?
  112. 7.22  How come there's little discussion of DCE?
  113. 7.23  How can I make a ramdisk?
  114. 7.24  Where can I get SLIP for HP-UX?
  115. 7.25  How come I can't lock files across NFS after upgrading to 9.01?
  116. 7.26  How can I have the resolver look in /etc/hosts before querying DNS?
  117. 7.27  What's a good strategy for clearing /tmp?
  118. 7.28  How can I change the timezone?
  119. 7.29  Is there an equivalent for getrusage()?
  120. 7.30+ How can I look at what my system is doing?
  121. 7.31+ How can I partition HP-UX disks?
  122. 8. COMPILERS AND LINKERS
  123. 8.1  What's a P-FIXUP error?
  124. 8.2  Where is regcmp on HP-UX?
  125. 8.3  How come the default C compiler is brain-dead?
  126. 8.4  How do I deal with "too many defines"?
  127. 8.5  How come I get "_builtin_va_start" undefined when I build with gcc?
  128. 8.6  How can I tell if something was built debuggable?
  129. 9. HARDWARE AND PERIPHERALS
  130. 9.1  Are alternate keyboards available for HP workstations?
  131. 9.2  How can I play audio CDs on an HP workstation?
  132. 9.3  How can I enable the LAN interface on a 700?
  133. 9.4  How can I get an Exabyte to work on an HP?
  134. 9.5  Is there a "node ID" on 700s?
  135. 9.6  How can I get a stuck DDS tape out of the drive?
  136. 9.7  How can I use dump with a DDS tape?
  137. 9.8  What is the correct major number for DDS drives on 9.01?
  138. 9.9  How can I set up /dev/audio to point to the external jack on a 700?
  139. 9.10+ How can I configure the parallel port handshake on a 700?
  140. 9.11+ What are the specs of the audio hardware on the 700 series?
  141.  
  142. Subject: 3. FINDING INFORMATION
  143.   
  144. Subject: 3.1  Where can I get a copy of this FAQ file?
  145.  
  146. The comp.sys.hp FAQ file is posted approximately monthly to the comp.sys.hp,
  147. news.answers, and comp.answers newsgroups. It is archived on rtfm.mit.edu in the
  148. pub/usenet directory, and also on the InterWorks archive machine  (see below),
  149. in the comp.hp directory.
  150.   
  151. Subject: 3.2  Courses on HP-UX
  152.  
  153. Call the following numbers for information or the latest HP Education Catalog.
  154. U.S.:    1-800-HPCLASS {1-800-472-5277}
  155. Canada:  (416)678-9430
  156.   
  157. Subject: 3.3! Interex, The International Association of HP Computer Users
  158.  
  159. Interex is the International Association of HP Computer Users and the largest HP
  160. user group in the world.  The organization is more than 19 years old with
  161. thousands of members worldwide.  It represents HP users of all kinds including
  162. HP9000, HP3000, HP1000, and Vectra PC's with annual conferences attracting
  163. vendors from all over the world.  Interex publishes "Interact" for the HP3000
  164. and Vectra PC user, "hp-ux/usr" for the HP9000 user and a realtime operating
  165. system newsletter for the HP1000 users.
  166.  
  167. There are many regional users groups, many holding annual or semiannual
  168. conferences, and Interex has a collection of software (with sources)  covering
  169. MPE, HP-UX and RTE called the Contributed Software Library.
  170.  
  171. To contact Interex:
  172.    (800) INT-EREX  or (800) 468-3739
  173.    or:  (408) 747-0227
  174.    fax: (408) 747-0947
  175.    email: ehrhardt@interex.org   .. editor of hp-ux/usr magazine
  176.           pubs@interex.org       .. Circulation/advertising
  177.           membership@interex.org .. membership inquiries
  178.           cslhpux@interex.org    .. contributed software library (hp-ux)
  179.    Compuserve:  76376,1222
  180.    Address:  Interex                   Interex  (for US mail)
  181.              1192 Borregas Avenue.     P.O. Box 3439
  182.              Sunnyvale, CA 94088       Sunnyvale, CA  94088-3439
  183.   
  184. Subject: 3.4  InterWorks, The International HP Workstation Users Group
  185.  
  186. InterWorks, formerly the Apollo Domain User's Society (ADUS), was formed to
  187. provide a users group specifically for HP _workstation_ users. The group
  188. publishes a quarterly newsletter, "The Works", holds an annual conference (see
  189. below), and maintains a library of HP-UX (and DOMAIN) software (see below).
  190. Membership is free; please contact Carol Relph for more information:
  191.  
  192. Carol Relph
  193. Manager, Member Services
  194. InterWorks, Inc.
  195. c/o Hewlett-Packard Company
  196. Workstation Business Unit
  197. 300 Apollo Drive, Mailstop IWORKS
  198. Chelmsford, MA  01824-3623
  199. (508)256-6600
  200. E-Mail:  relph_c@apollo.hp.com
  201.   
  202. Subject: 3.5! Interex HP Users Conferences 1994
  203.  
  204. For more information, please contact the INTEREX Conference Department
  205. at the above address.
  206.   
  207. Subject: 3.6! InterWorks Conference 1994
  208.  
  209. The next InterWorks conference is to be held 5/15/94 -  5/18/94 at the Buena
  210. Vista Palace in Walt Disney World Village, Buena Vista,  Florida.
  211.   
  212. Subject: 3.7  HP-UX publicly available software from InterWorks.
  213.  
  214. Dave Shaw maintains a library of publicly available HP-UX related software on
  215. behalf of the InterWorks User Group.  Dave Shaw can be reached at (303)443-9413,
  216. or via E-Mail at <librarian@iworks.ecn.uiowa.edu>. The following is provided by
  217. Dave Shaw, the InterWorks Librarian. See the README mentioned below for details.
  218.  
  219. There is an archive of UX-related software on the InterWorks library node
  220. (iworks.ecn.uiowa.edu--128.255.18.10). Note that everything is available  via
  221. anonymous ftp-- in "comp.hp"). The README there contains a complete  list of the
  222. available software. Nearly all of it is also available on a CD for $75.00
  223. ($85.00 outside the U.S.). For ordering information contact  Carol Relph.
  224.  
  225. All of the archive is suitable for the 700 series machines, and I have started
  226. to verify that. Executables are included in some packages. If you take a package
  227. and find that you must build an executable (or do some porting) for your machine
  228. and/or OS level, I would appreciate hearing about your work and receiving a copy
  229. of the executable you built.
  230.  
  231. Note that I have had very little involvement in the writing or packaging  of any
  232. of the items on the list-- they are the result of the work of many  other
  233. people. In particular, note that the available binaries have not been compiled
  234. by me. If you are concerned about running binaries compiled by someone else,
  235. build them yourself with the available source. Also note  that individual
  236. authors may include text regarding the rights of others to use and distribute
  237. their code. 
  238.  
  239. Thanks to all the contributors.
  240.   
  241. Subject: 3.8! Anonymous FTP Sites for HP-UX, and UNIX related software.
  242.  
  243. Name:      iworks.ecn.uiowa.edu
  244. Address:   128.255.18.10
  245. Contents:  The InterWorks HP-UX Library in the directory "comp.hp" as
  246.            described above. The iworks node also keeps the last 4-6 
  247.            months of comp.sys.hp online (via an InterWorks member logon 
  248.            (see question #5 above). An archive going back to June 1990 
  249.            is available-- contact the InterWorks librarian for details.
  250.            Additionally, a large (~1300 line) "HP-UX Troubleshooting
  251.            Guide" is available under the InterWorks member logon.
  252.  
  253. Name:      ftp.csc.liv.ac.uk
  254. Address:   138.253.42.172
  255. Contents:  Large number of packages ported to HP-UX 8.07 and 9.01
  256.  
  257. Here is an overview of ftp.csc.liv.ac.uk as of Fri 10 Dec 1993:
  258. (The 2 most recently installed packages in each category are in brackets)
  259.  
  260.  41 packages in /hpux9/X11R5/Graphics   (xmgf-1.9.1 xmgf-1.9)
  261.  31 packages in /hpux8/Games            (xblockbuster-1.03 xyahtzee-1.01)
  262.  30 packages in /hpux9/Gnu              (flex-2.4.3 flex-2.4.1)
  263.  30 packages in /hpux8/X11R4/Misc       (xsky-2.01 hman-1.00)
  264.  29 packages in /hpux8/Networking       (c_news-2.May.92 mm-2.5)
  265.  28 packages in /hpux9/X11R5/Misc       (xpostit-3.3.1 xephem-2.5X)
  266.  28 packages in /hpux9/Games            (netmaze-0.62 xrisk-2.15)
  267.  20 packages in /hpux8/Maths/Gap        (gap.doc-3.3 gap.etc-3.3)
  268.  19 packages in /hpux9/Networking       (cap-60p182 gopher-2.010)
  269.  19 packages in /hpux8/X11R4/Demos      (xball-3.0 xspringies-1.1)
  270.  16 packages in /hpux8/X11R4/Toolkits   (andrew-5.1.part04 xf-2.2)
  271.  16 packages in /hpux8/X11R4/Graphics   (xv-2.21 toybox-pre1.3)
  272.  16 packages in /hpux8/Maths/Misc       (stplan-4.0 kaleido-3.10)
  273.  15 packages in /hpux9/X11R5/Demos      (xsnow-1.02 xsnow-1.01)
  274.  15 packages in /hpux8/Maths/LinAlgebra (crep-4.Nov.93 rnlib-1.0)
  275.  14 packages in /hpux9/X11R5/Core       (xstdcmap-1.6 xmag-5.00)
  276.  14 packages in /hpux8/X11R4/XView3     (ftptool-4.6b3 workman-1.0.2)
  277.  13 packages in /hpux9/X11R5/Toolkits   (fwf-3.57 XgPlot-4.2)
  278.  13 packages in /hpux9/Sysadmin         (top-3.3beta expect-5.2.0)
  279.  13 packages in /hpux9/Misc             (rplay-3.1.1beta cbar_vi-1.0)
  280.  13 packages in /hpux8/Misc             (pvm-3.1 gaps-5.11)
  281.  12 packages in /hpux9/X11R5/Networking (x3270-3.0.1.3 xrn-6.17)
  282.  11 packages in /hpux9/Editors          (nedit-2.0 ted-2.00)
  283.  10 packages in /hpux9/Users            (pine-3.88 remind-3.0.11)
  284.  10 packages in /hpux8/X11R4/Networking (adcmail-0.9 wais-8b4)
  285.  10 packages in /hpux8/Text             (tr2latex-2.2a transfig-2.1.7)
  286.  10 packages in /hpux8/Sysadmin         (rpasd-2.0 expect-4.7.1)
  287.  10 packages in /hpux8/Languages        (gofer-2.28b scheme-7.1.3)
  288.   9 packages in /hpux9/Languages        (ucblogo-3.0.1 swi-1.8.4)
  289.   8 packages in /hpux9/Text             (lgrind-Oct91 dvips-5.521)
  290.   8 packages in /hpux8/X11R4/Core       (MITlib-4.00 appres-1.5)
  291.   8 packages in /hpux8/Users            (xmodem-3.9 es-0.84)
  292.   7 packages in /hpux8/X11R5            (XR5src-5.23.part01 XR5built-5.23)
  293.   7 packages in /hpux8/Physics          (asa-1.56 fudgit-2.33)
  294.   7 packages in /hpux8/NeuralNets       (snns-2.0 am-6.0)
  295.   4 packages in /hpux9/NeuralNets       (snns-3.1 atree-2.0)
  296. =======================================
  297. 564 packages in total
  298.  
  299. The Liverpool archive supports a gopher server at gopher.csc.liv.ac.uk
  300. (138.253.42.174) and also a mail server at mail-server@csc.liv.ac.uk for
  301. users without access to anonymous FTP.
  302.  
  303. Name:      hpux.ask.uni-karlsruhe.de
  304. Address:   129.13.200.57
  305. Contents:  The official German mirror site of ftp.csc.liv.ac.uk
  306.  
  307. Name:      ftp.cae.wisc.edu
  308. Address:   144.92.4.15
  309. Contents:  The official US mirror site of ftp.csc.liv.ac.uk
  310.  
  311. Name:      hpux.cict.fr
  312. Address:   192.70.79.53
  313. Contents:  The official French mirror site of ftp.csc.liv.ac.uk
  314.  
  315. The Interworks and Liverpool sites are now cooperating as follows:
  316.  
  317. 1) The Liverpool archive will carry packages originating from and submitted to
  318.    the Interworks site.  These packages will  be integrated into the  existing
  319.    structure of the archive.
  320.  
  321. 2) Interworks will provide binaries for each of the  packages on the Liverpool
  322.    archive.  These  packages  will be  organized into  a  directory  structure
  323.    matching  that of  the Liverpool  site. *** Note:  This is  not immediately
  324.    available but should be up and running in a few weeks time ***
  325.  
  326. 3) Interworks will continue to provide complete packages (source+binaries) for
  327.    the HP and user-contributed software in its library.
  328.  
  329. Name:      ftp.prz.tu-berlin.de 
  330. Address:   130.149.62.68
  331. Contents:  Much of the Liverpool archive.
  332.  
  333. Name:      export.lcs.mit.edu
  334. Address:   18.24.0.12
  335. Contents:  The X Window System and contributed clients.
  336.  
  337. Name:      hpcvaaz.cv.hp.com
  338. Address:   15.255.72.15
  339. Contents:  X Window System libraries and utilities.
  340.            The /pub/700RX/released/b0502 contains the latest version
  341.            of the 700RX software.  There are subdirectories
  342.            for HP-UX hosts, Solaris and SunOS.
  343.            
  344. Name:      lut.fi
  345. Address:   157.24.10.8
  346. Contents:  Various in /pub/hpux and /pub/unix/hp-ux
  347.  
  348. Name:      nic.funet.fi
  349. Address:   128.214.6.100
  350. Contents:  Various in /pub/unix/arch/hpux
  351.  
  352. Name:      prep.ai.mit.edu
  353. Address:   18.71.0.38
  354. Contents:  The Free Software Foundation's GNU utilities, etc.
  355.  
  356. Name:      hybrid.irfu.se
  357. Address:   130.238.30.23
  358. Contents:  X11 archive and shared libraries, full imake support,
  359.            and all missing .h files for both X11R4 and R5, dvi2pcl in /pub.
  360.  
  361. Name:      geod.emr.ca
  362. Address:   ?
  363. Contents:  GNU stuff ported to HP-UX 9.x by Pierre Mathieu.
  364.  
  365. Name:      jazz.gsfc.nasa.gov
  366. Address:   ?
  367. Contents:  bathymetry, FFT, graph, pgplot, triangulation, sortroutine
  368.  
  369. Name:      jaguar.cs.utah.edu
  370. Address:   ?
  371. Contents:  FSF compiler/assembler/debugger tools. Code usually
  372.            has PA specific bugfixes/enhancements not yet in the 
  373.            official FSF releases.  Source and binaries available.
  374.            /dist/hpux-symtab.h has symbolic debug format documentation.
  375.            /dist/hpgdb.patch has a gdb patch for HP compilers.
  376.  
  377.            Currently available in the "dist" directory:
  378.  
  379.            GDB 4.11.u2     - Last update 12/04/93
  380.            HPGDB 4.11.u2   - Last update 12/04/93
  381.            GAS 2.2.u2      - Last update 12/04/93
  382.            GCC 2.5.6.u4    - Last update 12/04/93
  383.            LIBG++ 2.5.2.u2 - Last update 12/04/93
  384.  
  385.            Yes, you see gas-2.2; the first cut at a BFD based SOM assembler 
  386.            for the PA is ready for external use.  Release notes are in 
  387.            README.gas.
  388.  
  389.            The prebuilt binaries can be retrieved all at once from 
  390.            hpuxbin.tar.Z, or in pieces from the hpuxbin directory.
  391.  
  392. Subject: 3.9  Where can I get a "Demo CD" with software for HP-UX?
  393.  
  394. HP is putting together a new version of LaserPro, which will be
  395. available shortly.
  396.   
  397. Subject: 3.10  HP-UX patch information and mailing list.
  398.  
  399. To determine what patches are installed:
  400.  
  401. The standard patch installation will leave a directory in /system
  402. that is is name of the patch.  For example, PHSS_3259 creates
  403.  
  404. /system/PHSS_3259
  405.  
  406. $lsf /system/PHSS_3259
  407. CDFinfo     copyright   customize*  index       new/        orig/
  408.  
  409. The orig directory contains the modules that were replaced by the  patch and the
  410. new directory will contain any modules that were not installed for whatever
  411. reason.  
  412.  
  413. This can take up a lot of space, so you may want to archive  this directory and
  414. remove the new and orig sub-directories.  You may want to leave the customize
  415. file because it has a list of the modules replaced. To see the list do:
  416.  
  417.    grep Patch customize | grep -v \#
  418.  
  419. Another place to look is in /etc/filesets:
  420.  
  421. $ls /etc/filesets/PHSS*
  422. /etc/filesets/PHSS_1644  /etc/filesets/PHSS_2695  /etc/filesets/PHSS_3060
  423. ...
  424. ...
  425. /etc/filesets/PHSS_2686  /etc/filesets/PHSS_3032  /etc/filesets/PHSS_3328
  426.  
  427. If someone has removed the /system/PHSS* directories and the PHSS*
  428. entries in /etc/filesets, there is no easy way to tell what patches
  429. are installed.  You can tell if a given patch has been installed by
  430. comparing what(1) and sum(1) outputs with those given in the 
  431. PHSS_nnnn.text file. Refer to question 5.12 about kernel patches. 
  432.  
  433. How to get patches:
  434.  
  435. There are three ways to get patches.
  436.  
  437. If you have a support contract you can call the Response Center (800-633-3600)
  438. and have the patches sent to you on magnetic media.
  439.  
  440. If you have Basic support or Response Center support you can access the Support
  441. Line (support.mayfield.hp.com,192.6.148.19) and down load patches via ftp,
  442. uucp, or kermit. The access can be modem or internet.
  443.  
  444. Regardless of the support you have, you can get patches via e-mail.
  445. For instructions and a one line description of the current patches
  446. send e-mail to <hprc_patch@hprc.atl.hp.com> with a subject of
  447. p-list <system handle or organization name>
  448.  
  449. John Morris of the Atlanta Response Center posts a weekly list of  new patches
  450. on Mondays.  It tells what's  new and what patches are replaced by the new
  451. patches.  
  452.  
  453. Additionally, there is an HP-UX patch mailing list. Here is the announcement
  454. from Bart Muyzer <bartm@cv.ruu.nl>:
  455.  
  456. This is the official announcement of the "HP Patch Descriptions Mailing
  457. List". In short, the purpose of the mailing list is this:
  458.  
  459.  1. If somebody receives a patch from HP, he/she can post the *description* of
  460.     that patch to the mailing list.
  461.  2. Other members now know that a patch exists and can ask HP for "patch xxxx"
  462.     if they think they have a problem .
  463.  3. The patches itself are *never* posted!!!!!!!!
  464.  4. This list only exists as long as HP itself doesn't supply a list of 
  465.     available patches.
  466.  
  467. To reach ALL MEMBERS of the list, send e-mail to: <hpux-patch@cv.ruu.nl>
  468. This is what you might want to do if you receive a new patch :-)
  469.  
  470. To SUBSCRIBE, send e-mail to: <hpux-patch-request@cv.ruu.nl>
  471. PLEASE! Include your e-mail address in the message. Not all mailers generate
  472. proper return addresses.
  473.  
  474. Problems, questions, suggestions and the like should go to this address too.
  475. To ease searching for a patch to a specific problem, I've started to write a
  476. set of tools which I loosely call "pltools". Currently, there's one script
  477. (written in PERL) called plfind, that searches through an unofficial list of
  478. patch descriptions according to user supplied queries. Updates to this list
  479. and to the tools are posted on a semi-regular base. Also, each new member of
  480. the list receives the current distribution upon subscription.
  481.  
  482. The pltools-distribution is also available through anonymus FTP from
  483. ftp.csc.liv.ac.uk [138.253.42.172], directory /hpux/Sysadmin, file
  484. pltools-2.0.0.tar.Z.
  485.   
  486. Subject: 3.11  How can I send mail to an "hpdesk" address?
  487.  
  488. For a person whose DESK address is:
  489.   JANE DOE /HP1234/XY
  490.  
  491. Ignore the subentity (XY) and use the form:
  492.   jane_doe@hp1234.desk.hp.com
  493.  
  494. Send them a test message and tell them to make a note of the return address,
  495. as forming internet addresses on DESK is a little more complicated.  If
  496. there is an X.400 system between you and the DESK person, what you get back
  497. may look like a very strange internet address, but it generally works.
  498.  
  499. (Thanks to Bob Niland)
  500.   
  501. Subject: 3.12  What are the known issues with porting BSD-based programs to HP-UX?
  502.  
  503. Mike Peterson <system@alchemy.chem.utoronto.ca> periodically posts
  504. his list of BSD-HP tricks to comp.sys.hp. It is also archived on the
  505. iworks FTP site (mentioned above) as "hptricks".
  506.   
  507. Subject: 3.13  Who is this George Carter and how do I get rid of his posts?
  508.  
  509. George Carter is an ex-HP employee who makes frequent postings to comp.sys.hp
  510. concerning HP business practices.  If you wish to remove his posts and most of
  511. the related followups and if you are running rn or xrn, put the following 
  512. commands in your kill file:
  513.  
  514. /George Carter/a:j
  515. /gcarter@infoserv.com/a:j
  516.   
  517. Subject: 3.14+ What periodicals are available that focus on HP-UX?
  518.  
  519. o Interworks publishes The Works, a user group newsletter for Interworks
  520.   members.
  521.  
  522. o Interex publishes hp-ux/usr, an HP-UX focused newsletter.
  523.  
  524. o HP Professional (The Magazine for Hewlett-Packard Enterprise Computing)
  525.  
  526.   This magazine covers MPE, HP-UX, PCs, peripherals and Networking for
  527.   HP users.  Its focus is on both commercial as well as technical
  528.   computing. It is published by:
  529.           Cardinal Business Media, Inc.
  530.           101 Witmer Road
  531.           Horsham, PA 19044
  532.           (215) 957-1500     FAX: (215) 957-1050
  533.    email: simpson@cardinal.com (editor-in-chief)
  534.       
  535. o The HP Chronicle (The Independent Newspaper for HP Computer Users)
  536.     
  537.   This tabloid-sized newspaper contains news from HP and other vendors 
  538.   of compatible hardware, software and peripherals. Published by:
  539.                Publications and Communications, Inc
  540.                12416 Hymeadow Drive
  541.                Austin, TX  8750-1896
  542.                (512) 250-9023    Fax: (512) 231-3900
  543.                email: {cs.utexas.edu, execu, texbell}!pcinews!wks
  544.                Compuserve: 76011,307
  545.                MCI mail: PCI
  546.                EasyLink: 62755060
  547.  
  548. o HP/Apollo Workstation
  549.  
  550.   A magazine that focuses specifically on HP/Apollo workstations.
  551.   Published by PCI (same as HP Chronicle).
  552.   
  553. o Open Systems Today (general Unix and other "open systems" weekly)
  554.   has a regular "HP Focus" section.
  555.   
  556. o Unix Review covers general Unix topics monthly.
  557.  
  558. (Thanks to Bill Hassell, HP, for most of this)
  559.   
  560. Subject: 4. THIRD PARTY VENDORS
  561.  
  562. Subject: 4.1  Third party vendors for RAM.
  563.  
  564. The following vendors are listed in alphabetical order. No guarantees
  565. are made regarding compatibility or relative merit of the vendors.
  566.  
  567. Camintonn                          Clearpoint Research Corporation
  568. 22 Morgan                          1000 E. Woodfield Road, Suite 102
  569. Irvine, CA 92718                   Schaumburg, IL 60173
  570. (800) 843-8336                     (708) 619-9227
  571. (714) 454-6500
  572.  
  573. Concorde Technologies              Dataram
  574. 7966 Arjons Dr. B-201              PO Box 7528
  575. San Diego, CA 92126                Princeton, NJ 08543-7528
  576. (800) 359-0282                     (800) DATARAM
  577. (619) 578-3188                     (800) 799-0071
  578.  
  579. Digitial Micronics                 Eventide
  580. 2075 Corte Del Nogal               1 Alsan Way
  581. Unit N                             Little Ferry, NJ 07643
  582. Carlsbad, CA 92009                 (201) 641-1200
  583.  
  584. Helios Systems                     Herstal Automation
  585. 1996 Lundy Ave                     3171 West Twelve Mile Rd.
  586. San Jose, CA 95131                 Berkley, MI 48072
  587. (408) 432-0292                     (313) 548-2001
  588. (800) 366-0283
  589.  
  590. IEM                                Infotek Systems
  591. P.O. Box 1889                      625 South Lincoln
  592. Fort Collins, CO 80522             Suite 204
  593. (800) 321-4671                     Steamboat Springs, CO 80487
  594. (303) 221-3005                     (800) 767-1084
  595.  
  596. Intelligent Interfaces             ISA Ltd
  597. P.O. Box 1486                      1-1-5 Sekiguchi
  598. Stone Mountain, GA 30086-1486      Bunkyo-Ku
  599. (800) 842-0888                     Tokyo 112 Japan
  600.                                    81-3 (5261) 1160
  601.                                    US Office (Texas)
  602.                                    (713) 493-9925
  603.  
  604. Kelly Computer Systems             Kingston Technology Corporation
  605. 1101 San Antonio Rd.               17600 Newhope Street
  606. Mountain View, CA 94043            Fountain Valley, CA 92708
  607. (415) 960-1010                     (714) 435-2600
  608.  
  609. Martech                            Merida Systems
  610. 1151 W. Valley Blvd.               (617) 933-6790
  611. Alhambra, CA 91803-2493
  612. (800) 582-3555
  613. (818) 281-3555
  614.  
  615. MDL Corporation
  616. 15301 NE 90th St.
  617. Redmond, WA 98052
  618. FAX (206)861-6767
  619. (800)800-3766
  620. (206)861-6700
  621.  
  622. Newport Digital                    R Squared
  623. 14731 Franklin Avenue              11211 E. Arapahoe Rd., Suite 200
  624. Suite A                            Englewood, CO 80112
  625. Tustin, CA 92680                   (303) 799-9292
  626. (714) 730-3644                     (800) 777-3478
  627.  
  628. (Thanks to Roy McMorran <mcmorran@ll.mit.edu>)
  629.   
  630. Subject: 4.2  Third party vendors for peripherals
  631.  
  632. Vendor              Products
  633. ------              --------
  634. MDL Corporation     Disk, tape, optical, jukebox, EISA expansion, RAID, others.
  635. 15301 NE 90th St.
  636. Redmond, WA 98052
  637. FAX (206)861-6767
  638. (800)800-3766
  639. (206)861-6700
  640.   
  641. Subject: 5. UTILITIES
  642.  
  643. Subject: 5.1  ASCII to Postscript converter.
  644.  
  645. You can get an ASCII to Postscript converter from ftp.uu.net in the file
  646. /usenet/comp.sources.misc/volume10/a2ps3.Z. Additionally, nenscript is available
  647. from various FTP sites.
  648.   
  649. Subject: 5.2  How do I make perl on HP-UX?
  650.  
  651.    Reply like this to Configure:
  652.  
  653.    1. When it asks for optimization flags answer
  654.         +O1 if you have HP-UX 7.05 or less
  655.         -O  if you have HP-UX 8.0 or later.
  656.    2. When it asks for additional flags to cc answer
  657.         -DJMPCLOBBER
  658.    3. When it asks for additional libraries answer
  659.     -lndbm -lm    (ignore the other libraries Configure finds).
  660.       You can also safely add -lBSD if you wan't BSD signal semantics.
  661.    4. When it asks if you wan't to use perl's malloc answer
  662.     y
  663.       If you have HP-UX 8.07 or later you may choose to answer no to this since
  664.       that malloc is OK.
  665.    5. When perl asks on which boundarie a double must be aligned answer
  666.     8    if you are on a 9000/800 or 9000/700 series machine (HP-PA
  667.          architecture).
  668.     2    otherwise (Motorola 68k architecture)
  669.   
  670. Subject: 5.3! What is the status of the various gnu items on HP-UX?
  671.  
  672. Pierre Mathieu <mathieu@geod.emr.ca> periodically posts a list to comp.sys.hp; 
  673. the last revision is 2.3. Jeff Law of the University of Utah maintains
  674. an archive on jaguar.cs.utah.edu of the latest PA-RISC ported
  675. compiler tools; see question 3.8 above for details.
  676.   
  677. Subject: 6. X WINDOW SYSTEM, MOTIF, AND HP-VUE
  678.  
  679. Subject: 6.1  X11 libraries (Athena, etc.) and utilities (imake, etc.).
  680.  
  681. As you may have noticed, HP does not ship a "full" set of X11 libraries and
  682. include files, and does not provide imake or associated tools. There is a HP
  683. maintained, but UNSUPPORTED, set of X11R4 libraries and utilities for the HP
  684. 9000 Series 300, 400, 700, and 800.  You can get the libraries, include files,
  685. and config files (imake) via anonymous FTP from hpcvaaz.cv.hp.com (15.255.72.15)
  686. in the directory pub/MitX11R4/libs.s*00.tar.Z. This is also archived on the
  687. iworks node as mentioned above. HP has also submitted X11R5 sources to the
  688. iworks node as mentioned above. And, Bo Thide has X11R4 and R5 support available
  689. via anon. FTP as mentioned above.
  690.   
  691. Subject: 6.2  How can I display an image on the root window with HP-VUE?
  692.  
  693. Set Vuewm*backdrop*image:   none. Note that there is an explicit pick for this
  694. in the Style Manager with HP-VUE 3.0. When the backdrop is clear, you can use
  695. xloadimage, xsetroot, xv, or the like to display the image of your choice.
  696.   
  697. Subject: 6.3  How do I get a scroll bar on hpterms?
  698.  
  699. Set the following resources:
  700.  
  701. HPterm*scrollBar:    TRUE
  702. HPterm*saveLines:    1024
  703.  
  704. or some other other arbitrarily large number.  To do this interactively, use
  705. "hpterm -sb -sl 1024". You can also set these in an app-default file
  706. (/usr/lib/X11/app-defaults/HPterm). You can also set saveLines to something
  707. like "4s", which indicates four screens.
  708.   
  709. Subject: 6.4  How can I put a title in my hpterm titlebar?
  710.  
  711. Here is a two line program that you might find useful:
  712.  
  713. /* Quick and dirty program to put argv[1] in the title bar of an hpterm
  714.    Tom Arons March 1992
  715. */
  716. #include <string.h>
  717. main(argc,argv)
  718.         int argc; char **argv;
  719. {
  720.         printf("\033&f0k%dD%s", strlen(argv[1]), argv[1]);
  721.         printf("\033&f-1k%dD%s", strlen(argv[1]), argv[1]);
  722. }
  723.  
  724. An alternative is:
  725.  
  726. #!/bin/sh
  727. LENGTH=`strlen $1`
  728. echo "&f0k${LENGTH}D$1\c"
  729.  
  730. In case in gets mangled, that's ESC between the first quote and the f0k.
  731.  
  732. strlen, in case you don't have it, comes from:
  733.  
  734. #include <stdio.h>
  735.  
  736. main(argc, argv)
  737.    int argc;
  738.    int *argv[];
  739. {
  740.    if (argc != 2)
  741.       exit(0);
  742.    printf("%d\n", strlen(argv[1]));
  743. }
  744.  
  745. (Thanks to Tom Arons <arons@ash.eecs.ucdavis.edu> and John T. Beck, HP.)
  746.   
  747. Subject: 6.5  How come my hpterms keep going away by themselves?
  748.  
  749. You are probably using the C Shell (/bin/csh) and have autologout set (it is
  750. set to 60 minutes by default).  Put an "unset autologout" in your ".cshrc".
  751.  
  752. If you are using the korn shell it is probably due to the value set for
  753. the shell variable TMOUT.  Set it to 0 (infinite timeout).
  754.  
  755. (Thanks to Jim Sharpe <jms@spatial.com> for the Korn Shell information.)
  756.   
  757. Subject: 6.6  How come my HP X/Motif clients take a LONG time to display on a Sun?
  758.  
  759. The problem is with the OW3 server.  You can request OW3 patch 100444-35 (or
  760. whatever is the current replacement) from Sun to fix the problem. Supposedly
  761. this has been rolled into OW 3.0.1. A workaround is to set the X resource
  762. *useColorObj: False.
  763.   
  764. Subject: 6.7  How can I get my login stuff to work under HP-VUE?
  765.  
  766. When you login  via VUE, VUE  sources  ~/.vueprofile  *INSTEAD  OF* your .login
  767. (csh),  .profile  (sh/ksh),  and other  startup  files.  Whatever actions  are
  768. taken in  ~/.vueprofile  are  persistent  across any  children started  by VUE.
  769. Meaning that if you  symbolic  link  ~/.vueprofile  to your ~/.profile,  then
  770. VUE will source your  ~/.profile  before  starting the window system, and all
  771. children  (hpterms/xterms  and their  interactive shells) will inherit this
  772. environment (prompt variables et al).
  773.  
  774. Documentation indicates your ~/.vueprofile should contain either csh, or sh/ksh
  775. syntax, depending upon what your login shell is.
  776.  
  777. When csh is my login shell, I set my  ~/.vueprofile  to contain only two
  778. lines:
  779.  
  780.     if ( -f /etc/csh.login ) source /etc/csh.login
  781.     if ( -f ~/.cshrc ) source ~/.cshrc
  782.  
  783. When sh/ksh is my login shell, I set my ~/.vueprofile to contain only two
  784. lines:
  785.  
  786.     test -f /etc/profile && . /etc/profile
  787.     test -f ${HOME}/.profile && . ${HOME}/.profile
  788.  
  789. So, before  starting the window  manager and any clients, VUE makes sure that
  790. all my shell startup files are sourced and all the variables I want in my shell
  791. environment are already there and waiting for me.
  792.  
  793. (Thanks to Steve Jumonville, HP)
  794.   
  795. Subject: 6.8  How can I get console messages to go to an hpterm?
  796.  
  797. You can avoid console messages writing to your graphics planes and trashing your
  798. VUE session by starting an hpterm and designating it to receive console
  799. messages, and to de-iconify, when console messages are received.  Put something
  800. like this in your "vue.session*" file under your ~/.vue directory (line wrapped
  801. for readability):
  802.  
  803. # Start up the  Terminal  Console as iconic,  and raise it if any output
  804.  
  805. vuesmcmd -cmd "hpterm -C -iconic -ls -sb -sl 256 -name Console -T Console 
  806. -xrm *mapOnOutputDelay:\ 30 -xrm *mapOnOutput:\ True 
  807. -xrm Console*clientFunctions:\ -close -xrm *workspaceList:\ all"
  808.  
  809. (Thanks to Steve Jumonville, HP)
  810.   
  811. Subject: 6.9  What happened to the vuewm key accelerators at VUE 3.0?
  812.  
  813. Well, we don't really know. Here's how to set them, though.
  814. Add an entry like this (you can, of course, customize it to your
  815. liking) to your $HOME/.vue/vuewmrc file:
  816.  
  817. Menu VueWindowMenu
  818. {
  819.     "Restore"          _R        Alt<Key>F5         f.normalize
  820.     "Move"             _M        Alt<Key>F7         f.move
  821.     "Size"             _S        Alt<Key>F8         f.resize
  822.     "Minimize"         _n        Alt<Key>F9         f.minimize
  823.     "Maximize"         _x        Alt<Key>F10        f.maximize
  824.     "Lower"            _L        Alt<Key>F3         f.lower
  825.      no-label                                       f.separator
  826.     "Occupy..."        _O        Alt<Key>O          f.workspace_presence
  827.     "Occupy all"       _a        Alt Shift<Key>O    f.occupy_all
  828.      no-label                                       f.separator
  829.     "Remove from WS"   _e        Alt Shift <Key>F4  f.remove
  830.     "Close"            _C        Alt<Key>F4         f.kill
  831. }
  832.  
  833. And then add this resource:
  834.  
  835. Vuewm*windowMenu:       VueWindowMenu
  836.  
  837. And restart the window manager.
  838.  
  839. (Thanks to Bill Bennett, HP)
  840.   
  841. Subject: 6.10  How come I can no longer disable the caps lock key with xmodmap?
  842.  
  843. A common activity in the past has been to disable the, shall we say, "placement
  844. challenged" caps lock key on the ITF keyboard using a simple xmodmap script.
  845. This no longer works consistently at X11R5/VUE 3.0; the best solution so far:
  846.  
  847. In file ~/.vue/sessions/lite/vue.session:
  848.  
  849. /usr/bin/X11/xmodmap - << EOF
  850.         clear lock
  851.         keycode 55 = Control_L
  852.         keycode 86 = Caps_Lock
  853.         keycode 39 = grave asciitilde guillemotleft guillemotright
  854.         keycode 71 = Escape
  855.         add Lock = Caps_Lock
  856.         add Control = Control_L
  857. EOF
  858.  
  859. This works until logout/login, when Caps Lock toggles the control feature, even
  860. though 'xmodmap -pm' shows that Lock has no assignments. You have to restart the
  861. server to reset completely, which can be automated by setting the value         
  862.  
  863. Vuelogin*terminateServer:   True
  864.  
  865. in the file /usr/vue/config/Xconfig.
  866.   
  867. Subject: 6.11  How come vi behaves strangely in xterms at 9.01?
  868.  
  869. Apparantly initial invocation of xterm under csh does not set LINES/COLUMNS
  870. correctly, and vi doesn't handle that real well. One workaround is to put the
  871. following in .cshrc:
  872.  
  873. if ( $?WINDOWID ) then
  874.    set noglob;eval `/usr/bin/X11/resize`;unset noglob
  875. endif
  876.  
  877. PHSS_2753 addresses this problem.
  878.  
  879. (Thanks to Raymond Nijssen for the workaround.)
  880.   
  881. Subject: 6.12  How do I disable HP-VUE?
  882.  
  883. There have been several recommendations on this base thread. Here is one that is
  884. documented for X terminals (it works for workstations too). This takes advantage
  885. of the fact that Vue sets several environment variables for the session, one of
  886. which is USER.
  887.  
  888. Modify the /usr/lib/X11/vue/Vuelogin/Xsession (pre-9.0 HPUX) or the
  889. /usr/vue/config/Xsession (9.0 HPUX and later) file:
  890.  
  891.     1) Go to the portion that contains the coment "Determine the startup
  892.        if the user didn't specify one." -- approximately line 295 in an
  893.        unaltered version of the file.
  894.  
  895.     2) Add a following case statement to fit your needs. It should look
  896.        something like:
  897.  
  898.                    case $USER in
  899.                       martha | joe) startup=${HOME}/.x11start''
  900.                    esac
  901.  
  902. You can add as much or little intelligence to this as you like. The above
  903. assumes that the users' have a .x11start script in their home directory, that
  904. its permissions are correct, etc. You can build in a fallback machanism. For
  905. example, the script will check to see if the user has a .x11start script and if
  906. not, to fallback to /usr/lib/X11/sys.x11start. To see an example of this logic,
  907. do a more(1) on /usr/bin/x11start.
  908.  
  909. The above case statement is documented in Ch 2 of the "HP 700/RX System
  910. Administrators Guide".
  911.  
  912. (Thanks to Bill Morrison, HP)
  913.   
  914. Subject: 6.13  What's a good termcap entry for hpterm?
  915.  
  916. Although it is not supported for hpterm use, the 262x entry in
  917. /etc/newconfig/termcap will work.
  918.  
  919. (Thanks to Frank Slootweg, HP)
  920.   
  921. Subject: 6.14  My screen is wedged. What should I do?
  922.  
  923. One thing you can try is to unplug the keyboard for ~5 seconds. Note that
  924. you will have to rerun xset -r to get autorepeat to work after doing this.
  925.  
  926. (Thanks to Paul Liebert, HP.)
  927.   
  928. Subject: 6.15  How can I get an X client to come up in an alternate workspace?
  929.  
  930. You can try:
  931.  
  932. client -xrm "*workspaceList: <name>"
  933.  
  934. (Thanks to <finger@rz.uni-karlsruhe.de>)
  935.   
  936. Subject: 6.16  Where did xline go at 9.01?
  937.  
  938. Well, we don't know where it went, but it's gone, and you can't use the
  939. 8.07 version.
  940.   
  941. Subject: 6.17  How can I get HP-VUE to not override colors?
  942.  
  943. The Motif library on HP-UX has extra code added to make the default colors
  944. follow the color schemes that the user selects with the vuestyle controls.  This
  945. extra code makes trouble for some applications which don't want this unique and
  946. unexpected behavior.
  947.  
  948. You can prevent the entire color scheme mechanism from being used in an
  949. application by setting "*useColorObj: False" for the application before creating
  950. the first widget.  This can be done by adding the resource to the application
  951. defaults, the fallback resources, or as an extra "-xrm" "*useColorObj: False"
  952. args pair in the argv and argc parameters passed to XtAppInitialize.  If you set
  953. the resource in xrdb it would be best to set it for only specific applications
  954. like "MyApp*useColorObj: False".
  955.  
  956. Setting the useColorObj resource could make programs core dump on some 8.0*
  957. systems.  There is a patch that corrects the core dump.
  958.  
  959. You can use the vue colors and prevent the specific difference between dialog
  960. colors vs.  non-dialog colors by setting a resource that specifies the behavoir
  961. of the color scheme mechanism.  To force the dialogs to use the same colors as
  962. the other windows set the following resources in your app_defaults file or
  963. fallback settings-
  964.  
  965. *primaryColorSetId: 3 
  966. *secondaryColorSetId: 3
  967.  
  968. This sets the dialog or "secondary" colors to the same set as the primary
  969. colors.  This is discussed in the "HP VUE 3.0 User's Guide" in chapter 26.
  970.  
  971. (Thanks to Mike Stroyan, HP.)
  972.   
  973. Subject: 6.18  How can I override the system default printer in vuepad?
  974.  
  975. cp /usr/vue/types/vuepad.vf $HOME/.vue/types
  976.  
  977. Edit the file and change the ACTION PRINT_PR_VPAD to:
  978.  
  979. # The PRINT_PR_VPAD action paginates its arguments using pr(1) and prints
  980. # them with lp(1).  It uses arg 2 for a title.  It then removes the temp
  981. # file.  This action is used by the client vuepad.
  982. ACTION PRINT_PR_VPAD
  983.         TYPE            COMMAND
  984.         WINDOW-TYPE     NO-STDIO
  985.         EXEC-HOST       %LocalHost%
  986.         EXEC-STRING     /bin/sh -c "pr -h %Arg_2% %(File)Arg_1% | \
  987.                                 lp -d%"Printer:"%; rm %(File)Arg_1%"
  988.                                    ^^^^^^^^^^^^^^
  989. END
  990.  
  991. This will cause a dialog box to appear to prompt you for a printer name.
  992. However,  if you set LPDEST in your .vueprofile,  then lp will use that
  993. value instead of the system default.
  994.  
  995. (Thanks, Dan Mercer, <damercer@mmm.com>)
  996.   
  997. Subject: 7. OPERATING SYSTEM
  998.  
  999. Subject: 7.1  Can I have filenames longer than 14 chars?
  1000.  
  1001. Yes, change to long filenames using /etc/convertfs. You can't go back, though.
  1002. Here's how to check if an existing filesystem has long filenames enabled:
  1003.  
  1004. # tunefs -v /dev/rdsk/XXX | grep magic
  1005. magic   95014   clean   FS_OK   time    Tue Mar 23 14:13:01 1993
  1006.        \__ if = 95014 then long filenames
  1007.         \__ if = 11954 then short filenames
  1008.         
  1009. (Thanks to Ken Burke.)
  1010.   
  1011. Subject: 7.2  How can I tell what filesets have been loaded on my system?
  1012.  
  1013. Check the /etc/filesets directory. There is a file there for each fileset that
  1014. has been loaded that summarizes the files in that fileset.  This directory is
  1015. used by the /etc/update, /etc/updist, /etc/netdistd, and /etc/rmfn utilities
  1016. for loading and unloading software.
  1017.   
  1018. Subject: 7.3  How do I safely remove software from my system?
  1019.  
  1020. The _only_ safe way to remove HP software is to use /etc/rmfn.
  1021.   
  1022. Subject: 7.4  What's the scoop on HP-UX 9.0/9.01?
  1023.  
  1024. HP-UX 9.0 and 9.01 have now officially released from HP. 9.0 for 700s was a
  1025. transition release intended to support early shipments of 715 hardware. The 9.01
  1026. Release Notes state that 9.0 and 9.01 have the same API and ABI. They also state
  1027. that 9.01 is required for the 725, 735/755, 747i w/VME, 745i w/EISA, 742rt and
  1028. 742i, PA-RISC upgrades for 425s and t, 1G, 2G, and 525M add-on disks, and CRX48Z
  1029. graphics. 9.01 also includes a software workaround for a low-probability bug in
  1030. the PA7100 processor, support fast/wide SCSI, has a new version of IOMAP, and a
  1031. new version of Imageview.
  1032.   
  1033. Subject: 7.5  How come HP-UX doesn't support NFS root access?
  1034.  
  1035. HP-UX versions previous to 9.0/9.01 do not support NFS root access to mounted
  1036. file systems. This because they are at an old revision of NFS. You *can* hack
  1037. your kernel to provide it, but it's dangerous, unsupported, and a security
  1038. hole. 9.0/9.01 supports full NFS 4.1 functionality, including NFS root.
  1039.   
  1040. Subject: 7.6  Can I get HP-UX to try DNS ahead of NIS?
  1041.  
  1042.         if the address is the local node's IP add., then NIS or /etc/hosts
  1043.                 is used because the IP is reachable and named is not running.
  1044.         if the address is the name server's IP add.,
  1045.                 if the address is reachable but named is not running, then
  1046.                         NIS or /etc/hosts is used (the same reason)
  1047.                 if the address is not reachable (eg the node is down) then
  1048.                         at 7.0 NIS or /etc/hosts is used;
  1049.                         at 8.0 resolution fails
  1050.                         at 9.x resolution fails.
  1051.                         
  1052. It is not clear why "resolution fails" at 8.x and 9.x. 
  1053.  
  1054. If there are more than one IP address in resolv.conf, no NIS or /etc/hosts
  1055. fallback will be used after all addresses are tried and failed.
  1056.  
  1057. As for additional configuration ... the answer is NO, you can't get it
  1058. to try NIS before DNS.
  1059.  
  1060. (Thanks to Jim O'Shea, HP, and James Thomas, nmsu.edu for additional 9.x info.)
  1061.   
  1062. Subject: 7.7  How come the LOGnnnn files in /usr/adm keep growing and growing?
  1063.  
  1064. The LOGnnnn files in /usr/adm (8.x except 8.02) or /usr/adm/diag (8.02 and 9.0)
  1065. are the diagnostic event log files.  Kernel drivers send data to the diagnostic
  1066. system when certain events, usually hw/sw problems, occur.  The diagnostic
  1067. daemons (DIAGMON, DEMLOG, MEMLOGP, DIAGINIT) log the data to these files.  There
  1068. is also a MEMLOG file in the same directories to which MEMLOGP logs memory
  1069. errors.  HP Support uses the logged data to diagnose problems and to predict
  1070. hardware failure.
  1071.  
  1072. If the LOGnnnn files are growing (other than creating a new 40 byte file
  1073. each time the system reboots) then something is wrong with the system.
  1074. Often what is wrong is that the diagnostics system was improperly
  1075. installed.  Check that the following files exist for each node:
  1076.  
  1077.     /etc/mknod /dev/config c 69 0x000000
  1078.     /etc/mknod /dev/dmem   c 27 0x000000
  1079.  
  1080. There are a number of other device files (see /system/CORE-DIAG/customize) but I
  1081. don't believe they are needed for the logging aspect of diagnostics.
  1082.  
  1083. If you examine the contents of the log files that may give a clue as to what's
  1084. wrong.  However, the output is intended for HP Support and factory consumption
  1085. and may not be very intelligible to customers.  To examine a log file:
  1086.  
  1087.     $ sysdiag
  1088.     DUI> logtool
  1089.     LOGTOOL> list log=nnnn
  1090.     LOGTOOL> exit
  1091.     DUI> exit
  1092.  
  1093. where nnnn is the numeric part of the /usr/adm/diag/LOGnnnn file name. The
  1094. utility logtool is safe to use as far as I know but don't run any other
  1095. utilities at the DUI prompt--you could easily adversely affect your system.  If
  1096. you have a support contract I recommend you get them to review your log files.
  1097. There is an extensive help command within sysdiag and logtool.
  1098.  
  1099. If you want to turn off diagnostic logging just remove execution permission for
  1100. the file /usr/diag/bin/DIAGINIT.  Note that if you do this and your system has a
  1101. problem later, not having the records logged to diagnostics by the kernel will
  1102. hamper resolution of the problem.
  1103.  
  1104. Existing log files can be deleted at the cost of losing the data they contain.
  1105. The highest numbered log file is the active log file and should not be deleted.
  1106.  
  1107. There is a sysdiag(1M) man page.  As of 9.0 there is a diaginit(1M) man page
  1108. which documents the various daemons.
  1109.  
  1110. (Thanks to Wayne Krone of HP)
  1111.   
  1112. Subject: 7.8  How come I can't lock mail or other files on a Sun?
  1113.  
  1114. Believe it or not, Sun's lockd is broken at 4.1.x. The proper Sun patch
  1115. number is Patch-ID# 100075-09, called the "lockd jumbo patch".
  1116.   
  1117. Subject: 7.9  What are the known issues with HP-UX 8.07?
  1118.  
  1119.  abs() is defined in two places for C++, stdlib.h and math.h.
  1120.  the IDL includes do not support C++ (fixed with patch PHNE_0974).
  1121.  PostScript printing from Datebook (week or month) fails.
  1122.  Datebook "View Year" display font is goofy looking and doesn't line up.
  1123.  statd can hang when accessing Apollo objects (fixed with PHNE_0690).
  1124.  automounter crashes when -hosts is specified (fixed with PHNE_0936).
  1125.  virtual memory performance problems (fixed with PHKL_1065).
  1126.   
  1127. Subject: 7.10  Why are mail files in /usr/mail are owned by daemon instead of the recipient?
  1128.  
  1129. The mail delivery agent /bin/rmail needs to be able to chown(2) these files.
  1130. It cannot do so if you have removed the privilege CHOWN (see setprivgrp(1m);
  1131. removing CHOWN is recommended to prevent cheating on disk quotas).  To get 
  1132. around this, noting that /bin/rmail runs setgid to group mail, you can grant 
  1133. privilege CHOWN to group mail only by inserting the line "mail CHOWN" in 
  1134. /etc/privgroup. The change takes effect on the next reboot, or immediately 
  1135. if you execute the command "setprivgrp -f /etc/privgroup".
  1136.  
  1137. (Thanks to Jim Richardson <jimr@maths.su.oz.au>)
  1138.   
  1139. Subject: 7.11  How can I tell if I need more than a 2-user license?
  1140.  
  1141.     There are several fundamental things to remember about HP-UX licensing:
  1142.  
  1143.     o Series 700 and Series 800 users are now counted the same way
  1144.     o Display console counts as one user
  1145.     o Each ASCII terminal counts as a user, regardless of how it is
  1146.     connected
  1147.     o The LAN connection counts as one user
  1148.  
  1149.     Ascii Terminals
  1150.  
  1151.     The simple rule to remember is any ASCII terminal that is logged in counts
  1152.     as a user.
  1153.  
  1154.     ASCII terminal connections can come in several different forms:
  1155.  
  1156.     o Direct-connected via a serial terminal multiplexer
  1157.     o Connected via Data Terminal Concentrators (DTCs) or via
  1158.     terminal servers
  1159.     o Personal Computers (PCs) acting in terminal emulation mode,
  1160.     whether connected via serial line or via Local Area Network (LAN)
  1161.  
  1162.     X-terminals and workstations
  1163.  
  1164.     When a customer buys an X-terminal or workstation from HP or from 
  1165.     another vendor, HP acknowledges that the customer has also bought a 
  1166.     single Unix license-to-use.
  1167.  
  1168.     Therefore, the customer has the right to an unlimited number of logins and
  1169.     terminal windows _over_the_LAN_ to a Series 700 or Series 800 from either 
  1170.     X-terminals or workstations. These logins can be via X terminal windows
  1171.     (_hpterm_ and _xterm_), _telnet_, _rlogin_, or other means.
  1172.  
  1173.     PC's that use X-terminal emulation software such as XView each count the
  1174.     same as an X terminal. This is because the PC essentially becomes an 
  1175.     X-terminal when it is running the X server software. Therefore, when a PC
  1176.     is running an X-terminal emulator, the PC has the right to an unlimited
  1177.     number of logins to an HP-UX system.
  1178.  
  1179.     Exceptions
  1180.  
  1181.     The policy of counting DTC users is new for the Series 700. Customers who
  1182.     purchased Series 700 systems prior to HP-UX 9.0 shipments (late calendar 
  1183.     1992) and use them as host systems for multiple DTC- connected terminals, 
  1184.     may continue to use those configurations without buying a license upgrade. 
  1185.     An update to HP-UX 9.0 will not lock out these configurations.
  1186.     
  1187. (Thanks to Tony Hart, HP)
  1188.   
  1189. Subject: 7.12  How can I tell what patches are in the kernel?
  1190.  
  1191. "what /hp-ux" will present you with patch strings, which you can compare with
  1192. the strings called out in the patch text file. A typical patch string is:
  1193.  
  1194. PATCH_8.07 nfs_vnops.c 1.15.61.4 92/01/10 PHKL_0736 PHKL_0942
  1195.  
  1196. which shows that PHKL_0942 has been applied to the kernel.
  1197.   
  1198. Subject: 7.13  How come I have to hit return after control-d in the Korn shell?
  1199.  
  1200. You need to set the "viraw" option.
  1201.   
  1202. Subject: 7.14  How do I boot into single user mode?
  1203.  
  1204. Press ESC to stop the auto-boot.
  1205. When the list of boot devices is presented:
  1206.  
  1207. b PX ISL    (where X is your root disc)
  1208.  
  1209. And at the ISL> prompt:
  1210.  
  1211. ISL>  hpux -iS disc(;0)/hp-ux
  1212.  
  1213. The '-iS' are the flags to init which says come up single user.  The rest of
  1214. the command is what the bootprocess does automatically.
  1215.  
  1216. (Thanks to Stuart Jarriel <stuart@TIVOLI.COM>.)
  1217.   
  1218. Subject: 7.15  How come my Korn shell login hangs?
  1219.  
  1220. This can happen if the user's home directory is across an NFS mount point; you
  1221. can workaround the problem by completely unprotecting (chmod 777) .sh_history,
  1222. or by pointing HISTFILE to somewhere local.
  1223.   
  1224. Subject: 7.16  How can I avoid those annoying copyright notices on login?
  1225.  
  1226. The following code in /etc/profile prints the copyright notice the first
  1227. time each user logs in:
  1228.  
  1229.     NUMLOGINS=`/etc/last | grep $LOGNAME | wc -l`
  1230.     if [ $NUMLOGINS -lt 2 ]
  1231.     then
  1232.         cat /etc/copyright
  1233.     fi
  1234.     
  1235. And, for /etc/csh.login:
  1236.  
  1237. set NUMLOGINS=`/etc/last | grep $LOGNAME | wc -l`
  1238. if ( $NUMLOGINS<2 ) cat /etc/copyright
  1239.  
  1240. (Actually, each user will get the copyright on their first login after each 
  1241. time the /etc/wtmp file is pruned, but that needn't be often.)
  1242.  
  1243. (Thanks to Paul Gootherts, <pdg@cup.hp.com> and Steve Dum, 
  1244. <steve_dum@mentorg.com>)
  1245.   
  1246. Subject: 7.17  How can I turn off quota checking?
  1247.  
  1248. You can disable the quota binary from executing:
  1249.  
  1250.     chmod -x /usr/bin/quota 
  1251.     
  1252. This disables quotas for 8.x systems; for 9.x systems you need to also
  1253. disable edquota:
  1254.  
  1255.     chmod -x /etc/edquota
  1256.  
  1257. (Thanks to Eric Hamilton, <hamilton@cup.hp.com>)
  1258.   
  1259. Subject: 7.18! What are the issues with HP-UX 9.01?
  1260.  
  1261. Some of the things that people have seen with HP-UX 9.01:
  1262.  
  1263. rmfn of the NW-7XX fileset leaves behind an empty directory (/etc/conf/netware)
  1264. and subsequent kernel builds (for patch install) fails until this directory is 
  1265. removed by hand.
  1266.  
  1267. When the length of a macro expansion exceeds an unspecified size, cpp.ansi 
  1268. leaves some macros unexpanded in the output. Patched by PHSS_2199.
  1269.  
  1270. The linker does not traverse shared library search paths itself. Patched
  1271. by PHSS_3011.
  1272.  
  1273. Various X11 problems have been reported including drawing problems
  1274. and memory leaks. Get the latest X server (currently PHSS_3235).
  1275.  
  1276. Various serious C compiler problems have been fixed with PHSS_3015.
  1277.  
  1278. Memory leaks can occur and lock up a system; patch PHKL_2348 may fix it.
  1279.  
  1280. catman will core dump; patch PHCO_2183 fixes it.
  1281.  
  1282. There has been some controversy over the implementation of the dynamic buffer
  1283. cache at 9.01; people have been seeing situations where the cache has grown
  1284. quite large and the syncer takes over the system swapping it out. You can limit
  1285. the growth of the buffer cache to physical memory (default) with patch
  1286. PHKL_2449, or you can disable it altogether with the "bufpages" kernel
  1287. parameter; set bufpages to 10% of your physical memory, e.g. if you have an 
  1288. S700 with 16M of memory, set bufpages to:
  1289.  
  1290. bufpages = 16,000 K physical ram / 4 K per page / 10 (percent ) = 400
  1291.  
  1292. (Thanks to various people, too numerous to mention.)
  1293.   
  1294. Subject: 7.19  Why does chown behave differently at 9.01?
  1295.  
  1296. chown(2) on symbolic links now chown's the file which the link is pointing to
  1297. instead of the link itself. If you want to go back to the olf behavior, you
  1298. can set the 'hpux_aes_override' parameter to '1'.  This can be done by
  1299. modify /etc/master ('hpux_aes_override AES_OVERRIDE      1') and changing
  1300. the dfile 'hpux_aes_override  1'.  Or by adb'ing the kernel;
  1301. adb -w /hp-ux /dev/kmem
  1302. hpux_aes_override?W 1       # For the /hp-ux
  1303. hpux_aes_override/W 1       # For the current kernel
  1304. $q
  1305.  
  1306. (Thanks to Trond Haugen, HP)
  1307.   
  1308. Subject: 7.20  How can I track log files and core files?
  1309.  
  1310. At 9.01, SAM allows you to track all standard log files and trim them if
  1311. desired. It will also find all core files on a file system and allow you
  1312. to get rid of them.
  1313.   
  1314. Subject: 7.21  How much memory can a process use?
  1315.  
  1316. The first limiter is probably swap space.  The combined virtual data space
  1317. of all running processes can't exceed swap size. Run /etc/swapinfo -t and 
  1318. look at the total line.  That's all you have left.
  1319.  
  1320. For FORTRAN programs:
  1321. --------------------
  1322. 1) Increase the kernel's stack limit (maxssiz).  You can do this with
  1323.    sam (Kernel Configuration-> Modify Operating System Parameters->
  1324.    Process Parameters).  The practical limit for user stacks is around
  1325.    80 Mbytes.  Your system probably has an 8 Mbyte limit.  Try 16 Mbytes
  1326.    or 32 Mbytes depending on your expected use.  Give sam a number that
  1327.    is a multiple of the 4096-byte pagesize.
  1328.  
  1329. 2) Change your array allocation.  HP FORTRAN allocates non-common,
  1330.    non-SAVE'd arrays on the process stack.  Common blocks and SAVE'd
  1331.    variables are allocated in the process data segment (with much larger
  1332.    size limits).  If your arrays are declared in the main program and
  1333.    passed to subroutines, you can just SAVE the big ones in the main
  1334.    program, or put them in a common block in the main program, or
  1335.    recompile with -K since -K puts all local variables in the data
  1336.    segment.  (-K is a sledgehammer approach, but it gives you a quick
  1337.    indication that stack size is the issue.)
  1338.  
  1339. 3)  Make sure you have enough swap space.
  1340. -------------------
  1341.  
  1342. (Thanks to Bob Montgomery, HP)
  1343.   
  1344. Subject: 7.22  How come there's little discussion of DCE?
  1345.  
  1346. DCE (Distributed Computing Environment) is an OSF-based product. HP now
  1347. ships a DCE product. Most of the discussion concerning DCE takes place
  1348. in comp.unix.osf.misc.
  1349.   
  1350. Subject: 7.23  How can I make a ramdisk?
  1351.  
  1352. THIS IS UNSUPPORTED. Make sure 'ram' is configured into your kernel, and then
  1353. make device files with major 9 (both blcok and char), minor 0xVSSSSS, where V is
  1354. the volume number, SSSSS is the number of sectors in the ram disk, and a sector
  1355. is 256 bytes. For example,
  1356.  
  1357.     mknod /dev/ram1m c 9 0x101000
  1358.     
  1359. makes a 1 meg ram disk. Of course, you have to make a file system on it and
  1360. mount it to make it useful.
  1361.  
  1362. (Thanks to Rob Gardner, HP)
  1363.   
  1364. Subject: 7.24  Where can I get SLIP for HP-UX?
  1365.  
  1366. On HP workstations, SLIP is called ppl and is a part of the LAN/9000  Link
  1367. product (Thin coax hardware interface + Ethernet/802.3 driver +  TCP/IP
  1368. transport).  Although conceptually a separate "product", the  LAN/9000 Link is
  1369. shipped as part of every HP workstation.
  1370.  
  1371. (Thanks to Mike Taylor, HP)
  1372.   
  1373. Subject: 7.25  How come I can't lock files across NFS after upgrading to 9.01?
  1374.  
  1375. You may need to replace your /etc/group with the 9.01 version:
  1376.  
  1377. Upgraded 9.01/  Installed
  1378. 8.07 version    9.01 version
  1379.  
  1380. root::0:        root::0:root
  1381. other::1:       other::1:root,hpdb
  1382. bin::2:         bin::2:root,bin
  1383. sys::3:         sys::3:root,uucp
  1384. adm::4:         adm::4:root,adm
  1385. daemon::5:      daemon::5:root,daemon
  1386. mail::6:        mail::6:root
  1387. lp::7:          lp::7:root,lp
  1388. users::20:      users::20:root
  1389.                 nogroup:*:-2:
  1390.                 
  1391. (Thanks to Robin Strong <gandalf@austin.lockheed.com>)
  1392.   
  1393. Subject: 7.26  How can I have the resolver look in /etc/hosts before querying DNS?
  1394.  
  1395. The resolver will never look in /etc/hosts before it queries the DNS.  But
  1396. YOU can run a named locally that knows only the names/addresses of the
  1397. machines you have in your /etc/hosts file and then pass all others off to
  1398. your site's name server.  This means that you can always know the names of
  1399. machines on your local network, even if the router to the real name server 
  1400. is down.
  1401.  
  1402. What you do is this:
  1403.     1. make your machine a nameserver.
  1404.     2. make sure the resolver points to your machine.  (/etc/resolv.conf)
  1405.     3. put your own /etc/hosts information in a "primary" file
  1406.  
  1407. Because YOU know that the NOC will never change the names/addresses of your
  1408. machines without telling you, you can know that the cache will be correct.
  1409. [ Think about it -- the NOC can't re-use my name or address because first
  1410. _my_ machine has to stop using it. ]
  1411.  
  1412. Here is /etc/named.boot - named reads it to find out what to do:
  1413.  
  1414.     directory       /etc/named.dir  ; running directory for named
  1415.     primary         0.0.127.IN-ADDR.ARPA    db.127.0.0
  1416.     primary         .               local
  1417.     cache           .               db.cache
  1418.  
  1419. In /etc/named.dir/local, list the machines that you have in /etc/hosts.  For
  1420. example:
  1421.  
  1422.     roissy.umd.edu    IN    A    128.8.92.23
  1423.     smoo.umd.edu    IN    A    128.8.92.24
  1424.  
  1425. note:    ^^^name here            ^^^IP number here
  1426.  
  1427.     derf.umd.edu    IN    A    128.8.92.9
  1428.     bear.umd.edu    IN    A    128.8.92.8
  1429.     girlie.umd.edu    IN    A    128.8.92.29
  1430.     toady.umd.edu    IN    A    128.8.92.30
  1431.  
  1432.     elea.umd.edu    CNAME roissy.umd.edu  ; elea is another name for roissy
  1433.  
  1434. ** Warning:  By doing this, you take responsibility for keeping your local
  1435. ** file in sync with the real name server.  This is equivalent to keeping
  1436. ** /etc/hosts up to date.
  1437.  
  1438. To check it, run your named in debugging mode, and use nslookup to look up
  1439. names that are in your /etc/named.dir/local file.  Also look up names that
  1440. are in your domain, but not known locally.  Then read the debugging output
  1441. from named.  It should have answered directly for locally known names and
  1442. passed the query on to another nameserver for unknown names.
  1443.  
  1444. (Thanks to Mark Sienkiewicz <mark@roissy.umd.edu>)
  1445.   
  1446. Subject: 7.27  What's a good strategy for clearing /tmp?
  1447.  
  1448. Two suggestions (to be run from cron) are:
  1449.  
  1450. find /tmp -depth -hidden -fsonly hfs -atime +1 -exec rm -rf {} \;
  1451.  
  1452. The -depth option ensures no directory is removed before its contents,
  1453. -fsonly hfs is because occasionally I've NFS-mounted stuff there and
  1454. it's better to do the clearing in the machine where it's local,
  1455. and -hidden is in case CDF's appear there for some reason.
  1456.  
  1457. (Thanks to Tapani Tarvainen)
  1458.  
  1459. for i in /tmp /usr/tmp
  1460. do
  1461.   find $i -type f -atime +3 -print -exec rm -f {} \;
  1462.   find $i -type d -atime +3 -print -exec rmdir {} \;
  1463. done
  1464.   
  1465. (Thanks to Rich Jennings, HP)
  1466.   
  1467. Subject: 7.28  How can I change the timezone?
  1468.  
  1469. Edit the entry in /etc/src.sh and /etc/src/csh, and reboot.
  1470.   
  1471. Subject: 7.29  Is there an equivalent for getrusage()?
  1472.  
  1473. From the BSD porting tricks document (thanks, Mike):
  1474.  
  1475. #ifdef hpux
  1476. #include <sys/syscall.h>
  1477. #define getrusage(a, b)  syscall(SYS_GETRUSAGE, a, b)
  1478. #endif /* hpux */
  1479.   
  1480. Subject: 7.30+ How can I look at what my system is doing?
  1481.  
  1482. The best tool for monitoring your system is Glance Plus. Call (800) 237-3990 
  1483. for a trial version.
  1484.   
  1485. Subject: 7.31+ How can I partition HP-UX disks?
  1486.  
  1487. Here is a sample file which lists the sdsadmin commands to partition a disk
  1488. into 2 partitions. Note that this is specific to the M2654SA disk;
  1489. your mileage may vary. The mediainit is probably not required if the vendor
  1490. has formatted/verified the disk. It is not "supported" to partition
  1491. the boot disk, and you have to go through some contortions to do it.
  1492.  
  1493. #
  1494. # SDS configuration file for this node.
  1495. #
  1496. # To rebuild the /u1 and /news Fujitsu M2654SA disk partitions, do:
  1497. #    mediainit -v /dev/rdsk/c201d5s0
  1498. #    sdsadmin -m -C /usr/local/etc/sdsadmin.config.u1news /dev/dsk/c201d5s0
  1499. #    newfs -L -n -v -m 2 -i 16384 /dev/rdsk/c201d5s1 HP_M2654Su1x1-2
  1500. #    newfs -L -n -v -m 2 -i  2048 /dev/rdsk/c201d5s2 HP_M2654Su1x1-2
  1501. #
  1502. # Disk partitions:
  1503. #
  1504. # 1   /u1     145xxxx 1K blocks (/dev/dsk/c201d5s1, /dev/rdsk/c201d5s1)
  1505. # 2   /news    55xxxx 1K blocks (/dev/dsk/c201d5s2, /dev/rdsk/c201d5s2)
  1506. # -   -----   -------
  1507. #             2006016 1K blocks
  1508. #
  1509.  
  1510. type    M2654Su1x1-2
  1511. label   u1_news
  1512.  
  1513. partition 1
  1514.    size 1450000K
  1515.  
  1516. partition 2
  1517.    size      max
  1518.  
  1519. (Thanks to Mike Petersen)
  1520.   
  1521. Subject: 8. COMPILERS AND LINKERS
  1522.  
  1523. Subject: 8.1  What's a P-FIXUP error?
  1524.  
  1525. Several questions on comp.sys.hp lately have involved the Gnu C compiler
  1526. and the linker message below :
  1527.  
  1528.         gcc  test_h.o -o test_h ../libg++.a -lm
  1529. ld: R_DATA_ONE_SYMBOL fixup in file ../libg++.a(streambuf.o) for code unsat
  1530. symbol "abort" - use P' fixup
  1531. collect: /bin/ld returned 1 exit status
  1532.  
  1533.    This is caused by the code generator emitting assembly code in a data
  1534. subspace to initialize a function pointer, equivalent to :
  1535.  
  1536.     .word    foo
  1537.  
  1538. where (in this case) foo() is an extern, and shared libraries are referenced
  1539. by the executable being built (usually libc.sl).  
  1540.  
  1541. NOTE:
  1542.  
  1543. This problem has been fixed in gcc-2.4.5.u5; if people are still running
  1544. into this error, then:
  1545.  
  1546.   1) They've got an old version of gas (pa-gas-1.36.u8 I belive is the
  1547.   first one do handle this correctly).
  1548.  
  1549.   2) They're linking with a library built with some old combination of
  1550.   gcc and gas.
  1551.  
  1552. The solution is to make sure gcc and gas are up-to-date and any libraries
  1553. have been built with the latest gcc/gas combination.  For a temporary 
  1554. workaround the option "-static" to gcc will suppress dynamic linking and
  1555. thus avoids the error.
  1556.  
  1557. (thanks to Carl Burch, HP for the original, and Jeff Law 
  1558.  <law@snake.cs.utah.edu> for the followup)
  1559.  
  1560. Subject: 8.2  Where is regcmp on HP-UX?
  1561.  
  1562. RTFM - from man regcmp:
  1563.  
  1564.       regcmp and regex are kept in /lib/libPW.a, and are linked by using the
  1565.       -lc and -lPW options to the ld or cc command.  See WARNINGS below.
  1566. ...
  1567.  
  1568.  WARNINGS
  1569.       regcmp and regex are kept in /lib/libPW.a.  Unfortunately,
  1570.       /lib/libPW.a also contains some functions that have the same names as
  1571.       functions contained in the default C library, /lib/libc.a.  To prevent
  1572.       unexpected results due to these name conflicts, always search libc
  1573.       before searching libPW.  This is done with the ld (or cc) command line
  1574.       option sequence -lc -lPW which satisifies all standard C functions
  1575.       from libc then searches libPW for the regcmp and regex functions
  1576.       (there is also an implied -lc following the explicit -lPW to satisfy
  1577.       any additional C functions required by regcmp and regex).
  1578.  
  1579.       User programs that use regcmp might run out of memory if regcmp is
  1580.       called iteratively without freeing vectors that are no longer
  1581.       required.
  1582.  
  1583. (thanks to Andre Srinivasan, <andre@cs.pitt.edu>)
  1584.   
  1585. Subject: 8.3  How come the default C compiler is brain-dead?
  1586.  
  1587. The C compiler shipped with HP-UX is intended only to rebuild the kernel
  1588. with, not for program development. To get a "real" C compiler, you must
  1589. buy the ANSI C program development bundle.
  1590.   
  1591. Subject: 8.4  How do I deal with "too many defines"?
  1592.  
  1593. Use the "-Wp,-Hxxxxxxx" where xxxxxxxx is the number of bytes to add to cpp's
  1594. table size.
  1595.  
  1596. There is no equivalent in lint or cflow to the cc driver's -W flag to 
  1597. pass options to subprocesses like cpp.  However, both lint and cflow
  1598. invoke cpp via the cc driver, so you can achieve the same effect by
  1599. setting the CCOPTS environment variable.  For example,
  1600.  
  1601.     CCOPTS="-Wp,-H500000"
  1602.     export CCOPTS
  1603.     lint large_file.c
  1604.  
  1605.   
  1606. Subject: 8.5  How come I get "_builtin_va_start" undefined when I build with gcc?
  1607.  
  1608. The <varargs.h> and <stdarg.h> include files define va_start in terms of 
  1609. this function, which is built-in on the HP C compiler.
  1610.  
  1611. If you're using GCC you should be picking up include files
  1612. from the gcc library directory.  These include files do the right
  1613. thing for both GCC and HP C.
  1614.  
  1615. More often than not these files were never installed, or someone has
  1616. placed a copy of varargs.h/stdarg.h into /usr/local/include (gcc searches
  1617. there *first*).
  1618.  
  1619. When all else fails, you can replace the definition of va_start as follows, 
  1620. depending on whether you are using varargs or stdarg (K&R or ANSI,
  1621. respectively).
  1622.  
  1623.     #include <varargs.h>
  1624.     #ifdef __hppa
  1625.     #undef va_start
  1626.     #define va_start(a) ((a)=(char *)&va_alist+4)
  1627.     #endif
  1628.  
  1629.     #include <stdarg.h>
  1630.     #ifdef __hppa
  1631.     #undef va_start
  1632.     #define va_start(a,b) ((a)=(va_list)&(b))
  1633.     #endif
  1634.  
  1635. For <varargs.h>, this replacement should always work.
  1636.  
  1637. For <stdarg.h>, this replacement will work unless the last fixed
  1638. parameter ("b" in the call to va_start) is a structure larger
  1639. than 8 bytes.  Large structures are passed by reference, with the
  1640. callee responsible for copying the structure to a temporary area
  1641. if it will be modified.  In this case, "&b" will take the address
  1642. of that temporary area instead of the position in the argument
  1643. list, and va_next won't work.  That's why HP uses a compiler
  1644. built-in.
  1645.  
  1646. (Thanks to Cary Coutant, HP for the original and Jeff Law 
  1647.   <law@snake.cs.utah.edu> for the followup)
  1648.   
  1649. Subject: 8.6  How can I tell if something was built debuggable?
  1650.  
  1651. If the output of "/usr/contrib/bin/odump -spaces file.o" shows a space
  1652. named $DEBUG$, then it was compiled with -g.
  1653.  
  1654. (Thanks to Fran Litterio <franl@centerline.com>)
  1655.   
  1656. Subject: 9. HARDWARE AND PERIPHERALS
  1657.  
  1658. Subject: 9.1  Are alternate keyboards available for HP workstations?
  1659.  
  1660. Yes, HP has two keyboards available for their workstations and X Terminals.
  1661.  
  1662. - A1099B - Workstation style keyboard (Default on workstations.)
  1663. - A2205A - PC-101 style keyboard (Default on X Terminals.)
  1664.   -
  1665. Subject: 9.2  How can I play audio CDs on an HP workstation?
  1666.  
  1667. A contributed application ("xcd") exists that presents a X-window CD player
  1668. front panel.  xcd runs on HP-UX 7.0 and 8.0, on Series 300, 400 and 700, with
  1669. either SCSI or HP-IB CD-ROM drives. The SCSI drives must be HP-supplied or
  1670. Toshiba XM-3201B or XM-3301B. xcd does not yet officially work on HP-UX 9.0,
  1671. but I've tried it and it seems to work just fine. Note that xcd plays only
  1672. through the CD player's headphone jack and not through the workstation's
  1673. speaker.
  1674.  
  1675. xcd is available from the InterWorks workstation user group (see above), 
  1676. on their ftp site, CD-ROM, and via DDS tape.
  1677.   
  1678. Note that source is not available.
  1679.  
  1680. Additionally, two new programs that provide similar functionality have
  1681. recently appeared, called xdp and xmcd.
  1682.  
  1683. (Thanks to Bob Niland and others)
  1684.  
  1685. Subject: 9.3  How can I enable the LAN interface on a 700?
  1686.  
  1687. This can be problem when the LAN isn't connected at boot time. To
  1688. resolve the problem, use the "reset" command in "landiag".
  1689.   
  1690. Subject: 9.4  How can I get an Exabyte to work on an HP?
  1691.  
  1692. People have under HP-UX 8.07 used device files with major number 54,
  1693. minor numbers 0x201202 and 0x201203 for /dev/rmt/2m and /dev/rmt/2mn, 
  1694. respectively, for low density. Other people had used 0x201242 and 0x201243.
  1695.  
  1696. Note that with HP-UX 9.01, low density means 8200 format in 8500 drives.
  1697. Major #54, minor numbers 0x201202 and 0x201203 are low density handles.
  1698. With 8200 drives the density does not matter. Software compression
  1699. control with 8505 drives will require a patch to HP-UX 9.01.
  1700.  
  1701. Caveats: some Exabyte drives will not support a "dump" blocking factor
  1702. greater than 64 from the HP.  Others are apparently limited in the commands
  1703. they will accept (e.g. TTI noted that their 8501 tape drive will not properly
  1704. interface with the HP under all conditions; however, the TTI 8510 does
  1705. interface correctly). TTI had a firmware problem which should be 
  1706. corrected in recent 8510s.
  1707.  
  1708. Experience has also shown that you may need PHKL_2898.
  1709.   
  1710. Subject: 9.5  Is there a "node ID" on 700s?
  1711.  
  1712. Yes. Most licensing systems (FlexLM and NetLS, for example), are driven from 
  1713. the LLA, available from /etc/lanscan or /usr/etc/netls/ls_targetid. There is 
  1714. also a CPU ID number that HP uses for /etc/update; it may be a transformation 
  1715. of the LLA, but this is not guaranteed to remain the case, and may be disturbed
  1716. by replacement of the LAN board. Additionally, the LLA can be reset by a 
  1717. CE using the proper secret magic program.
  1718.   
  1719. Subject: 9.6  How can I get a stuck DDS tape out of the drive?
  1720.  
  1721. 1)  Power down your machine (remember shutdown!!! ;-))
  1722. 2)  Open it up (you'll prob. need Torx screwdrivers).
  1723. 3)  on the side of the drive, you should see a small rectangular piece
  1724.     of plastic.  gently pry it off... it should come off quite easily.
  1725. 4)  the aforementioned piece of plastic covers a hole, which houses a 
  1726.     small dial.  spinning this dial ejects the tape.  
  1727. 5)  replace plastic piece, close machine... and bob's your uncle.
  1728.  
  1729. p.s.  the dial has very little torque (ie. the tape comes out quite slowly,
  1730. but you can see it move.   It'll take about 2-3 minutes of spinning before 
  1731. the tape comes out.
  1732.  
  1733. (Thanks to Edlin Seebick.)
  1734.   
  1735. Subject: 9.7  How can I use dump with a DDS tape?
  1736.  
  1737. dump was written to assume 9-track tapes, so some fudging has
  1738. to be done for DDS tapes.  The following has the info you need
  1739. along with several alternatives for dump parameters.
  1740.  
  1741. Approximate capacity of 60m DDS tape = 1.3G bytes
  1742. Approximate DDS tape density = (1.3G bytes) / (60 m) = (550K bytes/in)
  1743.  
  1744. dump assumes an inter-record gap (IRG) of 0.3 in for density = 6250,
  1745. 0.7 in otherwise.
  1746.  
  1747. dump uses a default blocking factor of 10 for density < 6250,
  1748. 32 otherwise.
  1749. ------------------------------------------
  1750. density = 550000
  1751. blocking factor = 32 (default)
  1752. assumed IRG = 0.7 in
  1753.  
  1754. Block length = (32K bytes/block) / (550K bytes/in) + (0.7 in) = (0.76 in)
  1755.  
  1756. Effective tape length =
  1757.     (1.3G bytes) / (32K bytes/block) * (0.76 in/block) = (2511 ft)
  1758. ------------------------------------------
  1759. density = 6250
  1760. blocking factor = 32 (default)
  1761. assumed IRG = 0.3 in
  1762.  
  1763. Block length = (32K bytes/block) / (6250 bytes/in) + (0.3 in) = (5.54 in)
  1764.  
  1765. Effective tape length =
  1766.     (1.3G bytes) / (32K bytes/block) * (5.54 in/block) = (18325 ft)
  1767. ------------------------------------------
  1768. density = 1600
  1769. blocking factor = 10 (default)
  1770. assumed IRG = 0.7 in
  1771.  
  1772. Block length = (10K bytes/block) / (1600 bytes/in) + (0.7 in) = (7.10 in)
  1773.  
  1774. Effective tape length =
  1775.     (1.3G bytes) / (10K bytes/block) * (7.10 in/block) = (75113 ft)
  1776. ------------------------------------------
  1777. density = 1600
  1778. blocking factor = 32
  1779. assumed IRG = 0.7 in
  1780.  
  1781. Block length = (32K bytes/block) / (1600 bytes/in) + (0.7 in) = (21.18 in)
  1782.  
  1783. Effective tape length =
  1784.     (1.3G bytes) / (32K bytes/block) * (21.18 in/block) = (70022 ft)
  1785. ------------------------------------------
  1786. (Thanks to Cary Coutant, HP.)
  1787.   
  1788. Subject: 9.8  What is the correct major number for DDS drives on 9.01?
  1789.  
  1790. For reasons too detailed to go into here, the major number for DDS drives
  1791. has changed to 121 (from 54) at 9.01. 
  1792.   
  1793. Subject: 9.9  How can I set up /dev/audio to point to the external jack on a 700?
  1794.  
  1795. Alter the /dev/audio device file as follows:
  1796.  
  1797. crw-rw-rw-   1 root     sys       57 0x208011  /dev/audio  ; external jack
  1798. crw-rw-rw-   1 root     sys       57 0x208000  /dev/audio  ; internal speaker
  1799.  
  1800. The commands are:
  1801.   mknod /dev/audio c 57 0x2080??   <- replace ?? with 00 or 11 as shown above.
  1802.  
  1803. (Thanks to Lou Kvitek.)
  1804.   
  1805. Subject: 9.10+ How can I configure the parallel port handshake on a 700?
  1806.  
  1807. From "man cent":
  1808.  
  1809.      The Series 700 cent driver supports six different handshake modes for
  1810.      data transfer.  The last four bits of the minor number of the device
  1811.      special file specify which mode is used.  The format of the device
  1812.      minor number is:
  1813.  
  1814.           0xSEF00A
  1815.  
  1816.      where each letter represents a single hexadecimal digit as follows:
  1817.  
  1818.      0x   Preamble to a hexadecimal number.  
  1819.      S    Specifies the system bus module number ( 2 for core I/O).  
  1820.      E    Specifies the EISA slot number: ( always 0 for core I/O).  
  1821.      F    Specifies the function number.  Always 6 for the Core I/O
  1822.           parallel interface.  
  1823.      00   Always 0.
  1824.      A    Specifies the handshake mode.  The handshake modes are:
  1825.  
  1826.                mode 1    Automatic handshaking using both nACK and BUSY.
  1827.                          Minor number format: 0xSEF001.
  1828.  
  1829.                mode 2    Automatic handshaking using only BUSY.  Minor
  1830.                          number format: 0xSEF002.
  1831.  
  1832.                mode 3    Bidirectional read/write used for ScanJet.  Minor
  1833.                          number format: 0xSEF003.
  1834.  
  1835.                mode 4    Stream mode.  Data is essentially transmitted to
  1836.                          the peripheral without any handshaking protocol.
  1837.                          Minor number format: 0xSEF004.
  1838.  
  1839.                mode 5    Pulsed mode using both ACK and BUSY for automatic
  1840.                          handshaking.  Similar to mode 1 except that the
  1841.                          data strobe line, nSTROBE is pulsed for a fixed
  1842.                          amount of time by the sender, then released.
  1843.                          Minor number format: 0xSEF005.
  1844.  
  1845.                mode 6    Pulsed mode, using only BUSY for automatic
  1846.                          handshaking.  Similar to mode 1 except that the
  1847.                          data strobe line, nSTROBE is pulsed for a fixed
  1848.                          amount of time by the sender, then released.
  1849.                          Minor number format: 0xSEF005.
  1850.  
  1851.           Modes 1 and 2 support most printers belonging to the *Jet series
  1852.           (LaserJet, DeskJet, QuietJet, etc.).
  1853.           
  1854. Subject: 9.11+ What are the specs of the audio hardware on the 700 series?
  1855.  
  1856. This is a summary of the audio features supported by the models 715, 725, 735,
  1857. and 755 workstations.  The 705 and 710 also have audio, but the specs are
  1858. not available. The 720, 730, and 750 models DO NOT have audio.
  1859.  
  1860. Audio features  Programmable sample rates (kHz): 8, 11.025, 16, 
  1861.                     22.05,32, 44.1, 48
  1862.                 Programmable output attenuation: 0 to -96 dB in 1.5 dB steps
  1863.                 Programmable input gain: 0 to 22.5 dB in 1.5 dB steps
  1864.                 Input monitoring
  1865.                 Coding formats: 16-bit linear, 8-bit mulaw, or A-law
  1866.  
  1867. Audio inputs        Line in
  1868. (not on all models) Mono microphone with 1.5V phantom power
  1869.  
  1870. (Editorial comment - a Sun microphone appears to work just fine.)
  1871.  
  1872. Audio outputs       Line out
  1873. (not on all models)    Headphone
  1874.                     Mono speaker jacks
  1875.                     Built-in mono speaker
  1876.  
  1877. Audio CODEC         Crystal CS4215
  1878.  
  1879. Typical specifications measured on a stock 715.  Values will differ only 
  1880. slightly on other models.
  1881.  
  1882. Frequency response    25 - 20,000 Hz
  1883.  
  1884. Input Sensitivity/Impedance
  1885.             Line In        2.0 V(pk) / 47 kohms
  1886.             Microphone  22 mV(pk) / 1 kohm
  1887.  
  1888. Output Impedance (nominal)
  1889.             Line out    619 ohms
  1890.             Headphone   118 ohms
  1891.             Speaker (ext)  11 ohms
  1892.  
  1893. Max Output Level/Impedance
  1894.             Line Out    2.8 V (p-p) / 47 kohms
  1895.             Headphone   2.75 V (p-p) / 50 ohms
  1896.             Speaker (ext)  5.88 V (p-p) / 48 ohms
  1897.  
  1898. Signal to Noise
  1899.             Line In     61 dB
  1900.             Line Out    65 dB
  1901.             Microphone  57 dB
  1902.             Headphone   61 dB
  1903.             Speaker (ext)  63 dB
  1904.  
  1905. THD (at nominal load)
  1906.             Line In     -75 dB
  1907.             Line Out    -73 dB
  1908.             Microphone  -73 dB
  1909.             Headphone   -70 dB
  1910.             Speaker (ext)   -68 dB
  1911.  
  1912. (Thanks to Rocky Craig, HP)
  1913.  
  1914.  
  1915.  
  1916.  
  1917.           
  1918.  
  1919. -- 
  1920. Greg Cagle                  | 
  1921. greg_cagle@mentorg.com      | "Okay, *now* I've seen everything."
  1922. Mentor Graphics Corporation |
  1923.  
  1924.