auto login / auto program startup

auto login / auto program startup

Post by David Joff » Sat, 12 Dec 1998 04:00:00




> I want to start up a specific program in its own virtual console everytime
> linux starts up.  One way I thought of doing this was to automaticly have a
> specific user logged on when linux started up and have that users login
> scripts start the program.  Unfortunately I don't know how to automaticly
> login a user into one of the virtual consoles upon system startup.  If anyone
> knows hows to automaticly startup a program in on of the consoles of
> automatic login a user into one of the consoles please let me know.

There is a program called "open" that will start a program on a new or
existing virtual terminal. I've never used it myself so I'm not sure of
the details. It is one of the programs you can select to install with a
redhat install; I'm not sure if its on by defaults.

You could then place the "open" command toward the end of one of the
startup scripts, like for example "/etc/rc.d/rc.local". Something like
"open -c 4 commandname", judging from the manpage, to run "commandname"
on console 4.

Another option *might* be (I have no idea if this may work) is to
experiment in "/etc/inittab" with what programs are autospawned on the
various consoles (normally mingetty or something like that.) But like I
say I don't know if that will work.

 - David

--
------------------------------------------------------------------
David Joffe  djoffe at icon dot co dot za | Linux: Why use windows
http://www.geocities.com/SoHo/Lofts/2018/ | when theres a door?
------------------------------------------------------------------
"Tip of the day: You can avoid neck injury and eyestrain at work
 by just quitting your job and finding one that doesn't involve
 computers in any way."                - LinuxFocus, March 1998
------------------------------------------------------------------

 
 
 

auto login / auto program startup

Post by John Kod » Sat, 26 Dec 1998 04:00:00



> I want to start up a specific program in its own virtual console
> everytime linux starts up.

Check for the "rungetty" program.  This is just what it was designed
for.  It's available from sunsite, aka metalab.

-- John Kodis.

 
 
 

1. How can I auto-reboot a SUN, then auto-login, then auto-start a program?

My Sun (Solaris 2.6) server is running a program as a listener, when it
receives the "installation" command from remote user, it will call a
script which will automatically reboot the machine, then auto-login,
then automatically restart the listener to do the installation ...

Does anyone know how to implement this script,

Thanks a lot,

Hua.


2. Linux and Fat32

3. How to auto-reboot a SUN, then auto-login, then auto-start a program?

4. CDE dtchooser question...

5. nis, nfs, autofs: auto.master, auto.misc, auto.home help please

6. Sun Sparc workstation

7. Auto-login at startup ????

8. rm -rf causes segfault

9. Newbie Help with Auto-Login and Startup

10. Auto login at startup?

11. auto login and X startup

12. Auto launch programs at login

13. How to auto start a program without login?