In FreeBSD, all you have to do is make an autologin entry in
/etc/gettytab, specifying the user to auto-login.   Then, change /etc/ttys
to use the appropriate section of gettytab, and the autologin happens
when getty is restarted.

I did this once in RedHat as well...  RedHat ships with a minimal version
of getty called "mingetty", which didn't have the capabilities that the
FreeBSD version did.    (Though, perhaps a full version of getty is
available somewhere?)

My solution to this was to write my own version of mingetty (looking at
the source for the RedHat version to make sure I covered everything it
needed to do) and then I had my version do an execl() to the program
that I wanted to auto-start.  Then, change /etc/inittab so that it runs
your version of getty.

On some terminals, I had it run tn5250 automagically.   I created a shell
script for it to run tn5250 from which did the following:

    1) Loaded keyboard map (since I didn't use X, but rather just a
           console window, I had to load this manually)
    2) Set the path.
    3) Start up tn5250

My version of mingetty had the ability to pass the tn5250 profile name
as an argument, so that I could configure it in /etc/inittab

Have fun.


On Wed, 26 Mar 2003, Mike wrote:

> I want the linux machine itself to autologin in.  (no login screen at
> initial boot.  Like the windows autoadmin logon option)
> I do understand that isn't really a subject for this group, but thought
> possibly others have done the same thing.
> Starting tn5250 would be desired as well.
> This machine is to replace a actual terminal that has died, and will be
> a test to see if we can use our older 'scrap' machines as replacements,
> and instead of purchasing other terminals.  (we may run citrix on them
> as well, but that is beyond this groups focus)
>
_______________________________________________
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: [EMAIL PROTECTED]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: [EMAIL PROTECTED]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.

Reply via email to