Patrick DERWAEL
2010-Apr-20 14:00 UTC
[CentOS] How to display the IP on the welcome screen
Hi all, I'm running CentOS 5.4 in a VMware guest, with the host connected to a DHCP enabled LAN When CentOS comes up, I would like to see the IP adress displayed on the welcome screen. This would save me the hassle of logging in the VM, getting the IP, and logging off before finally ssh'ing to the VM. Does anyone have a clue on how to do this ?? Thanks! PS: security is not an issue as I'm running the VM on my local laptop PPS: this is a "confort" issue only (lazy me... I know !!!) -- Patrick Derwael Rue Hubert Larock, 20 4280 Hannut T: +32.(0)479/80.50.79 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100420/013db8d7/attachment-0002.html>
m.roth at 5-cent.us
2010-Apr-20 14:11 UTC
[CentOS] How to display the IP on the welcome screen
> Hi all, > > I'm running CentOS 5.4 in a VMware guest, with the host connected to a > DHCP enabled LAN > When CentOS comes up, I would like to see the IP adress displayed on the > welcome screen. > This would save me the hassle of logging in the VM, getting the IP, and > logging off before finally ssh'ing to the VM. > > Does anyone have a clue on how to do this ??man ssh ssh <servername> ifconfig | grep "inet addr" mark
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Patrick DERWAEL Sent: Tuesday, April 20, 2010 4:01 PM To: centos at centos.org Subject: [CentOS] How to display the IP on the welcome screen Hi all, I'm running CentOS 5.4 in a VMware guest, with the host connected to a DHCP enabled LAN When CentOS comes up, I would like to see the IP adress displayed on the welcome screen. This would save me the hassle of logging in the VM, getting the IP, and logging off before finally ssh'ing to the VM. ============ Is this to be shown on the GUI welcome screen or when you eg ssh in? -- /Sorin -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5110 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20100420/1f28dc11/attachment-0002.bin>
Sorin Srbu a ?crit :> From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf > Of Patrick DERWAEL > Sent: Tuesday, April 20, 2010 4:01 PM > To: centos at centos.org > Subject: [CentOS] How to display the IP on the welcome screen > > Hi all, > I'm running CentOS 5.4 in a VMware guest, with the host connected to a DHCP > enabled LAN > When CentOS comes up, I would like to see the IP adress displayed on the > welcome screen. > This would save me the hassle of logging in the VM, getting the IP, and > logging off before finally ssh'ing to the VM. > > ============> > Is this to be shown on the GUI welcome screen or when you eg ssh in? > > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >try a bash script like the following : #!/bin/sh ADRESS=`ifconfig | grep "inet addr" | awk '{print $2}' | sed s/addr:// | head -n 1` echo "The IP adress is : $ADRESS." > /etc/issue -- Cordialement, / Greetings, Georghy FUSCO
Patrick Derwael
2010-Apr-20 17:49 UTC
[CentOS] How to display the IP on the welcome screen
Ideally, it should be displayed on the GUI, like the date/time and hostname -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Sorin Srbu Sent: mardi 20 avril 2010 16:22 To: 'CentOS mailing list' Subject: Re: [CentOS] How to display the IP on the welcome screen From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Patrick DERWAEL Sent: Tuesday, April 20, 2010 4:01 PM To: centos at centos.org Subject: [CentOS] How to display the IP on the welcome screen Hi all, I'm running CentOS 5.4 in a VMware guest, with the host connected to a DHCP enabled LAN When CentOS comes up, I would like to see the IP adress displayed on the welcome screen. This would save me the hassle of logging in the VM, getting the IP, and logging off before finally ssh'ing to the VM. ============ Is this to be shown on the GUI welcome screen or when you eg ssh in? -- /Sorin