home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / att / 2100 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  2.7 KB

  1. Xref: sparky comp.sys.att:2100 comp.unix.solaris:192 comp.unix.sysv386:13699
  2. Path: sparky!uunet!cs.utexas.edu!rutgers!network.ucsd.edu!nprdc!stanonik
  3. From: stanonik@nprdc.navy.mil (Ron Stanonik)
  4. Newsgroups: comp.sys.att,comp.unix.solaris,comp.unix.sysv386
  5. Subject: SUMMARY: SVR4 - initializing TERM
  6. Message-ID: <36309@arctic.nprdc.navy.mil>
  7. Date: 27 Aug 92 22:53:34 GMT
  8. References: <36133@arctic.nprdc.navy.mil>
  9. Sender: news@nprdc.navy.mil
  10. Organization: Navy Personnel R&D Center
  11. Lines: 59
  12.  
  13. The question was, "How do you initialize TERM in SVR4?".
  14. In BSD you edit the /etc/ttys, in sunos you edit /etc/ttytab,
  15. and in some SVR3's (apparently not on 3B2's, however) you
  16. edit the /etc/ttytype.
  17.  
  18. In SVR4 on our 386, there is an /etc/ttytype, which /bin/login
  19. apparently reads.
  20.  
  21. In some SVR4's (eg, from DG), the "assign TERM=whatever" in the
  22. per service config file (eg, /etc/saf/<pmtag>/<tty>) works.
  23.  
  24. In Solaris 2.0, ttyadm has a -T option, whose value is inserted
  25. into the appropriate /etc/saf/<pmtag>/_pmtab.
  26.  
  27. In SVR4 on 3B2's ... none of the above work.  Hack up a script
  28. which figures it out and source it from every user's .login/.profile,
  29. I guess.
  30.  
  31.  
  32. From: mju@mudos.ann-arbor.mi.us (Marc Unangst)
  33.     You're looking in the wrong place.  Try /etc/ttytype.
  34.  
  35. From: nto2584@dsaca1.dsac.dla.mil (Steven C. Payne)
  36.     I did what you are trying by putting an entry in the profile
  37.     which did a check on the tty, and based on that, it initialized
  38.     the tty to whatever.
  39.  
  40. From: mcb@mach.eng.hou.compaq.com (Mike Busby)
  41.     Under SysV.3 there was a file called /etc/ttytype that contained this
  42.     info.  The structure was 'TERM tty', one per line.  For example:
  43.  
  44. From: ade@clark.edu (Adrian Miranda)
  45.     Have you tried /etc/ttytype?  Seems to work for me.  I believe login
  46.     is the program that actually looks at it...
  47.  
  48. From: Rick.McNeal@Central.Sun.COM (Rick McNeal)
  49.     I just looked at the Solaris 2.0 source for ttymon and there's a
  50.     -T flag which alows you to set the term type on the command line.
  51.     I don't have the man pages handy to see if this is documented or not.
  52.  
  53. From: David.Miner@East.Sun.COM (Dave Miner)
  54.     Below is an example which essentially worked at one point during
  55.     development, and I presume still does though I haven't tried it in
  56.     over a year.
  57.        System V traditonally had inittab to allow this functionality and
  58.        SunOS has ttytab.  In SVr4 you have to do something like the
  59.        following... (set terminal type for ttyb)
  60.  
  61.        sacadm -a -p ttymon1 -t ttymon -c /usr/lib/saf/ttymon -v `ttyadm -V`
  62.  
  63.        pmadm -a -p ttymon1 -s ttyb -i root -fu -v `ttyadm -V` \
  64.        -m "`ttyadm -d /dev/ttyb -l 9600 \
  65.        -s '/usr/bin/login -h {hostname} TERM=tvi925' -m ldterm -p
  66.        \"ttyb login: \"`"
  67.  
  68. -- 
  69. Ron Stanonik
  70. stanonik@nprdc.navy.mil
  71. ucsd!nprdc!stanonik
  72.