Re: auto-signon

Scott Klement <[email protected]> Thu, 05 Mar 2015 15:58:17 -0600
Newsgroups gmane.comp.emulators.tn5250
Message-ID <[email protected]>
Hi Bart,

Hmmm... not familiar with Raspberry Pi (I think I said that yesterday, 
too...)

But, years ago I did something similar on RedHat. I also have done this 
quite a bit on FreeBSD (which isn't Linux, but is similar in many ways.)

Running something from the startup rc scripts never worked because they 
are not associated with a terminal, so I couldn't do anything that 
required any fancy terminal I/O.

So what I did instead on linux was make my own copy of 'getty' (the 
program that starts the ttys) that I modified to run my copy of tn5250, 
and then configured my system to start the terminals using my special 
copy of getty. This worked very well, and if the terminal session got 
killed somehow, the init process would automatically restart it, so that 
was helpful, too.

On FreeBSD, the getty program was much more configurable, I could add an 
entry to my /etc/gettytab file that runs a shell script when the 
terminal is opened... and so I made that script start up tn5250, then 
adjusted /etc/ttys to make it run the script on certain terminals.

Not sure if any of that applies to Raspberry Pi, of course...  but 
thought it might be worth mentioning...


On 3/5/2015 12:57 PM, Bart Hoen wrote:
> Hi once more,
> I am trying start the app and auto-login before the login prompt but I can't get it done somehow. I don't have any GUI installed I would just like to boot into 5250 in the before beging logging in.
> I meanwhile tried various methods :
> /etc/rc.local/etc/init.d/
> None works, the scripts run fine when ran after login though so there are no errors or anything. When I replace the 5250 command to something simple like ping it works fine ? It wil start pinging at the login prompt.
> What am I missing ?
> Bart 		 	   		
>
-- 
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.