home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14189 < prev    next >
Encoding:
Text File  |  1992-07-22  |  3.2 KB  |  82 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!ods!chris
  3. From: chris@ods.com (Chris Atkins)
  4. Subject: Re: HELP xdm setup on single sun.
  5. Message-ID: <1992Jul22.194715.17413@ods.com>
  6. Organization: Optical Data Systems, Inc.
  7. X-Newsreader: Tin 1.1 PL4
  8. References: <9207200936.AA14716@mltsa.txd>
  9. Date: Wed, 22 Jul 1992 19:47:15 GMT
  10. Lines: 70
  11.  
  12. djones@mltsa.UUCP writes:
  13. : Hi, This must have been asked about a million times !
  14. : I am trying to get xdm (X11R5) running on a SUN(ipx). Simply to control
  15. : the 'local' display. I have two questions.
  16. : (1) I followed the example given in the man page and the
  17. : greeting I get keeps talking of "unsecure session". What
  18. : do I need to do to make it "secure" ?
  19. Based on the xdm man page from O'Reilly Volume 3, the "unsecure session" 
  20. message is there because the configuration file requests X authorization but
  21. there is no authorization in use when the greeting is brought up.  You have 
  22. 2 choices to get rid of this, 
  23. 1) set DisplayManager*authorize: false
  24.    This turns off authorization.
  25. 2) Set up to use authorization.  I can't help you out much with this one.  You
  26.    might try setting up an outhorization file for the server.
  27.  
  28. : (2) What is the "best" way to start xdm. I added a line at the
  29. : end of rc.local to fire it up, viz xdm -config /blah../lib/X11/xdm/xdm-config
  30. : Is there a "better" way ?
  31. To start up xdm add the following to the end of your rc.local:
  32. if [ -f /usr2/X11/bin/X11/xdm ]; then
  33.         /usr2/X11/bin/X11/xdm -daemon -config /xdm/xdm-config
  34. fi
  35.  
  36. If you wish to start up different window environments (ie. motif, ow2, ow3) at
  37. login time, you can add the following translations to the Xresources file.
  38.         Ctrl<Key>F1:    set-session-argument(failsafe) finish-field() \n\
  39.         <Key>F1:        set-session-argument(x) finish-field() \n\
  40.         <Key>F2:        set-session-argument(ow2) finish-field() \n\
  41.         <Key>F3:        set-session-argument(ow3) finish-field() \n\
  42.         <Key>Return:    set-session-argument() finish-field()
  43. the argument to set-session-argument is passed to the Xsession file.
  44.  
  45. One thing I found out was that it was difficult to get setup to be able to
  46. use both xterm and any of sun's shell type tools(shell tool, cmd tool, etc.)
  47. To overcome this problem, I did the following:
  48. I added the following line to the default Xsession script:
  49. stty echoe echoctl echoke
  50.  
  51. In my ~/.xsession file I put the following:
  52. /usr2/X11/bin/X11/xterm -geometry 80x24+10+200 -sb -iconic -name Xsession -l -lf
  53.  "$HOME/Xlog" -xrm "Xsession*sensitive: False" -e $HOME/.xsession-nodeamon $1
  54.  
  55. $1 is passed in from the set-session-argument above.
  56.  
  57. The $HOME/.xsession-nodeamon script looks like this:
  58. #!/bin/csh
  59. # this is the program that is run as the client
  60. # for the display manager.
  61. #
  62. source $HOME/.cshrc
  63. setenv WINSYS $1
  64. source $HOME/.login
  65. source $HOME/.xinitrc
  66.  
  67. The variable WINSYS is passed to my .login script and I use it to setup my
  68. path, and load library path based on whether I am running motif, ow2 or ow3.  I
  69. also determine the window manager to start and pass that to .xinitrc via an
  70. environment variable.
  71.  
  72. I am not sure why I had to create a dummy xterm and then do my .xinitrc script
  73. from it to get both the sun tools and xterm to work, but it does work.
  74.  
  75. Good luck,
  76. Chris Atkins
  77. chris@ods.com
  78.  
  79.