Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Auto-Login with Terminals

26 views
Skip to first unread message

News Admin

unread,
Mar 20, 1998, 3:00:00 AM3/20/98
to

I am running FreeBSD on a box with a BocaBoard (I actually got all 16
ports to work!!).
This machine is our network monitor running a program called "nocol". I
have a few terminals running off this box so we can see the state of the
network. However, we have to log these terminals in everytime they get
disconnected. It is really sort of a pain since they are all mounted on
the wall near the ceiling. I was wondering if anyone has been able to
get a terminal to auto-login with a specific username and password.
Someone had mentioned mgetty, but I haven't really heard much...

Thanks in advance for all your help...

Bob
Systems Administrator
Net Access - Denville, NJ


H. Eckert

unread,
Mar 20, 1998, 3:00:00 AM3/20/98
to

ne...@nac.net (News Admin):

> This machine is our network monitor running a program called "nocol".
> I was wondering if anyone has been able to
> get a terminal to auto-login with a specific username and password.

Why don't you simple set them to "off" in /etc/ttys so no getty is
run for them and invoke your monitor program during startup with
output redirected ?
Or set your program instead of getty. This way "nocol" gets respawned
from init in case one of the ttys gets turned of and back on later again.

Greetings,
Ripley
--
http://www.in-berlin.de/User/nostromo/

News Admin

unread,
Mar 23, 1998, 3:00:00 AM3/23/98
to

H. Eckert wrote:

Someone else suggested that, but it has one problem... When I run it on one
of the virtual consoles and redirect it to the tty
(/usr/local/nocol/bin/netconsole > /dev/ttyd1), the terminal type, not matter
what I set it to seems to use the same as the virtual console. I tried
changing the virtual console to what it should be set to, but it still
doesn't work. The columns are not being set to what the terminals should be.

Bob


H. Eckert

unread,
Mar 27, 1998, 3:00:00 AM3/27/98
to

ne...@nac.net (News Admin):

> Someone else suggested that, but it has one problem... When I run it on one
> of the virtual consoles and redirect it to the tty
> (/usr/local/nocol/bin/netconsole > /dev/ttyd1), the terminal type, not matter
> what I set it to seems to use the same as the virtual console. I tried
> changing the virtual console to what it should be set to, but it still
> doesn't work. The columns are not being set to what the terminals should be.

The program inherits the value of TERM from your shell for sure.
How about "env TERM=ttyd1termtype nocol > /dev/ttyd1" ?

If your tabstops don't agree check them with stty. Use
"stty all </dev/ttyd1" to see what's set for the temrinal.
/usr/bin/expand might be helpful, too.

0 new messages