Link to home
Start Free TrialLog in
Avatar of markpalinux
markpalinuxFlag for United States of America

asked on

have the ubuntu server text mode logon screen show current IP addresses

Ubuntu 6.06 LTS server - is the version. It boots to the text logon screen.

Question is how to get the logon screen to display the IP address.

The reason is that the install is a VMware Image running on a laptop, the image gets different IP addresses depending where I boot it up at, I would like to see that IP address along with the logon screen.

If there is a linux term for that text mode logon screen please let me know (tty1)?.

I used a VMware image from rPath that had this feature, but am not longer running it.

Thanks,
Mark
Avatar of xalaros
xalaros

Hi there,

First of all which greeting message you're seeing at logon depends on the way you're trying to login e.g. when you're opening a local console to the system the file /etc/issue is read and displayed back to you, while when you try to remote connect to the machine /etc/issue.net does the job. After that the file /etc/motd is diplayed back to your terminal but only after a successfull login.

Now, the files /etc/issue & /etc/issue.net accepts some escaped characters that are after translated by the mingetty program to something that makes sense to you.

From the manual page of mingetty:
       \d     insert current day (localtime),
       \l     insert line on which mingetty is running,
       \m     inserts machine architecture (uname -m),
       \n     inserts machineâs network node hostname (uname -n),
       \o     inserts domain name,
       \r     inserts operating system release (uname -r),
       \t     insert current time (localtime),
       \s     inserts operating system name,
       \u     resp. \U the current number of users which are currently logged in.  \U inserts
              "n users", where as \u only inserts "n".
       \v     inserts operating system version (uname -v).

Can't find anything that applies to your problem. I hope that someone else holds the answer so we can both learn something :)

Just my 5c,
/x
Avatar of markpalinux

ASKER

xalaros,

I think this page has the script to read and report the ip addresses, can you give info on how I can combine them.

http://bash.cyberciti.biz/script/read-ip-address.bash.php

I am running Ubuntu 7.04 Feisty Fawn

Thanks,
Mark
ASKER CERTIFIED SOLUTION
Avatar of xalaros
xalaros

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial