config.hp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. ####################################################
  2. ### Configuration Instructions for HP-UX Systems ###
  3. ####################################################
  4. There are two ways to start the desktop:
  5. * You can manually start the desktop Login Manager. The advantage
  6. of using this method is that you will not have to edit
  7. /etc/inittab.
  8. * You can enable the system to automatically start the desktop
  9. when the system is rebooted. This is done by editing
  10. /etc/inittab.
  11. Removing the Developer's Conference CDE Desktop
  12. ===============================================
  13. It is imperative that Snapshot 1 and Snapshot 2 desktops do not
  14. co-mingle. Installers and users should ensure that old clients and
  15. configuration files are exited or removed.
  16. Upgrading systems in a networked environment
  17. --------------------------------------------
  18. If CDE is installed in a network environment, it is imperative that
  19. all systems be upgraded at the same time.
  20. Removing the Snapshot 1 desktop
  21. -------------------------------
  22. Installers are advised to remove the Snapshot 1 Desktop files from
  23. their systems. Those clients and files are obsolete.
  24. Stopping Desktop clients before installing Snapshot 2
  25. -----------------------------------------------------
  26. If the Snapshot 1 desktop is not removed, ensure that all desktop
  27. clients are inactive before installing the Snapshot 2 desktop. If the
  28. desktop was started via /etc/inittab, issue the telinit command to
  29. stop dtlogin and any other desktop client.
  30. Removing the users's .dtprofile and .dt directory
  31. -------------------------------------------------
  32. It is strongly advised that all CDE users on the system remove or
  33. rename their .dt directory and their .dtprofile. The Snapshot 2
  34. Desktop is not compatible with the Snapshot 1 Desktop versions of
  35. these files.
  36. If users have customized their .dt/dtwmrc file and want to keep it,
  37. they will need to cut and paste the appropriate pieces into the new
  38. dtwmrc provided.
  39. Before You Start the Desktop (HP-UX)
  40. ======================================
  41. Special Configurations
  42. ----------------------
  43. If your system has one of these special configurations, you may need to
  44. edit certain Login Manager files before starting the desktop. See
  45. chapter 2 of the Getting Started Guide:
  46. * If the system console is a non-bitmap device.
  47. * If the system is an X terminal or a host for X terminals.
  48. * If the system has more than one display.
  49. The Subprocess Control Daemon
  50. =============================
  51. If you are working in an environment where a CDE Desktop action needs
  52. to start an application on another workstation running CDE, the
  53. Subprocess Control Daemon configuration must be completed on both
  54. workstations.
  55. 1. Log in as root.
  56. 2. For authentication, the user's home directory on a remote system
  57. must be mounted to the local system.
  58. 3. To run an application with a WINDOW_TYPE of NO_STDIO (see Appendix
  59. A, Advanced User's and System Administrator's Guide), you will need
  60. to provide NFS-access by the local (client) system to the remote
  61. (application server) system's /var directory (if /var is a distinct
  62. volume), or / directory (if it is not). The mount point must be
  63. /nfs/<remote_host>/var (again, if /var is a distinct volume) or
  64. /nfs/<remote_host>/ (if it is not). Export the appropriate
  65. directory in /etc/exports on both the local and remote hosts.
  66. To Start And Stop the Desktop Manually
  67. ======================================
  68. To Start the Desktop:
  69. --------------------
  70. 1. Log in as root.
  71. 2. Enter:
  72. /usr/dt/bin/dtlogin -daemon
  73. This starts the Login Manager and displays the Login screen.
  74. Logging in starts a desktop session.
  75. To Stop the Desktop:
  76. --------------------
  77. When you stop the Login Manager, you automatically kill all
  78. X servers and desktop sessions that it started.
  79. 1. In a terminal emulator window, log in as root.
  80. 2. Obtain the process id of the parent Login Manager by entering:
  81. cat /var/dt/Xpid
  82. 3. Kill the Login Manager by entering:
  83. kill -TERM <process_id>
  84. where <process_id> is the value obtained from Xpid.
  85. To Enable and Disable Desktop Auto-Start
  86. ========================================
  87. When your system is configured to start the desktop automatically, the
  88. desktop Login Manager runs when the system is booted.
  89. To start the desktop automatically, you must edit /etc/inittab to:
  90. * Add a line that starts the CDE Desktop.
  91. * Set the default run level to the run level assigned to the CDE
  92. Desktop.
  93. NOTE: Edit /etc/inittab very carefully.
  94. Errors in the file can prevent the system from booting
  95. successfully.
  96. To Enable Desktop Auto-Start
  97. ----------------------------
  98. 1. Log in as root.
  99. 2. If you are running HP VUE, shut it down by entering:
  100. /etc/telinit <n>; exit
  101. where <n> is a run level assigned to the console and not
  102. assigned to HP VUE or to halting the system. You can find a
  103. run level by examinining the lines beginning with cons and vue
  104. in /etc/inittab. For example, the following lines indicate
  105. that you can use run levels other than 3, 4, or 6.
  106. halt:6:wait:/usr/lib/X11/ignition/shutdown.ksh
  107. cons:012456:respawn:/etc/getty -h console console
  108. vue :34:respawn:/etc/vuerc
  109. 3. Make a backup copy of /etc/inittab.
  110. 4. Open /etc/inittab for editing (in a diskless cluster, /etc/inittab
  111. is a context-dependent file).
  112. 5. Look for the line that sets the default run level (starting with
  113. init:). Set the default run level to 5.
  114. init:5:initdefault:
  115. 6. Add a line that starts the desktop at that run level:
  116. dt :5:respawn:/usr/dt/bin/dtrc
  117. To Disable Desktop Auto-Start
  118. -----------------------------
  119. You can restore a console by changing to a run level assigned to a
  120. console and not assigned to the desktop.
  121. Switching Between CDE and HP VUE
  122. --------------------------------
  123. You can switch back and forth between CDE and HP VUE by executing:
  124. /etc/telinit <n>; exit
  125. where <n>=3 switches to HP VUE and <n>=5 switches to CDE.