On Thu, 28 Sep 2000 [EMAIL PROTECTED] wrote:

> I need the system to login automatically as a specific user (like root :). 
> The computer has no keyboard, so manual login is not possible.

Try to start from rc.local or /etc/inittab the following command:

su - username -c 'startx -- vt8'   (add & if started from rc.local)

In inittab you can do something like that:
x6:345:respawn:/usr/local/bin/mystart

echo "#!/bin/bash" > /usr/local/bin/mystart
echo "exec su - username -c 'startx -- vt8'" >> /usr/local/bin/mystart
chmod a+x /usr/local/bin/mystart

Then find startx script and change the first line from
#!/bin/sh
to
#!/bin/bash --login
(this is to make sure you have all the paths defined, you may also just 
add /usr/X11R6/bin and other paths you need or so to the PATH at the
beginning on startx.)

If you do not want to start full window manager, just edit xinitrc or startx.
I guess you could just add your application to the ~/.Xclients to start it
automatically (details will depend on distribution).

If you are using Debian (possibly other distr.) change "Console" to Anybody
in the second line of /etc/X11/Xserver.

Best regards,
--
Tomek

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to