Newsgroups: comp.sys.next
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!cayenne.engin.umich.edu!dejnsen
From: dejnsen@caen.engin.umich.edu (Nik Anthony Gervae)
Subject: loginwindow name
Message-ID: <1991Mar24.220356.5417@engin.umich.edu>
Sender: news@engin.umich.edu (CAEN Netnews)
Organization: University of Michigan Engineering, Ann Arbor
Distribution: all
Date: Sun, 24 Mar 1991 22:03:56 GMT

  Leif Harrison asked yesterday about changing/setting the name on the
login window. Here's how. WARNING: if you goof this, your machine will
hang on (at least) multi-user boot. Have a boot OD on hand, or if you're
like me and have a slab, be *very* sure you want this feature (or are just
plain crazy). And yes, it's undocumented in 2.0.
  There is a file, called /etc/ttys, which contains a line much like this
near the top (spaces may or may not be tabs--you won't be changing those):


console	/usr/lib/NextStep/loginwindow	NeXT		on secure \
window=/usr/lib/NextStep/WindowServer onoption="/usr/etc/getty std.9600"


  This is one line--I added the \ to show that, but it's not in the file.
What you want to do is change the loginwindow part to specify a name.  Note
that you can only put a literal name here; you cannot have the hostname
automagically loaded in and put on the loginwindow. So here's the line,
changed for the desired result:


console	"/usr/lib/NextStep/loginwindow -HostName name-you-want"	NeXT \
on secure window=/usr/lib/NextStep/WindowServer onoption="/usr/etc/getty
std.9600"


  Where name-you-want is just text to show up (no quotes, no dollar sign,
no braces. This is not a variable, it's literal text). Note the double
quotes that are now around the loginwindow call--that call and all
options/arguments must be enclosed in double quotes or your system will
hang on startup (I know--I did this on a cube a while back ;-).
  Good luck and keep a boot disk handy, JIC!
  
  Nik A Gervae
  dejnsen@caen.engin.umich.edu
--
/-----------------------------------------------------------------------------\
| Nik A Gervae aka dejnsen@caen.engin.umich.edu  | "It'll be finished next    |
| CS/Linguistics student and NeRD at UM (yay.)   | week, I promise!"--me      |
|                                                | "Just say an iguana chewed |
| When all else fails, bug someone who knows     | up your textbook."--Jason  |
| (not me!).                                     |                     Fox    |
