[EMAIL PROTECTED] wrote:
> Hello all,
>
> I am now installing the computer with my realtime app at the machine
> it is controlling, and I have a small problem:
>
> I need the system to login automatically as a specific user (like root :).
> The computer has no keyboard, so manual login is not possible.
>
> Then I have to start X, lauch my realtime system and its GUI, but
> that should be no problem once I'm logged in.
>
> Anybody got some ideas or knows where to find some info on this ?
>
Add something like this to /etc/inittab:
# Format:
# <id>:<runlevels>:<action>:<process>
1:2345:respawn:su - terminal -c /bin/bash </dev/tty1 >/dev/tty1 2>/dev/tty1
2:2345:respawn:su - terminal -c /bin/bash </dev/tty2 >/dev/tty2 2>/dev/tty2
In this example, "terminal" is some unprivileged user. In the user's home directory,
add whatever you want to do after login into .bashrc. In the example, the user
"terminal" is
automatically logged in on two virtual consoles upon startup.
Hope that helps.
Regards,
Erwin
-- [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/