![]() | ![]() | ![]() | ![]() |
|
faq search add article cool-stuff how-to main tips |
Posted by Jason on Monday December 10, @11:36AMfrom the why-not dept. There are many ways to customize your login. The two I will discuss are issue and motd, issue controls what will be displayed before the login prompt, and motd displays it's contents after a user logs on to the system. In the file /etc/motd you will find the contents of the default motd (message of the day). Whatever text is in this file will be displayed after a user logs on to the system. To have it display a custom message, simply replace it's current content with your own text. Commonly you will see an motd something like this: Welcome to server F44lab at geekvenue.net Using the issue file is less straight forward if you are not running FreeBSD 4.4-RELEASE or better. That's because issue is called from your /etc/gettytab file. You should check your gettytab file and see if the default tag has an if (input file) statement specified. This is done for you in FBSD-4.4, here is what it looks like: default:\     :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\     :if=/etc/issue: If you need to modify your gettytab file, I strongly recommend you be extremely careful and make a backup copy of the file first: cd /etc Now create a text file called issue in your /etc directory with any text you would like displayed before users log on to the system. All you have to do to test if it works is logout, your message should be displayed above the standard login prompt. If you really want to get fancy install the figlet app from the ports tree (/usr/ports/misc/figlet) and generate some figlet'd text to display like so: figlet F44lab>/etc/issue If you are unfamilar with figlet, you should take a look at it. It is a very small program that will generate large charachters made up of regular screen characters. It is often used to make interesting email signatures. To get more information on these commands, check the man pages: man motd man figlet man gettytab < | >
|
|
||||||||||||||||||
|
||||||||||||||||||||
| "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate |
|
| All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann. |