Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxe.cso.uiuc.edu!spirit From: spirit@uxe.cso.uiuc.edu Newsgroups: comp.sys.hp Subject: Re: running X from init Message-ID: <47500019@uxe.cso.uiuc.edu> Date: 13 Dec 89 10:39:23 GMT References: <1541@gwusun.gwu.edu> Lines: 46 Nf-ID: #R:gwusun.gwu.edu:1541:uxe.cso.uiuc.edu:47500019:000:1533 Nf-From: uxe.cso.uiuc.edu!spirit Dec 12 15:37:00 1989 >>> >>>I have been trying, without any luck, to have X started up by init, as >>>indicated in the Xserver manual page. I am running on an HP 9000/340 >>>workstation, using version 6.5.2 of HPUX. >>> >>>If anyone out there has been able to pull this off, please let me know >>>via email. I will post the results. >>> >>>Thanks, >>> >>>John Kelso Yes John, I have tried to get this information before. I want to leave our workstation running an X login window. (Sounds reasonable to me.) If you find out a way to do this, let me know! Here is a work around I have used. It is kind of ugly, but you might want to try it. 1) Start X and leave it running in the background. As far as a window manager, the user will have to start that themselves. I am not going to let them "create window" as root or anybody else for that matter. 2) Use the following line in your init, along with these two scripts. You could probably two separate scripts. (extra credit!) Talk about brute force. Init Line: X1:2:respawn:env PATH=/usr/bin:/usr/local/bin:/bin:/usr/bin/X11 /bin/sh /usr/local/bin/x_login x_login script: xterm -display uiatma:0.0 -geometry =80x40+10+20 %160x160 -bw 5 -132 -j -rw -ls -sb -si -sk -sl 500 -fn hp8.10x20 -e /bin/sh /usr/local/bin/x_relogin x_relogin script: exec login The one drawback to this method is that "login" times out every 60 seconds, but I don't know how much of a load that really is. If it worked the way the manual says it does, then the question would be moot. spirit@uxe.cso.uiuc.edu