This seems like a simple query, but I have yet to figure out how to use a
script to determine if XServer is running on a particular machine. I need a
.login file that will startx upon login unless the user is using
rlogin/telnet or su -. We're using X4.03, Redhat Linux 6.2 kernel 2.2.19
Details below:
Here are my requirements: A single XServer that will startx in a different
color depth depending on the user. Some users need 8 bit and some need 16
bit color depth. Would like for these machines to automatically startx
unless the user is remotely logging in via rlogin/telnet/su -.
Here's the current setup:
We use tcsh for all users, root uses bash.
We do not run under xdm due to the fact that different users have to start
in different color depths and I haven't found a way to for a single XServer
to startx in different color depths under xdm. We use .login files and
startx -- -depth 8 or depth 16, depending on the user.
Currently there is a check in the .login file to check the return code for
$REMOTEHOST. This .login script works to allow rlogin and telnet users to
access a machine and X won't try to start. su - into a machine still tries
to start x, I believe because su - uses bash and bash doesn't read the
.login file. I've tried checking $DISPLAY, but that value is getting set
before XServer starts, so the return code never fails and startx is never
performed.
_______________________________________________
Newbie mailing list
[EMAIL PROTECTED]
*** To unsubscribe , or change message options, see:
http://XFree86.Org/mailman/listinfo/newbie