[comp.sys.next] Loginwindow name

dejnsen@caen.engin.umich.edu (Nik Anthony Gervae) (03/25/91)

  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    |

dejnsen@caen.engin.umich.edu (Nik Anthony Gervae) (03/25/91)

  I just got a message from someone who providedme with this alternative to 
editing the /etc/ttys file:

  In article <1991Mar24.220356.5417@engin.umich.edu> you write:
  >
  >  Leif Harrison asked yesterday about changing/setting the name on the
  >login window. Here's how. WARNING: if you goof this, your machine will
	
  There is another undocumented (and probably unsupported method) that is a
  little less dangerous.  As root, open a terminal and type:
	
  		dwrite loginwindow HostName localhost
	
  This will set the login banner to "localhost" when its off the network and
  to the given hostname if its on the net.
	
  Once you do this, log out and reboot.
	
  Hope that helps.  Please feel free to post this out if you like,
  but I'd prefer that you remove my name first.

------------------
  So there you are. A "safe" way to do it.

  Nik.
--
/ Nik Gervae aka dejnsen@caen.engin.umich.edu  | "It'll be finished next week, \
| CS/Linguistics stud. & NeRD at UM (go blow)  | I promise!"--me               |
|                                              |                               |
| **When all else fails, bug someone who knows | "Just say an iguana chewed    |
\   (not me!).                                 | up your textbook."--Jason Fox /