From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX"  7-MAY-1991 23:02:22.34
To:	ARISIA::EVERHART
CC:	
Subj:	DECwindows Cookbook 7 of 8

From:	RELAY-INFO-VAX@CRVAX.SRI.COM@SMTP@CRDGW2
To:	Everhart@Arisia@MRGATE

Received:  by crdgw1.ge.com (5.57/GE 1.97)
	 id AA17323; Tue, 7 May 91 21:44:07 EDT
Received: From UCBVAX.BERKELEY.EDU by CRVAX.SRI.COM with TCP; Tue,  7 MAY 91 17:30:32 PDT
Received: by ucbvax.Berkeley.EDU (5.63/1.42)
	id AA11423; Tue, 7 May 91 17:18:51 -0700
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 6 May 91 01:26:14 GMT
From: zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!mic!montagar!fallout!system@handies.ucar.edu  (T-H-E John Wisniewski?!?)
Organization: DECUS DFWLug BBS - Dallas, TX
Subject: DECwindows Cookbook 7 of 8
Message-Id: <5123@fallout.uucp>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

+-+-+-+ Beginning of part 7 +-+-+-+
V(00000399 DECW$TE_2       LEF      7    58612   0 00:10:16.96      5118   3030
X   ) h
X300 -20250 M
V(0000039A _TWA47:         LEF      4   192777   0 00:03:53.77     24567    406
X   ) h
X300 -21450 M
V(000003AC VUE$SYSTEM_1    LEF      4    16681   0 00:19:22.04     10159   4965
X ) h
X300 -22650 M
V(000000C6 DECW$SERVER_0   HIB      8    19171   0 00:11:14.75     31424   3985
X   ) h
X300 -23850 M
X(...) h
X300 -25200 M
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(USERNAME   \255\255  This process running DECW$SESSION is the orgin of ) h
X300 -26600 M
X(                              all other DECwindow processes.) h
X300 -28000 M
X300 -29400 M
V(USER_SM1     \255\255  These names refer to DECwindow jobs spawned or created)
X h
X300 -30800 M
V(                  2          from the Logged in user session manager window.)
X h
X300 -32050 M
X300 -33400 M
X(DECW$WM_x  \255\255 The Window Manager process that controls the movement) h
X300 -34800 M
V(                              and resizing of DECwindow Windows.  If this proc
Xess is) h
X300 -36200 M
V(                              terminated,  windows  while functional cannot be
X moved) h
X300 -37600 M
X(                               manipulated or changed in size or occlusion.) h
X300 -39000 M
X300 -40400 M
V(DECW$TE_x  \255\255  This process is a parent process for all Session Manager)
X h
X300 -41800 M
V(                             DECterms created.  Terminating this process termi
Xnates) h
X300 -43200 M
V(                             all DECterms \(_TWAx: processes\) created from th
Xe ) h
X300 -44600 M
X(                             Session manager.) h
X300 -46000 M
X300 -47400 M
X(VUE$SYSTEM_x \255\255 This process is FILEVIEW CREATED PROCESS and ) h
X300 -48800 M
V(                                  other processes beginning with that name ref
Xer to ) h
X300 -50200 M
X(                                  detached processes created from Filevue.) h
X300 -51600 M
V(                                  The primary FILEVIEW  process will be of the
X form) h
X300 -53000 M
X(                                  USER_SMx PROCESSES on the system.  ) h
X300 -54400 M
X300 -55800 M
V(DECW$SERVER_x  \255\255 This process is the primary DECwindows server for all
X                                                 ) h
X300 -57200 M
V(                                      all windows and the Window Manager.  Ter
Xminating ) h
X300 -58600 M
V(                                      this process stops DECwindows \(not reco
Xmmended\)) h
X300 -60000 M
V(                                      and logs out current DECwindow sessions.
X) h
X300 -61250 M
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 20 20
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1200 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(DECWINDOWS SYSTEM MANAGEMENT \(cont\)) h
X300 -2600 M
X300 -4000 M
X300 -5400 M
X(SYS$SYSROOT:[DECW$DEFAULTS]) h
X300 -6800 M
X300 -8200 M
X300 -9600 M
X300 -11000 M
X(This directory contains the DECwindow default files.  The *.DAT files ) h
X300 -12400 M
X(control various parameters for the DECwindow environments for many ) h
X300 -13800 M
X(DECwindow applications.  ) h
X300 -15200 M
X300 -16600 M
X300 -18000 M
X300 -19400 M
X300 -20800 M
X300 -22200 M
X(Directory SYS$COMMON:[DECW$DEFAULTS.SYSTEM]) h
X300 -23600 M
X(DECW$BOOKREADER.DAT;1 ) h
X300 -25000 M
X(DECW$CALC.DAT;1) h
X17580 -25000 M
X300 -26400 M
X(DECW$CALENDAR.DAT;1 ) h
X17580 -26400 M
X300 -27800 M
X(DECW$CARDFILER.DAT;1 ) h
X300 -29200 M
X(DECW$CLOCK.DAT;1) h
X17580 -29200 M
X300 -30600 M
X(DECW$LOGIN.DAT;1) h
X17580 -30600 M
X300 -32000 M
X(DECW$MAIL.DAT;1) h
X17580 -32000 M
X300 -33400 M
X(DECW$NOTEPAD.DAT;1) h
X17580 -33400 M
X300 -34800 M
X(DECW$PAINT.DAT;1) h
X17580 -34800 M
X300 -36200 M
X(DECW$PUZZLE.DAT;1) h
X17580 -36200 M
X300 -37600 M
X(DECW$SESSION.DAT;1) h
X17580 -37600 M
X300 -39000 M
X(DECW$SM_BW.DAT;1) h
X17580 -39000 M
X300 -40400 M
X(DECW$SM_COLOR.DAT;1 ) h
X17580 -40400 M
X300 -41800 M
X(DECW$SM_GENERAL.DAT;1 ) h
X23340 -41800 M
X300 -43200 M
X(DECW$SM_GRAY.DAT;1) h
X17580 -43200 M
X300 -44600 M
X(DECW$TERMINAL.DAT;1 ) h
X17580 -44600 M
X300 -46000 M
X(DECW$WINMGR.DAT;1) h
X300 -47400 M
X300 -48800 M
X300 -50200 M
X300 -51600 M
X300 -53000 M
X300 -54400 M
X300 -55800 M
X300 -57200 M
X300 -58600 M
X300 -60000 M
X300 -61400 M
X300 -62800 M
X300 -64200 M
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 21 21
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1200 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(DECWINDOWS SYSTEM MANAGEMENT \(cont\)) h
X300 -2600 M
X300 -4000 M
X(SYS$SYSROOT:[DECW$DEFAULTS]) h
X300 -5400 M
X300 -6800 M
X(The important parameters are located in DECW$SM_GENERAL.DAT;1.) h
X300 -8200 M
X(This Session Manager general file controls such things as default pointer) h
X300 -9600 M
X(character, window focus, and many useful customizations.  Any changes) h
X300 -11000 M
X(made to this file will become the default for all the VAXstation users.) h
X300 -12400 M
X300 -13800 M
V(Creating a DECW$*.DAT file in the user's login directory, overrides any defaul
Xts) h
X300 -15200 M
V(with the values specified within the file.  Additions to the user file may onl
Xy be ) h
X300 -16600 M
V(the parameters that user wants. All other parameters will be derived from the)
X h
X300 -18000 M
X(system files.) h
X300 -19400 M
X300 -20800 M
X300 -22200 M
X(FILEVIEW / SYS$SYSROOT:[VUE$LIBRARY]) h
X300 -23600 M
X300 -25000 M
X(FILEVIEW is DIGITAL's point and click application for running programs,) h
X300 -26400 M
X(manipulating files and navigating directory structures under DECwindows.) h
X300 -27800 M
X(FILEVIEW verbs are defined from a pulldown menu, but some programs) h
X300 -29200 M
X(need to have specific parameters, and values passed to them as the are ) h
X300 -30600 M
X(activated.) h
X300 -32000 M
X300 -33400 M
X(The solution to this is the SYS$SYSROOT:[VUE$LIBRARY]  in this directory) h
X300 -34800 M
X(are *.COM files that activate images with the appropriate parameters.) h
X300 -36200 M
X300 -37600 M
X(This  location of files control STATUS WINDOWS, Pop up displays and many) h
X300 -39000 M
X(other FILEVIEW activation parameters.  User procedures may be placed) h
X300 -40400 M
X(in this location as well for use by the entire system.) h
X300 -41650 M
X300 -42850 M
X300 -44200 M
X(DISABLING OPCOM MESSAGES FROM DECWINDOWS) h
X300 -45600 M
X300 -47000 M
X(Background OPCOM messages may be disabled by the following) h
X300 -48400 M
X300 -49800 M
X( $ Define/User Sys$Command OPA0: ) h
X300 -51200 M
X( $ Reply/Disable) h
X300 -52600 M
X( ) h
X300 -54000 M
X(Or in the SYS$MANAGER:SYLOGICAL.COM file, ) h
X300 -55400 M
X300 -56800 M
X($ DEFINE/SYSTEM OPC$OPA0_ENABLE FALSE) h
X300 -58200 M
X300 -59600 M
X(Either method will prevent operator messages from going to OPA0:) h
X300 -61000 M
X(and eliminate the interruption of DECwindows graphics.  All messages) h
X300 -62400 M
X(will still be logged to the operator file and active operators.) h
X300 -63650 M
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 22 22
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1650 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1800 o f
X(Chapter 3  DECWINDOW SYSTEM CONTROLS) h
X300 -3200 M
X300 -4600 M
Xn 0.667 o f
X(DECW$LOGIN_BACKGROUND logical) h
X300 -6000 M
X300 -7400 M
V(The DIGITAL Logo that is on the login window is the default for all DECwindow)
X h
X300 -8800 M
V(systems.  This default can be overridden by defining a System Executive logica
Xl) h
X300 -10200 M
X(name:) h
X300 -11600 M
X300 -12850 M
X/Courier-ISOLatin1 $
X/Courier & P
X/Courier-ISOLatin1 F 1000 o f
X($DEFINE/SYSTEM/EXEC DECW$LOGIN_BACKGROUND SYS$MANAGER:DECW$TITLE.COM) h
X300 -14200 M
X300 -15600 M
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(After this logical is defined and the DECW$TITLE.COM file is CREATED,) h
X300 -17000 M
X(the DIGITAL logo will no longer appear.) h
X300 -18400 M
X300 -19800 M
X(Whatever commands are in DECW$TITLE.COM will execute and continue) h
X300 -21200 M
X(executing until the command procedure is exited.) h
X300 -22600 M
X300 -24000 M
V(The usefulness of this functionality may be only to put alternate information)
X h
X300 -25400 M
X(on the login DECWINDOWS screens, or it may be used to construct an entire) h
X300 -26800 M
X(CAPTIVE DECWINDOWS environment.) h
X300 -28200 M
X300 -29600 M
X300 -31000 M
X(Any valid DECwindows program can be executed from DECW$TITLE.COM) h
X300 -32400 M
X(and information or even the window manager can be placed on the root window) h
X300 -33800 M
X(and created within child windows.) h
X300 -35200 M
X300 -36600 M
V(The main security risk to a captive DECWINDOW login window is that if any of)
X h
X300 -38000 M
X(the applications can spawn or execute DCL commands, they execute as the ) h
X300 -39400 M
X(system account \(The process which is running DECW$TITLE.COM in this) h
X300 -40800 M
X(example is DECW$SERVER_x which is always owned by the system.\).!  ) h
X300 -42200 M
X300 -43600 M
X(Care must be taken to prevent this from occurring but it can be done either) h
X300 -45000 M
X(by a program or cleverly constructed DCL proceedure.) h
X300 -46400 M
X300 -47800 M
X(Know the application you are starting in the login window, spawn only) h
X300 -49200 M
X(captive protected DCL COMMAND PROCEDURES that change the ) h
X300 -50600 M
X(UIC of the executing programs, or if security is of top priority:) h
X300 -52000 M
X300 -53400 M
X( Don't create a CAPTIVE LOGIN environment for DECwindows.  ) h
X300 -54800 M
X300 -56200 M
X(This is a workaround for CAPTIVE LOGINS, and it makes you responsible ) h
X300 -57600 M
X(for SECURITY!) h
X300 -58850 M
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 23 23
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1200 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(DECW$LOGIN_BACKGROUND logical  \(cont\)) h
X300 -2600 M
X300 -3850 M
X/Courier-ISOLatin1 $
X/Courier & P
X/Courier-ISOLatin1 F 1000 o f
V($!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)
X h
X300 -5050 M
X($!                   SYS$MANAGER:DECW$TITLE.COM) h
X300 -6250 M
X($!               EXAMPLE file for DECWINDOWS LOGIN SCREEN) h
X300 -7450 M
X($!    ONE DECTERM, ONE BOOKREADER, WINDOW MANAGER, CAPTIVE LOGIN READY) h
X300 -8650 M
X($!   LIMITATION:  Cycle not complete, no mechanism for terminating) h
X300 -9850 M
X($!   without a session manager.) h
X300 -11050 M
X($!                DECW$WINMGR.EXE PROCESS.) h
X300 -12250 M
X($!                   EXAMPLE ONLY.....) h
X300 -13450 M
V($!\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255
V\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\25
V5\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\2
X55\255\255\255\255\255) h
X(\255\255\255\255\255\255\255\255\255\255\255) h
X300 -14650 M
X($set cont) h
X300 -15850 M
X($set noon) h
X300 -17050 M
X($10:) h
X300 -18250 M
X($set proc/prio=4        !set proc/prio=interactive level) h
X300 -19450 M
X($!) h
X300 -20650 M
X($!Create DECTERM which will have to have a USER/PASSWORD entered.) h
X300 -21850 M
X($!this is nessisary because if you don't log in and just do the ) h
X300 -23050 M
X($!create from here, you'll have a DECTERM logged in as SYSTEM!) h
X300 -24250 M
X($!) h
X300 -25450 M
X($create/terminal) h
X300 -26650 M
X(/noprocess/display=rover::0) h
X300 -27850 M
V(/WINDOW_ATTRIBUTES=\(INITIAL_STATE=ICON,ICON_NAME="CAPTIVE LOGINWINDOW",\255)
X h
X300 -29050 M
X( TITLE="CAPTIVE LOGINWINDOW"\)) h
X300 -30250 M
X($!) h
X300 -31450 M
X($!RUN any specific application as a spawned subprocess) h
X300 -32650 M
X($!nowait returns control to this proceedure.) h
X300 -33850 M
X($!) h
X300 -35050 M
X($SPAWN/NOWAIT/NOLOG run sys$system:decw$bookreader.exe) h
X300 -36250 M
X($!) h
X300 -37450 M
X($!Running the DECW$WINMGR creates a session box and allows the placement) h
X300 -38650 M
X($!windows located on the LOGIN \(ROOT\) WINDOW!) h
X300 -39850 M
X($!) h
X300 -41050 M
X($run sys$system:decw$winmgr.exe) h
X300 -42250 M
X($!) h
X300 -43450 M
X($!IF WE EXIT HERE, ALL THE RUNNING PROGRAMS START.  IF DECW$WINMGR IS ) h
X300 -44650 M
X($!TERMINATED, CYCLE THROUGH AND START AGAIN...) h
X300 -45850 M
X($goto 10:) h
X300 -47050 M
X($exit) h
X300 -48400 M
X300 -49800 M
X300 -51200 M
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(Note that if we cycle out of this proceedure, the DECW$SERVER_x process) h
X300 -52600 M
X(will not attempt to run the command proceedure again.  It will only be ) h
X300 -54000 M
X(run by logging out of a DECwindows Session or restarting the server) h
X300 -55400 M
X(process.) h
X300 -56650 M
X-7200 7200 T
XR
X
Xshowpage
X$P e
X
X%%Page: 24 24
X/$P a D
Xg N
X0 79200 T
XS
XR
XS
X7200 -7200 T
XN
X0 G
X300 -1200 M
X/NewCenturySchlbk-Roman-ISOLatin1 $
X/NewCenturySchlbk-Roman & P
X/NewCenturySchlbk-Roman-ISOLatin1 F 1200 o f
X(DECWINDOW FONT CONTROLS ) h
X300 -2600 M
X300 -4000 M
X(SYS$MANAGER:DECW$PRIVATE_SERVER_SETUP.COM .TEMPLATE) h
X300 -5400 M
X300 -6800 M
V(This template is an example of how the 75dpi and the 100 dpi fonts are selecte
Xd for) h
X300 -8200 M
X(your DECwindow session.  You can modify the template file and save it as a) h
X300 -9600 M
X(*.COM file.  Then you have to reboot or restart DECwindows to install the ) h
X300 -11000 M
X(new fonts.) h
X300 -12400 M
X300 -13800 M
V(The font name can be wildcarded.  The server will pick the first font name in
X its) h
X300 -15200 M
V(list that satisfies the wildcard match.  Normally you should specify enough fi
Xelds ) h
X300 -16600 M
X(to keep the search small.  For example:) h
X300 -18000 M
X300 -19400 M
X300 -20800 M
X6060 -20800 M
V(\255*\255Terminal\255Medium\255R\255Normal\255*\255140\255*\255*\255*\255*\255
XISO8859\2551) h
X300 -22050 M
X300 -23250 M
X300 -24600 M
V(Tools like xlsfonts.exe \(from the MIT Xwindow distribution\) can quickly disp
Xlay) h
X300 -26000 M
V(all the fonts available on your system.  Another way uses to view the differen
Xt ) h
X300 -27400 M
X(fonts is to use the standard DECwindow application, NOTEPAD.) h
X300 -28800 M
X300 -30200 M
X300 -31600 M
X(USING THE NOTEPAD APPLICATION TO CHANGE FONTS:) h
X300 -33000 M
X(     ) h
X300 -34400 M
X(    ) h
X6060 -34400 M
X(* Select a font with NOTEPAD customize menu) h
X300 -35800 M
X(                 * Change NOTEPAD FONT ) h
X300 -37200 M
X(                 * Save NOTEPAD CUSTOMIZATIONS ) h
X300 -38600 M
X(                 * Type SYS$LOGIN: DECW$NOTEPAD.DAT) h
X300 -40000 M
-+-+-+-+-+ End of part 7 +-+-+-+-+-

