[opensuse-factory] [RFC] improve tty/serial console login prompt with network infromation

Hi, I run a few virtual machines for development and experiments, of course I create and kill them all the time. Also I sometimes plays with ARM JeOSes, constantly trying to fix the things on my BeagleBone Black. Usually it looks like dd_rescue new image onto sd, boot the system, and dispose sd card. Common issue here, that initially I see the boot process of the newly deployed operating system through the console, serial console in case of ARM board, or 'virtual' text tty console in case of virtual machine manager. It usually ends up with the things kind of the following: Starting Network Manager Script Dispatcher Service... [ OK ] Started Network Manager Script Dispatcher Service. [ OK ] Started X Display Manager. [ OK ] Created slice user-490.slice. Starting User Manager for UID 490... Welcome to openSUSE Factory "Harlequin" - Kernel 3.18.0-rc6-5-default (ttyO0). linux login: And in most cases, the first step here is to login to find the current IP address. I would like to see something like the following instead: [ OK ] Started X Display Manager. [ OK ] Created slice user-490.slice. Starting User Manager for UID 490... Welcome to openSUSE Factory "Harlequin" - Kernel 3.18.0-rc6-5-default (ttyO0). lo: link/loopback inet 127.0.0.1/8 eth0: link/ether c8:a0:30:af:5d:96 inet 192.168.185.23/24 linux login: I.e. I would like to see IP addresses before login prompt, like CoreOS does. As cloud computing services and virtualization grow nowadays I think this can be suitable and useful for almost all users. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Tuesday 2014-12-02 19:35, Matwey V. Kornilov wrote:
I would like to see something like the following instead:
[ OK ] Started X Display Manager. [ OK ] Created slice user-490.slice. Starting User Manager for UID 490...
Welcome to openSUSE Factory "Harlequin" - Kernel 3.18.0-rc6-5-default (ttyO0).
lo: link/loopback inet 127.0.0.1/8 eth0: link/ether c8:a0:30:af:5d:96 inet 192.168.185.23/24
linux login:
I.e. I would like to see IP addresses before login prompt
You are free to change your init's configuration so as to run a different getty program that implements dumping that information periodically (because it can change). Second, it would probably fill lots of screenfuls in cases where there are lot of addresses (like xen dom0s..), so not something I would want to see on my screens. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-12-02 19:35, Matwey V. Kornilov wrote:
Common issue here, that initially I see the boot process of the newly deployed operating system through the console, serial console in case of ARM board, or 'virtual' text tty console in case of virtual machine manager.
It usually ends up with the things kind of the following:
Starting Network Manager Script Dispatcher Service... [ OK ] Started Network Manager Script Dispatcher Service. [ OK ] Started X Display Manager. [ OK ] Created slice user-490.slice. Starting User Manager for UID 490...
Welcome to openSUSE Factory "Harlequin" - Kernel 3.18.0-rc6-5-default (ttyO0).
The local login message comes from "/etc/issue", and the remote one comes from "/etc/issue.net", but you don't see it via ssh. Of course, it is documented in "man issue". You could have a job in "/etc/init.d/after.local" so that it modifies the welcome message, adding the IP address, if after reading the documentation you don't find a variable that contains it. My solution is different: I use vmplayer, and I modify its dhcpd configuration so that the same fixed IP is assigned to each virtual machine. Huh, I mean, a different but fixed IP for each. Each upgrade of vmware undoes it, but it is easy to reapply. I can explain more if you wish to go that road. Having a fixed IP allows you to configure names in the DNS server. Another method would be to disable somehow the internal dhcp server in vmware, and instead use dnsmasq to serve dhcp in combination with names. This would be easier to configure, IF somebody knows how to disable vmware dhcp. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlR+Ps8ACgkQtTMYHG2NR9UZpQCfVq2bxd01NF/+ts+A5fOlyIbg r2cAnjez6i5PsQfrYjz72PAwXV0K+cfc =STE2 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Jan Engelhardt
-
Matwey V. Kornilov