From owner-freebsd-questions Fri Feb 23 13:42:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gscamnlh01.wr.usgs.gov (gscamnlh01.wr.usgs.gov [130.118.4.115]) by hub.freebsd.org (Postfix) with ESMTP id 458C237B4EC; Fri, 23 Feb 2001 13:42:22 -0800 (PST) (envelope-from rsowders@usgs.gov) To: Brent B.Powers Cc: freebsd-questions@FreeBSD.ORG, "Power JeSsIe!" , owner-freebsd-questions@FreeBSD.ORG Subject: Re:login text X-Mailer: Lotus Notes Release 5.0.3 March 21, 2000 Message-ID: From: rsowders@usgs.gov Date: Fri, 23 Feb 2001 13:42:20 -0800 X-MIMETrack: Serialize by Router on gscamnlh01/SERVER/USGS/DOI(Release 5.0.3 |March 21, 2000) at 02/23/2001 01:42:21 PM, Serialize complete at 02/23/2001 01:42:21 PM MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 Sent by: owner-freebsd-questions@FreeBSD.ORG 02/23/2001 07:54 AM To: "Power JeSsIe!" cc: Subject: Re:login text >>>>> "Jessie" == Power JeSsIe! 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