Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-pcd!hpfcso!hpfcda!eric From: eric@hpfcda.HP.COM (Eric Flink) Newsgroups: comp.sys.hp Subject: Re: Instant Ignition problems Message-ID: <970010@hpfcda.HP.COM> Date: 4 Sep 90 18:02:07 GMT References: <1568@sdrc.UUCP> Organization: Hewlett-Packard, Fort Collins, CO Lines: 47 > - On a device such as a Turbo SRX/VRX, you cannot modify > SB_DISPLAY_ADDR before running X Windows. Normally we > set this in /etc/profile or the user's .profile which were > run before typing .x11start. But now, with xlogin/xsession > the X server runs continoussly and there isn't a way to set > this variable. I tried setting in /etc/rc to no avail. This is a problem; you need to set the SB_DISPLAY_ADDR variable before X starts, but xlogin does not pass down most environment variables to its children. However, there is a workaround which should fix the problem. If you make the server into a shell script, it can set up the appropriate environment variables then exec the real X server. For example, move /usr/bin/X11/X to /usr/bin/X11/X.real. Then recreate /usr/bin/X11/X as a shell script which looks like: ----------------- Cut Here ----------------- #!/bin/sh # # Shell script to set environment variables for the X server. export SB_DISPLAY_ADDR SB_DISPLAY_ADDR=XXX exec /usr/bin/X11/X.real $* ----------------- Cut Here ----------------- Make sure this script is executable. The "exec" is very important; the xsession command needs to know the process id of the server to correctly shut things down when you log out. Note that this shell script will get clobbered if/when you update the X Windows fileset on your system. Hope this helps. Regards, Eric Flink eric_flink@fc.hp.com (303) 229-2313 This posting does not reflect the official position of Hewlett-Packard Company.