home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.att:2100 comp.unix.solaris:192 comp.unix.sysv386:13699
- Path: sparky!uunet!cs.utexas.edu!rutgers!network.ucsd.edu!nprdc!stanonik
- From: stanonik@nprdc.navy.mil (Ron Stanonik)
- Newsgroups: comp.sys.att,comp.unix.solaris,comp.unix.sysv386
- Subject: SUMMARY: SVR4 - initializing TERM
- Message-ID: <36309@arctic.nprdc.navy.mil>
- Date: 27 Aug 92 22:53:34 GMT
- References: <36133@arctic.nprdc.navy.mil>
- Sender: news@nprdc.navy.mil
- Organization: Navy Personnel R&D Center
- Lines: 59
-
- The question was, "How do you initialize TERM in SVR4?".
- In BSD you edit the /etc/ttys, in sunos you edit /etc/ttytab,
- and in some SVR3's (apparently not on 3B2's, however) you
- edit the /etc/ttytype.
-
- In SVR4 on our 386, there is an /etc/ttytype, which /bin/login
- apparently reads.
-
- In some SVR4's (eg, from DG), the "assign TERM=whatever" in the
- per service config file (eg, /etc/saf/<pmtag>/<tty>) works.
-
- In Solaris 2.0, ttyadm has a -T option, whose value is inserted
- into the appropriate /etc/saf/<pmtag>/_pmtab.
-
- In SVR4 on 3B2's ... none of the above work. Hack up a script
- which figures it out and source it from every user's .login/.profile,
- I guess.
-
-
- From: mju@mudos.ann-arbor.mi.us (Marc Unangst)
- You're looking in the wrong place. Try /etc/ttytype.
-
- From: nto2584@dsaca1.dsac.dla.mil (Steven C. Payne)
- I did what you are trying by putting an entry in the profile
- which did a check on the tty, and based on that, it initialized
- the tty to whatever.
-
- From: mcb@mach.eng.hou.compaq.com (Mike Busby)
- Under SysV.3 there was a file called /etc/ttytype that contained this
- info. The structure was 'TERM tty', one per line. For example:
-
- From: ade@clark.edu (Adrian Miranda)
- Have you tried /etc/ttytype? Seems to work for me. I believe login
- is the program that actually looks at it...
-
- From: Rick.McNeal@Central.Sun.COM (Rick McNeal)
- I just looked at the Solaris 2.0 source for ttymon and there's a
- -T flag which alows you to set the term type on the command line.
- I don't have the man pages handy to see if this is documented or not.
-
- From: David.Miner@East.Sun.COM (Dave Miner)
- Below is an example which essentially worked at one point during
- development, and I presume still does though I haven't tried it in
- over a year.
- System V traditonally had inittab to allow this functionality and
- SunOS has ttytab. In SVr4 you have to do something like the
- following... (set terminal type for ttyb)
-
- sacadm -a -p ttymon1 -t ttymon -c /usr/lib/saf/ttymon -v `ttyadm -V`
-
- pmadm -a -p ttymon1 -s ttyb -i root -fu -v `ttyadm -V` \
- -m "`ttyadm -d /dev/ttyb -l 9600 \
- -s '/usr/bin/login -h {hostname} TERM=tvi925' -m ldterm -p
- \"ttyb login: \"`"
-
- --
- Ron Stanonik
- stanonik@nprdc.navy.mil
- ucsd!nprdc!stanonik
-