On Tue, 5 Oct 1999 [EMAIL PROTECTED] wrote:
Hi
First of all : NO Subject NO GOOD IDEA !
Usualy I move emails without a sub to the folder /dev/null
To Your Probelm : .....
I used to do it that way :
produce a script named
/etc/rc.d/init.d/autox
with the following heard peace :
#!/bin/bash
.....
DISPLAY=a.b.c.d:0
export DISPLAY
cd /home/user/
su -c /usr/X11R6/bin/startx user >/home/user/.AutoXProblems 2>&1 &
# or even
(su -c /usr/X11R6/bin/startx user >/home/user/.AutoXProblems 2>&1)&
.....
(You can also play around with nohup.)
Then You need to set up a runlevel in which xdm or kdm or ... is not started
by the OS (Runlevel 3 in the RedHat case). See /etc/inittab for that.
If You are BSD-ish You need to modify inittab or a called script.
If You have a System V setup (i.e RedHat) You need to link your script.
If X is not started in RunLevel 3 link your script to
the app. Directory. I.e.
cd /etc/rc.d/rc3.d
ln -s ../init.d/autox S99autox
and force the system to come up in that runlevel.
See /etc/inittab
id::3:initdefault:
hope it helps.
> How do I set up xdm (actually kdm) so that it logs a certain user in automatically?
>I am thinking of just having an init-script send the username and password from a
>file to the system as if it came from the keyboard. But how?
>
> ----------------------------------------------------------------
> Get your free email from AltaVista at http://altavista.iname.com
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hochachtungsvoll und mit freundlichen Gruessen aus dem Dungeon :
xxxxx MATHIAS
X __ \ ____/ ___/ / / ___/ __
X C O-O / / / / / / \ _\||/_
X _\ __/ __/ / / __/ _ ___/ o o
X _@ / / / / / / \ (_)
| | __/ _____/ __/ _____/ _____/ __/ \__ ===
M. Feiler Ro�bergstr.1 72649 Wolfschlugen 0049 (0)7022 560965 (Privat)
[EMAIL PROTECTED] RZ (620) 0049 (0)711/459-3949 (Uni)
PGP public key & Homepage : http://www.uni-hohenheim.de/~feiler
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -