home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / faqs / comp / answers / hp / hpux-faq < prev   
Encoding:
Internet Message Format  |  1997-10-21  |  171.6 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!nntprelay.mathworks.com!news-peer.gsl.net!news.gsl.net!gip.net!mr.net!coop.net!newsfeed1.global.lmco.com!news.ast.lmco.com!not-for-mail
  2. From: alek@csc.com (Alek O. Komarnitsky)
  3. Newsgroups: comp.sys.hp.hpux,comp.sys.hp.misc,comp.sys.hp.hardware,news.answers,comp.answers
  4. Subject: comp.sys.hp.hpux FAQ
  5. Followup-To: comp.sys.hp.hpux
  6. Date: 20 Oct 1997 08:31:21 -0600
  7. Organization: Lockheed Martin Astronautics, Denver CO
  8. Lines: 4835
  9. Approved: news-answers-request@MIT.Edu
  10. Message-ID: <62fpvp$1vt$1@mail1.ast.lmco.com>
  11. Reply-To: alek@csc.com
  12. NNTP-Posting-Host: mail1.ast.lmco.com
  13. Keywords: FAQ
  14. Xref: senator-bedfellow.mit.edu comp.sys.hp.hpux:72120 comp.sys.hp.misc:13930 comp.sys.hp.hardware:31285 news.answers:115074 comp.answers:28621
  15.  
  16. Archive-name: hp/hpux-faq
  17. Followup-To: comp.sys.hp.hpux
  18. Last-modified: 97/10/20
  19. Version: 7.28
  20.  
  21. (BIG news for the moderator - see http://www.komar.org/komar/alek for details! ;-)
  22. (BIG news for the moderator - see http://www.komar.org/komar/alek for details! ;-)
  23. (BIG news for the moderator - see http://www.komar.org/komar/alek for details! ;-)
  24.  
  25.  
  26. comp.sys.hp.hpux FAQ (Frequently Asked Questions)
  27.  
  28. [HTML version of this available - pls see section 3.1]
  29.  
  30.  
  31.  
  32. Subject: 1. INTRODUCTION
  33.  
  34. This article contains the answers to Frequently Asked Questions (FAQ) seen in
  35. the Usenet newsgroup comp.sys.hp.hpux. Issues may also be discussed in
  36. comp.sys.hp.apps, comp.sys.hp.misc, and comp.sys.hp.hardware. Discussion in
  37. this document centers around Hewlett-Packard computer systems running  the
  38. HP-UX operating system; the focus tends to be on the series 700  workstations,
  39. although topics are also applicable to series 800 machines, and to a lesser
  40. degree, series 300 and 400 machines. It will be posted about (!) twice
  41. a month as the maintainer sees fit (and remembers ...   ;-)
  42.  
  43. This is Copyright 1996, 1997 by Alek Komarnitsky. It may be freely redistributed
  44. in its entirety provided that this copyright notice is not removed.  It may
  45. not be sold for profit or incorporated in commercial documents without the
  46. written permission of the copyright holder.  Permission is expressly granted
  47. for this document to be made available for file transfer from installations
  48. offering unrestricted anonymous file transfer on the Internet. This article is
  49. provided as is without any express or implied warranty. The content of this
  50. article is the sole responsibility of the author and contributors, and does
  51. not necessarily represent their employers or Hewlett-Packard.
  52.  
  53. Refer to question 3.1 for details on where to get this FAQ.
  54.  
  55. This FAQ is written in "minimal digest format". You can skip from one
  56. section to the next by pressing ^G in many newsreaders, such as rn, trn
  57. and strn (but not nn).
  58.  
  59. Internet resources are pointed to in this document by URL (Uniform
  60. Resource Locator). A simplistic view of URL syntax:
  61.  
  62. method://server[:port]/pathname
  63.  
  64. Where "method" can commonly be any of [file|gopher|wais|news|ftp|http].
  65. An example: a file is available via FTP at rtfm.mit.edu and
  66. the pathname is pub/tmp/test. The URL is:
  67.  
  68. ftp://rtfm.mit.edu/pub/tmp/test
  69.  
  70. Questions marked with a "+" are new to this issue, and questions with
  71. changes since the last issue are marked by a "!".
  72.  
  73. Submissions, corrections, comments, input, complaints should be directed to
  74. Alek Komarnitsky <alek@csc.com>.
  75.  
  76. ------------------------------
  77.  
  78. Subject: 2. TABLE OF CONTENTS
  79.  
  80. 1. INTRODUCTION
  81. 2. TABLE OF CONTENTS
  82. 3. FINDING INFORMATION
  83. 3.1  Where can I get a copy of this FAQ file?
  84. 3.2  Courses on HP-UX
  85. 3.3  Interex, The International Association of Hewlett-Packard
  86. 3.4  InterWorks, the Technical Users Forum of Interex
  87. 3.5  Interex HP Users Conferences
  88. 3.6  InterWorks Conference 1997
  89. 3.7  HP/Works
  90. 3.8  HP/Works Conferences
  91. 3.9  Japanese HP Computer Users Association
  92. 3.10  German HP User Group
  93. 3.11  DutchWorks
  94. 3.12  HP-UX freely available software from InterWorks.
  95. 3.13  Anonymous FTP Sites for HP-UX, and UNIX related software.
  96. 3.14  Where can I get a demo CD with software for HP-UX?
  97. 3.15  HP-UX patch information
  98. 3.16  How can I send mail to an "hpdesk" address?
  99. 3.17  What are the known issues with porting BSD-based programs to HP-UX?
  100. 3.18  What periodicals are available that focus on HP-UX?
  101. 3.19  Books on HP-UX
  102. 3.20  HP-UX Sysadmin Mailing List
  103. 3.21  HP-related WWW Sites
  104. 3.22  Is there any way to get rid of a frequent poster's posts?
  105. 3.23  HP 9000 series 500 Mailing List
  106. 3.24  HP 3000 FAQ
  107. 3.25  What is HP's involvement in the HP-related newsgroups?
  108. 3.26  Who were the former maintainers of the FAQ?
  109. 3.27  Where do i get information on HP's Printers?
  110. 3.28  Where is the SunOS to HP-UX Porting Guide?
  111. 3.29  Where can I get support from HP on the Web?         
  112. 4. THIRD PARTY VENDORS
  113. 4.1  Third party vendors for RAM.
  114. 4.2  Third party vendors for other things
  115. 4.3  Do Seagate 9GB drives working with s700 and s800?
  116. 5. UTILITIES
  117. 5.1  ASCII to Postscript converter.
  118. 5.2  How do I make perl on HP-UX?
  119. 5.3  What is the status of the various gnu items on HP-UX?
  120. 6. X WINDOW SYSTEM, MOTIF, HP-VUE, AND CDE
  121. 6.1  X11 libraries (Athena, etc.) and utilities (imake, etc.).
  122. 6.2  How can I display an image on the root window with HP-VUE?
  123. 6.3  How do I get a scroll bar on hpterms?
  124. 6.4  How can I put a title in my hpterm titlebar?
  125. 6.5  How come my hpterms keep going away by themselves?
  126. 6.6  How come my HP X/Motif clients take a LONG time to display on a Sun?
  127. 6.7  How can I get my login stuff to work under HP-VUE?
  128. 6.8  How can I get console messages to go to an hpterm?
  129. 6.9  What happened to the vuewm key accelerators at VUE 3.0?
  130. 6.10  How come I can no longer disable the caps lock key with xmodmap?
  131. 6.11  How come vi behaves strangely in xterms at 9.01?
  132. 6.12  How do I disable HP-VUE?
  133. 6.13  What's a good termcap entry for hpterm?
  134. 6.14  My screen is wedged. What should I do?
  135. 6.15  How can I get an X client to come up in an alternate workspace?
  136. 6.16  How can I get HP-VUE to not override colors?
  137. 6.17  How can I override the system default printer in vuepad?
  138. 6.18  What about X11R6?
  139. 6.19  How can I set user-specific app-defaults in HP-VUE?
  140. 6.20  How can I get VUE to share colormap entries?
  141. 6.21  How can I disallow root login at the console with VUE?
  142. 6.22  id/groups doesn't show secondary groups in dtterm/CDE
  143. 6.23  What type of books are available about CDE and oriented toward HP-UX?
  144. 6.24  Getting mouse button cut-n-paste to work correctly with HPUX10/CDE
  145. 7. OPERATING SYSTEM
  146. 7.1  Can I have filenames longer than 14 chars?
  147. 7.2  How can I tell what products have been loaded on my system?
  148. 7.3  How do I safely remove software from my system?
  149. 7.4  How can I change the order of hostname resolution?
  150. 7.5  How come the LOGnnnn files in /usr/adm keep growing and growing?
  151. 7.6  How come I can't lock mail or other files on a Sun?
  152. 7.7  Why are mail files in /usr/mail are owned by daemon instead of the recipient?
  153. 7.8  How can I tell if I need more than a 2-user license?
  154. 7.9  How can I tell what patches are in the kernel?
  155. 7.10  How come I have to hit return after control-d in the Korn shell?
  156. 7.11  How do I boot into single user mode?
  157. 7.12  How come my Korn shell login hangs?
  158. 7.13  How can I avoid those annoying copyright notices on login?
  159. 7.14  How can I turn off quota checking?
  160. 7.15  How can I track log files and core files?
  161. 7.16  How much memory can a process use?
  162. 7.17  How can I make a ramdisk?
  163. 7.18  What's a good strategy for clearing /tmp and /usr/tmp?
  164. 7.19  How can I change the timezone?
  165. 7.20  How can I look at what my system is doing?
  166. 7.21  How can I partition HP-UX disks on 700s at 9.x?
  167. 7.22  How can I print man pages successfully?
  168. 7.23  How can I limit core files?
  169. 7.24  Can I put more than one backup on DDS with fbackup?
  170. 7.25  How can I load multiple patches on a machine at the same time?
  171. 7.26  How can I set up an HP-UX workstation as an X terminal?
  172. 7.27  What causes "Unable to initialize MI" when running Glance?
  173. 7.28  How come I can't get all of my swap space?
  174. 7.29  How come I can't start my Aserver?
  175. 7.30  How can I get a daemon to successfully start from /etc/rc at 9.x?
  176. 7.31  How come my /dev/null keeps getting blown away?
  177. 7.32  How can I track network packets?
  178. 7.33  How come my processes keep dying at 67M memory usage?
  179. 7.34  Is it possible to artificially limit the memory size?
  180. 7.35  How come my alt key combinations don't work in emacs X mode?
  181. 7.36  I can't get FLEXlm based licensing to work.
  182. 7.37  How can I set up group-based FTP access?
  183. 7.38  How come my 700 doesn't perform as well as I expect?
  184. 7.39  How do I convert the uname string to the model string?
  185. 7.40  Problem with ntalkd and it's handling on /etc/utmp.
  186. 7.41  How to get an MS-DOS floppy formatted using HP-UX?
  187. 7.42  How to get the MAC (station) address programmatically?
  188. 7.43  Is there a Transport Level Interface (TLI) interface to TCP on HP-UX?
  189. 7.44  How do you disable IP Forwarding at 9.x?
  190. 7.45  Does HPUX 9.0 have support for threads?
  191. 7.46  How come I can't type an '@' character?
  192. 7.47  How come I can't get my machine into boot admin mode?
  193. 7.48  What's a quick check to see if a fileset is installed on 9.x?
  194. 7.49  How does one package a set of files for HP-UX 9.X?
  195. 7.50  Why is ifconfig giving me errors when I try to configure my LAN?
  196. 7.51  What new features are in HP-UX 9.07?
  197. 7.52  Why do I get the message "Can't start message server..."
  198. 7.53  How can I disable new logins?
  199. 7.54  What is the maximum filesystem size on a 7xx, running HP-UX 9.X  HP-UX 10.X?
  200. 7.55  What is the current revision of HP-UX?
  201. 7.56  What's different between HP-UX 9.x and 10.20?
  202. 7.57  What's different between HP-UX 10.01 and 10.2?
  203. 7.58  What happened to /usr/local? What's this /usr/contrib directory?
  204. 7.59  What happened to "less"?
  205. 7.60  Remote mounts and the automounter -- What's new?
  206. 7.61  Why does tcsh have problems with 'bind'?
  207. 7.62  How do I change the hostname, IP address, DNS Server, etc?
  208. 7.63  What should go in my PATH and MANPATH environment variables?
  209. 7.64  What happened to 'lpr' and other misc. lp hints?
  210. 7.65  Lpstat reports the printer down, even though it's not (?)
  211. 7.66  Misc. HP-UX10.x gotcha with root's shell
  212. 7.67  cksum command is a bit "squirrely" in HPUX09
  213. 7.68  HPUX10 generate copious "Sti_save" syslog messages
  214. 7.69  Why does pfs_mount fail with the message 'Not Owner' when I try to use it?
  215. 7.70  What is the HP equivelent of ldd (determine shared library dependancy)?
  216. 7.71  PHKL_4413 breaks xntp
  217. 7.72  How do I get rid of these old 10.X patches since I upgraded OS's?
  218. 7.73  How to install multiple patches on a 10.x system without rebooting?
  219. 7.74  How can I determine how much memory there is in my HP-UX system?
  220. 8. COMPILERS AND LINKERS
  221. 8.1  What's a P-FIXUP error?
  222. 8.2  Where is regcmp on HP-UX?
  223. 8.3  How come the default C compiler is brain-dead?
  224. 8.4  How do I deal with "too many defines"?
  225. 8.5  How come I get "_builtin_va_start" undefined when I build with gcc?
  226. 8.6  How can I tell if something was built debuggable?
  227. 8.7  Is there some kind of problem with using FLT_MIN in ANSI mode?
  228. 8.8  What's the deal with _INCLUDE_xxxx_SOURCE?
  229. 8.9  How come I need to explicitly specify -I/usr/include?
  230. 8.10  Is there an equivalent for getrusage()?
  231. 8.11  Why is syslog() call not doing what i want it to?
  232. 8.12  Is trace on HP-UX?
  233. 8.13  How to get C programs automatically generate stack dumps?
  234. 9. HARDWARE AND PERIPHERALS
  235. 9.1  Are alternate keyboards available for HP workstations?
  236. 9.2  How can I play audio CDs on an HP workstation?
  237. 9.3  How can I enable the LAN interface on a 700?
  238. 9.4  How can I get an Exabyte to work on an HP?
  239. 9.5  Is there a "node ID" on 700s?
  240. 9.6  How can I get a stuck DDS tape out of the drive?
  241. 9.7  How can I use dump with a DDS tape?
  242. 9.8  What is the correct major number for DDS drives on 9.x?
  243. 9.9  How can I set up /dev/audio to point to the external jack on a 700?
  244. 9.10  How can I configure the parallel port handshake on a 700?
  245. 9.11  What are the specs of the audio hardware on the 700 series?
  246. 9.12  What are the various revisions of PA-RISC?
  247. 9.13  How do I read an SGI-written tar format DDS tape?
  248. 9.14  Is there a trackball for the 700?
  249. 9.15  Where can I get disktab entries for third party disks?
  250. 9.16  Do I need to terminate the internal SCSI on a 700?
  251. 9.17  What is the largest disk partition I can have at 9.x?
  252. 9.18  How can I determine how much RAM I have non-interactively?
  253. 9.19  How can I turn off the lpspooler cover page?
  254. 9.20  Why are CDROM filenames all UPPERCASE with ;1 attached?
  255. 9.21  DIP Switch Settings for HP 7475 Plotter (RS-232)
  256. 9.22  Why inserts HP-UX 4 spaces when I print using a parallel port?
  257. 9.23  How do I find the speed of my system?
  258. 10. LOOKING FOR...
  259. 10.1  Where did xline go at 9.x?
  260. 10.2  How about the VUE 2.01 man page help index?
  261. 10.3  Is there anything remotely like the Apollo DM available?
  262. 10.4  Where can I get SLIP for HP-UX?
  263. 10.5  Where can I get pcnfsd on HP-UX?
  264. 10.6  Where can I get ppp for HP-UX?
  265. 10.7  Where can I get STREAMS for HP-UX?
  266. 10.8  What about POSIX threads?
  267. 10.9  Where can I get Interviews for HP-UX?
  268. 10.10  Where can I get POP for HP-UX?
  269. 10.11  Where can I get sudo for HP-UX?
  270. 10.12  Where can I get ntalk for HP-UX?
  271. 10.13  Where can i get disktab entries for certain seagate drives?
  272. 10.14  Where can I get information on a public domain PPP?
  273. 10.15  Where can I get generic information about PPP on HP-UX?
  274. 11. HP-UX 10.x INFORMATION
  275. 11.1  Can you have Multiple IP addresses on one interface?
  276. 11.2  What version of named is running at HP-UX 10.0?
  277. 11.3  What documents are available on HP-UX 10.0?
  278. 11.4  What is SD-UX and why does it replace /etc/update?
  279. 12. S300/400 SPECIFIC INFORMATION
  280. 12.1  When will HPUX 9.10 be available?
  281. 12.2  What are the highlights of HP-UX 9.10?
  282.  
  283. ------------------------------
  284.  
  285. Subject: 3. FINDING INFORMATION
  286.  
  287. ------------------------------
  288.  
  289. Subject: 3.1  Where can I get a copy of this FAQ file?
  290.  
  291. Many FAQs, including this one, are available via FTP on the Internet
  292. FAQ archive site:
  293.  
  294.   ftp://rtfm.mit.edu/pub/usenet/news.answers/hp/hpux-faq
  295.  
  296. This FAQ is also archived on the InterWorks archive machine:
  297.  
  298.   ftp://interworks.org/pub/comp.hp
  299.  
  300. HTML versions of this document are available at:
  301.  
  302.   http://www.cis.ohio-state.edu/hypertext/faq/usenet/hp/hpux-faq/faq.html
  303.   http://hpux.cae.wisc.edu/hppd/FAQ/
  304.   http://hpux.csc.liv.ac.uk/hppd/FAQ/
  305.   http://hpubgon.norway.hp.com/Faq/
  306.  
  307. You can also get it by e-mail from <mail-server@rtfm.mit.edu>; send the
  308. text "send usenet/news.answers/hp/hpux-faq".
  309. Or from <majordomo@cv.ruu.nl>; send the text:
  310.  
  311. get hpux-admin HP_FAQ
  312. end
  313.  
  314. The FAQ is also included with the InterWorks software CD-ROM, the Interex CSL,
  315. and the Walnut Creek Internet CD-ROM. Note that these versions were current
  316. when the respective distributions were frozen.
  317.  
  318. A Japanese version of this document is available from CUA (HP Computer
  319. Users Association); send mail to <tagami@jpn.hp.com>. The original translation
  320. was done by Masataka Isoya. Subsequent translations have been done by
  321. Kumiko Watanabe.
  322.  
  323. If all else fails, contact the maintainer (alek@csc.com).
  324.  
  325. ------------------------------
  326.  
  327. Subject: 3.2  Courses on HP-UX
  328.  
  329. Call the following numbers for information or the latest HP Education Catalog.
  330. U.S.:    1-800-HPCLASS {1-800-472-5277}
  331. Canada:  (416)678-9430
  332.  
  333. ------------------------------
  334.  
  335. Subject: 3.3  Interex, The International Association of Hewlett-Packard
  336.               Computing Professionals
  337.  
  338. The Independent Association of Hewlett-Packard Computing Professionals, known
  339. as Interex, has a worldwide membership of more than 18,000.
  340. It is a not-for-profit, 20 year old organization. Interex is accountable only
  341. to its members - not to HP - allowing us to provide a comprehensive and
  342. objective source of information, education, and advocacy services, addressing
  343. virtually every aspect of open HP systems.  Interex doesn't attempt to
  344. supersede HP's support programs. Instead, we complement HP's programs by
  345. offering unique resources unavailable elsewhere.
  346.  
  347. Interex's membership represents a large, knowledgeable, powerful network of HP
  348. users. In addition to their vast expertise, our members managed computer
  349. budgets exceeding $X.X billion in 1995.
  350.  
  351. Benefits of Membership include:
  352.         Exclusive Tips and Techniques
  353.         HP Product News
  354.         Peer Networking Opportunities
  355.         Hands-On Solutions
  356.         Roundtables with HP Engineers
  357.         Local Networking Groups
  358.         Product Enhancements
  359.  
  360. There is now Online access to Interex services via the WWW. Point your
  361. browser to -   http://www.interex.org/    On the Interex home pages you
  362. will find our publications online, you can search the Contributed Software
  363. Library for solutions, can search the archives of the 5 HP related News
  364. Groups, join Interex Special Interest Group LIST-SERVER, find vendor 
  365. information, and link to many other HP related sites.
  366.  
  367. To contact Interex:
  368.    (800) INT-EREX  or (800) 468-3739
  369.    or:  (408) 747-0227
  370.    fax: (408) 747-0947
  371.    email:     ehrhardt@interex.org   ..     Editor of hp-ux/usr magazine
  372.                  pubs@interex.org       ..  Circulation/advertising
  373.                  membership@interex.org ..  Membership inquiries
  374.                  cslhpux@interex.org    ..  Contributed software library (hp-ux)
  375.                  Compuserve:  76376,1222
  376. Address:  Interex                              Interex  (for US mail)
  377.           1192 Borregas Avenue.                P.O. Box 3439
  378.           Sunnyvale, CA 94088                  Sunnyvale, CA  94088-3439
  379.  
  380. ------------------------------
  381.  
  382. Subject: 3.4  InterWorks, the Technical Users Forum of Interex
  383.  
  384. InterWorks, formerly the Apollo Domain User's Society (ADUS), was 
  385. originally formed to provide a users group specifically for HP 
  386. _workstation_ users. The group has since expanded to cover system
  387. administration, software development, and other technical topics for
  388. all HP-UX users. In August 1995 InterWorks merged with Interex to
  389. form a single HP user group, and become the Technical Users Forum
  390. of Interex. InterWorks holds an annual conference, has an extensive
  391. Web presence at http://www.InterWorks.org/ and has a large software
  392. library (see below). Membership is free; sign up via the Web or contact:
  393.  
  394. InterWorks Technical Users Forum
  395. Interex
  396. P.O. Box 3439
  397. Sunnyvale, CA  94088-3439
  398. phone: (800) INT-EREX  or (800) 468-3739  or  (408) 747-0227
  399. fax: (408) 747-0947
  400. email:  membership@InterWorks.org
  401. WWW: http://www.InterWorks.org
  402.  
  403. ------------------------------
  404.  
  405. Subject: 3.5  Interex HP Users Conferences
  406.  
  407. Next events are:
  408.  
  409. HP WORLD 1997 - August 24-28 in Chicago, IL.
  410.  
  411. For more info:
  412.          Send Email to conferences@interex.org
  413.          Call 800-468-3739 and ask for the Conference Department
  414.          Get information and register Online at http://www.interex.org/
  415.  
  416. ------------------------------
  417.  
  418. Subject: 3.6  InterWorks Conference 1997
  419.  
  420. The next InterWorks conference will be 4/25 - 4/30 1998 in Santa Clara, CA.
  421. See http://www.InterWorks.org/conference/IWorks98 for more details.
  422.  
  423. ------------------------------
  424.  
  425. Subject: 3.7  HP/Works
  426.  
  427. HP/Works is the HP/Apollo Workstation User Society in Europe.
  428. Based in the UK the Society supports all HP/Apollo workstation
  429. users - running the HP-UX or DOMAIN operating systems -
  430. throughout Europe.
  431.  
  432. The Society aims to offer a high level of service to our members
  433. whilst continuously expanding the number of benefits available.
  434. Currently these benefits include:
  435.  
  436. Two Major Conferences a Year
  437.        Special Interest groups (SIGs)
  438. A quarterly newletter (PING)
  439.        Contributed software libraries for both HP-UX and DOMAIN
  440.        Introductory documentation and short courses
  441. Mailings of the latest product information and offers
  442. Contacts with outher European HP Computer Users
  443.  
  444. For further information and a membership pack contact:
  445.  
  446.        Helen Grainger,
  447.        PO Box 47,
  448.        Bicester,
  449.        United Kingdom +44 (0)869 321080
  450.  
  451. or by e-mail from helen@hpworks.demon.co.uk
  452.  
  453. ------------------------------
  454.  
  455. Subject: 3.8  HP/Works Conferences
  456.  
  457. HP/Works Provisional Diary of Events - 1997
  458.  
  459. 28 January  - Integration of Unix and NT - Openland, HP Bracknell
  460.  
  461.  6 March    - OpenView Special Interest Group Meeting - BBSRC, Harpenden
  462.  
  463. 15/16 April - Setting up a Web server/html document writing/Web security
  464.             - University of Liverpool
  465.  
  466. 15/16 July  - Network Printing + additional topics with hands on opportunities
  467.             - University of Durham
  468.  
  469. Mid-October - OpenView SIG
  470.  
  471. November    - to be arranged
  472.  
  473. Contact Helen (see info above) for more info.
  474. Thanx to Mike Ellison (M.H.Ellison@durham.ac.uk)
  475.  
  476. ------------------------------
  477.  
  478. Subject: 3.9  Japanese HP Computer Users Association
  479.  
  480. In Japan, the HP users group is called CUA (Computer Users Association);
  481. for information, contact Junko Matsumoto <j_matsu@jpn.hp.com>.
  482.  
  483.      Address: Hewlett-Packard Japan, Ltd.
  484.               9-1 Takakura-cho Hachioji Tokyo, Japan 192
  485.  
  486.               Tel: 81-426-60-2949
  487.               Fax: 81-426-60-8535
  488.               e-mail:j_matsu@jpn.hp.com
  489.  
  490.  
  491. ------------------------------
  492.  
  493. Subject: 3.10  German HP User Group
  494.  
  495. In Germany, the HP user group is called "Deutsche HP-Benutzergruppe e.V.";
  496. contact Mario Beckmann <beckmann@com1.dwhl.de> for information.
  497.  
  498. ------------------------------
  499.  
  500. Subject: 3.11  DutchWorks
  501.  
  502. DutchWorks, formerly GGTS, was formed to provide a users group for technical
  503. users. It represents technical HP users of HP9000 Workstations and Servers,
  504. Instrument Controllers (RTE, HP-RT, RM BASIC, etc.), and Vectra PC's. The
  505. group has a BBS which maintains a library of HP-UX, DOMAIN, RTE and BASIC
  506. software.  Since october '94 it runs also a full mirror of the Liverpool's
  507. HP-UX Archive.
  508.  
  509. Membership details are available from:
  510.  
  511.    Hans Hartwijk,
  512.    Weidezoom 11,
  513.    2742 EX Waddinxveen
  514.    The Netherlands
  515.    31 (0)1828 15086
  516.  
  517. or by e-mail to jaap@klft.tn.tudelft.nl (Jaap Kooman, chair DutchWorks)
  518.  
  519. ------------------------------
  520.  
  521. Subject: 3.12  HP-UX freely available software from InterWorks.
  522.  
  523. Dave Shaw is the Interworks librarian. He maintains a library of publicly
  524. available HP-UX related software on behalf of the InterWorks User Group.
  525. He can be reached at (303)443-9413 or via e-mail at
  526. <librarian@interworks.org>.  The following text is provided by Dave.
  527. See the README mentioned below for details.
  528.  
  529. There is an archive of UX-related software on the InterWorks library node
  530. (interworks.org--128.255.18.10). Note that everything is available  via
  531. anonymous ftp in the pub/comp.hp directory
  532. (ftp://interworks.org/pub/comp.hp). The README there contains a
  533. complete list of the available software.
  534.  
  535. The InterWorks CD, containing a snapshot of the library as it existed
  536. early in 1996 as well as much of the Liverpool archive is available
  537. from Dave. It is also shipped by HP as part of the standard HP-UX media kit.
  538.  
  539. All of the archive is suitable for the 700 series machines, and I have started
  540. to verify that. Executables are included in some packages. If you take a
  541. package and find that you must build an executable (or do some porting) for
  542. your machine and/or OS level, I would appreciate hearing about your work and
  543. receiving a copy of the executable you built.
  544.  
  545. Note that I have had very little involvement in the writing or packaging of
  546. any of the items on the list-- they are the result of the work of many  other
  547. people. In particular, note that the available binaries have not been compiled
  548. by me. If you are concerned about running binaries compiled by someone else,
  549. build them yourself with the available source. Also note  that individual
  550. authors may include text regarding the rights of others to use and distribute
  551. their code.
  552.  
  553. Thanks to all the contributors.
  554.  
  555. ------------------------------
  556.  
  557. Subject: 3.13   Anonymous FTP Sites for HP-UX, and UNIX related software.
  558.  
  559. Site:      ftp://interworks.org/pub/comp.hp
  560. Contents:  The InterWorks HP-UX Library in the directory "pub/comp.hp" as
  561.            described above. The iworks node also keeps the last 4-6
  562.            months of comp.sys.hp.hpux online (via an InterWorks member logon
  563.            (see question 3.4 above). An archive going back to June 1990
  564.            is available-- contact the InterWorks librarian for details.
  565.            Additionally, a large (~1300 line) "HP-UX Troubleshooting
  566.            Guide" is available under the InterWorks member logon.
  567.  
  568. Name:      ftp://hpux.csc.liv.ac.uk
  569. Contents:  Over 1,000 packages ported to HP-UX 8.X and 9.X
  570.  
  571. Name:      http://hpux.csc.liv.ac.uk/ or
  572.            http://hpux.cae.wisc.edu/ or
  573.            http://hpux.ask.uni-karlsruhe.de/ or
  574.            http://hpux.cict.fr/ or
  575.            http://hpux.ced.tudelft.nl/ARCHIVE/archive_intro.html or
  576.            http://hpux.ee.ualberta.ca/ or
  577.            http://hpux.dsi.unimi.it/
  578. Contents:  WWW interface to the above HP-UX archive
  579.  
  580. Name:      gopher://hpux.csc.liv.ac.uk
  581. Contents:  Gopher interface to the above HP-UX archive
  582.  
  583. Name:      wais://hpux.cict.fr/hpux
  584. Contents:  WAIS interface to the above HP-UX archive
  585.  
  586. There is also a mail server at mail-server@csc.liv.ac.uk for users without FTP.
  587.  
  588. Name:      ftp://hpux.ask.uni-karlsruhe.de
  589. Contents:  Official German HP-UX archive site (same as hpux.csc.liv.ac.uk)
  590.  
  591. Name:      ftp://hpux.cae.wisc.edu
  592. Contents:  Official US HP-UX archive site (same as hpux.csc.liv.ac.uk)
  593.  
  594. Name:      ftp://hpux.cict.fr
  595. Contents:  Official French HP-UX archive site (same as hpux.csc.liv.ac.uk)
  596.  
  597. Name:      ftp://hpux.ced.tudelft.nl
  598. Contents:  Official Netherlands HP-UX archive site (same as hpux.csc.liv.ac.uk)
  599.  
  600. Name:      ftp://hpux.ee.ualberta.ca
  601. Contents:  Official Canadian HP-UX archive site (same as hpux.csc.liv.ac.uk)
  602.  
  603. Name:      ftp://hpux.dsi.unimi.it
  604. Contents:  Official Italian HP-UX archive site (same as hpux.csc.liv.ac.uk)
  605.  
  606. Site:      ftp://export.lcs.mit.edu
  607. Contents:  The X Window System and contributed clients.
  608.  
  609. Site:      ftp://waterloo.external.hp.com 
  610. Contents:  X Window System libraries and utilities.
  611.            See /pub/enware/ for X-Terminal software stuff
  612.  
  613. Site:      ftp://ftp-boi.external.hp.com
  614. Contents:  Drivers for HP printers.
  615.  
  616. Site:      ftp://lut.fi/pub/hpux
  617.            ftp://lut.fi/pub/unix/hp-ux
  618. Contents:  Various
  619.  
  620. Site:      ftp://nic.funet.fi/pub/unix/arch/hpux
  621. Contents:  Various
  622.  
  623. Site:      ftp://prep.ai.mit.edu
  624. Contents:  The Free Software Foundation's GNU utilities, etc.
  625.  
  626. Site:      ftp://hybrid.irfu.se/pub
  627. Contents:  X11 archive and shared libraries, full imake support,
  628.            and all missing .h files for both X11R4 and R5, dvi2pcl.
  629.  
  630. Site:      ftp://geod.emr.ca
  631. Contents:  GNU stuff ported to HP-UX 9.x by Pierre Mathieu.
  632.  
  633. Site:      http://www.cup.hp.com/netperf/NetperfPage.html
  634. Contents:  netperf, a network performance measurement tool.
  635.  
  636. Site:      ftp://jazz.gsfc.nasa.gov
  637. Contents:  bathymetry, FFT, graph, pgplot, triangulation, sortroutine
  638.  
  639. Site:      ftp://us-support.external.hp.com
  640. Contents:  HP-UX patches available from FTP for SupportLine customers.
  641.  
  642. Site:      ftp://patch.external.hp.com
  643. Contents:  European mirror of us-support.external.hp.com
  644.  
  645. Site:      ftp://jaguar.cs.utah.edu/dist
  646.            Currently available in the "dist" directory:
  647.  
  648.               gdb-4.13.u4
  649.               binutils-2.5.2.u4
  650.               gcc-2.6.3.u6
  651.               libg++-2.6.2.u2
  652.  
  653.            There is no more "hpgdb", and "gas" is now bundled in the binutils.
  654.  
  655.            The prebuilt binaries can be retrieved all at once from
  656.            hpuxbin.tar.Z, or in pieces from the hpuxbin directory.
  657.  
  658. Site:      ftp://ftp.cs.colorado.edu/pub/sysadmin/utilities/
  659. Contents:  sudo in cu-sudo.v1.3.1-beta9.tar.Z
  660.  
  661. Site:      ftp://ftp.amtp.cam.ac.uk/pub/HP
  662. Contents:  ntalk in ntalk.tgz
  663.  
  664. Site:      http://www.am.qub.ac.uk/world/lists/hpmini-l/
  665. Contents:  It contains an archive of messages from the HPMINI mailing list
  666.            which is dedicated to topics directly relating to Hewlett-Packard
  667.            workstations and primarily those running HP-UX.
  668.            There are also other pointers to HP-UX information.
  669.  
  670. ------------------------------
  671.  
  672. Subject: 3.14  Where can I get a demo CD with software for HP-UX?
  673.  
  674. See your friendly local HP sales rep to get a copy of the latest
  675. "Power On" CD.
  676.  
  677. ------------------------------
  678.  
  679. Subject: 3.15  HP-UX patch information
  680.  
  681. To determine what patches are installed (9.x only):
  682.  
  683. The standard patch installation will leave a directory in /system
  684. that is is name of the patch.  For example, PHSS_3259 creates
  685.  
  686. /system/PHSS_3259
  687.  
  688. $lsf /system/PHSS_3259
  689. CDFinfo     copyright   customize*  index       new/        orig/
  690.  
  691. The orig directory contains the modules that were replaced by the  patch and
  692. the new directory will contain any modules that were not installed for
  693. whatever reason.
  694.  
  695. This can take up a lot of space, so you may want to archive  this directory
  696. and remove the new and orig sub-directories.  You may want to leave the
  697. customize file because it has a list of the modules replaced. To see the
  698. list do:
  699.  
  700.    grep Patch customize | grep -v \#
  701.  
  702. Another place to look is in /etc/filesets:
  703.  
  704. $ls /etc/filesets/PHSS*
  705. /etc/filesets/PHSS_1644  /etc/filesets/PHSS_2695  /etc/filesets/PHSS_3060
  706. ...
  707. /etc/filesets/PHSS_2686  /etc/filesets/PHSS_3032  /etc/filesets/PHSS_3328
  708.  
  709. If someone has removed the /system/PHSS* directories and the PHSS*
  710. entries in /etc/filesets, there is no easy way to tell what patches
  711. are installed.  You can tell if a given patch has been installed by
  712. comparing what(1) and sum(1) outputs with those given in the
  713. PHSS_nnnn.text file. Refer to question 7.11 about kernel patches.
  714.  
  715. For 10.x, use the swlist command.
  716.  
  717. How to get patches - there are four ways:
  718.  
  719. All customers with a valid software agreement are sent quarterly releases
  720. titled "Extention Software"  On each CD is the latest patch bundle for ALL
  721. supported OS/platform combinations.  If you are not receiving your Extention
  722. Software CD's, contact HP. Note that you can get this on tape ... but HP
  723. is encouraging folks to use CD-ROM. 
  724.  
  725. If you have a support contract you can call the Response Center
  726. (800-633-3600) and have the patches sent to you on magnetic media.
  727.  
  728. If you wish to get patches from the Internet, you can access the Electronic
  729. Support Center (http://us-support.external.hp.com)
  730. In addition to patches, you can also access online problem solving
  731. information, subscribe to mailing lists, and get documents.
  732.  
  733. You can also get patches from ftp://us-support.external.hp.com/hp-ux_patches
  734. or you can get them via the web at http://us-support.external.hp.com/.
  735.  
  736. John Morris of the Atlanta Response Center posts a weekly list of  new patches
  737. to comp.sys.hp.hpux on Mondays.  It tells what's new and what patches are
  738. replaced by the new patches, along with sizes. 
  739.  
  740. ------------------------------
  741.  
  742. Subject: 3.16  How can I send mail to an "hpdesk" address?
  743.  
  744. For a person whose DESK address is:
  745.   JANE DOE /HP1234/XY
  746.  
  747. Ignore the subentity (XY) and use the form:
  748.   jane_doe@hp1234.desk.hp.com
  749.  
  750. Send them a test message and tell them to make a note of the return address,
  751. as forming internet addresses on DESK is a little more complicated.  If
  752. there is an X.400 system between you and the DESK person, what you get back
  753. may look like a very strange internet address, but it generally works.
  754.  
  755. Notice the underscore between names.  Names can be first_last or last_first,
  756. but first_last is easier to remember and get correct, especially if they have
  757. initials in their name as in fred_l_doe@hpatc1.desk.hp.com.  Be sure that the
  758. DESK address they give you is exactly what is reported by DESK when they send
  759. a message to themselves or look at the distribution list on a piece of mail
  760. the recipient already has to verify the address.
  761.  
  762. (Thanks to Bob Niland and Bill Hassell)
  763.  
  764. ------------------------------
  765.  
  766. Subject: 3.17  What are the known issues with porting BSD-based programs to HP-UX?
  767.  
  768. Mike Peterson <system@alchemy.chem.utoronto.ca> periodically posts
  769. his list of BSD-HP tricks to comp.sys.hp.hpux. It is also archived on the
  770. InterWorks FTP site (mentioned above) as "hptricks".
  771.  
  772. ------------------------------
  773.  
  774. Subject: 3.18  What periodicals are available that focus on HP-UX?
  775.  
  776. o Interex publishes hp-ux/usr, an HP-UX focused newsletter with numerous
  777.   contributions from InterWorks members.
  778.  
  779. o HP Professional (The Magazine for Hewlett-Packard Enterprise Computing)
  780.  
  781.   This magazine covers MPE, HP-UX, PCs, peripherals and Networking for
  782.   HP users.  Its focus is on both commercial as well as technical
  783.   computing. It is published by:
  784.           Cardinal Business Media, Inc.
  785.               101 Witmer Road
  786.               Horsham, PA 19044
  787.               (215) 957-1500     FAX: (215) 957-1050
  788.    email: simpson@cardinal.com (editor-in-chief)
  789.  
  790. o The HP Chronicle (The Independent Newspaper for HP Computer Users)
  791.  
  792.   This tabloid-sized newspaper contains news from HP and other vendors
  793.   of compatible hardware, software and peripherals. Published by:
  794.                Publications and Communications, Inc
  795.                12416 Hymeadow Drive
  796.                Austin, TX  8750-1896
  797.                (512) 250-9023    Fax: (512) 231-3900
  798.                email: {cs.utexas.edu, execu, texbell}!pcinews!wks
  799.                Compuserve: 76011,307
  800.                MCI mail: PCI
  801.                EasyLink: 62755060
  802.  
  803. o Unix Review covers general Unix topics monthly.
  804.  
  805. (Thanks to Bill Hassell, HP, for most of this)
  806.  
  807. ------------------------------
  808.  
  809. Subject: 3.19   Books on HP-UX
  810.  
  811. A recently published book on HP-UX system administration:
  812.  
  813.   'The HP-UX System Administrator's "How To" Book'
  814.    by Marty Poniatowski
  815.      Prentice-Hall
  816.      ISBN 0-13-099821-4
  817.  
  818. If you're serious about administering HP-UX workstations, get this book.
  819. Unfortunately, it fails to mention the Internet or this FAQ as
  820. alternate resources, but it does discuss InterWorks and Interex.
  821.  
  822. Marty has now published a 10.x version of this book which
  823. has an ISBN number of 0-13-125873-7. 
  824.  
  825. (Thanks to Mike Taylor, HP)
  826.  
  827.  
  828.    Learning the HP-UX Operating System 
  829.       by Marty Poniatowski     ISBN 01-13-258534-0
  830.  
  831.    Disk and File Management Tasks on HP-UX
  832.       by Tom Madell             ISBN 0-13-518861-x
  833.  
  834.    CLUSTERS for High Availability
  835.       by Peter S. Weygant       ISBN 0-13-494758-4
  836.  
  837. (Thanx to Pat Goodwin, pgodwin@ast.lmco.com)
  838.  
  839.  
  840. HP-UX System and Administration Guide, by Jay Shah
  841. published by McGraw-Hill, 1997 (ISBN 0-07-057277-1)
  842.  
  843. The book's coverage includes SAM, LaserROM, new system installation
  844. (Instant Ignition), Kernel Configuration, I/O buses and backplanes,
  845. Logical Volume Manager, and Performance monitoring.
  846.  
  847. (Suggested by (surprise!  ;-) Jay Shah, jay_shah@merck.com)
  848.  
  849.  
  850.  
  851. ------------------------------
  852.  
  853. Subject: 3.20  HP-UX Sysadmin Mailing List
  854.  
  855. Bart Muyzer runs an HP-UX system administration mailing list. To reach
  856. ALL MEMBERS of the list, send e-mail to <hpux-admin@cv.ruu.nl>;
  857. to SUBSCRIBE, send mail to <majordomo@cv.ruu.nl> with in the body:
  858.  subscribe hpux-admin e-mail address
  859.  end
  860. The e-mail address is optional and, when left out, will be set to the contents
  861. of your "From: " line.
  862.  
  863. To get a list of available commands, send a message containing
  864.  help
  865.  end
  866. to <majordomo@cv.ruu.nl>."
  867.  
  868. Problems, questions, suggestions and the like should go to the address
  869. "owner-hpux-admin@cv.ruu.nl". You can retrieve the charter from
  870. <majordomo@cv.ruu.nl>; send a message containing:
  871.  
  872. get hpux-admin hpux-admin-policy
  873. end
  874.  
  875. A copy of the FAQ is available in the same way by sending:
  876.  get hpux-admin HP_FAQ
  877.  end
  878.  
  879. (Thanks, Bart!)
  880.  
  881. ------------------------------
  882.  
  883. Subject: 3.21   HP-related WWW Sites
  884.  
  885. There are now several sites supporting WWW access on HP-related topics,
  886. including HP itself.
  887.  
  888. The HP SupportLine World Wide Web service allows you to:
  889.  
  890. o  Resolve software problems by searching up-to-date support and problem-
  891.    solving information;
  892. o  Browse news and current announcements; and
  893. o  Subscribe to automatically receive the latest Hewlett-Packard support
  894.    information.
  895. o  Log, track, and reply to non-urgent calls with the Response Center.   
  896.  
  897.  
  898. The HP SupportLine World Wide Web service home page is located at URL:
  899.  
  900.       http://us-support.external.hp.com
  901.  
  902. The Hewlett-Packard World Wide Web home page (Access HP) is located at URL:
  903.  
  904.       http://www.hp.com
  905.  
  906. Please forward all feedback about the HP SupportLine World Wide Web service
  907. to webmaster@us-support.external.hp.com.
  908.  
  909. Other HP-related WWW sites include:
  910.  
  911. Site: http://hpwww.epfl.ch/HPUX/tools/disktab.html
  912.       http://hpwww.epfl.ch/bench/bench.html
  913.       http://hpwww.epfl.ch/
  914.       Or send mail to mailer@hpwww.epfl.ch to access disktab info.
  915. Contents: Contains many disktabs for non-HP disks
  916.  
  917. Site: http://www.cis.ohio-state.edu/hypertext/faq/usenet/hp-faq/faq.html
  918. Contents: This FAQ.
  919.  
  920. Site: http://hpux.csc.liv.ac.uk/FAQ/
  921. Contents: This FAQ.
  922.  
  923. Site: http://hpux.csc.liv.ac.uk/intro.html
  924. Contents: Interface to the Liverpool archive, including package descriptions,
  925.       man pages and screen shots as well as the packages themselves. Also
  926.       includes a WAIS server (wais://www.csc.liv.ac.uk/hpux) for searching
  927.       HTML documents relating to the archive.
  928.  
  929. Site: http://hpubgon.norway.hp.com/Faq/
  930. Site: http://hpux.cae.wisc.edu/FAQ/
  931. Contents: This FAQ.
  932.  
  933. Site: http://hpux.cae.wisc.edu/intro.html
  934. Contents: Interface to the Wisconsin Liverpool archive mirror, including
  935.       package descriptions, man pages and screen shots as well as the
  936.       packages themselves.
  937.  
  938. Site: http://hpux.ced.tudelft.nl/HPUX_ADMIN_ARCHIVE/
  939. Contents: Archive for the hpux-admin mailing list.
  940.  
  941. Site: http://www.eel.ufl.edu/~scot/tutor/
  942. Contents: HP-UX 9.x Tutorial
  943.  
  944. Site: http://hpux.ced.tudelft.nl/HPUX_ADMIN_ARCHIVE/index.html
  945. Contents: System Administrators Mailing List for HP-UX
  946.  
  947. Site: http://hpwww.epfl.ch/
  948. Contents: French speaking HP www support (some info also in english like
  949.        benchmarks, disktab entries, etc...)
  950.  
  951. Site: http://www.eel.ufl.edu/~sessiont/tutorial/tofc.html
  952. Contents: HP-VUE tutorial
  953.  
  954. Site: http://www.interex.org/
  955. Contents: Information from Interex.
  956.  
  957. Site: http://www.InterWorks.org/
  958. Contents: Information from InterWorks.
  959.  
  960. ------------------------------
  961.  
  962. Subject: 3.22  Is there any way to get rid of a frequent poster's posts?
  963.  
  964. If you wish to remove a frequent poster's posts (ie Joe Bloggs) and most
  965. of the related followups and if you are running rn, put the following
  966. commands in your kill file:
  967.  
  968. /Joe Bloggs/a:j
  969. /joeb@anyplace.com/a:j
  970.  
  971. If you are using Gnus (an Emacs-based newsreader), type "M-k" in the
  972. Subject buffer of the relevant newsgroup to expose the killfile,
  973. insert these two lines into the killfile:
  974.  
  975. (gnus-kill "From" "joeb@anyplace.com" '(gnus-summary-kill-thread nil))
  976. (gnus-expunge "K")
  977.  
  978. and then type "C-c C-c" in the killfile buffer.  From then on, you
  979. will not see any thread trees rooted at an article from Joe Bloggs.
  980.  
  981. ------------------------------
  982.  
  983. Subject: 3.23  HP 9000 series 500 Mailing List
  984.  
  985. There now exists a mailing list dedicated to the HP 9000 series 500 machine.
  986. To get on (or off) the list, send email to
  987.         <hp9000-500-request@nvc.cc.ca.us>
  988. with the word
  989.         subscribe
  990. in the subject line.
  991.  
  992. (Thanks to Chris Osborn, <fozztexx@nvc.cc.ca.us>)
  993.  
  994. ------------------------------
  995.  
  996. Subject: 3.24  HP 3000 FAQ
  997.  
  998. There is a (slowly forming) HP3000 FAQ available by e-mail to
  999. faq@3k.com, gopher at gopher.3k.com, anonymous ftp at ftp.3k.com, or
  1000. www at ftp://ftp.3k.com/3k.htm
  1001.  
  1002. It contains a list of the products and vendor names. There is also a
  1003. list of HP3000 vendors (on the above machines) with Internet e-mail
  1004. access.
  1005.  
  1006. (thanks to Chris Bartram, 3K Associates <rcb@3k.com>)
  1007.  
  1008. ------------------------------
  1009.  
  1010. Subject: 3.25  What is HP's involvement in the HP-related newsgroups?
  1011.  
  1012. HP does not, to my knowledge, have a formal policy regarding employee
  1013. involvement in the HP-related newsgroups. There is significant
  1014. activity from HP employees, typically Response Center engineers and
  1015. lab engineers. Much of the information in this document originally
  1016. came from internal HP sources.
  1017.  
  1018. ------------------------------
  1019.  
  1020. Subject: 3.26  Who were the former maintainers of the FAQ?
  1021.  
  1022. Greg Cagle (gcagle@hpupora.nsr.hp.com) from Mentor Graphics was the
  1023. FAQ maintainer until November 1994.  All entries with no attribution
  1024. are Greg's. Thanks for all the work getting the FAQ started and running.
  1025.  
  1026. Colin Wynd (colin@col.hp.com) from the NetMetrix Operation in
  1027. Hewlett-Packard was the maintainer until November 1995.
  1028.  
  1029. Craig Gilmore (craigg@mayfield.hp.com)  from Mountain View
  1030. Hewlett-Packard was the maintainer until February/96. 
  1031.  
  1032. Alek Komarnitsky (alek@csc.com) got conned into doing this by 
  1033. Greg starting in August/96 (where's that six-pack of Hank's?!?  ;-)
  1034.  
  1035. ------------------------------
  1036.  
  1037. Subject: 3.27  Where do i get information on HP's Printers?
  1038.  
  1039. You can access printer information and software from:
  1040.  
  1041.               http://hpcc997.external.hp.com/cposupport/cpoindex.html
  1042.    Site:      ftp://ftp-boi.external.hp.com
  1043.    Contents:  Drivers for HP printers.
  1044.  
  1045. There is a phone number for ordering printer drivers: (303) 339-7009
  1046.  
  1047. ------------------------------
  1048.  
  1049. Subject: 3.28  Where is the SunOS to HP-UX Porting Guide?
  1050.  
  1051. Electronic copies of the guide are available via the Interworks Library.
  1052. The Library may be accessed via:
  1053.  
  1054.    FTP:      www.interworks.org
  1055.    WWW URL:  ftp://www.interworks.org
  1056.  
  1057.       /pub/comp.hp/porting_info/
  1058.         sun_hpux_port_ascii_0295        ASCII version of the Porting Guide
  1059.         sun_hpux_port_html_0295.tar     WWW HTML version of the Porting Guide
  1060.         sun_hpux_port_ps_0295.tar       Postscript (level 3) version
  1061.  
  1062. Hard copies are available free of charge ONLY through your local HP Sales
  1063. Representative.  Please reference HP Literature Distribution Center
  1064. document number 5963-5416E.
  1065.  
  1066. (Thanks to John Agosta <agosta@fc.hp.com>)
  1067. ------------------------------
  1068.  
  1069.  
  1070.  
  1071. Subject: 3.29    Where can I get support from HP on the Web?         
  1072.  
  1073. HP's support offerings on the Web are fairly extensive.  Anyone can
  1074. access the Patch Database, Support Information Digests, and certain
  1075. portions of the Technical Knowledge Database.
  1076.  
  1077. With a valid software agreement, you can also log non-urgent calls, and
  1078. search more of the Technical Knowledge Database.  You will also be able
  1079. to access the Software Update Manager.  With PSS or PAS level support,
  1080. you are also able to access the Custom Patch Manager.
  1081.  
  1082. HP DOES require registration to access the Electronic Support Center.
  1083. When you click on any of the links, it will ask you to either Enter as a
  1084. Registered User, or Register Now.
  1085.  
  1086. If you do not have a software agreement, or you don't have the
  1087. information for it, after you have registered and the ESC has given you
  1088. your userid, go back until you get the "Enter as a Registered User"
  1089. choice again.  (The only link on the page that gives you your userid
  1090. tries to link you to a software agreement)
  1091.  
  1092. The Electonic Support Center is at:
  1093.    http://us-support.external.hp.com
  1094.  
  1095.  
  1096. Thanx to Skunk Schouten <skunky@skunky.org> 
  1097.  
  1098. ------------------------------
  1099.  
  1100.  
  1101. Subject: 4. THIRD PARTY VENDORS
  1102.  
  1103. ------------------------------
  1104.  
  1105. Subject: 4.1   Third party vendors for RAM.
  1106.  
  1107. The following vendors are listed in alphabetical order. No guarantees
  1108. are made regarding compatibility or relative merit of the vendors.
  1109.  
  1110. Camintonn                          Clearpoint Research Corporation
  1111. 22 Morgan                          1000 E. Woodfield Road, Suite 102
  1112. Irvine, CA 92718                   Schaumburg, IL 60173
  1113. (800) 843-8336                     (708) 619-9227
  1114. (714) 454-6500
  1115.  
  1116. Concorde Technologies              Dataram
  1117. 7966 Arjons Dr. B-201              PO Box 7528
  1118. San Diego, CA 92126                Princeton, NJ 08543-7528
  1119. (800) 359-0282                     (800) DATARAM
  1120. (619) 578-3188                     (800) 799-0071
  1121.  
  1122. Digitial Micronics                 Eventide
  1123. 2075 Corte Del Nogal               1 Alsan Way
  1124. Unit N                             Little Ferry, NJ 07643
  1125. Carlsbad, CA 92009                 (201) 641-1200
  1126.  
  1127. Helios Systems                     Herstal Automation
  1128. 1996 Lundy Ave                     3171 West Twelve Mile Rd.
  1129. San Jose, CA 95131                 Berkley, MI 48072
  1130. (408) 432-0292                     (313) 548-2001
  1131. (800) 366-0283
  1132.  
  1133. IEM                                Infotek Systems
  1134. P.O. Box 1889                      625 South Lincoln
  1135. Fort Collins, CO 80522             Suite 204
  1136. (800) 321-4671                     Steamboat Springs, CO 80487
  1137. (303) 221-3005                     (800) 767-1084
  1138.  
  1139. Intelligent Interfaces             ISA Ltd
  1140. P.O. Box 1486                      1-1-5 Sekiguchi
  1141. Stone Mountain, GA 30086-1486      Bunkyo-Ku
  1142. (800) 842-0888                     Tokyo 112 Japan
  1143.                                    81-3 (5261) 1160
  1144.                                    US Office (Texas)
  1145.                                    (713) 493-9925
  1146.  
  1147. Kelly Computer Systems             Kingston Technology Corporation
  1148. 1101 San Antonio Rd.               17600 Newhope Street
  1149. Mountain View, CA 94043            Fountain Valley, CA 92708
  1150. (415) 960-1010                     (714) 435-2600
  1151.  
  1152. Martech                            Merida Systems
  1153. 1151 W. Valley Blvd.               (617) 933-6790
  1154. Alhambra, CA 91803-2493
  1155. (800) 582-3555
  1156. (818) 281-3555
  1157.  
  1158. MDL Corporation
  1159. 15301 NE 90th St.
  1160. Redmond, WA 98052
  1161. FAX (206)861-6767
  1162. (800)800-3766
  1163. (206)861-6700
  1164.  
  1165. Newport Digital                    R Squared
  1166. 14731 Franklin Avenue              11211 E. Arapahoe Rd., Suite 200
  1167. Suite A                            Englewood, CO 80112
  1168. Tustin, CA 92680                   (303) 799-9292
  1169. (714) 730-3644                     (800) 777-3478
  1170.  
  1171. HCS Hanseatischer Computerservice GmbH
  1172. Oldesloer Str.97-99
  1173. 22457 Hamburg, Germany
  1174. +49 40 559 747 - 0
  1175. +49 40 559 747 - 77 Fax
  1176. email: gfkt@hcs.de
  1177.  
  1178. (Thanks to Roy McMorran <mcmorran@ll.mit.edu>)
  1179.  
  1180. ------------------------------
  1181.  
  1182. Subject: 4.2   Third party vendors for other things
  1183.  
  1184. Vendor                          Product(s)
  1185. ------                          ----------
  1186. Andataco                        System integrator and peripheral reseller
  1187. 10140 Mesa Rim Road
  1188. San Diego, CA 92009
  1189. (619)453-9191
  1190. mailto: inquire@andataco.com
  1191.  
  1192. Black River Computers           Carry both HP Brand equipment and HP
  1193. 7630 Race Road                  compatible equipement (memory & disks)
  1194. North Ridgeville, OH 44039      Also does on-site service for HP stuff.
  1195. 800-840-4277, 216-365-9950
  1196. FAX: 216-365-3916
  1197. http://www.blackriver.com
  1198. mailto: tomk@blackriver.com   Tom Killen 
  1199.  
  1200. Database Excelleration Systems  Solid-state disk emulators (SSDs)
  1201. 2945 Oakmead Vilage Court       Specializing in database accelleration
  1202. Santa Clara, CA 95051
  1203. FAX: 408-727-5496
  1204. (408)727-5497
  1205. http://www.desdbx.com
  1206.  
  1207. IEM, Inc.                       Tapes (4mm, 8mm, QIC, 3480), disks,
  1208. 1629 Blue Spruce Drive          optical, floppy and backup software.
  1209. Fort Collins, CO  80524         SCSI and HP-IB peripherals.
  1210. Voice: (303)221-3005
  1211. FAX:   (303)221-1909
  1212. mailto: info@iem.com
  1213.  
  1214. Imperial Technology             Provider of high-performance solid state disks
  1215. 2305 Utah Ave.                  and cached disk subsystems designed to increase
  1216. El Segundo, CA 90245            the performance of HP-UX based applications.
  1217. 310-536-0018
  1218. www.imperialtech.com
  1219.  
  1220. Interphase Corporation          High performance bus interfaces (EISA/FDDI,
  1221. 13800 Senlac                    VME/ATM.)
  1222. Dallas, Texas 75234
  1223. (214)919-9000
  1224.  
  1225. ITAC Systems, Inc.              Supports Mouse-trak trackball for HP-HIL
  1226. 3113 Benton St.
  1227. Garland, Tx 75042
  1228. (800)533-4822
  1229. mailto: yvonne@moustrak.com
  1230.  
  1231. MDL Corporation                 Disk, tape, optical, jukebox, EISA expansion,
  1232. 15301 NE 90th St.               RAID, others.
  1233. Redmond, WA 98052
  1234. FAX (206)861-6767
  1235. (800)800-3766
  1236. (206)861-6700
  1237.  
  1238. Modular Industrial              MICHIL PS2 to HP-HIL converter. Allows
  1239. Computers                       standard PC keyboards and mice to be connected
  1240. (423)499-0700                   to HP workstations
  1241. Norma Hansen
  1242.  
  1243. SBE                             EISA serial and SCSI boards.
  1244. 4550 Norris Canyon Road
  1245. San Ramon, CA 94583-1389
  1246. (510)355-2000
  1247. (800)925-2666
  1248. fax (510)355-2020
  1249.  
  1250. Texas ISA                       SCSI & HP-IB External Storage Sub-Systems
  1251. 14825 St. Mary's Lane           UNIX Power Management Solutions - Auto
  1252. Suite 250                       Startup/Shutdown Devices for networked and
  1253. Houston, TX 77079               non-networked UNIX systems.
  1254. (713)493-9925
  1255. (800)361-2258
  1256. mailto: sales@texasisa.com
  1257. mailto: support@texasisa.com
  1258.  
  1259. Vital, Inc.                     Modern Graphical File Editor With Enhanced
  1260. 4109 Candlewyck Drive           Softbench Encapsulation.
  1261. Plano, TX 75024
  1262. U.S.A
  1263. (214) 491-6907
  1264. (214) 491-6909
  1265. mailto: info@vital.com
  1266.  
  1267. Workstation Solutions           Data backup and recovery solutions.
  1268. One Overlook Drive
  1269. Amherst, NH  03031-2800
  1270. VOX: (603) 880-0080
  1271. FAX: (603) 880-0696
  1272. mailto: jimm@worksta.com       (Jimm Parsons, Technical Services Manager)
  1273.  
  1274. Confluent, Inc.                UNIX diagramming and flowcharting tools
  1275. 132 Encline Court              for engineering, technical, business graphics
  1276. San Francisco, CA 94127
  1277. Voice: (415) 586-8700
  1278. FAX: (415) 586-8700
  1279. mailto: info@confluent.com
  1280. http://www.confluent.com
  1281.  
  1282. (Thanks to various contributors)
  1283.  
  1284. ------------------------------
  1285.  
  1286. Subject: 4.3  Do Seagate 9GB drives working with s700 and s800?
  1287.  
  1288. The s700's and s800's can't handle anything more than 4Gb (for the
  1289. forseeable future including initial 10.0 release). Another vendor,
  1290. MDL, sells 9Gb drives with a driver for HP-UX.
  1291.  
  1292. MDL can be reached at:
  1293.  
  1294.     Michael Lampi                 lampi@mdlcorp.com
  1295.     MDL Corporation               (206) 861-6700
  1296.     15301 NE 90th Street          (206) 861-6767 FAX
  1297.     Redmond, WA 98052             (800) 800-3766
  1298.     Mosaic:  http://www.halcyon.com/mdlcorp/
  1299.  
  1300. (thanks to Bill Hassell <blh@hpuerca.atl.hp.com>)
  1301.  
  1302. ------------------------------
  1303.  
  1304. Subject: 5. UTILITIES
  1305.  
  1306. ------------------------------
  1307.  
  1308. Subject: 5.1  ASCII to Postscript converter.
  1309.  
  1310. You can get an ASCII to Postscript converter from:
  1311.  
  1312. ftp://ftp.uu.net/usenet/comp.sources.misc/volume10/a2ps3.Z
  1313.  
  1314. Additionally, nenscript is available from various FTP sites.
  1315.  
  1316. ------------------------------
  1317.  
  1318. Subject: 5.2  How do I make perl on HP-UX?
  1319.  
  1320.    Reply like this to Configure:
  1321.  
  1322.    1. When it asks for optimization flags answer
  1323.         +O1 if you have HP-UX 7.05 or less
  1324.         -O  if you have HP-UX 8.0 or later.
  1325.    2. When it asks for additional flags to cc answer
  1326.         -DJMPCLOBBER
  1327.    3. When it asks for additional libraries answer
  1328.         -lndbm -lm      (ignore the other libraries Configure finds).
  1329.       You can also safely add -lBSD if you want BSD signal semantics.
  1330.    4. When it asks if you want to use perl's malloc answer
  1331.         y
  1332.       If you have HP-UX 8.07 or later you may choose to answer no to this
  1333.       since that malloc is OK.
  1334.    5. When perl asks on which boundary a double must be aligned answer
  1335.         8    if you are on a 9000/800 or 9000/700 series machine (HP-PA
  1336.              architecture).
  1337.         2    otherwise (Motorola 68k architecture)
  1338.  
  1339.    NOTE: That an already compiled version of Perl 5.000 can be found on the
  1340.          Liverpool archive and its mirrors.
  1341.  
  1342. ------------------------------
  1343.  
  1344. Subject: 5.3  What is the status of the various gnu items on HP-UX?
  1345.  
  1346. Check the Liverpool archive for the latest GNU packages on HP-UX.
  1347.  
  1348. ------------------------------
  1349.  
  1350. Subject: 6.  X WINDOW SYSTEM, MOTIF, HP-VUE, AND CDE
  1351.  
  1352. ------------------------------
  1353.  
  1354. Subject: 6.1  X11 libraries (Athena, etc.) and utilities (imake, etc.).
  1355.  
  1356. As you may have noticed, HP does not ship a "full" set of X11 libraries and
  1357. include files, and does not provide imake or associated tools. There is a HP
  1358. maintained, but UNSUPPORTED, set of X11R4 libraries and utilities for the HP
  1359. 9000 Series 300, 400, 700, and 800.  You can get the libraries, include files,
  1360. and config files (imake) via anonymous FTP from
  1361.  
  1362. ftp://hpcvaaz.cv.hp.com/pub/MitX11R4/libs.s*00.tar.Z
  1363.  
  1364. This is also archived on the iworks node as mentioned above. HP has also
  1365. submitted X11R5 sources to the iworks node as mentioned above. And, Bo Thide
  1366. has X11R4 and R5 support available via anon. FTP as mentioned above.
  1367.  
  1368. Note that imake is shipped with HP-UX 10.x.
  1369.  
  1370. ------------------------------
  1371.  
  1372. Subject: 6.2  How can I display an image on the root window with HP-VUE?
  1373.  
  1374. Set Vuewm*backdrop*image:   none. Note that there is an explicit pick for this
  1375. in the Style Manager with HP-VUE 3.0. When the backdrop is clear, you can use
  1376. xloadimage, xsetroot, xv, or the like to display the image of your choice.
  1377.  
  1378. ------------------------------
  1379.  
  1380. Subject: 6.3  How do I get a scroll bar on hpterms?
  1381.  
  1382. Set the following resources:
  1383.  
  1384. HPterm*scrollBar:       TRUE
  1385. HPterm*saveLines:       1024
  1386.  
  1387. or some other other arbitrarily large number.  To do this interactively, use
  1388. "hpterm -sb -sl 1024". You can also set these in an app-default file
  1389. (/usr/lib/X11/app-defaults/HPterm). You can also set saveLines to something
  1390. like "4s", which indicates four screens.
  1391.  
  1392. If you want the VUE panel terminal icon produce hpterm's that have
  1393. scroll bars, and also have their login shell run at the startup of
  1394. the terminal.  To do this you have to modify the default action of the
  1395. VUE panel.  The easiest way to do this on a system-wide basis is
  1396. to edit the "/usr/vue/types/xclients.vf" file. Change the line that says
  1397. "hpterm" to "hpterm -ls -sb -sl 400":
  1398.  
  1399. /usr/vue/types/xclients.vf
  1400.  
  1401. ACTION Hpterm
  1402.         TYPE            COMMAND
  1403.         WINDOW-TYPE     NO-STDIO
  1404.         EXEC-STRING     hpterm -ls -sb -sl 400
  1405.         DESCRIPTION     The Hpterm action starts an hpterm terminal
  1406.                         emulator.
  1407. END
  1408.  
  1409. (Thanks to Greg Cagle <gcagle@hpupora.nsr.hp.com> and
  1410.            John Kemp  <JohnKemp@uiuc.edu> )
  1411.  
  1412. ------------------------------
  1413.  
  1414. Subject: 6.4  How can I put a title in my hpterm titlebar?
  1415.  
  1416. Here is a two line program that you might find useful:
  1417.  
  1418. /* Quick and dirty program to put argv[1] in the title bar of an hpterm
  1419.    Tom Arons March 1992
  1420. */
  1421. #include <string.h>
  1422. main(argc,argv)
  1423.         int argc; char **argv;
  1424. {
  1425.         printf("\033&f0k%dD%s", strlen(argv[1]), argv[1]);
  1426.         printf("\033&f-1k%dD%s", strlen(argv[1]), argv[1]);
  1427. }
  1428.  
  1429. An alternative is:
  1430.  
  1431. #!/bin/sh
  1432. LENGTH=`strlen $1`
  1433. echo "&f0k${LENGTH}D$1\c"
  1434.  
  1435. That's ESC between the first quote and the f0k.
  1436.  
  1437. strlen, in case you don't have it, comes from:
  1438.  
  1439. #include <stdio.h>
  1440.  
  1441. main(argc, argv)
  1442.    int argc;
  1443.    int *argv[];
  1444. {
  1445.    if (argc != 2)
  1446.       exit(0);
  1447.    printf("%d\n", strlen(argv[1]));
  1448. }
  1449.  
  1450. To set the title in the icon:
  1451.  
  1452. #!/bin/sh
  1453. LENGTH=`strlen $1`
  1454. echo "&f-1k${LENGTH}D$1\c"
  1455.  
  1456. Where the & is ESC.
  1457.  
  1458. (Thanks to Tom Arons <arons@ash.eecs.ucdavis.edu> and John T. Beck, HP.)
  1459.  
  1460. ------------------------------
  1461.  
  1462. Subject: 6.5  How come my hpterms keep going away by themselves?
  1463.  
  1464. You are probably using the C Shell (/bin/csh) and have autologout set (it is
  1465. set to 60 minutes by default).  Put an "unset autologout" in your
  1466. ".cshrc".
  1467.  
  1468. If you are using the korn shell it is probably due to the value set for
  1469. the shell variable TMOUT.  Set it to 0 (infinite timeout).
  1470.  
  1471. (Thanks to Jim Sharpe <jms@spatial.com> for the Korn Shell information.)
  1472.  
  1473. ------------------------------
  1474.  
  1475. Subject: 6.6  How come my HP X/Motif clients take a LONG time to display on a Sun?
  1476.  
  1477. The problem is with the OW3 server.  You can request OW3 patch 100444-35 (or
  1478. whatever is the current replacement) from Sun to fix the problem. Supposedly
  1479. this has been rolled into OW 3.0.1. A workaround is to set the X resource
  1480. *useColorObj: False on the Sun.
  1481.  
  1482. ------------------------------
  1483.  
  1484. Subject: 6.7  How can I get my login stuff to work under HP-VUE?
  1485.  
  1486. Suggestion 1) The HP-VUE User's Guide suggests that people make a copy
  1487.               of /usr/vue/config/sys.vueprofile to ~/.vueprofile. This file
  1488.               contains a detailed set of comments about setting it up so
  1489.               that their .login/.profile will be sourced correctly (including
  1490.               details on making sure that tset(1)-like programs are only run
  1491.               when *NOT* in HP-VUE).
  1492.  
  1493. Suggestion 2) When you login via VUE, VUE sources ~/.vueprofile *INSTEAD
  1494.               OF* your .login (csh), .profile (sh/ksh), and other startup
  1495.               files.  Whatever actions are taken in  ~/.vueprofile are
  1496.               persistent across any children started by VUE. Meaning that
  1497.               if you symbolic link  ~/.vueprofile to your ~/.profile, then
  1498.               VUE will source your ~/.profile before starting the window
  1499.               system, and all children (hpterms/xterms and their interactive
  1500.               shells) will inherit this environment (prompt variables et al).
  1501.  
  1502.               Documentation indicates your ~/.vueprofile should contain
  1503.               either csh, or sh/ksh syntax, depending upon what your login
  1504.               shell is.
  1505.  
  1506.               When csh is my login shell, I set my  ~/.vueprofile  to contain
  1507.               only two lines:
  1508.  
  1509.                  if ( -f /etc/csh.login ) source /etc/csh.login
  1510.                  if ( -f ~/.cshrc ) source ~/.cshrc
  1511.  
  1512.               When sh/ksh is my login shell, I set my ~/.vueprofile to
  1513.               contain only two lines:
  1514.  
  1515.                  test -f /etc/profile && . /etc/profile
  1516.                  test -f ${HOME}/.profile && . ${HOME}/.profile
  1517.  
  1518.               So, before  starting the window  manager and any clients, VUE
  1519.               makes sure that all my shell startup files are sourced and all
  1520.               the variables I want in my shell environment are already there
  1521.               and waiting for me.
  1522.  
  1523. (Thanks to David Masterson <davidm@prism.kla.com>, and
  1524.            Steve Jumonville, 3com)
  1525.  
  1526. ------------------------------
  1527.  
  1528. Subject: 6.8  How can I get console messages to go to an hpterm?
  1529.  
  1530. You can avoid console messages writing to your graphics planes and trashing
  1531. your VUE session by starting an hpterm and designating it to receive console
  1532. messages, and to de-iconify, when console messages are received.  Put
  1533. something like this in your "vue.session" file in ~/.vue/sessions/home.
  1534. (line wrapped for readability):
  1535.  
  1536. # Start up the  Terminal  Console as iconic,  and raise it if any output
  1537.  
  1538. vuesmcmd -cmd "hpterm -C -iconic -ls -sb -sl 256 -name Console -T Console
  1539. -xrm *mapOnOutputDelay:\ 30 -xrm *mapOnOutput:\ True
  1540. -xrm Console*clientFunctions:\ -close -xrm *workspaceList:\ all"
  1541.  
  1542. (Thanks to Steve Jumonville, HP)
  1543.  
  1544. ------------------------------
  1545.  
  1546. Subject: 6.9  What happened to the vuewm key accelerators at VUE 3.0?
  1547.  
  1548. Well, we don't really know. Here's how to set them, though.
  1549. Add an entry like this (you can, of course, customize it to your
  1550. liking) to your $HOME/.vue/vuewmrc file:
  1551.  
  1552. Menu VueWindowMenu
  1553. {
  1554.     "Restore"          _R        Alt<Key>F5         f.normalize
  1555.     "Move"             _M        Alt<Key>F7         f.move
  1556.     "Size"             _S        Alt<Key>F8         f.resize
  1557.     "Minimize"         _n        Alt<Key>F9         f.minimize
  1558.     "Maximize"         _x        Alt<Key>F10        f.maximize
  1559.     "Lower"            _L        Alt<Key>F3         f.lower
  1560.      no-label                                       f.separator
  1561.     "Occupy..."        _O        Alt<Key>O          f.workspace_presence
  1562.     "Occupy all"       _a        Alt Shift<Key>O    f.occupy_all
  1563.      no-label                                       f.separator
  1564.     "Remove from WS"   _e        Alt Shift <Key>F4  f.remove
  1565.     "Close"            _C        Alt<Key>F4         f.kill
  1566. }
  1567.  
  1568. And then add this resource:
  1569.  
  1570. Vuewm*windowMenu:       VueWindowMenu
  1571.  
  1572. And restart the window manager.
  1573.  
  1574. (Thanks to Bill Bennett, HP)
  1575.  
  1576. ------------------------------
  1577.  
  1578. Subject: 6.10  How come I can no longer disable the caps lock key with xmodmap?
  1579.  
  1580. A common activity in the past has been to disable the, shall we say,
  1581. "placement challenged" caps lock key on the ITF keyboard using a simple
  1582. xmodmap script.  This no longer works consistently at X11R5/VUE 3.0; the best
  1583. solution so far:
  1584.  
  1585. In file ~/.vue/sessions/lite/vue.session:
  1586.  
  1587. /usr/bin/X11/xmodmap - << EOF
  1588.         clear lock
  1589.         keycode 55 = Control_L
  1590.         keycode 86 = Caps_Lock
  1591.         keycode 39 = grave asciitilde guillemotleft guillemotright
  1592.         keycode 71 = Escape
  1593.         add Lock = Caps_Lock
  1594.         add Control = Control_L
  1595. EOF
  1596.  
  1597. This works until logout/login, when Caps Lock toggles the control feature,
  1598. even though 'xmodmap -pm' shows that Lock has no assignments. You have to
  1599. restart the server to reset completely, which can be automated by setting the
  1600. value
  1601.  
  1602. Vuelogin*terminateServer:   True
  1603.  
  1604. in the file /usr/vue/config/Xconfig.
  1605.  
  1606. ------------------------------
  1607.  
  1608. Subject: 6.11  How come vi behaves strangely in xterms at 9.01?
  1609.  
  1610. Apparantly initial invocation of xterm under csh does not set LINES/COLUMNS
  1611. correctly, and vi doesn't handle that real well. One workaround is to put the
  1612. following in .cshrc:
  1613.  
  1614. if ( $?WINDOWID ) then
  1615.    set noglob;eval `/usr/bin/X11/resize`;unset noglob
  1616. endif
  1617.  
  1618. PHSS_2753 addresses this problem.
  1619.  
  1620. (Thanks to Raymond Nijssen for the workaround.)
  1621.  
  1622. ------------------------------
  1623.  
  1624. Subject: 6.12  How do I disable HP-VUE?
  1625.  
  1626. There have been several recommendations on this base thread. Here is one that
  1627. is documented for X terminals (it works for workstations too). This takes
  1628. advantage of the fact that Vue sets several environment variables for the
  1629. session, one of which is USER.
  1630.  
  1631. Modify the /usr/lib/X11/vue/Vuelogin/Xsession (pre-9.0 HPUX) or the
  1632. /usr/vue/config/Xsession (9.0 HPUX and later) file:
  1633.  
  1634.     1) Go to the portion that contains the coment "Determine the startup
  1635.        if the user didn't specify one." -- approximately line 295 in an
  1636.        unaltered version of the file.
  1637.  
  1638.     2) Add a following case statement to fit your needs. It should look
  1639.        something like:
  1640.  
  1641.                    case $USER in
  1642.                       martha | joe) startup=${HOME}/.x11start''
  1643.                    esac
  1644.  
  1645. You can add as much or little intelligence to this as you like. The above
  1646. assumes that the users' have a .x11start script in their home directory, that
  1647. its permissions are correct, etc. You can build in a fallback machanism. For
  1648. example, the script will check to see if the user has a .x11start script and
  1649. if not, to fallback to /usr/lib/X11/sys.x11start. To see an example of this
  1650. logic, do a more(1) on /usr/bin/x11start.
  1651.  
  1652. The above case statement is documented in Ch 2 of the "HP 700/RX System
  1653. Administrators Guide".
  1654.  
  1655. Anoter method of disabling VUE assumes you have a .xsession file that
  1656. starts up your initial xterms, other programs, and window manager.
  1657. Replace your ~/.vueprofile with:
  1658.  
  1659.     #! /bin/sh
  1660.     exec sh $HOME/.xsession
  1661.  
  1662. Note that the first line was needed, since
  1663. /usr/lib/X11/vue/Vuelogin/Xsession looks for the shell it want to use.
  1664.  
  1665. (Thanks to Bill Morrison, HP and John Bowe <bowe@osf.org>)
  1666.  
  1667. ------------------------------
  1668.  
  1669. Subject: 6.13  What's a good termcap entry for hpterm?
  1670.  
  1671. Although it is not supported for hpterm use, the 262x entry in
  1672. /etc/newconfig/termcap will work.
  1673.  
  1674. (Thanks to Frank Slootweg, HP)
  1675.  
  1676. ------------------------------
  1677.  
  1678. Subject: 6.14  My screen is wedged. What should I do?
  1679.  
  1680. One thing you can try is to unplug the keyboard for ~5 seconds. Note that
  1681. you will have to rerun xset -r to get autorepeat to work after doing this.
  1682.  
  1683. (Thanks to Paul Liebert, HP.)
  1684.  
  1685. ------------------------------
  1686.  
  1687. Subject: 6.15  How can I get an X client to come up in an alternate workspace?
  1688.  
  1689. You can try:
  1690.  
  1691. client -xrm "*workspaceList: <name>"
  1692.  
  1693. (Thanks to <finger@rz.uni-karlsruhe.de>)
  1694.  
  1695. ------------------------------
  1696.  
  1697. Subject: 6.16  How can I get HP-VUE to not override colors?
  1698.  
  1699. The Motif library on HP-UX has extra code added to make the default colors
  1700. follow the color schemes that the user selects with the vuestyle controls.
  1701. This extra code makes trouble for some applications which don't want this
  1702. unique and unexpected behavior.
  1703.  
  1704. You can prevent the entire color scheme mechanism from being used in an
  1705. application by setting "*useColorObj: False" for the application before
  1706. creating the first widget.  This can be done by adding the resource to the
  1707. application defaults, the fallback resources, or as an extra "-xrm"
  1708. "*useColorObj: False" args pair in the argv and argc parameters passed to
  1709. XtAppInitialize.  If you set the resource in xrdb it would be best to set
  1710. it for only specific applications like "MyApp*useColorObj: False".
  1711.  
  1712. Setting the useColorObj resource could make programs core dump on some 8.0*
  1713. systems.  There is a patch that corrects the core dump.
  1714.  
  1715. You can use the vue colors and prevent the specific difference between dialog
  1716. colors vs.  non-dialog colors by setting a resource that specifies the
  1717. behavior of the color scheme mechanism.  To force the dialogs to use the same
  1718. colors as the other windows set the following resources in your app_defaults
  1719. file or fallback settings-
  1720.  
  1721. *primaryColorSetId: 3
  1722. *secondaryColorSetId: 3
  1723.  
  1724. This sets the dialog or "secondary" colors to the same set as the primary
  1725. colors.  This is discussed in the "HP VUE 3.0 User's Guide" in chapter 26.
  1726.  
  1727. (Thanks to Mike Stroyan, HP.)
  1728.  
  1729. ------------------------------
  1730.  
  1731. Subject: 6.17  How can I override the system default printer in vuepad?
  1732.  
  1733. cp /usr/vue/types/vuepad.vf $HOME/.vue/types
  1734.  
  1735. Edit the file and change the ACTION PRINT_PR_VPAD to:
  1736.  
  1737. # The PRINT_PR_VPAD action paginates its arguments using pr(1) and prints
  1738. # them with lp(1).  It uses arg 2 for a title.  It then removes the temp
  1739. # file.  This action is used by the client vuepad.
  1740. ACTION PRINT_PR_VPAD
  1741.         TYPE            COMMAND
  1742.         WINDOW-TYPE     NO-STDIO
  1743.         EXEC-HOST       %LocalHost%
  1744.         EXEC-STRING     /bin/sh -c "pr -h %Arg_2% %(File)Arg_1% | \
  1745.                                 lp -d%"Printer:"%; rm %(File)Arg_1%"
  1746.                                    ^^^^^^^^^^^^^^
  1747. END
  1748.  
  1749. This will cause a dialog box to appear to prompt you for a printer name.
  1750. However,  if you set LPDEST in your .vueprofile,  then lp will use that
  1751. value instead of the system default.
  1752.  
  1753. (Thanks, Dan Mercer, <damercer@mmm.com>)
  1754.  
  1755. ------------------------------
  1756.  
  1757. Subject: 6.18  What about X11R6?
  1758.  
  1759. The basic core distribution of X11R6 is now installed on the Liverpool FTP
  1760. archive. See section 3.12 for details.
  1761.  
  1762. Current contents:
  1763.   XR6src-6.0.part0{1,2,3}.tar.gz
  1764.   XR6built-6.0.tar.gz
  1765.  
  1766. Notes:
  1767.  
  1768. - the binaries are designed to be installed in /usr/local/X11R6
  1769.   (use a symbolic link, or grab the source if you want them elsewhere)
  1770. - most libraries come with archive and shared versions
  1771.   (and the built binaries mostly use the .sl versions)
  1772. - this is JUST the core distribution (xc/)
  1773. - xc/test and xc/workInProgress aren't included in the built package
  1774.   (the source is present, but hasn't been looked at in the src packages)
  1775.  
  1776. (Thanks to Dave Shield, Liverpool)
  1777.  
  1778. ------------------------------
  1779.  
  1780. Subject: 6.19  How can I set user-specific app-defaults in HP-VUE?
  1781.  
  1782. HP-VUE looks in the directory $HOME/.vue/app-defaults in addition
  1783. to the default location (/usr/lib/X11/app-defaults).
  1784.  
  1785. ------------------------------
  1786.  
  1787. Subject: 6.20  How can I get VUE to share colormap entries:
  1788.  
  1789. VUE, by default, allocates several read/write colorcells in the default
  1790. colormap so that it can change the VUE colors by just changing the colormap
  1791. instead of re-writing all the pixels.  Read/write colorcells are not
  1792. sharable, and if you have the maximum number of colors selected in your
  1793. VUE palette, quite a few are going to get soaked up and not be available
  1794. for other color hogs like xv.
  1795.  
  1796. If you can live with having to restart VUE whenever you change your palette,
  1797. then set the following resource:
  1798.  
  1799. *dynamicColor:                  False
  1800.  
  1801. This will cause VUE to allocate read-only cells, which other apps can share.
  1802.  
  1803. (thanks to Karl Schulz, HP <kws@fc.hp.com>)
  1804.  
  1805. ------------------------------
  1806.  
  1807. Subject: 6.21  How can I disallow root login at the console with VUE?
  1808.  
  1809. Configure your /usr/vue/config/Xstartup as something like this :
  1810.  
  1811.    if [ -f /etc/securetty ] &&
  1812.       # pwget is an HP command which checks also for Yellow Pages.
  1813.       # exit code from awk is inverted (!) since sh's tests are...
  1814.       # === a more simple test would be [ "$USER" = root ] ===
  1815.       pwget -n "$USER" | awk -F: '{ exit !($3 == 0) }'; then
  1816.          echo Root Login not allowed | /usr/lib/X11/ignition/text_dialog ERROR
  1817.          exit 1
  1818.    fi
  1819.    if [ -f /etc/nologin ]; then
  1820.       exit 1
  1821.    fi
  1822.    exit 0
  1823.  
  1824. See man vuelogin(1X) for more details.
  1825.  
  1826. (Thanks to Cyrille Lefevre <Cyrille.Lefevre@ici.der.edf.fr>)
  1827.  
  1828.  
  1829. ------------------------------
  1830. Subject: 6.22  id/groups doesn't show secondary groups in dtterm/CDE
  1831.  
  1832. Under HP-UX10.20 with CDE, if your account (at least with NIS)
  1833. has multiple groups associated with it, the "id/groups" command
  1834. will not show the secondary groups inside a dtterm window ...
  1835. and they in fact do not work. What is confusing is that they
  1836. *do* work when you fire up an Xterm. Note that /etc/logingroup
  1837. is correctly symlinked to /etc/group.
  1838.  
  1839. Turns out the solution is fairly simple ... apply a patch!
  1840. PHSS_8667 fixes a number of CDE related problems, including this one.
  1841.  
  1842. Alek Komarnitsky got befuddled by this one for a while (! ;-), and
  1843. thanx to mike_stroyan@fc.hp.com & gregc@hpupora.nsr.hp.com for 
  1844. identifying this as the fix (didn't pop up in a Mayfield search).
  1845.  
  1846.  
  1847. ------------------------------
  1848.  
  1849. Subject: 6.23  What type of books are available about CDE and oriented toward HP-UX?
  1850.  
  1851. A.  The following books are available.
  1852.  
  1853.     Configuring CDE: Common Desktop Environment
  1854.        by Charles Fernandez     ISBN 0-13-102724-7
  1855.  
  1856.     Common Desktop Environment 1.0 Advanced User's and
  1857.     System Administrator's Guide
  1858.        by CDE Documentation Group  ISBN 0-201-48952-X
  1859.  
  1860. Mentioned by Pat Godwin (pat.godwin@lmco.com)
  1861.  
  1862. ------------------------------
  1863.  
  1864. Subject: 6.24  Getting mouse button cut-n-paste to work correctly with HPUX10/CDE
  1865.  
  1866. Cut-n-paste (with the mouse buttons) does not work correctly between
  1867. applications under HPUX10.20 & CDE as delivered by HP. The sys.resources
  1868. file needs to have the resource 'enableBtn1Transfer' set to False.
  1869. You should do this in either {/etc,/usr}/dt/config/C/sys.resources
  1870. depending on how you manage this at your site.
  1871.  
  1872. Thanx to Luis P. Caamano  (luis_caamano@hp.com)
  1873.  
  1874. ------------------------------
  1875.  
  1876.  
  1877. Subject: 7. OPERATING SYSTEM
  1878.  
  1879. ------------------------------
  1880.  
  1881. Subject: 7.1  Can I have filenames longer than 14 chars?
  1882.  
  1883. Yes, change to long filenames using /etc/convertfs. You can't go back, though.
  1884. Here's how to check if an existing filesystem has long filenames enabled:
  1885.  
  1886. # tunefs -v /dev/rdsk/XXX | grep magic
  1887. magic   95014   clean   FS_OK   time    Tue Mar 23 14:13:01 1993
  1888.            \__ if = 95014 then long filenames
  1889.             \__ if = 11954 then short filenames
  1890.  
  1891. You can also look at this on a per directory basis with the POSIX
  1892. command getconf:
  1893.  
  1894. $ getconf NAME_MAX directory
  1895.  
  1896. (Thanks to Ken Burke and Masataka Isoya <Masataka_Isoya@jpn.hp.com>)
  1897.  
  1898. ------------------------------
  1899.  
  1900. Subject: 7.2  How can I tell what products have been loaded on my system?
  1901.  
  1902. For 9.x, Check the /etc/filesets directory. There is a file there for each fileset 
  1903. that has been loaded that summarizes the files in that fileset.  This directory is
  1904. used by the /etc/update, /etc/updist, /etc/netdistd, and /etc/rmfn utilities
  1905. for loading and unloading software.
  1906.  
  1907. For 10.x, use the swlist command.
  1908.  
  1909. ------------------------------
  1910.  
  1911. Subject: 7.3  How do I safely remove software from my system?
  1912.  
  1913. The _only_ safe way to remove HP software is to use /etc/rmfn on 9.x.
  1914. On 10.x, use the swremove command.
  1915.  
  1916. ------------------------------
  1917.  
  1918. Subject: 7.4   How can I change the order of hostname resolution?
  1919.  
  1920. Patches exist for 9.x that allow hostname resolution with the use of
  1921. the nsswitch.conf file (similar to how it is done under Solaris 2.x). 
  1922. See the latest patch listings for details ... but ones of interest
  1923. include PHCO_4439, PHCO_8760, PHNE_4487, PHNE_4563, PHSS_5902, PHSS_7751.
  1924. This functionality is built-in/included with 10.x.
  1925.  
  1926. Updated by Alek Komarnitsky (alek@csc.com) on 1/2/97
  1927.  
  1928. ------------------------------
  1929.  
  1930. Subject: 7.5  How come the LOGnnnn files in /usr/adm keep growing and growing?
  1931.  
  1932. The LOGnnnn files in /usr/adm (8.x except 8.02) or /usr/adm/diag (8.02 and
  1933. 9.0) are the diagnostic event log files. Most likely the files are growing
  1934. for one of two reasons: either the diagnostics system was improperly
  1935. installed, or there is an actual hardware problem on the system.
  1936.  
  1937. (Thanks to Wayne Krone of HP)
  1938.  
  1939. ------------------------------
  1940.  
  1941. Subject: 7.6  How come I can't lock mail or other files on a Sun?
  1942.  
  1943. Believe it or not, Sun's lockd is broken at 4.1.x. The proper Sun patch
  1944. number is Patch-ID# 100075-09, called the "lockd jumbo patch".
  1945.  
  1946. ------------------------------
  1947.  
  1948. Subject: 7.7  Why are mail files in /usr/mail are owned by daemon instead of the recipient?
  1949.  
  1950. The mail delivery agent /bin/rmail needs to be able to chown(2) these files.
  1951. It can not do so if you have removed the privilege CHOWN (see setprivgrp(1m);
  1952. removing CHOWN is recommended to prevent cheating on disk quotas).  To get
  1953. around this, noting that /bin/rmail runs setgid to group mail, you can grant
  1954. privilege CHOWN to group mail only by inserting the line "mail CHOWN" in
  1955. /etc/privgroup. The change takes effect on the next reboot, or immediately
  1956. if you execute the command "setprivgrp -f /etc/privgroup".
  1957.  
  1958. (Thanks to Jim Richardson <jimr@maths.su.oz.au>)
  1959.  
  1960. ------------------------------
  1961.  
  1962. Subject: 7.8  How can I tell if I need more than a 2-user license?
  1963.  
  1964.     There are several fundamental things to remember about HP-UX licensing:
  1965.  
  1966.         o Series 700 and Series 800 users are now counted the same way
  1967.         o Display console counts as one user
  1968.         o Each ASCII terminal counts as a user, regardless of how it is
  1969.           connected
  1970.         o The LAN connection counts as one user
  1971.  
  1972.     ASCII Terminals
  1973.  
  1974.     The simple rule to remember is any ASCII terminal that is logged in
  1975.     counts as a user.
  1976.  
  1977.     ASCII terminal connections can come in several different forms:
  1978.  
  1979.         o Direct-connected via a serial terminal multiplexer
  1980.         o Connected via Data Terminal Concentrators (DTCs) or via
  1981.           terminal servers
  1982.         o Personal Computers (PCs) acting in terminal emulation mode,
  1983.           whether connected via serial line or via Local Area Network (LAN)
  1984.  
  1985.     X-terminals and workstations
  1986.  
  1987.     When a customer buys an X-terminal or workstation from HP or from
  1988.     another vendor, HP acknowledges that the customer has also bought a
  1989.     single Unix license-to-use.
  1990.  
  1991.     Therefore, the customer has the right to an unlimited number of logins and
  1992.     terminal windows _over_the_LAN_ to a Series 700 or Series 800 from either
  1993.     X-terminals or workstations. These logins can be via X terminal windows
  1994.     (_hpterm_ and _xterm_), _telnet_, _rlogin_, or other means.
  1995.  
  1996.     PC's that use X-terminal emulation software such as XView each count the
  1997.     same as an X terminal. This is because the PC essentially becomes an
  1998.     X-terminal when it is running the X server software. Therefore, when a PC
  1999.     is running an X-terminal emulator, the PC has the right to an unlimited
  2000.     number of logins to an HP-UX system.
  2001.  
  2002.     Exceptions
  2003.  
  2004.     The policy of counting DTC users is new for the Series 700. Customers who
  2005.     purchased Series 700 systems prior to HP-UX 9.0 shipments (late calendar
  2006.     1992) and use them as host systems for multiple DTC- connected terminals,
  2007.     may continue to use those configurations without buying a license upgrade.
  2008.     An update to HP-UX 9.0 will not lock out these configurations.
  2009.  
  2010. (Thanks to Tony Hart, HP)
  2011.  
  2012. ------------------------------
  2013.  
  2014. Subject: 7.9  How can I tell what patches are in the kernel?
  2015.  
  2016. On 9.x, "what /hp-ux" will present you with patch strings, which you can compare
  2017. with the strings called out in the patch text file. A typical patch
  2018. string is:
  2019.  
  2020. PATCH_8.07 nfs_vnops.c 1.15.61.4 92/01/10 PHKL_0736 PHKL_0942
  2021.  
  2022. which shows that PHKL_0942 has been applied to the kernel.
  2023.  
  2024. ------------------------------
  2025.  
  2026. Subject: 7.10  How come I have to hit return after control-d in the Korn shell?
  2027.  
  2028. You need to set the "viraw" option.
  2029.  
  2030. ------------------------------
  2031.  
  2032. Subject: 7.11  How do I boot into single user mode?
  2033.  
  2034. Press ESC to stop the auto-boot.
  2035. When the list of boot devices is presented:
  2036.  
  2037. b PX ISL        (where X is your root disc)
  2038.  
  2039. And at the ISL> prompt:
  2040.  
  2041. ISL>  hpux -iS disc(;0)/hp-ux
  2042.  
  2043. The '-iS' are the flags to init which says come up single user.  The rest of
  2044. the command is what the bootprocess does automatically.
  2045.  
  2046. (Thanks to Stuart Jarriel <stuart@TIVOLI.COM>.)
  2047.  
  2048. ------------------------------
  2049.  
  2050. Subject: 7.12  How come my Korn shell login hangs?
  2051.  
  2052. This can happen if the user's home directory is across an NFS mount point; you
  2053. can workaround the problem by completely unprotecting (chmod 777) .sh_history,
  2054. or by pointing HISTFILE to somewhere local.
  2055.  
  2056. ------------------------------
  2057.  
  2058. Subject: 7.13  How can I avoid those annoying copyright notices on login?
  2059.  
  2060. The following code in /etc/profile prints the copyright notice the first
  2061. time each user logs in:
  2062.  
  2063.         NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l`
  2064.         if [ $NUMLOGINS -lt 2 ]
  2065.         then
  2066.                 cat /etc/copyright
  2067.         fi
  2068.  
  2069. And, for /etc/csh.login:
  2070.  
  2071. set NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l`
  2072. if ( $NUMLOGINS<2 ) cat /etc/copyright
  2073.  
  2074. (Actually, each user will get the copyright on their first login after each
  2075. time the /etc/wtmp file is pruned, but that needn't be often.)
  2076.  
  2077. (Thanks to Paul Gootherts <pdg@cup.hp.com>, Steve Dum
  2078. <steve_dum@mentorg.com> and John Pelan <J.Pelan@Queens-Belfast.ac.uk>)
  2079.  
  2080. ------------------------------
  2081.  
  2082. Subject: 7.14  How can I turn off quota checking?
  2083.  
  2084. Suggestions:
  2085.  
  2086. 1] rmfn quota fileset.  This will still allow you to keep using quotas,
  2087.    as long as the nfs-server still has quota enabled, and is exporting it
  2088.    with all the quota stuff turned on, even though the HP itself might not
  2089.    have it.  Watch out tho, since this deletes /usr/bin/quota :)  So make
  2090.    a copy, if you still want to have the ability to do "quota -v" and
  2091.    stuff around.
  2092.  
  2093. 2] mv /usr/bin/quota /usr/bin/quota_check.  cp /bin/true /usr/bin/quota.
  2094.    This will still make the login program do the quota-check, but at least
  2095.    it goes by very very quickly now (as opposed to actualy checking every
  2096.    single nfs-mount with quota, and so on.)  Then, just run quota_check
  2097.    whenever you want.
  2098.  
  2099. 3] Remove execute permissions for /usr/bin/quota as in:
  2100.       $ chmod -x /usr/bin/quota
  2101.    This prevents quota from running.  It's also a self documenting flag
  2102.    in that a future system manager who tries to run /etc/quota will get
  2103.    the "can not execute" error message.
  2104.  
  2105. 4] chmod -x /usr/bin/quote /etc/edquota
  2106.    This appears to turn quota's completely off (which is what I
  2107.    suspect the vast majority of people want) and not only speeds
  2108.    up the login process, but you don't get any annoying messages.
  2109.  
  2110. (thanks to Paul Hirose <pthirose@engr.ucdavis.edu>, and
  2111.  Alek O. Komarnitsky <alek@csc.com>)
  2112.  
  2113. ------------------------------
  2114.  
  2115. Subject: 7.15  How can I track log files and core files?
  2116.  
  2117. At 9.x, SAM allows you to track all standard log files and trim them if
  2118. desired. It will also find all core files on a file system and allow you
  2119. to get rid of them.
  2120.  
  2121. ------------------------------
  2122.  
  2123. Subject: 7.16  How much memory can a process use?
  2124.  
  2125. The first limiter is probably swap space.  The combined virtual data space
  2126. of all running processes can't exceed swap size. Run /etc/swapinfo -t and
  2127. look at the total line.  That's all you have left.
  2128.  
  2129. For FORTRAN programs:
  2130. --------------------
  2131. 1) Increase the kernel's stack limit (maxssiz).  You can do this with
  2132.    sam (Kernel Configuration-> Modify Operating System Parameters->
  2133.    Process Parameters).  The practical limit for user stacks is around
  2134.    80 Mbytes.  Your system probably has an 8 Mbyte limit.  Try 16 Mbytes
  2135.    or 32 Mbytes depending on your expected use.  Give sam a number that
  2136.    is a multiple of the 4096-byte pagesize.
  2137.  
  2138. 2) Change your array allocation.  HP FORTRAN allocates non-common,
  2139.    non-SAVE'd arrays on the process stack.  Common blocks and SAVE'd
  2140.    variables are allocated in the process data segment (with much larger
  2141.    size limits).  If your arrays are declared in the main program and
  2142.    passed to subroutines, you can just SAVE the big ones in the main
  2143.    program, or put them in a common block in the main program, or
  2144.    recompile with -K since -K puts all local variables in the data
  2145.    segment.  (-K is a sledgehammer approach, but it gives you a quick
  2146.    indication that stack size is the issue.)
  2147.  
  2148. 3)  Make sure you have enough swap space.
  2149. -------------------
  2150.  
  2151. (Thanks to Bob Montgomery, HP)
  2152.  
  2153. ------------------------------
  2154.  
  2155. Subject: 7.17  How can I make a ramdisk?
  2156.  
  2157. THIS IS UNSUPPORTED. Make sure 'ram' is configured into your kernel, and then
  2158. make device files with major 9 (both blcok and char), minor 0xVSSSSS, where
  2159. V is the volume number, SSSSS is the number of sectors in the ram disk, and
  2160. a sector is 256 bytes. For example,
  2161.  
  2162. mknod /dev/ram1m c 9 0x101000
  2163.  
  2164. makes a 1 meg ram disk. Of course, you have to make a file system on it and
  2165. mount it to make it useful:
  2166.  
  2167. mkfs /dev/ram1m 1024
  2168.  
  2169. Note that you will have to make a block device also.
  2170.  
  2171. This works for all 9.x systems.
  2172.  
  2173. ------------------------------
  2174.  
  2175. Subject: 7.18  What's a good strategy for clearing /tmp and /usr/tmp?
  2176.  
  2177. Two suggestions (to be run from cron) are below. The first being the
  2178. optimal solution:
  2179.  
  2180. #!/bin/sh
  2181. DAYS=7
  2182. find /tmp /usr/tmp -depth -hidden -fsonly hfs -atime +$DAYS -exec rm -rf {} \;
  2183.  
  2184. The -depth option ensures no directory is removed before its contents,
  2185. -fsonly hfs is because occasionally I've NFS-mounted stuff there and
  2186. it's better to do the clearing in the machine where it's local,
  2187. and -hidden is in case CDF's appear there for some reason.
  2188.  
  2189. (Thanks to Tapani Tarvainen and Michael Sternberg <mgs@po.cwru.edu>)
  2190.  
  2191.  
  2192. #!/bin/sh
  2193. DAYS=7
  2194. DIRS="/tmp /usr/tmp"
  2195. find $DIRS -type d -atime +$DAYS -exec rm -rf {} \;
  2196. find $DIRS ! -type d -atime +$DAYS -exec rm -f {} \;
  2197.  
  2198.  
  2199. (Thanks to Rich Jennings, HP and Michael Sternberg <mgs@po.cwru.edu>)
  2200.  
  2201. ------------------------------
  2202.  
  2203. Subject: 7.19  How can I change the timezone?
  2204.  
  2205. Edit the entry in /etc/src.sh and /etc/src.csh, and reboot.
  2206.  
  2207. ------------------------------
  2208.  
  2209. Subject: 7.20  How can I look at what my system is doing?
  2210.  
  2211. The best tool for monitoring your system is HP GlancePlus.  In the U.S. call
  2212. (800) 237-3990 for a trial version.  Outside the U.S. contact your HP sales
  2213. representative.  HP sells other performance tools as well including HP
  2214. Performance Collection Software, HP PerfRX (for long-term performance
  2215. analysis of a single system), and HP PerfView which runs under OpenView
  2216. (for simultaneous monitoring of a network of systems including HP-UX, Sun
  2217. Sparc, and IBM AIX).  You can also use /usr/contrib/bin/monitor if it
  2218. exists on your system, but it is not as accurate or reliable as GlancePlus,
  2219. and is not an HP supported product.
  2220.  
  2221. ------------------------------
  2222.  
  2223. Subject: 7.21  How can I partition HP-UX disks on 700s at 9.x?
  2224.  
  2225. Here is a sample file which lists the sdsadmin commands to partition a disk
  2226. into 2 partitions. Note that this is specific to the M2654SA disk;
  2227. your mileage may vary. The mediainit is probably not required if the vendor
  2228. has formatted/verified the disk. It is not "supported" to partition
  2229. the boot disk, and you have to go through some contortions to do it.
  2230. Note also that in order to have several partitions on the root disk
  2231. AND have swap, you must create another partition which you dedicate
  2232. to swap.
  2233.  
  2234. Note that 10.x s700 systems support LVM, which allows great flexibility
  2235. in partitioning.
  2236.  
  2237. #
  2238. # SDS configuration file for this node.
  2239. #
  2240. # To rebuild the /u1 and /news Fujitsu M2654SA disk partitions, do:
  2241. #    mediainit -v /dev/rdsk/c201d5s0
  2242. #    sdsadmin -m -C /usr/local/etc/sdsadmin.config.u1news /dev/dsk/c201d5s0
  2243. #    newfs -L -n -v -m 2 -i 16384 /dev/rdsk/c201d5s1 HP_M2654Su1x1-2
  2244. #    newfs -L -n -v -m 2 -i  2048 /dev/rdsk/c201d5s2 HP_M2654Su1x1-2
  2245. #
  2246. # Disk partitions:
  2247. #
  2248. # 1   /u1     145xxxx 1K blocks (/dev/dsk/c201d5s1, /dev/rdsk/c201d5s1)
  2249. # 2   /news    55xxxx 1K blocks (/dev/dsk/c201d5s2, /dev/rdsk/c201d5s2)
  2250. # -   -----   -------
  2251. #             2006016 1K blocks
  2252. #
  2253.  
  2254. type    M2654Su1x1-2
  2255. label   u1_news
  2256.  
  2257. partition 1
  2258.    size 1450000K
  2259.  
  2260. partition 2
  2261.    size      max
  2262.  
  2263. (Thanks to Mike Petersen and Timothy Mooney <mooney@pinky.cc.ndsu.nodak.edu>)
  2264.  
  2265.  
  2266. Here's some more text on this from "Jeff L. Cooke"<jeff.cooke@lmco.com>
  2267.  
  2268.            (1) Create an Array Description File (in this case, you might
  2269.             want to call it a partition description file):
  2270.  
  2271.            # SDS array description file.
  2272.            #
  2273.            type           TYPE_NAME   # Anything you want to make up
  2274.            label         sample       # again, anything you like
  2275.            # /filesystem1
  2276.            partition  1
  2277.            size           100M
  2278.            # /filesystem2
  2279.            partition  2
  2280.            size           100M
  2281.            # /filesystem3
  2282.            partition  3
  2283.            size           max
  2284.  
  2285.             Details on creating ADFs are in man 1M sdsadmin.
  2286.  
  2287.            (2) Initialize your media (if required): mediainit -v /dev/rdsk/
  2288.            c201d5s0
  2289.  
  2290.             (we'll use the name /dev/rdsk/c201d5s0 for the raw device name
  2291.             in the examples here)
  2292.  
  2293.            (3) Use the sdsadmin command to create the partitions:
  2294.  
  2295.             sdsadmin -m -C <filename of your ADF> /dev/rdsk/c201d5s0
  2296.  
  2297.            (4) Make the filesystems with newfs:
  2298.  
  2299.             newfs -L -n -v /dev/rdsk/c201d5s1 HP_TYPE_NAME
  2300.             newfs -L -n -v /dev/rdsk/c201d5s2 HP_TYPE_NAME
  2301.             newfs -L -n -v /dev/rdsk/c201d5s3 HP_TYPE_NAME
  2302.  
  2303.            (5) Make these manual additions to /etc/checklist:
  2304.  
  2305.             /dev/dsk/c201d5s1  /usr/spool/filesystem1 hfs defaults  0 1 #
  2306.             /dev/dsk/c201d5s2  /usr/spool/filesystem2 hfs defaults  0 2 #
  2307.             /dev/dsk/c201d5s3  /usr/spool/filesystem3 hfs defaults  0 3 #
  2308.  
  2309.            (6) Prepare to mount the new filesystems:
  2310.  
  2311.             If this is a "clean" machine (i.e. these filesystems are not
  2312.             currently directories), then you must simply create the mount
  2313.             points (i.e. make empty directories with the same name as the
  2314.             filesystems you are creating.
  2315.  
  2316.              mkdir /usr/spool/filesystem1
  2317.              mkdir /usr/spool/filesystem2
  2318.              mkdir /usr/spool/filesystem3
  2319.  
  2320.             If the new filesystems correspond to existing directories,
  2321.             then you will need to move the content of the directories
  2322.             aside or remove the content (since, after mounting the
  2323.             directories will be inaccessible).  Make sure you leave the
  2324.             directories as mount points.
  2325.  
  2326.            (7) Mount the filesystems: mount -a
  2327.  
  2328.            (8) Replace all of the files/directories you moved in step (5).
  2329.  
  2330.  
  2331.  
  2332. ------------------------------
  2333.  
  2334. Subject: 7.22  How can I print man pages successfully?
  2335.  
  2336. To get the italic and bold fonts from the man file on a LaserJet:
  2337.  
  2338. zcat manfile.1 | nroff -man -Tlj | lpr ...
  2339.  
  2340. On a PostScript printer ( you need the GNU groff):
  2341.  
  2342. zcat manfile.1 | groff -man -Tps | lpr ...
  2343.  
  2344.  
  2345. If your man file is a complex one including tables, pipe it through tbl.
  2346.  
  2347. Some man pages like ioctl may need the HP macros:
  2348.  
  2349. zcat manfile.1 | groff -t -e -C -M/usr/lib/tmac -man -Tps | lp ...
  2350.  
  2351. (Thanks to Poul Moller, Markus Gyger)
  2352.  
  2353. ------------------------------
  2354.  
  2355. Subject: 7.23  How can I limit core files?
  2356.  
  2357. HP-UX has no built in function to limit core file generation from the standard
  2358. shells; one way to limit core file generation is to create a directory called
  2359. "core" with 000 permissions in the directory in which you expect a core dump
  2360. to occur. Additionally, two programs are available (nocore and corelimit)
  2361. that can be used as wrappers around other programs that you may expect to
  2362. dump.  And, some publicly available shells (tcsh, for example) allow core
  2363. file limits. Or, you can place a link called "core" to /dev/null in the
  2364. directory you expect the core dump to occur.
  2365.  
  2366. Note that at 10.10 and newer HP-UX revisions, the csh limit commands 
  2367. work as you would expect.
  2368.  
  2369. Here is the source for corelimit (thanks to John Agosta, HP). It is
  2370. completely unsupported; the Response Center will disavow all knowledge
  2371. of you and your mission should you call them with a problem relating
  2372. to this. Build it in the usual way (cc -o corelimit corelimit.c) and use it
  2373. in the format of:  "corelimit hpterm 0". This will limit the core file
  2374. size of all children of the hpterm process to 0.
  2375.  
  2376. #include <stdio.h>
  2377. #include <sys/resource.h>
  2378. #define RLIMIT_CORE     4               /* core file size */
  2379.  
  2380. main(argc, argv)
  2381. int argc;
  2382. char **argv;
  2383. {
  2384. int res;
  2385. struct rlimit rlp;
  2386.         if (argc != 3) {
  2387.            fprintf(stderr, "%s: wrong number of parameters\n", argv[0]);
  2388.            fprintf(stderr, "\tformat: %s command core_size\n", argv[0]);
  2389.            exit(-1);
  2390.         }
  2391.         rlp.rlim_cur = atoi(argv[2]);
  2392.         res = setrlimit(RLIMIT_CORE, &rlp);
  2393.         if (res < 0) {
  2394.                 perror("setrlimit: RLIMIT_CORE");
  2395.                 exit(-2);
  2396.         }
  2397.         system(argv[1]);
  2398. }
  2399.  
  2400. Or, you can edit /etc/vuerc to start all of VUE that way:
  2401.  
  2402. at line 22 replace:
  2403.   exec $VUELOGIN $VL_ARGS </dev/null >/dev/null 2>&1
  2404. by:
  2405.   exec /usr/local/bin/nocore $VUELOGIN $VL_ARGS </dev/null >/dev/null 2>&1
  2406.  
  2407. (thanks to Jean-Claude Arnouil, <arnouilj@esiee.fr>)
  2408.  
  2409. ------------------------------
  2410.  
  2411. Subject: 7.24  Can I put more than one backup on DDS with fbackup?
  2412.  
  2413. No. fbackup always rewinds the tape. Possible alternatives:
  2414.  
  2415.  (1) Stick with dump/cpio/tar.
  2416.  (2) Use a pipe: instead of telling fbackup where the DAT is,
  2417.      let it send its output to stdout (-f -) and pipe it to the DAT, using
  2418.      Berkeley no-rewind device and dd with a suitable block size (e.g., 10K).
  2419.      You'll lose fast search and resync after error functionality, though.
  2420.      Also, the complexities of managing multiple archives per tape make this
  2421.      a high-risk proposition.
  2422.  (3) Turn your machines into a cluster served by the one with the DAT
  2423.      and do all backups there.  Unfortunately clusters are
  2424.      not supported at hp-ux 10.0, so this is not a long-term solution.
  2425.  (4) Use NFS and mount the disks of the machine without DAT to the other
  2426.      and back them both up there.  You'll have to mount 'em with root
  2427.      permissions and restoring a completely destroyed root disk will be messy.
  2428.  (5) Scream at HP until they fix fbackup. :-)
  2429.  
  2430. (Thanks to Tapani Tarvainen <tt@math.jyu.fi> and
  2431.            David Kinsell <kinsell@csn.net>)
  2432.  
  2433. ------------------------------
  2434.  
  2435. Subject: 7.25  How can I load multiple patches on a machine at the same time?
  2436.  
  2437. The easiest way to do it is to set up a netdist server by using /etc/updist
  2438. to load all the patches you want into a netdist area, and then starting
  2439. /etc/netdistd. At 10.x, use swcopy on each patch to copy the patch into
  2440. a central depot, then use swinstall to install from the depot.
  2441.  
  2442. ------------------------------
  2443.  
  2444. Subject: 7.26  How can I set up an HP-UX workstation as an X terminal?
  2445.  
  2446. Install minimum OS with network and X11 (without motif or vue).
  2447. Edit /etc/inittab, change the following lines
  2448.  
  2449. init:2:initdefault:
  2450. vue :34:respawn:/etc/vuerc      # VUE validation and invocation
  2451.  
  2452. to
  2453.  
  2454. init:3:initdefault:
  2455. vue :34:respawn:/usr/bin/X11/X -query HOSTNAME  # X server startup
  2456.  
  2457. Replace HOSTNAME by the name of the host running xdm, vuelogin or whatever.
  2458.  
  2459. (thanks to Kay Marquardt, <K.Marquardt@zhv.basf-ag.de>)
  2460.  
  2461. ------------------------------
  2462.  
  2463. Subject: 7.27  What causes "Unable to initialize MI" when running Glance?
  2464.  
  2465. This error can occur for many different reasons but it indicates that the
  2466. glance program had trouble starting the midaemon process.  Further details
  2467. are available in ~/glance.err and/or /usr/perf/log/`hostname`/midaemon.err.
  2468. See man midaemon(1).
  2469.  
  2470. Older revisions of HP GlancePlus (prior to B.09.00 for series 700/800
  2471. systems and prior to A.09.07 for series 300/400 systems) had a Known
  2472. Problem in which it was occasionally necessary to issue the following
  2473. command when the above error occurred:
  2474.  
  2475. rm /usr/perf/databases/`hostname`/*.data
  2476.  
  2477. Do NOT remove other files in the directory /usr/perf/databases/`hostname`/
  2478. because they may be required for other performance tools such as HP PerfRX
  2479. or HP PerfView.
  2480.  
  2481. This problem has been fixed in the current release of HP GlancePlus (versions
  2482. B.09.00 or greater for s700/800).
  2483.  
  2484. Please contact your HP Support Representative when you experience problems
  2485. with HP software products.  Your HP support contact will know how to obtain
  2486. additional information to characterize your specific problem.  Please
  2487. note the product version (ie: "what /usr/perf/bin/glance") when reporting
  2488. problems.
  2489.  
  2490. (thanks to Doug Grumann <dougg@hpptc3.rose.hp.com>)
  2491.  
  2492. ------------------------------
  2493.  
  2494. Subject: 7.28  How come I can't get all of my swap space?
  2495.  
  2496. The default value of the kernel parameter "maxswapchunks" limits the swap
  2497. accessible by the kernel to 512M; if you configure more swap, you need
  2498. to increase maxswapchunks.
  2499.  
  2500. ------------------------------
  2501.  
  2502. Subject: 7.29  How come I can't start my Aserver?
  2503.  
  2504. Often this is because "localhost" isn't configured in DNS. Try:
  2505.  
  2506.         nslookup localhost
  2507.  
  2508. If that command fails, you will want to have an entry added to your
  2509. name servers for "localhost.your.particular.domain" pointing at
  2510. 127.0.0.1.
  2511.  
  2512. (thanks to rick jones, HP)
  2513.  
  2514. ------------------------------
  2515.  
  2516. Subject: 7.30  How can I get a daemon to successfully start from /etc/rc at 9.x?
  2517.  
  2518. A) /etc/rc will kill all child processes on exit; daemons started from
  2519.    localrc() (for example) must have called setsid() and have been
  2520.    given time to daemonize (what a word!) themselves.
  2521.  
  2522.    If your system doesn't have the C compiler you can use a call to nohup to
  2523.    start the daemon instead of calling setsid().
  2524.  
  2525. B) Another trick that works is to include the following command in the rc file:
  2526.  
  2527.    /usr/bin/at now + 1 minute < /etc/rc.at
  2528.  
  2529.    Then create a file named /etc/rc.at, which should contain the command to
  2530.    start the daemon.  Your daemon will start 1 minute after the rc file
  2531.    calls the command.  You can use times other than 1 minute.
  2532.  
  2533. (thanks to Mike Peterson, <system@alchemy.chem.utoronto.ca>, and
  2534.            Noel Hunter <noel@wfu.edu>)
  2535.  
  2536. ------------------------------
  2537.  
  2538. Subject: 7.31  How come my /dev/null keeps getting blown away?
  2539.  
  2540. Apparantly this can occur if root invokes the C compiler on a nonexistent
  2541. file at 9.x.
  2542.  
  2543. ------------------------------
  2544.  
  2545. Subject: 7.32  How can I track network packets?
  2546.  
  2547. *******************************************************
  2548. *
  2549. * Network Tracing with nettl -  for HPUX 8.x and up
  2550. *
  2551. *******************************************************
  2552. TRACING - trace all packets seen by the device driver
  2553.           on the HP nodes, except diskless packets.
  2554.           These packets are those packets sent by the
  2555.           node, or addressed to the node.
  2556.  
  2557. 1.  Start Trace - put data into 1MB  trace file. The data
  2558.     will be stored in /tmp/raw.TRC0 and /tmp/raw.TRC1
  2559.     The most recent data will always be in TRC0, when
  2560.     it fills up, TRC0 is renamed TRC1, and new logging
  2561.     continues in the TRC0 file.  They fill up quickly!
  2562.  
  2563.      /etc/nettl -tn pduin pduout -e all -f /tmp/raw
  2564.  
  2565.      If neding to trace LOOPBACK interface as well,
  2566.      consider:
  2567.  
  2568.      /etc/nettl -tn pduin pduout loopback -e all -f /tmp/trace
  2569.  
  2570. 2.  Stop trace as soon as an event occurs!
  2571.  
  2572.     /etc/nettl -tf -e all
  2573.  
  2574. 3.  Format trace into a print file:
  2575.  
  2576.     /etc/netfmt -N -n -l -f /tmp/raw.TRC0 [ -c /tmp/filter ] > /tmp/fmt0
  2577.     /etc/netfmt -N -n -l -f /tmp/raw.TRC1 [ -c /tmp/filter ] > /tmp/fmt1
  2578.  
  2579.     -N - print in "nice" format (e.g. interpret)
  2580.     -n - print IP addresses, not hostnames
  2581.     -l - do not highlight fields (for hpterm)
  2582.     -f - optional, use a filter file (see "filtering", below)
  2583.  
  2584.     NOTE - netfmt takes a while to run!
  2585.     There will be plenty of info in the trace file -
  2586.     Interpretation may be necessary!
  2587.  
  2588. 3a. Filtering.  Create a filter file to tell netfmt what packets you
  2589.     are interested in seeing.
  2590.  
  2591.     E.g. only display packets to/from IP address 192.10.10.1:
  2592.     filter ip_saddr 192.10.10.1
  2593.     filter ip_daddr 192.10.10.1
  2594.  
  2595.     Filter out all put NFS packets (to/from UDP port 2049)
  2596.     filter udp_sport 2049
  2597.     filter udp_dport 2049
  2598.  
  2599.     Filter out all but TCP packets to/from port 25 (sendmail)
  2600.     filter tcp_sport 25
  2601.     filter tcp_dport 25
  2602.  
  2603.     Filter on ethernet addresses:
  2604.     filter dest 08-00-09-49-91-4a
  2605.     filter source 08-00-09-49-91-4a
  2606.  
  2607.     You can put these together (e.g. filter all NFS packets to/from IP addr)
  2608.     filter ip_saddr 192.10.10.1
  2609.     filter ip_daddr 192.10.10.1
  2610.     filter udp_sport 2049
  2611.     filter udp_dport 2049
  2612.  
  2613. (thanks to Brian Hackley, <hackley@apollo.hp.com>)
  2614.  
  2615. ------------------------------
  2616.  
  2617. Subject: 7.33  How come my processes keep dying at 67M memory usage?
  2618.  
  2619. You need to adjust the kernel parameter "maxdsiz"; by default the per
  2620. process data space is limited to 67M. Adding physical memory and swap
  2621. will have no effect until you modify the parameter.
  2622.  
  2623. ------------------------------
  2624.  
  2625. Subject: 7.34  Is it possible to artificially limit the memory size?
  2626.  
  2627. WARNING: this is non-standard, unsupported, and may change
  2628. from release-to-release.
  2629.  
  2630. For 9.01 and 9.03, there is a variable in the kernel called
  2631. "soft_pages".  The value is normally zero.  If set to some number
  2632. between 256 and the number of pages in your system, only that number
  2633. of pages will be allocated as the physical memory in your system.
  2634.  
  2635. To use this, first copy your kernel from /hp-ux to something else,
  2636. so that you can recover, if necessary (this variable can be set to
  2637. a small enough value that the system will be unbootable).  Then
  2638. to set up a, say, 16 MByte system, do:
  2639.  
  2640. adb -w /hp-ux
  2641. soft_pages?W 0D4096
  2642.  
  2643. or
  2644.  
  2645. soft_pages?W 1000
  2646.  
  2647. Remember that the number of physical pages is not the only thing that
  2648. goes into a minimum configuration---you also have to scale kernel
  2649. parameters such as nproc and other tunables appropriately.
  2650.  
  2651. ------------------------------
  2652.  
  2653. Subject: 7.35  How come my alt key combinations don't work in emacs X mode?
  2654.  
  2655. Run the following through xmodmap:
  2656.  
  2657. !
  2658. ! The following is modified from some code received from bjarne@hsr.no
  2659. ! (Bjarne Steinsbo):
  2660. !
  2661. keysym Alt_L = Meta_L
  2662. keysym F12 = Multi_key
  2663. clear mod1
  2664. add mod1 = Meta_L
  2665. clear mod2
  2666. add mod2 = Alt_R Mode_switch
  2667. ! This is magic!
  2668. keysym Alt_R = Mode_switch
  2669.  
  2670. The result is:
  2671.  - The left Alt key acts as the Meta key.
  2672.  - The right Alt key (Alt Gr) selects the extra characters Martin is talking
  2673.    about.  (e.g. AltGr-o = o).
  2674.  - It is even possible to use both Alt keys together, resulting in
  2675.    Meta-versions of the extra characters.
  2676.  
  2677. (Thanks to Geir Atle Storhaug <gas@globus.ffi.no>)
  2678.  
  2679. ------------------------------
  2680.  
  2681. Subject: 7.36  I can't get FLEXlm based licensing to work.
  2682.  
  2683. For some reason, Flex licensing requires /dev/lan0 to have read and write 
  2684. permissions for everybody. This is somewhat insecure, but is fixed in FLEXlm 
  2685. versions after 2.4. You should really upgrade your software, but if you can't, 
  2686. pls see their Web Site (see below) or here is one workaround: 
  2687.  
  2688.    1. Create a new group call "lan0".
  2689.    2. chgrp/chmod /dev/lan0 to look like this:
  2690.       crw-rw----   1 root     lan0      52 0x202000 May 20  1993 /dev/lan0
  2691.    3. chgrp/chmod g+s on any binaries that need to access /dev/lan0.
  2692.       For example, for Interleaf, we did this to /interleaf/ileaf5/hp700/bin:
  2693.       -rwxr-sr-x   1 compsci  lan0     5255168 Jan 29  1992 ileaf
  2694.  
  2695. Note also that you may or may not get Flex licensing to work with
  2696. the FDDI daughter card, particularly if there is no Ethernet card.
  2697. Under 9.01, the Flex utility lmhostid would not return the LAN
  2698. address from the FDDI daughter card. This may have been fixed at 9.03
  2699. or 9.05, but that has not been confirmed. Additionally, PHNE_4003
  2700. is supposed to fix the problem for 9.01.
  2701.  
  2702. (Thanks to Richard Lloyd, Liverpool and Greg Vasquez, HP)
  2703.  
  2704.  
  2705. rich@globes.com (Rich Mirabella) says that FDDI stuff is mostly fixed
  2706. now for more recent versions of HP-UX ... and that more info about
  2707. FLEXlm can be found at  http://www.globetrotter.com 
  2708.  
  2709.  
  2710. ------------------------------
  2711.  
  2712. Subject: 7.37  How can I set up group-based FTP access?
  2713.  
  2714. Here is how to set up ftp so that a group of users only have ftp access,
  2715. they all have their own individual passwd, but they all access the same
  2716. set of files (i.e., the system thinks they are all really the same ftp
  2717. user).  With only a slight change, you can have a group of users that
  2718. only have ftp access, each with their own individual passwd, and access
  2719. only to their own set of files (this is left as an exercise for the
  2720. reader).
  2721.  
  2722. 1) Set up anonymous ftp (assumed in later instructions to be at
  2723.    /users/ftp).
  2724.  
  2725. 2) Add a user and group to /etc/passwd and /etc/group.
  2726.  
  2727.    For example, in /etc/passwd:
  2728.  
  2729.         ftpuser:*:1000:1000:FTP User:/users/ftp/ftpusers:/bin/false
  2730.  
  2731.    and in /etc/group:
  2732.  
  2733.         ftpgroup:*:1000:ftpuser
  2734.  
  2735.    Note that ftpuser login is disabled (a "*" in the password field).
  2736.    This allows various utilities (such as "ls") to recognize files
  2737.    that belong to an ftp user (particularly important for backups).
  2738.  
  2739. 3) In /users/ftp/etc, you must have a group and passwd file, of the same
  2740.    format as their related system files.  For example, in
  2741.    /users/ftp/etc/group add:
  2742.  
  2743.    ftpgroup:*:1000:
  2744.  
  2745.    and in /users/ftp/etc/passwd add:
  2746.  
  2747.    ftpuser:*:1000:1000:FTP User:/ftpusers:/bin/false
  2748.  
  2749.    Also, for each individual that you want to give access, add an
  2750.    additional entry.  Note that these have passwords (see passwd(1)
  2751.    for instructions on setting passwords in this file).
  2752.  
  2753.    george:3RgfBzfnipJPQ:1000:1000:George Smith \
  2754.                 (FTP User):/ftpusers:/bin/false
  2755.  
  2756.    A few things to notice.  "ftpuser" is disabled.  The home directory
  2757.    for ftpuser is simply "/ftpusers", since anonymous ftp performs a
  2758.    chroot to the home directory specified for ftp in /etc/passwd (see
  2759.    chroot(2) and chroot(1M) for details).  "george" has the
  2760.    same uid, gid, and home directory that ftpuser has.  "george"
  2761.    will login as george with his own password.
  2762.  
  2763. 4) Under /users/ftp, create a directory "ftpusers".  Make this
  2764.    directory with owner "ftpuser" and group "ftpgroup", with 770
  2765.    permissions.  This effectively prevents anonymous ftp access to this
  2766.    directory, since it is not world readable/writable.
  2767.  
  2768. That's it.
  2769.  
  2770.    Users access the system via anonymous:
  2771.  
  2772.    $ ftp sysname
  2773.    Connected to sysname.whatever.
  2774.    220 sysname FTP server
  2775.    Name (something:someuser): ftp
  2776.    331 Guest login ok, send ident as password.
  2777.    Password:
  2778.    230 Guest login ok, access restrictions apply.
  2779.    Remote system type is UNIX.
  2780.    Using binary mode to transfer files.
  2781.    ftp>
  2782.  
  2783.    Then, they use a sublogin to access their files:
  2784.  
  2785.    ftp> user george
  2786.    331 Password required for george.
  2787.    Password:
  2788.    230 User george logged in.
  2789.    ftp> pwd
  2790.    257 "/ftpusers" is current directory.
  2791.    ftp>
  2792.  
  2793.    Users are placed in whatever directory is specified as their
  2794.    home directory in /users/ftp/etc/passwd (relative to the
  2795.    chroot at /users/ftp).
  2796.  
  2797.    To remove access, remove their passwd entry from
  2798.    /users/ftp/etc/passwd.
  2799.  
  2800. This is all documented (though poorly) in the various ftp related man
  2801. pages.
  2802.  
  2803. (thanks to Aaron Friesen of HP <aaronf@fc.hp.com>)
  2804.  
  2805. ------------------------------
  2806.  
  2807. Subject: 7.38  How come my 700 doesn't perform as well as I expect?
  2808.  
  2809. There are, of course, many answers to that question. Many people
  2810. have noticed that HP's conservative choices in some configuration
  2811. areas affect performance, especially relevant to Sun workstations.
  2812. Two examples:
  2813.  
  2814. fs_async kernel parameter. HP-UX by default makes all file system
  2815.     I/O synchronous. Sun, by contrast, defaults to asynchronous I/O
  2816.     and depends on the syncer. Setting this parameter to 1 can
  2817.     significantly increase write speeds, but at the risk of losing
  2818.     data in a system crash. You can change this parameter with SAM.
  2819.  
  2820. SHARE_MAGIC vs. DEMAND_MAGIC. HP binaries by default are SHARE_MAGIC.
  2821.     This means that ALL pages needed are read in at invocation time.
  2822.     Sun, by contrast, implements demand paging by default, which
  2823.     speeds up the invocation time at the cost of page I/O later
  2824.     in process execution. You can change the behavior on HP binaries
  2825.     by using the chatr command.
  2826.  
  2827. ------------------------------
  2828.  
  2829. Subject: 7.39  How do I convert the uname string to the model string?
  2830.  
  2831. Here's the relationship for the most common HP-UX machines:
  2832.  
  2833.    Model number on the     String returned
  2834.    outside of the box      by uname -m
  2835.    -------------------     ---------------
  2836.         default ----------> 9000/800
  2837.         E25 --------------> 9000/806
  2838.         E35 --------------> 9000/816
  2839.         E45 --------------> 9000/826
  2840.         E55 --------------> 9000/856
  2841.         F10 --------------> 9000/807
  2842.         F20 --------------> 9000/817
  2843.         H20 --------------> 9000/827
  2844.         K400 -------------> 9000/829
  2845.         F30 --------------> 9000/837
  2846.         G30/H30 ----------> 9000/847
  2847.         I30 --------------> 9000/857
  2848.         G40/H40 ----------> 9000/867
  2849.         I40 --------------> 9000/877
  2850.         G50/H50 ----------> 9000/887
  2851.         I50 --------------> 9000/897
  2852.         G70/H70 ----------> 9000/887
  2853.         I70 --------------> 9000/897
  2854.         G60/H60 ----------> 9000/887
  2855.         I60 --------------> 9000/897
  2856.         T500 -------------> 9000/891
  2857.  
  2858. 9000/800 is the default used when HP-UX cannoot determine the model
  2859. number of the machine.  Other than prototypes, no properly configured machine
  2860. should return 9000/800.  A customer machine returning 9000/800 should have its
  2861. stable storage updated by Support.
  2862.  
  2863. BTW, if you're running 10.0 or later you can use the "model" command to
  2864. get an expanded model string.  For example:
  2865.  
  2866.    $ uname -m
  2867.    9000/829
  2868.    $ model
  2869.    9000/829/K400
  2870.  
  2871. (Thanks to Wayne Krone (wk@cup.hp.com), and
  2872.            Colin Wynd (colin@col.hp.com))
  2873.  
  2874. ------------------------------
  2875.  
  2876. Subject: 7.40  Problem with ntalkd and it's handling on /etc/utmp.
  2877.  
  2878. The current version of ntalkd (talkd is probably the same here),
  2879. and it's handling of /etc/utmp is broken since it doesn't check
  2880. the ut_type field.  This causes it to send messages to logged out
  2881. tty's rather than to those who are logged in on.  The patch is easy
  2882. luckily and also applies to most other unix's except really BSD4.2
  2883. ones and SunOS4.
  2884.  
  2885. The patch is availalable on ftp.amtp.cam.ac.uk:/pub/HP/ntalk.tgz.
  2886.  
  2887. (Thanks to Bill Hassell <blh@hpuerca.atl.hp.com>,
  2888.            Jon Peatfield <J.S.Peatfield@amtp.cam.ac.uk>)
  2889.  
  2890. ------------------------------
  2891.  
  2892. Subject: 7.41  How to get an MS-DOS floppy formatted using HP-UX?
  2893.  
  2894. There is no HP-fully-supported way of getting an MS-DOS floppy formatted
  2895. on HP-UX.  (Once you have a PC-compatible floppy, the series of commands
  2896. referenced in the dosif(4) manpage allow you to read and write the floppies).
  2897.  
  2898. However, there is a workaround.  Perform the basic mediainit with the
  2899. -f16 switch (this causes the floppy to be formatted with the full 80
  2900. tracks, rather than HP's default safer-but-nonstandard 77+3spare tracks,
  2901. 512-byte sectors, no sector skew: just like the most basic PC floppies).
  2902. Then copy on the FAT, directory, label, and other such magic from an
  2903. honest-to-goodness formatted-on-a-real-PC drive into the first N sectors.
  2904. For sizes up to 1.44MB floppies, N=20 is more than enough; I don't have
  2905. the values for the rarely used 2.88MB size (and I don't think the drives
  2906. in the s700 handle that size anyway).  This header magic should be copied
  2907. off an honest-to-goodness PC floppy once with the command
  2908.  
  2909.    dd if=/dev/rfloppy of=/a/good/place/to/store/the/header bs=512 count=20
  2910.  
  2911. and then written back to each "cloned" floppy with the same command,
  2912. reversing "if" and "of".  (Slightly faster performance is possible using
  2913. the variant:
  2914.  
  2915.    dd of=/dev/rfloppy if=/the/copied/header ibs=512 count=20 obs=9k conv=sync
  2916.  
  2917. This causes floppy I/O to be done in multiples of 9kB, i.e. one cylinder
  2918. at a time.)
  2919.  
  2920. You should of course have two such headers, one for 720kB and one for
  2921. 1.44MB floppies: lying to MS-DOS or the dos* utilities about the floppy
  2922. capacity would be a bad idea.  If you're writing a script to automate
  2923. all this, you can determine the capacity of a floppy loaded in the drive
  2924. using the following fragment of Korn shell:
  2925.  
  2926.     kbsize=$( diskinfo -b /dev/rfloppy 2>/dev/null )
  2927.     if (( $? != 0  ||  $kbsize == 0 )) ; then
  2928.         print -u2 "$0: Wot, no media!?"
  2929.         rm -f core  # 9.01s700 diskinfo coredumps
  2930.         exit 1
  2931.     fi
  2932.  
  2933. (Thanks to Stefek Zaba <sjmz@hplb.hpl.hp.com>)
  2934.  
  2935. ------------------------------
  2936.  
  2937. Subject: 7.42  How to get the MAC (station) address programmatically?
  2938.  
  2939. Here's some sample LLA code to do this. Note that you can use DLPI to do
  2940. the same, and LLA in not supported in HP-UX 10.0. Sample DLPI code
  2941. can be found on HPSL, the document id is CWA940907000.
  2942.  
  2943. /*
  2944. Here's some sample code that you can use to get your own
  2945. station address (otherwise known as MAC address or LAN card address).
  2946. Be sure to compile this with the -ln option, since the net_ntoa(3N)
  2947. call is found in /usr/lib/libn.a.
  2948.  
  2949. This program was compiled by doing: cc get.c -o get -g -ln
  2950.  
  2951. */
  2952.  
  2953. #include <stdio.h>
  2954. #include <netio.h>
  2955. #include <fcntl.h>
  2956.  
  2957. main(argc, argv)
  2958. int    argc;
  2959. char   *argv[];
  2960. {
  2961.    struct fis s_fis;
  2962.    struct fis s_fis;
  2963.    int lanic;
  2964.    char *ascii[6];
  2965.  
  2966.    if (argc < 2) {
  2967.       printf ("Usage: %s <device file>\n", argv[0]);
  2968.       exit (1);
  2969.       }
  2970.  
  2971.    lanic = open(argv[1], O_RDWR);
  2972.    if (lanic < 0) {
  2973.       perror("Error in opening %s", argv[1]);
  2974.       printf("Error = %d\n", lanic);
  2975.       exit(1);
  2976.    } else {
  2977.       s_fis.reqtype = LOCAL_ADDRESS;
  2978.       s_fis.vtype = INTEGERTYPE;
  2979.  
  2980.       ioctl(lanic, NETSTAT, &s_fis);
  2981.       net_ntoa(ascii, s_fis.value.s, 6);
  2982.       printf("Station address of %s is %s\n", argv[1], ascii);
  2983.  
  2984.       s_fis.reqtype = PERMANENT_ADDRESS;
  2985.       s_fis.vtype = INTEGERTYPE;
  2986.       ioctl(lanic, NETSTAT, &s_fis);
  2987.       net_ntoa(ascii, s_fis.value.s, 6);
  2988.       printf("Permanent Station address of %s is %s\n", argv[1], ascii);
  2989.       close(lanic);
  2990.       }
  2991. }
  2992.  
  2993. (Thanks to Colin Wynd <colin@col.hp.com>)
  2994.  
  2995. ------------------------------
  2996.  
  2997. Subject: 7.43  Is there a Transport Level Interface (TLI) interface to TCP on HP-UX?
  2998.  
  2999. In HP-UX 10.0 a special module has been created which provides XTI access
  3000. over the BSD stack - TLI is not supported. TLI, for the most part after
  3001. SVID 3 volume 5, has stopped evolving and is being replaced by XTI in
  3002. most implementations.  XTI is standardized by X/Open and the current
  3003. versions from most vendors should be XPG4 compliant with some being
  3004. branded as the branding test suites are made available by X/Open.
  3005.  
  3006. Note the reason one needs a streams-based TCP is that both TLI and XTI
  3007. rely upon a streams-based module, timod, to provide specific functionality
  3008. within the kernel and this module needs to be pushed upon the transport
  3009. stack.  Since HP-UX uses a BSD transport which is not streams-based and
  3010. is therefore incapable of having a streams-based module pushed upon it,
  3011. one can not run TLI/XTI directly upon it, and, hence, a special streams
  3012. module was created to provide this functionality for HP-UX 10.0.
  3013.  
  3014. (Thanks to Mike Krause <krause@cup.hp.com>)
  3015.  
  3016. ------------------------------
  3017.  
  3018. Subject: 7.44  How do you disable IP Forwarding at 9.x?
  3019.  
  3020. To accomplish what you want, use the following commands as root:
  3021.  
  3022.         adb -w /hp-ux /dev/kmem
  3023.         ipforwarding/W 0
  3024.         ipforwarding?W 0
  3025.         CTRL-D
  3026.  
  3027. If you install a new kernel, you have to repeat these steps.
  3028.  
  3029. NOTE:  These commands disable IP forwarding completely:  if the
  3030.        system is configured as a gateway, no IP forwarding will
  3031.        occur.  This workaround is NOT supported.
  3032.  
  3033. (Thanks to Colin Wynd (colin@col.hp.com)
  3034.  
  3035. ------------------------------
  3036.  
  3037. Subject: 7.45  Does HPUX 9.0 have support for threads?
  3038.  
  3039. As part of the DCE product, a user-space thread-package was shipped.
  3040. This package is also part of 10.0.
  3041.  
  3042. (Thanks to Mike Krause <krause@cup.hp.com>)
  3043.  
  3044. ------------------------------
  3045.  
  3046. Subject: 7.46  How come I can't type an '@' character?
  3047.  
  3048. If you do a 'stty -a' and you will see that your 'kill' character is
  3049. set to '@'.  You need to set your 'kill' character to be something
  3050. other than the '@' character by doing something like 'stty kill '^U''.
  3051. You should add this to your .profile or .cshrc file.
  3052.  
  3053. (Thanks to Michael J. O'Connor <mjo@dojo.mi.org>)
  3054.  
  3055. ------------------------------
  3056.  
  3057. Subject: 7.47  How come I can't get my machine into boot admin mode?
  3058.  
  3059. When i reboot my workstation I do not get the "..push and hold the ESCAPE
  3060. key to ..." - why?
  3061.  
  3062. The machine is configured in secure boot mode. To get into
  3063. boot admin mode you will need to remove all bootable
  3064. media (i.e. disconnect disks, LAN, etc.) and then power on - the boot
  3065. will fail and you can then get to boot admin and switch off secure boot
  3066. mode.
  3067.  
  3068. (Thanks to Julian Perry <jperr@J-Sainsbury.co.uk>)
  3069.  
  3070. ------------------------------
  3071.  
  3072. Subject: 7.48  What's a quick check to see if a fileset is installed on 9.x?
  3073.  
  3074. The following script will check to see if all the files in a fileset
  3075. are installed in the correct place. It does not check permissions
  3076. or that the kernel files are in the kernel. Certain filesets
  3077. have their own verify scripts ie:
  3078.  
  3079.    NS-SERV has   /usr/nettest/nsverify/ver_ns
  3080.    STREAMS has   /usr/bin/strvf
  3081.  
  3082. #!/bin/sh
  3083. FSET=/etc/filesets/$1
  3084.  
  3085. if [ "$FSET" = "" ]; then
  3086.    echo "syntax of command $0 Filesetname "
  3087.    exit 1
  3088. fi
  3089.  
  3090. if [ ! -f $FSET ]; then
  3091.    echo "Fileset $FSET not found"
  3092.    exit 1
  3093. fi
  3094.  
  3095. # simple test to see non zero size files of any type
  3096. while read File
  3097. do
  3098.   if [ ! -s $File ]; then
  3099.      echo "$File not found"
  3100.   fi
  3101. done < $FSET
  3102. exit
  3103.  
  3104. (Thanks to Mike MacFaden <macfaden@kalpana.com>)
  3105.  
  3106. ------------------------------
  3107.  
  3108. Subject: 7.49  How does one package a set of files for HP-UX 9.X?
  3109.  
  3110. Use the fpkg program to build a special tar file that update can read.
  3111.  
  3112. Be sure to use the mkpdf program to create a PDF file and add this to your
  3113. psf file as follows:
  3114.  
  3115.     pn  MY-PROD
  3116.     pd  My product description
  3117.     fv  V.1.0.0
  3118.     F
  3119. >    <somedir>/PDF /system/MY-PROD/pdf             <
  3120.     pr <somedir>/prod-dir
  3121.     F *
  3122.  
  3123. The pdf file contains a complete file manifest which tech support can use
  3124. to verify the files in a product are correctly installed with the command
  3125. pdfck.
  3126.  
  3127. (Thanks to Mike MacFaden <macfaden@kalpana.com>)
  3128.  
  3129. ------------------------------
  3130.  
  3131. Subject: 7.50  Why is ifconfig giving me errors when I try to configure my LAN?
  3132.  
  3133. When I try to configure my lan device on my s700 I get the error
  3134. ifconfig: no such interface - why is that?
  3135.  
  3136. This is because the interface's hardware state is down. The s700 machines
  3137. need to be connected to a network before they can be configured with
  3138. ifconfig. Add the s700 machine to the network and then reset the interface
  3139. with running /usr/bin/landiag (LAN->RESET). If no errors are reported
  3140. then you should be able to ifconfig that interface.
  3141.  
  3142. (thanks to Colin Wynd <colin@col.hp.com>)
  3143.  
  3144. ------------------------------
  3145.  
  3146. Subject: 7.51  What new features are in HP-UX 9.07?
  3147.  
  3148. The 9.07 version of HP-UX is 9.05 with a number of X-window and 3D
  3149. graphics enhancements for the new graphics announced in June 1995.
  3150.  
  3151. Starbase now joins PEXlib in having a formal API call for texture
  3152. mapping. VisualEyes series require new device drivers to enable the new
  3153. 3D accelerators. Freedom series support is also included in 9.07.
  3154.  
  3155. The X-window drivers now include Multi-Buffered-X wich is the new
  3156. standard method for double-buffering X-window graphics for smooth screen
  3157. updates and animations. The new X-drivers also include
  3158. Single-Logical-Screen functionality which allows a single X-window to
  3159. span two video display. Note that to use Single-Logical-Screen requires
  3160. two identical 8-bit graphics devices and two identical video displays.
  3161.  
  3162. (thanks to and Andres Cuneo L. <andres.cuneo@rimpex.cl>)
  3163.  
  3164. ------------------------------
  3165.  
  3166. Subject: 7.52  Why do I get the message "Can't start message server..."
  3167.  
  3168.   VUE relies on being able to do hostname lookups for the local host
  3169.   (i.e. both the fully qualified domain name and 'localhost').
  3170.  
  3171.   If your network is down or your DNS server is unreachable then
  3172.   VUE will probably fail.  This could happen at login
  3173.   (when you get the above message) or it may manifest itself by
  3174.   windows opening very slowly or not at all.
  3175.  
  3176.   The ideal solution is to get HP to fix this sensitivity
  3177.   but in the meantime the best idea is to make hostname lookups
  3178.   more robust by installing the 'nsswitch' patches (See question X.Y).
  3179.   See also http://www.am.qub.ac.uk/users/j.pelan/DNSandVUE.html
  3180.  
  3181. ------------------------------
  3182.  
  3183. Subject: 7.53  How can I disable new logins?
  3184.  
  3185. Add the following to /etc/profile; then 'touch /etc/nologin' will disable
  3186. all new login other than 'root'
  3187.  
  3188.    uid=`id -u`
  3189.    if [ -f /etc/nologin -a $uid -ne 0 ]; then
  3190.      echo "Sorry, no login allowed, try later!"
  3191.      sleep 5
  3192.      exit 0
  3193.    fi
  3194.  
  3195. (Thanks to Nils Gerloff <ng@hcs.de>)
  3196.  
  3197. ------------------------------
  3198.  
  3199. Subject: 7.54  What is the maximum filesystem size on a 7xx, running HP-UX 9.X  HP-UX 10.X?
  3200.  
  3201. On a 7xx series, the maximum filesystem size under an *UNPATCHED*
  3202. HP/UX 9.01 is 2Gb.  There is a patch available which will increase
  3203. the maximum filesystem size to 4Gb.  Under 9.03, 9.05, and 9.07
  3204. the maximum filesystem is already 4Gb.
  3205.  
  3206. Under HP/UX 10.X, the maximum filesystem size is also 4Gb.
  3207.  
  3208. The maximum size of any file (not filesystem) is either 2Gb, or the
  3209. size of the filesystem on which that files resides, whichever is smaller.
  3210. Ie: You can not store a 1Gb file on a 500Mb filesystem.
  3211.  
  3212. The maximum size of the *boot* system is 2Gb under both 9.x and 10.x
  3213. You can play with this, if you have a > 2Gb disk, by allocating swap
  3214. equal to the balance, or some other such feature.  But in general, it's
  3215. probably best (at least for now) to use a 2Gb boot disk, and use that
  3216. bigger disk for something else.
  3217.  
  3218. >From:    Tom Lane <tgl@netcom7>
  3219. >
  3220. >Well, I *didn't* get it to boot off the Micropolis disk.  The key fact in
  3221. >all of this is that the HP S700 boot roms will not boot off a disk bigger
  3222. >than 2GB.  (I surmise that they use signed rather than unsigned longs in
  3223. >evaluating disk addresses.)  HPUX 9.03 and later can build filesystems
  3224. >on disks up to 4GB, so the HPUX filesystem code is unsigned-clean.
  3225. >But the boot roms ain't.
  3226. >
  3227. >HP's /etc/mkboot doesn't warn you about this; if you invoke mkboot on a
  3228. >4GB disk it will happily plop a bootstrap loader at the end of the disk.
  3229. >The bootstrap is useless, though.  The upshot is that you can use a 4GB
  3230. >disk as addon file storage but not as your root disk; the root disk must
  3231. >have a working bootstrap so it must be <= 2GB.
  3232. >
  3233. >All this is in the comp.sys.hp.hpux FAQ.  What isn't in the FAQ is that
  3234. >/etc/swapon also examines the bootstrap address (so as to avoid
  3235. >overwriting the bootstrap with swap space) and rejects the disk if
  3236. >the bootstrap address is invalid *according to the bootrom definition*.
  3237. >
  3238. >So, although you should be able to use part of a 4GB disk as swap space
  3239. >(by making the filesystem be smaller than 4GB), it's critical that you
  3240. >*not* have run mkboot against the disk, or else swapon will fail.
  3241. >I ran mkboot on the theory that it couldn't hurt.  Wrong!
  3242. >
  3243. >It turns out that /etc/rmboot will zero out the bootstrap pointer, so
  3244. >if you've made this mistake you can undo it with rmboot without
  3245. >damaging your filesystem.  Then swapon is happy.
  3246. >
  3247.  
  3248. Further confusing the issue under HP/UX 9.x on 7xx systems is not being
  3249. able to access more than 4Gb on any physical device without some wierd
  3250. manipulation (via sdsadmin).  In general, a driver from MDL (See 4.2)
  3251. is currently your best option if you have > 4Gb disk drives.  Under 10.x
  3252. this limitation is not there as you have access to LVM.
  3253.  
  3254. (thanks to Paul Hirose <pthirose@ucdavis.edu>)
  3255. (          Tom Lane <tgl@netcom7>            )
  3256.  
  3257.  
  3258. ------------------------------
  3259.  
  3260. Subject: 7.55   What is the current revision of HP-UX?
  3261.  
  3262. 10.10 was unleashed last February 1996. 
  3263. 10.20 current and was released in August of 1996. 
  3264.  
  3265. (Thanx to Brad Bass <bass@convex.hp.com>)
  3266.  
  3267.  
  3268. ------------------------------
  3269.  
  3270. Subject: 7.56   What's different between HP-UX 9.x and 10.20? 
  3271. Common Desktop Environment -- CDE is the new industry-standard UNIX desktop, 
  3272. which will replace VUE in future releases. Differences from VUE include: 
  3273.         New and more customizable Front Panel 
  3274.         Graphical MIME-enabled mail application 
  3275.         Graphical Calendar 
  3276.         Graphical Print Queue Manager 
  3277.         New terminal emulator 
  3278.         Action and datatype syntax changes 
  3279.         ToolTalk messaging support 
  3280.         Desktop application registration 
  3281.     more standard X-Windows stuff is part of the installation 
  3282.         Athena Widget library (Xaw) 
  3283.         X Miscellaneous Utilities library (Xmu) 
  3284.         Imake 
  3285. New Filesystem Layout -- modeled after the AT&T SVR4 and OSF/1 file systems 
  3286. and is implemented on both Series 700 and Series 800 computers. 
  3287. There are fewer differences between the layouts of other vendors' file systems 
  3288. and that of HP-UX Files are organized into categories such as static versus 
  3289. dynamic, executable versus configuration data, and so forth. Operating system 
  3290. software is kept in separate directories from application software Files 
  3291. that are meant to be shared by different hosts are kept in separate 
  3292. directories from host-specific files Restricted SAM -- Non-superusers 
  3293. can be given limited access to SAM functionality or other custom utilities 
  3294. added to SAM. Where appropriate, these users are promoted to superuser 
  3295. while they are executing SAM functionality. 
  3296.     Modified Commands 
  3297.         du -k -- reports disk usage in 1024-byte blocks instead for 512-byte blocks
  3298.         csh -- the "limit" builtin command is available, LINES and COLUMNS 
  3299.                are set when csh starts up. 
  3300.         passwd -- New password aging options 
  3301.  
  3302. (Thanx to Brad Bass <bass@convex.hp.com>)
  3303.  
  3304.  
  3305. ------------------------------
  3306.  
  3307. Subject: 7.57   What's different between HP-UX 10.01 and 10.2? 
  3308.  
  3309. Large Filesystems -- the maximum filesystem size has been increased from 4GB to 128GB 
  3310. Large Files -- the maximum file size is 128GB. 
  3311. Large User IDs -- the maximum UID is 2,147,483,646 or (2^31)-2 
  3312. Lots of patches are incorporated into 10.20 
  3313. du -k -- reports disk usage in 1024-byte blocks instead for 512-byte blocks hooray!
  3314. Common Desktop Environment -- CDE is the new industry-standard UNIX desktop, 
  3315. which will replace VUE in future releases. 
  3316.  
  3317. (Thanx to Brad Bass <bass@convex.hp.com>)
  3318.  
  3319.  
  3320. ------------------------------
  3321.  
  3322. Subject: 7.58   What happened to /usr/local? What's this /usr/contrib directory?
  3323.  
  3324. Things have been moved around some -- probably for the better: 
  3325.  
  3326. /opt 
  3327.     optional HP software packages like the ANSI C & C++ compilers and debuggers. 
  3328. /opt/hppd 
  3329.     pre-compiled HP public-domain sofware downloaded from the anonymous server 
  3330.     at http://hpux.cae.wisc.edu/ or http://hpux.cs.utah.edu/ 
  3331. /usr/contrib 
  3332.     Unsupported, 3rd-party or public-domain software compiled and maintained 
  3333.     by the local operations group on their software depot. For example: 
  3334.     nn, gzip, Gnu tools, perl5 
  3335. /usr/local 
  3336.     workstation-unique software packages that the user has installed himself 
  3337.     or are local to a specific machine. This directory is world writable. 
  3338.  
  3339. (Alek Comments: world-writeable ... ack!   ;-)
  3340.  
  3341. (Thanx to Brad Bass <bass@convex.hp.com>)
  3342.  
  3343.  
  3344. ------------------------------
  3345.  
  3346. Subject: 7.59  What happened to "less"?
  3347.  
  3348. Use "more". Under HP-UX 10, it seems to be as robust as "less". 
  3349.  
  3350. (Thanx to Brad Bass <bass@convex.hp.com>)
  3351.  
  3352.  
  3353. ------------------------------
  3354.  
  3355. Subject: 7.60   Remote mounts and the automounter -- What's new?
  3356.  
  3357. HP-UX 10.x ships with an automounter running with a -hosts option, so it's easy 
  3358. to just say "/net/hostname/directory/...", and the automounter will do the rest. 
  3359.  
  3360. If you like, you can put symbolic links in to make things easier, for example:
  3361.     /x1        -> /net/x1/x1
  3362.     /usr/valid -> /net/x1/valid
  3363.  
  3364. (Thanx to Brad Bass <bass@convex.hp.com>)
  3365.  
  3366.  
  3367. Alek comments: While this is convienent and easy to do, using explicit
  3368. automount maps (ex: /home/username) is usually a better idea in terms
  3369. of keeping things "tight" and maintaining server/disk independance.
  3370.  
  3371.  
  3372. ------------------------------
  3373.  
  3374. Subject: 7.61  Why does tcsh have problems with 'bind'?
  3375.  
  3376. The syntax got changed. Bind commands like: 
  3377.     bind backward-delete-word ^W
  3378. need to be changed to: 
  3379.     bindkey ^W backward-delete-word
  3380.  
  3381. (Thanx to Brad Bass <bass@convex.hp.com>)
  3382.  
  3383.  
  3384. ------------------------------
  3385.  
  3386. Subject: 7.62  How do I change the hostname, IP address, DNS Server, etc?
  3387.  
  3388. To change the hostname:
  3389.           # /sbin/set_parms hostname
  3390. To change the IP address: 
  3391.           # /sbin/set_parms ip_address
  3392. To change DNS Server, domain, etc.: 
  3393.           # /sbin/set_parms addl_netwrk
  3394. or to set everything just like doing the first-time install: 
  3395.           # /sbin/set_parms initial
  3396. WARNING Don't do this without your local IT/Operations people knowing about it. 
  3397. The potential for messing up the network and/or your workstation is great. 
  3398.  
  3399. (Thanx to Brad Bass <bass@convex.hp.com>)
  3400.  
  3401.  
  3402. ------------------------------
  3403.  
  3404. Subject: 7.63  What should go in my PATH and MANPATH environment variables?
  3405.  
  3406. at least: /usr/bin /usr/contrib/bin /usr/bin/X11 /usr/contrib/X11/bin 
  3407. /usr/contrib/bin/X11 /usr/local/bin
  3408.  
  3409. If you have the HP ANSI C compiler installed: 
  3410.     /opt/ansic/bin /usr/ccs/bin /opt/CC/bin /opt/langtools/bin
  3411.  
  3412. And, for system management stuff: 
  3413.     /usr/sbin
  3414.  
  3415. Alternately, you can start with: 
  3416.     setenv PATH `cat /etc/PATH`         # for tcsh
  3417.  
  3418. at the beginning of your shell's startup 'rc' file. The "/etc/PATH" file 
  3419. is supposed to be updated every time new software is installed in "/opt". 
  3420. This will get everything mentioned above, except for "/usr/sbin". 
  3421.  
  3422. MANPATH works the same way:
  3423.     setenv MANPATH `cat /etc/MANPATH`
  3424.  
  3425. (Thanx to Brad Bass <bass@convex.hp.com>)
  3426.  
  3427.  
  3428. ------------------------------
  3429.  
  3430. Subject: 7.64  What happened to 'lpr' and other misc. lp hints?
  3431.  
  3432. The Berkeley printer queue system is being phased out over the next few years. 
  3433. All new workstations and printers will have the HP-UX LP printer utilities 
  3434. instead. Here's a short cheatsheet: 
  3435.     lpr -Pvaxps         -> lp -dvaxps
  3436.     lpq -Pvaxps         -> lpstat vaxps
  3437.     lprm -Pvaxps ID     -> cancel vaxps ID
  3438.  
  3439. Why would I want to switch over to the System-V-style HP-UX LP spooler?
  3440. Because you can do neat things like: 
  3441.     % lp -dvaxps -odouble FILENAME      
  3442. which will print double-sided, that is, on both sides of the paper, 
  3443. if your printer supports it. 
  3444.  
  3445. How do I send output from nroff to HP LaserJet printers?
  3446. Try this:    nroff -Tlj ... | lp -onroff
  3447.  
  3448. (Thanx to Brad Bass <bass@convex.hp.com>)
  3449.  
  3450.  
  3451. ------------------------------
  3452.  
  3453. Subject: 7.65  Lpstat reports the printer down, even though it's not (?)
  3454.  
  3455. You probably need the following line in your /etc/passwd: 
  3456. lp:*:9:7::/var/spool/lp:/sbin/sh
  3457.  
  3458. (Thanx to Brad Bass <bass@convex.hp.com>)
  3459.  
  3460.  
  3461. ------------------------------
  3462.  
  3463. Subject: 7.66  Misc. HP-UX10.x gotcha with root's shell
  3464.  
  3465. Root's shell has to be /sbin/sh as defined in /etc/passwd, like so: 
  3466.     root:r92hS4musPTNM:0:10:Superuser:/:/sbin/sh
  3467. or another shell (/bin/csh) that resides on the root partition because /usr isn't
  3468. mounted when init needs to use the root shell to run the startup scripts. 
  3469. Make sure that /etc/passwd defines the correct shell. 
  3470.  
  3471. (Thanx to Brad Bass <bass@convex.hp.com>)
  3472.  
  3473.  
  3474. ------------------------------
  3475.  
  3476. Subject: 7.67  cksum command is a bit "squirrely" in HPUX09
  3477.  
  3478. The chsum (1) command produces a different checksum on HPUX09 than HPUX10.
  3479.  
  3480. The 9.x cksum was defective, it did not correctly implement the POSIX
  3481. spec.  That is understandable, because the POSIX cksum spec does not
  3482. supply a test suite to easily verify an implementation is correct.
  3483.  
  3484. The 10.x cksum is correct.  Unfortunately that means it can not match 9.x
  3485. cksum.  A special option for 10.x "sum" was suggested to match 9.x bogus
  3486. cksum, but that did not get in.
  3487.  
  3488. Another implementation that did not match POSIX spec was in AIX 3.*; I
  3489. haven't checked AIX 4.* or Solaris.
  3490.  
  3491. Other good implementations (they give the same answer as 10.x cksum):
  3492.   - gnu cksum
  3493.   - HP Software Distributor swpackage program, on both 9.x and 10.x
  3494.  
  3495. Thanx to Michael Taylor (tay@cv.hp.com)
  3496.  
  3497. ------------------------------
  3498.  
  3499. Subject: 7.68  HPUX10 generate copious "Sti_save" syslog messages
  3500.  
  3501. HPUX10 generates a FLOOD of syslog messages that look like this:
  3502.    vmunix: Warning! [82194698 ticks since boot] Sti_save:IteLock not available for 60 seconds
  3503.  
  3504. One way to turn this off (any suggestions for others?) is to uncomment
  3505. the "Dtlogin@grabServer:  False" line /in /usr/dt/config/Xconfig.
  3506. You can also do this in /etc/dy/config/Xconfig if you have an
  3507. automounted /etc/dt like we do!   ;-)
  3508.  
  3509. After this, reboot the machine ... and you won't see 'em again!  ;-)
  3510. From what I can gather, these are spurious messages than can be ignored.
  3511.  
  3512. Tested by Alek Komarnitsky (alek@csc.com) ... but I can't credit the
  3513. person who originally posted this solution 'cause I lost their name.  
  3514.  
  3515. ------------------------------
  3516.  
  3517. Subject: 7.69  Why does pfs_mount fail with the message 'Not Owner' when I try to use it?
  3518.  
  3519. You (root) are probably in more than 8 groups.  Run groups(1) to check. 
  3520. PFS was linked using HP-UX 8.0 RPC libraries which allowed only 8 groups. 
  3521. Reducing the number of groups fixes this problem."
  3522.  
  3523. Thanx to Duncan Missimer <missimer@xsvr2.cup.hp.com>
  3524.  
  3525. ------------------------------
  3526.  
  3527.  
  3528. Subject: 7.70  What is the HP equivelent of ldd (determine shared library dependancy)?
  3529.  
  3530. Check out the man page for chatr - not only shows stuff,
  3531. but allows you to do more!   ;-)    (added by alek)
  3532.  
  3533. ------------------------------
  3534.  
  3535.  
  3536. Subject: 7.71  PHKL_4413 breaks xntp
  3537.  
  3538. I ran into this about three years ago running timed on 9.x systems.  The
  3539. PHKL_4413 patch is a patch that correct "hardware clock drift" if I
  3540. remember correctly.  What it did to my systems running timed was to start
  3541. massive clock drifting between a minute or two fast and a minute or two
  3542. slow, cycling so fast that the clock ran probably 50% fast for a few minutes
  3543. then 50% slow!  I assume there was some sort of interaction between what
  3544. timed was doing to correct the clock and what this patch did, and that
  3545. interaction may also affect ntp.
  3546.  
  3547. I remember this well since this is the only time I have ever had to back
  3548. out a patch on HP-UX, despite always just taking every patch there is when
  3549. I'm doing a system load.
  3550.  
  3551. ------------------------------
  3552.  
  3553. Subject: 7.72  How do I get rid of these old 10.X patches since I upgraded OS's?
  3554.  
  3555. DO NOT USE SWREMOVE!  swremove will check the scripts for the patch you
  3556. ask it to remove, and happily remove whatever file you tell it to.
  3557. Unfortunately, swinstall does not know that the patch you are asking to
  3558. remove will put back the old 10.01/10.10 file in place of the 10.10/10.20
  3559. file you just asked it to remove.
  3560.  
  3561. All swinstall will do is look to see, does file exist?  Yes?  replace
  3562. file with backup copy stored in /var/adm/sw/patch.  The backup copy is a
  3563. 10.01/10.10 file, the file it is looking at is a 10.10/10.20 file.
  3564.  
  3565. The only SUPPORTED (by HP) way to remove these patches is to use the
  3566. patch_ipdcheck script provided by HP.  The script will check your IPD
  3567. (Installed Product Database) and remove all the entries for previous OS
  3568. version patches.  Then it will go remove the associated directories from
  3569. /var/adm/sw/patch.
  3570. A copy of this script can be retrieved from........ (somewhere, I don't
  3571. know where to put it.) or you can call the response center and ask
  3572. someone to e-mail it to you.
  3573.  
  3574. NOTE:  If you have already removed previous OS version patches with
  3575. swremove, you will either 1) need to restore from backup, or 2) reload
  3576. the OS.
  3577.  
  3578. Thanx to Skunk Schouten <skunky@skunky.org> 
  3579.  
  3580.  
  3581. According to Robert Sakic (rsakic@grc.hp.com), you can use the
  3582. cleanup (1M) program to remove old patches ... install patch
  3583. PHCO_5400 if you don't have this command allready in place.
  3584.  
  3585.  
  3586. ------------------------------
  3587. Subject: 7.73  How to install multiple patches on a 10.x system without rebooting?
  3588.  
  3589. Use swcopy to create a Patch depot and start swinstall with the patch depot 
  3590. as the source. The following script will create the patch depot for you:
  3591.  
  3592. #!/sbin/sh
  3593. # cd to the directory where the patches are (PHxx_xxxx) and start
  3594. # this script. it will extract the patches one by one and create
  3595. # a patch-depot in $PDEPOT.
  3596.  
  3597. PDEPOT=/tmp/PATCH.depot
  3598. for PFILE in PH*[0-9];
  3599. do
  3600.       sh $PFILE
  3601. done
  3602. # remove the archives
  3603. rm PH*[0-9]
  3604. # it's a good habit first reading the PHxx_xxxx.text file
  3605. # before deleting them.
  3606. # rm *.text
  3607. for PFILE in PH*depot;
  3608. do
  3609.         PNAME=`echo $PFILE | cut -d. -f1`
  3610.         /usr/sbin/swcopy -s $PWD/$PFILE $PNAME @ $PDEPOT
  3611. done
  3612. clear
  3613. echo "*********************************************************************"
  3614. echo "   PLEASE NOTE: The Patch depot $PDEPOT has been created."
  3615. echo "*********************************************************************"
  3616. echo "Please start swinstall with $PDEPOT as the source, and don't"
  3617. echo "forget to unregister the depot (e.g. swreg -u -l depot $PDEPOT)."
  3618.  
  3619.  
  3620.  
  3621. Thanx to  Robert Sakic <rsakic@hpugrca.grc.hp.com>     
  3622.  
  3623. ------------------------------
  3624.  
  3625.  
  3626. Subject: 7.74  How can I determine how much memory there is in my HP-UX system?
  3627.  
  3628. Here are three methods to determine the amount of physical memory
  3629. on your system (while logged on as superuser):
  3630.   1. If the diagnostic messages are still in the system buffer since
  3631.      the last reboot, the following will give the total kbytes:
  3632.         dmesg | awk '/Physical:/ && /Kbytes/ {print $2}'
  3633.  
  3634.   2. As of 10.X, the following SAM command will show memory in Mb:
  3635.         /usr/sam/lbin/getmem
  3636.  
  3637.   3. It's slow, but the following method will give the total bytes:
  3638.         wc -c /dev/mem
  3639.  
  3640. Thanx to Bob Hall
  3641.  
  3642.  
  3643. ------------------------------
  3644.  
  3645. Subject: 8. COMPILERS AND LINKERS
  3646.  
  3647. ------------------------------
  3648.  
  3649. Subject: 8.1  What's a P-FIXUP error?
  3650.  
  3651. Several questions in comp.sys.hp.hpux have involved the Gnu C compiler
  3652. and the linker message below :
  3653.  
  3654.         gcc  test_h.o -o test_h ../libg++.a -lm
  3655. ld: R_DATA_ONE_SYMBOL fixup in file ../libg++.a(streambuf.o) for code unsat
  3656. symbol "abort" - use P' fixup
  3657. collect: /bin/ld returned 1 exit status
  3658.  
  3659.    This is caused by the code generator emitting assembly code in a data
  3660. subspace to initialize a function pointer, equivalent to :
  3661.  
  3662.         .word   foo
  3663.  
  3664. where (in this case) foo() is an extern, and shared libraries are referenced
  3665. by the executable being built (usually libc.sl).
  3666.  
  3667. NOTE:
  3668.  
  3669. This problem has been fixed in gcc-2.4.5.u5; if people are still running
  3670. into this error, then:
  3671.  
  3672.   1) They've got an old version of gas (pa-gas-1.36.u8 I believe is the
  3673.   first one do handle this correctly).
  3674.  
  3675.   2) They're linking with a library built with some old combination of
  3676.   gcc and gas.
  3677.  
  3678. The solution is to make sure gcc and gas are up-to-date and any libraries
  3679. have been built with the latest gcc/gas combination.  For a temporary
  3680. workaround the option "-static" to gcc will suppress dynamic linking and
  3681. thus avoids the error.
  3682.  
  3683. (thanks to Carl Burch, HP for the original, and Jeff Law
  3684.  <law@snake.cs.utah.edu> for the followup)
  3685.  
  3686. ------------------------------
  3687.  
  3688. Subject: 8.2  Where is regcmp on HP-UX?
  3689.  
  3690. RTFM - from man regcmp:
  3691.  
  3692.       regcmp and regex are kept in /lib/libPW.a, and are linked by using the
  3693.       -lc and -lPW options to the ld or cc command.  See WARNINGS below.
  3694.  
  3695. (thanks to Andre Srinivasan, <andre@cs.pitt.edu>)
  3696.  
  3697. ------------------------------
  3698.  
  3699. Subject: 8.3  How come the default C compiler is brain-dead?
  3700.  
  3701. The C compiler shipped with HP-UX is intended only to rebuild the kernel
  3702. with, not for program development. To get a "real" C compiler, you must
  3703. buy the ANSI C program development bundle or get gcc.
  3704.  
  3705. ------------------------------
  3706.  
  3707. Subject: 8.4  How do I deal with "too many defines"?
  3708.  
  3709. Use the "-Wp,-Hxxxxxxx" where xxxxxxxx is the number of bytes to add
  3710. to cpp's table size.
  3711.  
  3712. There is no equivalent in lint or cflow to the cc driver's -W flag to
  3713. pass options to subprocesses like cpp.  However, both lint and cflow
  3714. invoke cpp via the cc driver, so you can achieve the same effect by
  3715. setting the CCOPTS environment variable.  For example,
  3716.  
  3717.     CCOPTS="-Wp,-H500000"
  3718.     export CCOPTS
  3719.     lint large_file.c
  3720.  
  3721.  
  3722. ------------------------------
  3723.  
  3724. Subject: 8.5  How come I get "_builtin_va_start" undefined when I build with gcc?
  3725.  
  3726. The <varargs.h> and <stdarg.h> include files define va_start in terms of
  3727. this function, which is built-in on the HP C compiler.
  3728.  
  3729. If you're using GCC you should be picking up include files
  3730. from the gcc library directory.  These include files do the right
  3731. thing for both GCC and HP C.
  3732.  
  3733. More often than not these files were never installed, or someone has
  3734. placed a copy of varargs.h/stdarg.h into /usr/local/include (gcc searches
  3735. there *first*).
  3736.  
  3737. When all else fails, you can replace the definition of va_start as follows,
  3738. depending on whether you are using varargs or stdarg (K&R or ANSI,
  3739. respectively).
  3740.  
  3741.     #include <varargs.h>
  3742.     #ifdef __hppa
  3743.     #undef va_start
  3744.     #define va_start(a) ((a)=(char *)&va_alist+4)
  3745.     #endif
  3746.  
  3747.     #include <stdarg.h>
  3748.     #ifdef __hppa
  3749.     #undef va_start
  3750.     #define va_start(a,b) ((a)=(va_list)&(b))
  3751.     #endif
  3752.  
  3753. For <varargs.h>, this replacement should always work.
  3754.  
  3755. For <stdarg.h>, this replacement will work unless the last fixed
  3756. parameter ("b" in the call to va_start) is a structure larger
  3757. than 8 bytes.  Large structures are passed by reference, with the
  3758. callee responsible for copying the structure to a temporary area
  3759. if it will be modified.  In this case, "&b" will take the address
  3760. of that temporary area instead of the position in the argument
  3761. list, and va_next won't work.  That's why HP uses a compiler
  3762. built-in.
  3763.  
  3764. (Thanks to Cary Coutant, HP for the original and Jeff Law
  3765.   <law@snake.cs.utah.edu> for the followup)
  3766.  
  3767. ------------------------------
  3768.  
  3769. Subject: 8.6  How can I tell if something was built debuggable?
  3770.  
  3771. If the output of "/usr/contrib/bin/odump -spaces file.o" shows a space
  3772. named $DEBUG$, then it was compiled with -g.
  3773.  
  3774. (Thanks to Fran Litterio <franl@centerline.com>)
  3775.  
  3776. ------------------------------
  3777.  
  3778. Subject: 8.7  Is there some kind of problem with using FLT_MIN in ANSI mode?
  3779.  
  3780. The C compiler dislikes this construct in ANSI mode:
  3781.  
  3782. x = FLT_MIN;    /* <---- warning here */
  3783.  
  3784. The problem is that the ANSI mode (_PROTOTYPES) version of FLT_MIN/FLT_MAX in
  3785. <float.h> end their constants with an F, which seems to upset the compiler.
  3786.  
  3787. The workaround ? Temporarily undef _PROTOTYPES around the <float.h> inclusion:
  3788.  
  3789. #ifdef _PROTOTYPES
  3790. #undef _PROTOTYPES
  3791. #include <float.h>
  3792. #define _PROTOTYPES
  3793. #else
  3794. #include <float.h>
  3795. #endif
  3796.  
  3797. (Thanks to Richard Lloyd of the Liverpool archive.)
  3798.  
  3799. ------------------------------
  3800.  
  3801. Subject: 8.8  What's the deal with _INCLUDE_xxxx_SOURCE?
  3802.  
  3803. The ANSI standard clearly states what identifiers it reserves, and says the
  3804. rest are available to you, the programmer.  Many "important things" like
  3805. "ulong" are *not* specified by ANSI, so ANSI header files are not allowed by
  3806. the standard to define them.  Each standard supported by HP-UX (POSIX1,
  3807. POSIX2, XPG2, XPG3, XPG4, AES, etc) has its own set of reserved identifiers
  3808. and header files, and the convention is to require "-D_POSIX_SOURCE" (et al)
  3809. to enabled their respective namespaces.  Since HP could not predict what
  3810. future standards would come along and claim more header files and identifiers,
  3811. it proved much simpler to make the namespace as restrictive as possible
  3812. unless "-D_HPUX_SOURCE" is specified.  While this has turned into one the
  3813. most frequently asked of FAQ's about HP-UX, at least once you learn this,
  3814. you don't have to deal with inconsistencies again.  Whereas, had we allowed
  3815. all non-standard headers to define all non-standard symbols, you'd find
  3816. identifiers randomly "disappearing" from headers over time as they were
  3817. claimed by various standards.
  3818.  
  3819. Also check the man page for "cc -Ae"; it enables the the HPUX_SOURCE
  3820. namespace.
  3821.  
  3822. (Thanks to Marc Sabatella, HP)
  3823.  
  3824. ------------------------------
  3825.  
  3826. Subject: 8.9  How come I need to explicitly specify -I/usr/include?
  3827.  
  3828. You have most likely not updated your C compiler correctly. Patches PHSS_3773
  3829. (A.09.63), 4061 (A.09.64) and 4151 (A.09.65) REQUIRE that you first install
  3830. the C compiler from the April 1994 Application CD-ROM (A.09.61).
  3831.  
  3832. (Thanks to Richard Lloyd)
  3833.  
  3834. ------------------------------
  3835.  
  3836. Subject: 8.10  Is there an equivalent for getrusage()?
  3837.  
  3838. >From the BSD porting tricks document (thanks, Mike):
  3839.  
  3840. #ifdef hpux
  3841. #include <sys/syscall.h>
  3842. #define getrusage(a, b)  syscall(SYS_GETRUSAGE, a, b)
  3843. #endif /* hpux */
  3844.  
  3845. ------------------------------
  3846.  
  3847. Subject: 8.11  Why is syslog() call not doing what i want it to?
  3848.  
  3849. My program looks like:
  3850.  
  3851. #include <syslog.h>
  3852. void main(int argc,char *argv[])
  3853. {
  3854.  syslog(LOG_EMERG,"This is an emergency message\n"));
  3855.  syslog(LOG_ALERT,"This is an alert message\n");
  3856.  syslog(LOG_CRIT,"This is a critical message\n");
  3857.  syslog(LOG_ERR,"This is an error message\n");
  3858.  syslog(LOG_WARNING,"This is a warning\n");
  3859.  syslog(LOG_NOTICE,"This is a notice\n");
  3860.  syslog(LOG_INFO,"This is an informal message\n");
  3861.  syslog(LOG_DEBUG,"This is a debug message\n");
  3862. }
  3863.  
  3864. It does log all the messages to /usr/adm/syslog - why not?
  3865.  
  3866. First of all, the LOG_EMERG can not be used with user processes and should
  3867. return -1 (if you check the return status).  This is not documented in the
  3868. man page! All the other message should appear, but you're /etc/syslog.conf
  3869. file might not be configured correctly. To test it replace the
  3870. /etc/syslog.conf with the following line:
  3871.  
  3872.    *.debug                 /usr/adm/syslog
  3873.  
  3874. Then do: kill -HUP `cat /etc/syslog.pid`
  3875. Then run the test program and then tail the /usr/adm/syslog file
  3876. and you should see all the messages, ie:
  3877.  
  3878.    Nov 23 09:02:54 orca syslogd: restart
  3879.    Nov 23 09:02:58 orca syslog: This is an alert message
  3880.    Nov 23 09:02:58 orca syslog: This is a critical message
  3881.    Nov 23 09:02:58 orca syslog: This is an error message
  3882.    Nov 23 09:02:58 orca syslog: This is a warning
  3883.    Nov 23 09:02:58 orca syslog: This is a notice
  3884.    Nov 23 09:02:58 orca syslog: This is an informal message
  3885.    Nov 23 09:02:58 orca syslog: This is a debug message
  3886.  
  3887. (Thanks to Colin Wynd)
  3888.  
  3889. ------------------------------
  3890.  
  3891. Subject: 8.12  Is trace on HP-UX?
  3892.  
  3893. Trace is available from Interworks ftp site (interworks.org).
  3894.  
  3895. For those of you unfamiliar with trace, here's the README:
  3896.  
  3897. trace prints out system call (and optionally kernel) traces of programs. It
  3898. compiles and installs fairly easily. It should work fine on 700s running HP-UX
  3899. 9.X, and probably not at all otherwise.
  3900.  
  3901. To run the header file generation scripts, you'll need Perl 4.0pl36 or better,
  3902. installed as /usr/local/bin/perl.
  3903.  
  3904. If you have problems with "too much defining", uncomment HFLAGS in the
  3905. Makefile. Older 9.X C compilers had broken a cpp utility.
  3906.  
  3907. If you encounter undefined ioctls, just comment them out and send me mail
  3908. about them and what version of HP-UX you're running. fixheader will make
  3909. sure that nonexistent header files aren't included.
  3910.  
  3911. trace needs to be installed setuid root so that users can run it.
  3912.  
  3913. The KI code, provided in object format, is copyright Hewlett-Packard. The
  3914. software is provided as is, subject to change without notice, and totally
  3915. unsupported.
  3916.  
  3917. (Thanks to Kartik Subbarao, HP)
  3918.  
  3919. ------------------------------
  3920.  
  3921. Subject: 8.13  How to get C programs automatically generate stack dumps?
  3922.  
  3923. Here is how you get a C program automatically generate a stack dump
  3924. when they abend:
  3925.  
  3926. U_STACK_TRACE() is an undocumented function that resides in libcl.a.
  3927. Set up the signal handling like this:
  3928.  
  3929. #include <signal.h>
  3930. extern void U_STACK_TRACE();
  3931. signal(SIGSEGV, U_STACK_TRACE);
  3932.  
  3933. (Thanks to <matthews@cadcam.pms.ford.com>)
  3934.  
  3935. ------------------------------
  3936.  
  3937. Subject: 9. HARDWARE AND PERIPHERALS
  3938.  
  3939. ------------------------------
  3940.  
  3941. Subject: 9.1  Are alternate keyboards available for HP workstations?
  3942.  
  3943. Yes, HP has two keyboards available for their workstations and X Terminals.
  3944.  
  3945. A1099B - Workstation style keyboard (Default on workstations.)
  3946. A2205A - PC-101 style keyboard (Default on X Terminals.)
  3947.  
  3948. The 712, 715, and newer machines support PS/2 compatible keyboards and mice.
  3949.  
  3950. ------------------------------
  3951.  
  3952. Subject: 9.2  How can I play audio CDs on an HP workstation?
  3953.  
  3954. A contributed application ("xcd") exists that presents a X-window CD player
  3955. front panel.  xcd runs on HP-UX 7.0 and 8.0, on Series 300, 400 and 700, with
  3956. either SCSI or HP-IB CD-ROM drives. The SCSI drives must be HP-supplied or
  3957. Toshiba XM-3201B or XM-3301B. xcd does not yet officially work on HP-UX 9.0,
  3958. but I've tried it and it seems to work just fine. Note that xcd plays only
  3959. through the CD player's headphone jack and not through the workstation's
  3960. speaker.
  3961.  
  3962. xcd is available from the InterWorks workstation user group (see above),
  3963. on their ftp site, CD-ROM, and via DDS tape.
  3964.  
  3965. Note that source is not available.
  3966.  
  3967. Additionally, two new programs that provide similar functionality have
  3968. recently appeared, called xdp and xmcd. I use xmcd and it's great.
  3969.  
  3970. (Thanks to Bob Niland and others)
  3971.  
  3972. ------------------------------
  3973.  
  3974. Subject: 9.3  How can I enable the LAN interface on a 700?
  3975.  
  3976. This can be problem when the LAN isn't connected at boot time. To
  3977. resolve the problem, use the "reset" command in "landiag".
  3978.  
  3979. ------------------------------
  3980.  
  3981. Subject: 9.4   How can I get an Exabyte to work on an HP?
  3982.  
  3983. People have under HP-UX 8.07 used device files with major number 54,
  3984. minor numbers 0x201202 and 0x201203 for /dev/rmt/2m and /dev/rmt/2mn,
  3985. respectively, for low density. Other people had used 0x201242 and 0x201243.
  3986.  
  3987. Note that with HP-UX 9.01, low density means 8200 format in 8500 drives.
  3988. Major #54, minor numbers 0x201202 and 0x201203 are low density handles.
  3989. With 8200 drives the density does not matter. Software compression
  3990. control with 8505 drives will require a patch to HP-UX 9.01.
  3991.  
  3992. Caveats: some Exabyte drives will not support a "dump" blocking factor
  3993. greater than 64 from the HP.  Others are apparently limited in the commands
  3994. they will accept (e.g. TTI noted that their 8501 tape drive will not properly
  3995. interface with the HP under all conditions; however, the TTI 8510 does
  3996. interface correctly). TTI had a firmware problem which should be
  3997. corrected in recent 8510s.
  3998.  
  3999. Note that 8500 drives act as SCSI-2, while 8200s are SCSI-1. People appear
  4000. to have been more successful with getting the 8500s to work with 9.01.
  4001.  
  4002. Experience has also shown that you may need PHKL_2898. People have
  4003. also reported that you need patch PHKL_2838 for HP_UX 9.x to get
  4004. compression to work.
  4005.  
  4006. (Thanks to Mike Peterson for much of this.)
  4007.  
  4008. According to jerryk@Exabyte.COM
  4009.      just letting you know we are working on drivers for s800 systems for
  4010.      exabyte products (tape and changers) for hpux 9 and 10. When they are
  4011.      fully tested we will make them available on our web site.
  4012.  
  4013.  
  4014. ------------------------------
  4015.  
  4016. Subject: 9.5  Is there a "node ID" on 700s?
  4017.  
  4018. Yes. Most licensing systems (FLEXlm and NetLS, for example), are driven from
  4019. the LLA, available from /etc/lanscan or /usr/etc/netls/ls_targetid. There is
  4020. also a CPU ID number that HP uses for /etc/update; it may be a transformation
  4021. of the LLA, but this is not guaranteed to remain the case, and may be
  4022. disturbed by replacement of the LAN board. Additionally, the LLA can be reset
  4023. by a CE using the proper secret magic program.
  4024.  
  4025. ------------------------------
  4026.  
  4027. Subject: 9.6  How can I get a stuck DDS tape out of the drive?
  4028.  
  4029. 1)  Power down your machine (remember shutdown!!! ;-))
  4030. 2)  Open it up (you'll prob. need Torx screwdrivers).
  4031. 3)  on the side of the drive, you should see a small rectangular piece
  4032.     of plastic.  gently pry it off... it should come off quite easily.
  4033. 4)  the aforementioned piece of plastic covers a hole, which houses a
  4034.     small dial.  spinning this dial ejects the tape.
  4035. 5)  replace plastic piece, close machine... and bob's your uncle.
  4036.  
  4037. p.s.  the dial has very little torque (ie. the tape comes out quite slowly,
  4038. but you can see it move.   It'll take about 2-3 minutes of spinning before
  4039. the tape comes out.
  4040.  
  4041. (Thanks to Edlin Seebick.)
  4042.  
  4043. ------------------------------
  4044.  
  4045. Subject: 9.7  How can I use dump with a DDS tape?
  4046.  
  4047. dump was written to assume 9-track tapes, so some fudging has
  4048. to be done for DDS tapes.  The following has the info you need
  4049. along with several alternatives for dump parameters.
  4050.  
  4051. Approximate capacity of 60m DDS tape = 1.3G bytes
  4052. Approximate DDS tape density = (1.3G bytes) / (60 m) = (550K bytes/in)
  4053.  
  4054. dump assumes an inter-record gap (IRG) of 0.3 in for density = 6250,
  4055. 0.7 in otherwise.
  4056.  
  4057. dump uses a default blocking factor of 10 for density < 6250,
  4058. 32 otherwise.
  4059. ================
  4060. density = 550000
  4061. blocking factor = 32 (default)
  4062. assumed IRG = 0.7 in
  4063.  
  4064. Block length = (32K bytes/block) / (550K bytes/in) + (0.7 in) = (0.76 in)
  4065.  
  4066. Effective tape length =
  4067.         (1.3G bytes) / (32K bytes/block) * (0.76 in/block) = (2511 ft)
  4068. ================
  4069. density = 6250
  4070. blocking factor = 32 (default)
  4071. assumed IRG = 0.3 in
  4072.  
  4073. Block length = (32K bytes/block) / (6250 bytes/in) + (0.3 in) = (5.54 in)
  4074.  
  4075. Effective tape length =
  4076.         (1.3G bytes) / (32K bytes/block) * (5.54 in/block) = (18325 ft)
  4077. ===============
  4078. density = 1600
  4079. blocking factor = 10 (default)
  4080. assumed IRG = 0.7 in
  4081.  
  4082. Block length = (10K bytes/block) / (1600 bytes/in) + (0.7 in) = (7.10 in)
  4083.  
  4084. Effective tape length =
  4085.         (1.3G bytes) / (10K bytes/block) * (7.10 in/block) = (75113 ft)
  4086. ===============
  4087. density = 1600
  4088. blocking factor = 32
  4089. assumed IRG = 0.7 in
  4090.  
  4091. Block length = (32K bytes/block) / (1600 bytes/in) + (0.7 in) = (21.18 in)
  4092.  
  4093. Effective tape length =
  4094.         (1.3G bytes) / (32K bytes/block) * (21.18 in/block) = (70022 ft)
  4095.  
  4096. (Thanks to Cary Coutant, HP.)
  4097.  
  4098. ------------------------------
  4099.  
  4100. Subject: 9.8  What is the correct major number for DDS drives on 9.x?
  4101.  
  4102. For reasons too detailed to go into here, the major number for DDS drives
  4103. has changed to 121 (from 54) at 9.01. Note that 54 had partition support,
  4104. while 121 does not, but has lun support. This only works for 700s.
  4105.  
  4106. ------------------------------
  4107.  
  4108. Subject: 9.9  How can I set up /dev/audio to point to the external jack on a 700?
  4109.  
  4110. Alter the /dev/audio device file as follows:
  4111.  
  4112. crw-rw-rw-   1 root     sys       57 0x208011  /dev/audio  ; external jack
  4113. crw-rw-rw-   1 root     sys       57 0x208000  /dev/audio  ; internal speaker
  4114.  
  4115. The commands are:
  4116.   mknod /dev/audio c 57 0x2080??   <- replace ?? with 00 or 11 as shown above.
  4117.  
  4118. (Thanks to Lou Kvitek.)
  4119.  
  4120. ------------------------------
  4121.  
  4122. Subject: 9.10  How can I configure the parallel port handshake on a 700?
  4123.  
  4124. Check out the man page for "cent".
  4125.  
  4126. ------------------------------
  4127.  
  4128. Subject: 9.11  What are the specs of the audio hardware on the 700 series?
  4129.  
  4130. This is a summary of the audio features supported by the models 715, 725, 735,
  4131. and 755 workstations.  The 705 and 710 also have audio, but the specs are
  4132. not available. The 720, 730, and 750 models DO NOT have audio.
  4133.  
  4134. Audio features  Programmable sample rates (kHz): 8, 11.025, 16,
  4135.                     22.05,32, 44.1, 48
  4136.                 Programmable output attenuation: 0 to -96 dB in 1.5 dB steps
  4137.                 Programmable input gain: 0 to 22.5 dB in 1.5 dB steps
  4138.                 Input monitoring
  4139.                 Coding formats: 16-bit linear, 8-bit mulaw, or A-law
  4140.  
  4141. Audio inputs        Line in
  4142. (not on all models) Mono microphone with 1.5V phantom power
  4143.  
  4144. (Editorial comment - a Sun microphone appears to work just fine.)
  4145.  
  4146. Audio outputs       Line out
  4147. (not on all models)     Headphone
  4148.                     Mono speaker jacks
  4149.                     Built-in mono speaker
  4150.  
  4151. Audio CODEC         Crystal CS4215
  4152.  
  4153. Typical specifications measured on a stock 715.  Values will differ only
  4154. slightly on other models.
  4155.  
  4156. Frequency response      25 - 20,000 Hz
  4157.  
  4158. Input Sensitivity/Impedance
  4159.             Line In         2.0 V(pk) / 47 kohms
  4160.             Microphone  22 mV(pk) / 1 kohm
  4161.  
  4162. Output Impedance (nominal)
  4163.             Line out    619 ohms
  4164.             Headphone   118 ohms
  4165.             Speaker (ext)  11 ohms
  4166.  
  4167. Max Output Level/Impedance
  4168.             Line Out    2.8 V (p-p) / 47 kohms
  4169.                         Headphone   2.75 V (p-p) / 50 ohms
  4170.                         Speaker (ext)  5.88 V (p-p) / 48 ohms
  4171.  
  4172. Signal to Noise
  4173.             Line In     61 dB
  4174.             Line Out    65 dB
  4175.             Microphone  57 dB
  4176.             Headphone   61 dB
  4177.             Speaker (ext)  63 dB
  4178.  
  4179. THD (at nominal load)
  4180.             Line In     -75 dB
  4181.             Line Out    -73 dB
  4182.             Microphone  -73 dB
  4183.             Headphone   -70 dB
  4184.             Speaker (ext)   -68 dB
  4185.  
  4186. (Thanks to Rocky Craig, HP)
  4187.  
  4188. ------------------------------
  4189.  
  4190. Subject: 9.12  What are the various revisions of PA-RISC?
  4191.  
  4192. PA-RISC 1.1 is an extension to the PA-RISC 1.0 architecture, and is
  4193. fully backwards-compatible (i.e., *all* PA-RISC 1.0 programs will
  4194. execute without change on PA-RISC 1.1 machines).  The biggest difference
  4195. is that PA-RISC 1.1 added 16 more floating-point registers, the ability
  4196. to address each double-precision floating-point register as two
  4197. single-precision registers, and a few new floating-point operations, so
  4198. the floating-point performance is greatly improved.  There were a few
  4199. changes on the integer side, but nothing major.
  4200.  
  4201. The first machines to be shipped with PA-RISC 1.1 CPUs were the first
  4202. Series 700 machines (the "Snakes" series).  Shortly after that, however,
  4203. the "Nova" series of Series 800 (8x7) machines was introduced using the
  4204. same PA-RISC 1.1 CPU.  Since then, every new PA-RISC machine that HP has
  4205. produced is based on the PA-RISC 1.1 architecture.
  4206.  
  4207. Thus, all Series 700 machines are PA-RISC 1.1, and the newer Series 800
  4208. machines are PA-RISC 1.1.  If you compile a program on a Series 700
  4209. machine, the compiler will generate PA-RISC 1.1 code by default, but if
  4210. you compile a program on a Series 800 machine (even a newer 1.1
  4211. machine), the compiler will generate PA-RISC 1.0 code to ensure that the
  4212. program will run within the entire 800 family.
  4213.  
  4214. To force the compiler to generate PA-RISC 1.0 code, you use the +DA 1.0
  4215. compiler option.  This is all you need to do, as long as you are careful
  4216. not to link your code with any libraries that were compiled for PA-RISC
  4217. 1.1.  If *any* object module in your program is compiled for PA-RISC
  4218. 1.1, your entire program will be marked as a PA-RISC 1.1 program.  The
  4219. "file" command will tell you which architecture is required to execute
  4220. your program.  Most system archive libraries that HP ships are compiled
  4221. for PA-RISC 1.0; an exception is the math library, which is shipped in
  4222. both forms (a PA-RISC 1.1 version is in /lib/pa1.1), although the 1.1
  4223. version contains a few entry points that are not available in the 1.0
  4224. version.
  4225.  
  4226. The scheduling option, +DS xxx, does not affect the compatibility of the
  4227. object code.  It affects only how the optimizer schedules instructions
  4228. that have long latencies, so it is usually to your advantage to schedule
  4229. the code for the fastest machine currently shipping, even if you are
  4230. generating 1.0 code.
  4231.  
  4232. When compiling code on one platform for another platform, the thing
  4233. you do have to worry about is the operating system release.  In general
  4234. you can compile a program on a Series 700 machine with +DA 1.0, and it
  4235. will run correctly as long as the program will execute on the same or
  4236. a later release of the OS as the one on which it was compiled.  Thus,
  4237. you can not expect a program compiled on a 700 running 9.0 to run on
  4238. an 800 running 8.0.
  4239.  
  4240. (Thanks to Cary Coutant, HP)
  4241.  
  4242. ------------------------------
  4243.  
  4244. Subject: 9.13  How do I read an SGI-written tar format DDS tape?
  4245.  
  4246. The secret (at least in this case) is to byte-swap the tape before
  4247. passing it to tar:
  4248.  
  4249.         dd if=/dev/rmt/0m conv=swab | tar -xvf -
  4250.  
  4251. Byte swapping is believed to only be necessary if the device which
  4252. created the tape was a swapping one. (Swapping tape devices are the
  4253. default on IRIX 4, but not in IRIX 5). One can use /dev/nrtapens on
  4254. either system to produce tapes which are not byte-swapped.
  4255. If the SGI is running Irix 5.0x and above, a large (512k) block
  4256. size is used:
  4257.  
  4258.         dd if=/dev/rmt/0m ibs=512k obs=10k| tar -xvf -
  4259.  
  4260. (thanks to Paul Booth           <paul@eye.com> and
  4261.            Christian L Claiborn <claiborn@ctron.com>)
  4262.  
  4263. ------------------------------
  4264.  
  4265. Subject: 9.14  Is there a trackball for the 700?
  4266.  
  4267. >From the 'hp-ux/resource directory' published by Interex:
  4268.  
  4269. "BKS manufactures and markets THE ORIGINAL HP M1309A HP-HIL Trackball.
  4270. Plug-compatible with HP's standard 3-button HP-HIL mouse.  BKS acquired
  4271. manufacturing and marketing rights to this product from Hewlett-Packard in
  4272. June 1993.  Another 'no-problem' product from BKS--the specialists in
  4273. hardware accessories for HP systems"
  4274.  
  4275. BKS Electronique
  4276. 20 Rue A. Berges/Z.1.DES 1LES
  4277. Le Pont De Claix, France 38800
  4278. +33 76 98 30 99, FAX: +33 76 98 57 79
  4279.  
  4280. >From the September 1994 issue of 'hp-ux/usr' magazine also published by
  4281. Interex:
  4282.  
  4283. "HP Serial MOUSE-TRAK now Available For 700 Series.  No Quad Port Adapter
  4284.  Required.
  4285. Call for information"
  4286.  
  4287. ITAC Systems, Inc.
  4288. 3113 Benton Street
  4289. Garland, TX  75042
  4290. (800) 533-4822  FAX: (214)494-4159
  4291. yvonne@mousetrak.com
  4292. (too many international distributors to type in) U.K., Norway, Germany,
  4293. Switzerland, Denmark, Australia, Sweden, Seoul Korea, France, Israel
  4294.  
  4295. ------------------------------
  4296.  
  4297. Subject: 9.15  Where can I get disktab entries for third party disks?
  4298.  
  4299. Generally, the supplier should provide a disktab entry. Andataco does a good
  4300. job of this. One place to try:
  4301.  
  4302. http://hpwww.epfl.ch/HPUX/tools/disktab.html
  4303.  
  4304. Additionally, Ion has set up a mail service; to access it, send e-mail to
  4305. <mailer@hpwww.epfl.ch> and respect the following syntax for the subject
  4306. field:
  4307.  
  4308. disktab table - returns the available disktab file
  4309. disktab how - returns two methods to create a new disktab entry from scratch
  4310.  
  4311. Send any comments, remarks, problems AND new tested disktab entries to
  4312. <ion.cionca@sic.adm.epfl.ch>
  4313.  
  4314. Patch PHSS_4981 has the disktab entries for the following drives:
  4315.  
  4316.    Seagate ST32430WD, Seagate ST32430N, Seagate ST31230WD,
  4317.    Seagate ST31230N, HPC3324A, HPC3324W, HPC3325A, HPC3325W
  4318.    Seagate ST31200N, Seagate ST31200W, Seagate ST12400N,
  4319.    Seagate ST12400W, DEC DSP3107LS, DEC DSP3107LSW, DEC DSP3210S,
  4320.    DEC DSP3210SW, Quantum LPS1080S, Quantum LPS1080WD
  4321.  
  4322. (thanks to Ion Cionca, and Colin Wynd <colin@col.hp.com>)
  4323.  
  4324. ------------------------------
  4325.  
  4326. Subject: 9.16  Do I need to terminate the internal SCSI on a 700?
  4327.  
  4328. According to some people, an unterminated internal SCSI on a 700
  4329. will cause interrupts which are ignored but slow down the machine.
  4330. Terminate to be safe.
  4331.  
  4332. ------------------------------
  4333.  
  4334. Subject: 9.17  What is the largest disk partition I can have at 9.x?
  4335.  
  4336. On a 700, you can get 2Gbytes, unless you have the SCSI patches
  4337. that allow 3.7Gbytes. You can safely put any size disk on the system
  4338. you want, but the OS will only allow you to access 2G (or 3.7G).
  4339.  
  4340. (thanks to Mike Lampi, MDL <lampi@mdlcorp.com>, and
  4341.            Seth LaForge <sethml@ugcs.caltech.edu>)
  4342.  
  4343. ------------------------------
  4344.  
  4345. Subject: 9.18  How can I determine how much RAM I have non-interactively?
  4346.  
  4347. Here is a short program that returns the RAM size:
  4348.  
  4349. #include <sys/pstat.h>
  4350. main()
  4351. {
  4352.    struct pst_static buf;
  4353.    pstat(PSTAT_STATIC, &buf, sizeof(buf), 0, 0);
  4354.    printf("Physical RAM = %ldMB\n", buf.physical_memory/256);
  4355. }
  4356.  
  4357. If you are root, you can use adb as follows:
  4358.  
  4359. echo "physmem/D" | adb /hp-ux /dev/kmem | tail -1 | \
  4360. awk '$2 > 0 { print $2 / 256 }'
  4361.  
  4362. Or if /etc/dmesg is still current, you can grep it:
  4363.  
  4364. /etc/dmesg | grep "real mem" | tail -1 | awk '$4 > 0 { print $4 / 1048576 }'
  4365.  
  4366. (thanks to Richard Lloyd <rkl@csc.liv.ac.uk> and
  4367.  Mike Frison <mike_frison@mentorg.com>)
  4368.  
  4369. ------------------------------
  4370.  
  4371. Subject: 9.19  How can I turn off the lpspooler cover page?
  4372.  
  4373. 1) For one job/user only:
  4374.  
  4375.    Alias your "lp" command to "lp -onb"
  4376.  
  4377. 2) For all the print jobs:
  4378.  
  4379.    Depending on the type of spooler script do either:
  4380.  
  4381.       a) Edit your /usr/spool/lp/interface/"printer name" file and
  4382.          comment out the banner page. Note that if you are using
  4383.          the JetAdmin tool the real script will be:-
  4384.          /usr/spool/lp/interface/model.orig/"printer name"
  4385.  
  4386.       b) The newer interface files (in /usr/spool/lp/interface/*)
  4387.          call /usr/lib/rlp and if your model script has that then
  4388.          insert the following line before the /usr/lib/rlp statement:
  4389.  
  4390.             BSDh="-h"
  4391.  
  4392.          The model script would now look something like:-
  4393.  
  4394.             ...
  4395.             shift; shift; shift; shift; shift
  4396.  
  4397.             #Added the no banner option here
  4398.             BSDh="-h"
  4399.  
  4400.             /usr/lib/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 ...
  4401.             ...
  4402.  
  4403. (thanks to Dan Silva     <dan@lamar.colostate.edu>, and
  4404.            Daniel Wexler <dwexler@siac.com>)
  4405.  
  4406. ------------------------------
  4407.  
  4408. Subject: 9.20 Why are CDROM filenames all UPPERCASE with ;1 attached?
  4409.  
  4410.    The filenames appear as UPPERCASE filenames with ;1 versions numbers in
  4411.    HP-UX.  That's because HP-UX only supports ISO 9660 and does not translate
  4412.    the all UPPERCASE 8.3 character filenames to lowercase nor does it remove
  4413.    the ;version-numbers as they are stored in exactly this manner on the
  4414.    CDROM.
  4415.  
  4416.    These names, while perfectly acceptable to HP-UX as filenames (albeit a bit
  4417.    inconvenient since most shells see the ; as a command separator), can be a
  4418.    problematic for software not written to handle the CDROM native filename
  4419.    format.  Many other vendor offer switches to perform the lowercase and
  4420.    version number removal but HP-UX does not.
  4421.  
  4422.    There are 3 workarounds:
  4423.  
  4424.      a. Write a script (or use cdrutil.ksh available at many archive sites) to
  4425.         perform the translation by creating a series of symbolic links.  These
  4426.         links would have to be created and removed after mount and umount
  4427.         commands, respectively.  Some CDROMs may require 15-45 minutes to
  4428.         complete this task.
  4429.  
  4430.      b. Get the patch:
  4431.  
  4432.              PHKL_6075: s700 at 9.03, 9.05, 9.07 (no 9.01 or earlier)
  4433.  
  4434.              PHKL_6272: s700: 10.01
  4435.  
  4436.              PHKL_6076: s700: 10.00
  4437.  
  4438.              PHKL_6338: s800: 9.04 (none prior to 9.04)
  4439.  
  4440.              PHKL_6077: s800: 10.00
  4441.  
  4442.              PHKL_6273: s800: 10.01
  4443.  
  4444.  
  4445.         These add a modification to the cdfs code which can translate all
  4446.         mounted CDROMs (not selectively) to accomplish the same task.  This
  4447.         patch adds no additional filesystem support such as POSIX or the
  4448.         RockRidge Extensions.  This patch can only be activated by modifying
  4449.         the kernel with adb.  An example of how to modify the 9.xx kernel is
  4450.         shown in the patch.  Note that this patch affects every mounted CDROM
  4451.         in the system at the same time.
  4452.  
  4453.      c. Through an agreement with Young Minds, Inc, the Portable File System
  4454.         (PFS) code has been made available to 700 and 800 series systems
  4455.         running 9.xx and 10.xx.  This code accomplishes not only the lowercase
  4456.         translation and version removal (both are separate options and can be
  4457.         specified on or off for each CDROM), but also provides RockRidge
  4458.         Extensions (long filenames, ownerships, permissions).  This code is
  4459.         available on the Nov-Dec 1995 application CDROM and tapes for the
  4460.         700's, and on the Jan-Feb 1996 Application CDROM/tapes.  The media can
  4461.         be purchased at any time for a nominal fee.
  4462.  
  4463.         PFS handles exporting of CDROM filenames as well as importing these
  4464.         names from other HP-UX systems, and is the most versatile solution
  4465.         to the CDROM compatibility problems in HP-UX.
  4466.  
  4467. Thanks to Bill Hassell (blh@atl.hp.com)
  4468.  
  4469. ------------------------------
  4470.  
  4471. Subject: 9.21  DIP Switch Settings for HP 7475 Plotter (RS-232)
  4472.  
  4473. DIP Switch Settings for HP 7475 Plotter (RS-232)
  4474. ================================================
  4475.  
  4476.          S   S       U   A   B   B   B   B
  4477.          2   1   Y   S   3   4   3   2   1
  4478.       +-------------------------------------+
  4479.       | +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ |  1
  4480.       | | | | | | | | | | | |X| | | |X| | | |
  4481.       | +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ |
  4482.       | |X| |X| |X| |X| |X| | | |X| | | |X| |
  4483.       | +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ |  0
  4484.       +-------------------------------------+
  4485.         -+---+-  D   M   A  -+---+---+---+-
  4486.          |PAR|   |   E   4   |    BAUD   |
  4487.          |   |   |   T   |   |   |   |   |
  4488.          |   |   |   |   |   |   |   |   |
  4489.   none(*)0   0   |   |   |   0   0   0   0      external, 2 stop bits
  4490.   even   0   1   |   |   |   0   0   0   1        75 bps, 2 stop bits
  4491.   none   1   0   |   |   |   0   0   1   0       110 bps, 2 stop bits
  4492.    odd   1   1   |   |   |   0   0   1   1       150 bps, 1 stop bit
  4493.                  |   |   |   0   1   0   0       200 bps, 1 stop bit
  4494.   "D" is for ----+   |   |   0   1   0   1       300 bps, 1 stop bit
  4495.   Direct (vs. "Y"    |   |   0   1   1   0       600 bps, 1 stop bit
  4496.   for Y-connector).  |   |   0   1   1   1      1200 bps, 1 stop bit
  4497.   You'll want "D".   |   |   1   0   0   0      2400 bps, 1 stop bit
  4498.                      |   |   1   0   0   1      4800 bps, 1 stop bit
  4499.                      |   |   1   0   1   0      9600 bps, 1 stop bit(*)
  4500.   Paper Size:        |   |   1   0   1   1       300 bps, 2 stop bits
  4501.        (*)ISO A4 --- 0   0   1   1   0   0       600 bps, 2 stop bits
  4502.           ISO A3 --- 0   1   1   1   0   1      1200 bps, 2 stop bits
  4503.           ANSI A --- 1   0   1   1   1   0      2400 bps, 2 stop bits
  4504.           ANSI B --- 1   1   1   1   1   1      4800 bps, 2 stop bits
  4505.  
  4506. Cabling
  4507. =======
  4508. The 7475 uses a non-standard cable (HP P/N 17255A).
  4509. Mine rings out like this:
  4510.  
  4511. Computer                 Plotter
  4512. Female                   Male
  4513. 25-pin "D"               25-pin "D"
  4514. ================================
  4515.    1 ---------------------- 1
  4516.  
  4517.    2 ---------------------- 3
  4518.  
  4519.    3 ---------------------- 2
  4520.  
  4521.    5 --+------------------- 20
  4522.        |
  4523.    6 --+
  4524.  
  4525.    7 ---------------------- 7
  4526.  
  4527. ------------------------------
  4528.  
  4529. Subject: 9.22  Why inserts HP-UX 4 spaces when I print using a parallel port?
  4530.  
  4531. HP-UX inserts 4 spaces at the beginning of each line when I print
  4532. using the parallel port. To fix it look at /etc/rc, and search for "slp"
  4533. and change it to be "slp -i0".
  4534.  
  4535. (Thanks to Nils Gerloff <ng@hcs.de>).
  4536.  
  4537. ------------------------------
  4538.  
  4539. Subject: 9.23  How do I find the speed of my system?
  4540.  
  4541. I just inherited a second hand 715, but I don't know what the CPU speed is
  4542. (the label on the front case has come off).  Is there a way to find this out?
  4543.  
  4544. Login as root on a 9.x system and try:
  4545.  
  4546. echo itick_per_tick/D | adb /hp-ux /dev/kmem | tail -n1 \
  4547.      | awk '{print $2 / 10000, "MHZ"}'
  4548.  
  4549. (thanks to Bruce W. Smith  <brucewsmith@delphi.com>)
  4550.  
  4551. ------------------------------
  4552.  
  4553. Subject: 10. LOOKING FOR...
  4554.  
  4555. ------------------------------
  4556.  
  4557. Subject: 10.1  Where did xline go at 9.x?
  4558.  
  4559. We don't know. The 9.x Motif version of Glance Plus has what xline had
  4560. (and more).
  4561.  
  4562. ------------------------------
  4563.  
  4564. Subject: 10.2  How about the VUE 2.01 man page help index?
  4565.  
  4566. The man pages will show up in the index if you copy over pre-9.X copies
  4567. of the files "/usr/lib/X11/vue/help/C/manpage.cat", and
  4568. "/usr/lib/X11/vue/help/C/manpage/*".
  4569.  
  4570. (Thanks, Mike Stroyan, HP)
  4571.  
  4572. ------------------------------
  4573.  
  4574. Subject: 10.3  Is there anything remotely like the Apollo DM available?
  4575.  
  4576. HP had a product called DMX which is somewhat like the DM. Enabling
  4577. Technologies has a product called "ce" which seems to be a more faithful
  4578. interpretation. 
  4579.  
  4580. ------------------------------
  4581. Subject: 10.4  Where can I get SLIP for HP-UX?
  4582.  
  4583. On HP 9000 systems (both workstations and servers) SLIP is called ppl
  4584. and is a part of the LAN/9000 Link product.
  4585.  
  4586. (Thanks to Mike Taylor and Alec Henderson, HP)
  4587.  
  4588. ------------------------------
  4589.  
  4590. Subject: 10.5  Where can I get pcnfsd on HP-UX?
  4591.  
  4592. It's part of the standard NFS distribution.
  4593.  
  4594. ------------------------------
  4595.  
  4596. Subject: 10.6  Where can I get ppp for HP-UX?
  4597.  
  4598. Morningstar has a commercial implementation available. See
  4599. ftp://ftp.morningstar.com for more details.
  4600.  
  4601. There's also some software available from:
  4602.  
  4603.   ftp://ee.utah.edu/ppp/iijpp.0.93.hp.tgz
  4604.  
  4605. (thanks to Cricket Liu, <cricket@nsr.hp.com> and
  4606.  David D. Kilzer <ddkilzer@iastate.edu>)
  4607.  
  4608. ------------------------------
  4609.  
  4610. Subject: 10.7  Where can I get STREAMS for HP-UX?
  4611.  
  4612. STREAMS/UX is currently a separate product that can be purchased for use
  4613. with HP-UX 9.x.  STREAMS/UX is based on the OSF/1 STREAMS code (which
  4614. in turn is based on STREAMS code from Mentat).  You can obtain a
  4615. STREAMS/UX datasheet from the HP FIRST fax-back service: 800-333-1917
  4616. or 208-344-4809, document 31502. HP currently plans to bundle it
  4617. with 10.x.
  4618.  
  4619. (thanks to Alec Henderson, HP)
  4620.  
  4621. ------------------------------
  4622.  
  4623. Subject: 10.8  What about POSIX threads?
  4624.  
  4625. POSIX user-space threads are currently available as part of the DCE
  4626. product, which includes thread-safe C libraries.
  4627.  
  4628. ------------------------------
  4629.  
  4630. Subject: 10.9  Where can I get Interviews for HP-UX?
  4631.  
  4632. HP has a product called Interviews Plus. The product number is B2625A for
  4633. Series 800 and B2626A for Series 700 systems.
  4634.  
  4635. (Thanks to Rob Slotemaker, HP).
  4636.  
  4637. ------------------------------
  4638.  
  4639. Subject: 10.10  Where can I get POP for HP-UX?
  4640.  
  4641. pop3d is available from the Interworks archive site listed in 3.12.
  4642.  
  4643. Qualcomm, makers of the Eudora email client for Macs and PCs, is
  4644. currently maintaining qpopper, a modified version of Berkeley's
  4645. 1.831beta popper.  Current version is 2.1.4-r3.  It can be found at:
  4646.  
  4647.   ftp://ftp.qualcomm.com/quest/unix/servers/popper/
  4648.  
  4649. Use the ``sysv'' target for HP/UX (i.e. ``make sysv'').
  4650.  
  4651. (Thanks to David D. Kilzer <ddkilzer@iastate.edu>)
  4652.  
  4653. ------------------------------
  4654.  
  4655. Subject: 10.11  Where can I get sudo for HP-UX?
  4656.  
  4657. CU sudo 1.3 and higher supports hpux. See section 3.13 for FTP sites.
  4658.  
  4659. (Thanks to Todd Miller, <millert@cs.Colorado.EDU>)
  4660.  
  4661. ------------------------------
  4662.  
  4663. Subject: 10.12  Where can I get ntalk for HP-UX?
  4664.  
  4665. See section 3.13 for an FTP site.
  4666.  
  4667. ------------------------------
  4668.  
  4669. Subject: 10.13  Where can i get disktab entries for certain seagate drives?
  4670.  
  4671. Patch PHSS_4981 has the disktab entries for the following drives:
  4672.  
  4673.    Seagate ST32430WD, Seagate ST32430N, Seagate ST31230WD,
  4674.    Seagate ST31230N, HPC3324A, HPC3324W, HPC3325A, HPC3325W
  4675.    Seagate ST31200N, Seagate ST31200W, Seagate ST12400N,
  4676.    Seagate ST12400W, DEC DSP3107LS, DEC DSP3107LSW, DEC DSP3210S,
  4677.    DEC DSP3210SW, Quantum LPS1080S, Quantum LPS1080WD
  4678.  
  4679. ------------------------------
  4680.  
  4681. Subject: 10.14  Where can I get information on a public domain PPP?
  4682.  
  4683. A version of PPP that's public domain can be retrieved from:
  4684.  
  4685.    ftp://ftp.uni-frankfurt.de/pub/networking/HP-UX/iijppp.0.93.hp.tgz
  4686.  
  4687. If this site is unreachable, this alternate site can be used:
  4688.  
  4689.   ftp://ee.utah.edu/ppp/
  4690.  
  4691. ------------------------------
  4692.  
  4693. Subject: 10.15  Where can I get generic information about PPP on HP-UX?
  4694.  
  4695. Check out Barthold Lichtenbelt's "ppp on hpux" Web Page at  
  4696.    http://www.verinet.com/~barthold/ppp.html
  4697. Note that he works for HP in the Workstations Systems Division
  4698. (the Graphics Software Lab), but maintains the page in his free 
  4699. time on his personal account. HP doesn't have anything to do with it.
  4700.  
  4701. Thanx to Barthold Lichtenbelt <barthold@verinet.com>       
  4702.  
  4703.  
  4704. ------------------------------
  4705.  
  4706. Subject: 11. HP-UX 10.x INFORMATION
  4707.  
  4708. ------------------------------
  4709.  
  4710. Subject: 11.1  Can you have Multiple IP addresses on one interface?
  4711.  
  4712. HP ServiceGuard allows you to configure multiple IP addresses on one
  4713. interface.
  4714.  
  4715. First, all primary network interfaces must have "stationary" IP addresses
  4716. "ifconfig"ed on them.  Say for example, you have a system with 2 ethernet
  4717. interfaces (one primary and one for backup) and 2 FDDI interfaces (one
  4718. primary and one backup) and they are interfaces lan0, lan1, lan2 and lan3
  4719. respectively.   Your /etc/rc.config.d/netconf file would have lan0 having
  4720. an IP address/subnet, etc (say 15.13.169.15) and lan2 would have  an IP
  4721. address/subnet, etc (192.6.144.15)
  4722.  
  4723. lan1 and lan3 would not be specified in the netconf file as they will not
  4724. initially have any IP addresses on them.
  4725.  
  4726. ServiceGuard has a "cmmodnet" command which will ADD IP addresses to existing
  4727. interfaces.  For example, to add a "Package IP" address to the ethernet
  4728. lan you would:
  4729.  
  4730. cmmodnet -a -i 15.13.169.16 15.13.143
  4731.  
  4732. Where -a is add -i 15.13.169.16 is the IP address to add and 15.13.143 is the
  4733. subnet where to add it.  The cmmodnet command (via the ioctl()s) then figures
  4734. out that the SUBNET is currently on lan0 and magically you have 2 ip addresses
  4735. on the same SUBNET.  Both going through lan0.
  4736.  
  4737. This feature is only currently available through the ServiceGuard product.
  4738.  
  4739. ------------------------------
  4740.  
  4741. Subject: 11.2  What version of named is running at HP-UX 10.0?
  4742.  
  4743. Version 4.8.3 is running at HP-UX 10.0.
  4744.  
  4745. $ what /usr/sbin/named
  4746. /usr/sbin/named:
  4747.    Copyright (c) 1986, 1989, 1990 Regents of the University of California
  4748.    named 4.8.3 Tue Nov  1 17:03:51 GMT 1994
  4749.  
  4750. And/Or you can apply PHNE_9589 to upgrade this to 4.9.3
  4751.  
  4752. ------------------------------
  4753.  
  4754. Subject: 11.3  What documents are available on HP-UX 10.0?
  4755.  
  4756. Check  http://us-support.external.hp.com/
  4757.  
  4758. The URL for a specific document is :
  4759.    http://us-support.external.hp.com/kdb-bin/wwwsdoc.pl?<Document ID>
  4760. Note that there is some good stuff in /usr/local/doc also.
  4761.  
  4762. Thanx to Skunk Schouten <skunky@skunky.org> 
  4763.  
  4764. ------------------------------
  4765.  
  4766. Subject: 11.4  What is SD-UX and why does it replace /etc/update?
  4767.  
  4768. For HP-UX 10.0, the distribution of HP-UX software has been completely
  4769. revised.  HP Software Distributor 2.0 is used to install, update, remove, and
  4770. package HP-UX software.  This product is called SD-UX, often informally
  4771. shortened to just SD (even though there is also an unbundled product called
  4772. SD-OV offering enhancements over SD-UX).
  4773.  
  4774. All HP-UX 10.0 software is shipped on media compatible with SD.  SD media
  4775. can not be read by installation tools from previous HP-UX releases like
  4776. /etc/update, nor can you use previous installation tools with HP-UX 10.0
  4777. software.  The /etc/update program and its associated tools (/etc/updist,
  4778. /etc/filesets/, /system/, and so on) are obsolete, replaced by SD.
  4779.  
  4780. SD provides enhanced functionality, added features, and greater ease of use
  4781. than that provided by previous installation tools.  The concept of
  4782. installing, configuring, removing, and otherwise managing software has not
  4783. changed.  However, the set of commands and some of the capabilities that SD
  4784. brings to HP-UX are all new.
  4785.  
  4786. SD offers three user interfaces:
  4787.  
  4788. 1.  An interactive graphical user interface available for the swinstall,
  4789.    swcopy, and swremove commands.
  4790.  
  4791. 2.  An interactive user interface suitable for ASCII terminals (on S800)
  4792.     for the swinstall, swcopy, and swremove commands.
  4793.  
  4794. 3.  A non-interactive command-line user interface for all commands.
  4795.  
  4796. For additional information on SD commands and features, see the individual SD
  4797. command manual pages, SAM's online help, the "Installing HP-UX 10.0" manual
  4798. (B2355-90050), and the "Managing HP-UX Software with SD-UX" manual
  4799. (B2355-90054).
  4800.  
  4801. The release notes shipped at 10.0 in /usr/share/doc/10.0RelNotes also contain
  4802. this information.
  4803.  
  4804. ------------------------------
  4805.  
  4806. Subject: 12. S300/400 SPECIFIC INFORMATION
  4807.  
  4808. ------------------------------
  4809.  
  4810. Subject: 12.1  When will HPUX 9.10 be available?
  4811.  
  4812. HP-UX 9.10 MR'd on 3/1/95. It will be shipped on April 17 1995 on DART 22.
  4813.  
  4814. This release is the latest PCO in the 9.X stream for the 68k platform,
  4815. and completely replaces the 9.03 release of last spring.
  4816.  
  4817. This release provides: defect fixes, patch roll-up, selected
  4818. enhancements, and additional peripheral support, while maintaining
  4819. binary and script compatibility, providing improved interoperability
  4820. with 10.0, and satisfying the top 10 customer requests as allowed.
  4821.  
  4822. ------------------------------
  4823.  
  4824. Subject: 12.2  What are the highlights of HP-UX 9.10?
  4825.  
  4826. The HP-UX 9.10 release for Series 300/400 provides many tools
  4827. to improve interoperability with Series 700/800 10.x systems:
  4828.  
  4829. * Interoperability Links - A set of symbolic links for your
  4830.   9.x system which provide a 10.x view of the file system directory.
  4831.   Load from the TLINKS fileset in the new INTEROP partition.
  4832.  
  4833. * SD 9.10 - A subset of HP-UX 10.x Software Distributor (SD-UX) is
  4834.   provided for compatibility with the 10.x.  Load from the new INTEROP
  4835.   partition.
  4836.  
  4837. * Common User Environment - A fileset of scripts to help you
  4838.   create common .profiles.
  4839.  
  4840. * Remote SAM - Allows you to run single-mode SAM in mixed 9.x/10.x
  4841.   environments.
  4842.  
  4843. * XTERM300 - Loading this fileset from the new INTEROP partition. to a
  4844.   Series 700 10.x server allows booting your Series 300/400
  4845.   workstations as Xterminals.
  4846.  
  4847. * Network Time Protocol (NTP) - Implements the XNTP precision
  4848.   time-of-day function available with HP-UX 10.0 on your Series
  4849.   300/400 workstation.
  4850.