Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm not sure about adding something before the login: prompt (man login or man agetty doesn't say much) but you can always edit /etc/issue and /etc/issue.net to change the message above the prompt.
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
It depends on whether you are using agetty or getty. with getty, it's possible without recompilation. With agetty, it doesn't look to be possible, but if you figure out how, let us know.
Anyone know a site that lists what switches are available for the /etc/issue file? I had a list of the switches available for the PS1 variable but I lost it.
jaya, if you installed it, next time you choose to login, login to KDE instead of the default (gnome 2.2) and go to K -> Control Center From there you should be able to find your way around the tree on the left to change the logon words (you gotta use admin mode, but thats just a button ) ... however
Anyone know a site that lists what switches are available for the /etc/issue file?
from 'man agetty':
Code:
The issue-file (/etc/issue or the file set with the -f option) may con-
tain certain escape codes to display the system name, date and time
etc. All escape codes consist of a backslash (\) immediately followed
by one of the letters explained below.
b Insert the baudrate of the current line.
d Insert the current date.
s Insert the system name, the name of the operating system.
l Insert the name of the current tty line.
m Insert the architecture identifier of the machine, eg. i486
n Insert the nodename of the machine, also known as the hostname.
o Insert the domainname of the machine.
r Insert the release number of the OS, eg. 1.1.9.
t Insert the current time.
u Insert the number of current users logged in.
U Insert the string "1 user" or "<n> users" where <n> is the num-
ber of current users logged in.
v Insert the version of the OS, eg. the build-date etc.
Example: On my system, the following /etc/issue file:
This is \n.\o (\s \m \r) \t
displays as
This is thingol.orcan.dk (Linux i386 1.1.9) 18:29:30
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
From the posts, it doesn't appear as though jayakrishnan is interested in the /etc/issue file. S/He would like to have the login prompt say, "Welcome to $h" where $h is hostname. This has nothing to do with issue, it has to do with agetty's login prompt, which is not adjustable w/o recompiling agetty. Your console login shows something like:
Code:
This is thingol.orcan.dk (Linux i386 1.1.9) 18:29:30
thingol login:
does it not?
What is being requested is a way to do:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.