- To: Matthew Clark <matt@xxxxxxxxxx>
- Subject: Re: [SLUG] Starting programs on console
- From: Tom Massey <tom_massey@xxxxxxxxxxxxxx>
- Date: Tue Sep 3 21:08:06 2002
- Cc: slug@xxxxxxxxxxx
- User-agent: Mutt/1.3.27i
* Matthew Clark <matt@xxxxxxxxxx> [2002-09-03 20:01]:
> just wondering about how one would go about starting an application on a
> local console. for instance something like mysqlclient or mutella etc..... so
> that you could access it by hitting ctrl-alt-f9 for instance (no login
> prompt, instead application prompt).
>
> i would assume that this would be done through inittab, but don't know
> exactly how to link it to the console.....
You could do it quite easily using getty and just telling it
to run a different login program and not ask for a username.
Add something like this to /etc/inittab:
8:23:respawn:/sbin/getty 38400 tty8 -n -l /usr/bin/emacs
The -n tells it not to prompt for a login name, the -l tells
it which program to run in place of /bin/login. You might want
to run a script to set up the environment first, but this would
do the basic job.