Hello, i need to start an application (graphical) when the PC start, even before anybody login, and use/launch a specific user.
Now only can do this manually; when gdm starts, switch to any text tty [ie. Ctrl + Alt + F1], then I login into the special user, start a X server, export the DISPLAY environment variable, and start the application.
With this steps:
$X :1 -verbose -nr -nolisten tcp &
# Maybe Metacity -> $ metacity
Now i need put this steps (script) in some place to launch the app automatically, and with and specific user [ie. manager].
How can i made it? Maybe in init.d? or an special xinitrc?
And how can start the app with the specific user?
And, if is possible, who can stop the app when the system going turn off?
I have Debian 5.0 and a beginner knowledge of shell script.