Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 2001 13:42:20 -0800
From:      rsowders@usgs.gov
To:        Brent B.Powers <powers@b2pi.com>
Cc:        freebsd-questions@FreeBSD.ORG, "Power JeSsIe!" <jessie@power-jessie.net>, owner-freebsd-questions@FreeBSD.ORG
Subject:   Re:login text
Message-ID:  <OFCC016BB7.EDEBEC02-ON882569FC.006C6EC6@wr.usgs.gov>

next in thread | raw e-mail | index | archive | help
Check out man gettytab.  Pay attention to, initial message or "im", login 
message or "lm", and initial file "if'.  You can also change the colors, 
but that's an ansi escape squence story.  What you're looking for is in 
/etc/gettytab.  Before editing this file make a backup.


To change the login prompt add the "lm" string to the end of the default. 
Mine looks like this:

default:\
        :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:

Now add the "lm" string to the end after the colon.
For instance, 
lm=Let's Rock\72 
would chang your login prompt to 
Let's Rock:
Change the word login to what ever you want.  Length of string is limited.

You can also change the initial message if you like.  Look for the "im" 
string.  Mine looks like this.
 
default:\
        :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:

Change it to whatever you want.  The special character %s and %m have 
special meaning to gettytab.  For instance %s will be replaced with name 
of operating system.  See man gettytab for others.

To see your changes, run ps -ax and look for ttyv7 then kill -HUP pid of 
ttyv7 then press alt F8.  This will show you the changes you just made. If 
it blows up you always have your backup copy.

Have fun.





Brent B.Powers <powers@b2pi.com>
Sent by: owner-freebsd-questions@FreeBSD.ORG
02/23/2001 07:54 AM

 
        To:     "Power JeSsIe!" <jessie@power-jessie.net>
        cc:     <freebsd-questions@FreeBSD.ORG>
        Subject:        Re:login text

>>>>> "Jessie" == Power JeSsIe! <jessie@power-jessie.net> writes:

    Jessie> thanks everyone for the quick response to my post (my
    Jessie> first one actually :) you people are great!

    Jessie> i have another question...

    Jessie> is there a way to edit the text that comes out in the
    Jessie> login screen:

    Jessie> ---- FreeBSD/i386 (myhost.mydomain.com) (ttyv1)

    Jessie> login: ---

    Jessie> is that stored in a file or does the kernel need to be
    Jessie> recompiled for it to be change?

    Jessie> i'm just curious.

Check out /etc/motd


    Jessie> thanks.

    Jessie> jessie




    Jessie> To Unsubscribe: send mail to majordomo@FreeBSD.org with
    Jessie> "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OFCC016BB7.EDEBEC02-ON882569FC.006C6EC6>