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)
>

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.