Translate

Thursday, June 13, 2013

Tips and Tricks for OpenBSD - Post Login Messages

.: How to configure post login messages on OpenBSD :.

Again, Linux users who know the /etc/issue file are going to love this one!

Wait! OpenBSD doesn't have this file, but you're ok if you have the /etc/gettytab on your filesystem (or if you can create one!).

See the example:

# $OpenBSD: gettytab,v 1.4 2000/09/08 02:27:36 pjanzen Exp $
#
# Most of the table entries here are just copies of the old getty table.
# It is by no means certain, or even likely, that any of them are optimal
# for any purpose whatever. Nor is it likely that more than a couple are
# even correct.
#
# The default gettytab entry, used to set defaults for all other
# entries, and in cases where getty is called with no table name
#
# Original confs:
#default:\
# :np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:
# --------------------
# Your new configs should look like these new lines bellow:
default:\
     :np:im=\r\nYourServerName %s/%m :: Hostname:(%h)\r\n\r\n:sp#1200:

I hope this could help anybody! See ya!

;-)

No comments:

Post a Comment