Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!icdoc!tgould.doc!dme From: dme@doc.ic.ac.uk (Dave Edmondson) Newsgroups: comp.sys.hp Subject: Re: running X from init Message-ID: Date: 15 Dec 89 11:37:41 GMT References: <1541@gwusun.gwu.edu> <47500019@uxe.cso.uiuc.edu> Sender: news@doc.ic.ac.uk Reply-To: Dave Edmondson Organization: Systems Support, Department of Computing, Imperial College, London Lines: 69 In-reply-to: spirit@uxe.cso.uiuc.edu's message of 12 Dec 89 21:37:00 GMT In article <47500019@uxe.cso.uiuc.edu> spirit@uxe.cso.uiuc.edu writes: >>> >>>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 I have had xdm from the r3 distribution working with hp's r2 product, and everything seems to go just fine. We had to stop using that for other reasons though, so I've had to solve a similar problem. spirit> Here is a work around I have used. It is kind of ugly, but you spirit> might want to try it. Similar solution here, except that we restart the X server each time the login window dies (or a person logs out). This is quite important here as our students do strange things to the server, and then it has to be reset before the next person comes to use it. In inittab I have : X:2:respawn:/usr/lib/X11/xgetty/server >/tmp/errs 2>&1 # start an X server where the errs file was just for testing. The xgetty stuff looks like this.... /usr/lib/X11/xgetty/server: #!/bin/sh - # # dme # exec /usr/bin/X11/xinit /usr/lib/X11/xgetty/client -- /usr/bin/X11/Xhp and..... /usr/lib/X11/xgetty/client: #!/bin/sh - # # dme # exec /usr/bin/X11/xterm -display :0 -T Console -n Console -geometry +10+10 -e /bin/login You might want to tweak these accordingly. It's interesting to note that the pty allocated to the xterm started always seems to be /dev/pty/ttyqd, but I've yet to fathom a good reason why that is the case (this incidentally means that you can check for this in your .login to start other X clients). All in all, I'd prefer a cleverer init (such as that provided with sunos4) where I can do (from ttytab) : ttyx0 "/usr/lib/X11/xgetty/client" xterms on window="/usr/lib/X11/xgetty/server" secure and be _sure_ which tty the xterm will end up on. Hope this is of some help. spirit> spirit@uxe.cso.uiuc.edu dave. -- Dave Edmondson. Department of Computing, Imperial College, 180 Queen's Gate, South Kensington, London. ``If you have A and you have B you can say A and B, but so what ?'' -- Ruy de Querioz