[CentOS] How to display the IP on the welcome screen [SOLVED]

Wed Apr 21 09:08:39 UTC 2010
Patrick DERWAEL <patrick at derwael.be>

Well, I have had to tweak this it a little, bit it finally worked fine.
Initlally, the arial.ttf could not be found, so that I had to force the use
of courier regular
I'm using the standard default Treeflower theme.
The following does toe job:

cd /usr/share/gdm/themes/TreeFlower/background.png \
/usr/share/gdm/themes/TreeFlower/background-original.png

gedit /etc/gdm/Init/Default

Insert the following lines
cd /usr/share/gdm/themes/TreeFlower
convert -pointsize 40 -font Courier-Regular -draw \
"fill yellow text 1500,200 \" \
`ifconfig eth0 | awk '/inet addr/{print $2 }'`\"" \
background-original.png background.png

between
sysmodmap=/etc/X11/Xmodmap

and
XMODMAP=`gdmwhich xmodmap`

Thanks for the help !!

2010/4/21 Mogens Kjaer <mk at crc.dk>

> On 04/20/2010 07:49 PM, Patrick Derwael wrote:
> > Ideally, it should be displayed on the GUI, like the date/time and
> hostname
>
> http://elder-geek.blogspot.com/2009/09/ip-address-on-gdm-login-page.html
>
> Mogens
> --
> Mogens Kjaer, Carlsberg A/S, Computer Department
> Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
> Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25
> Email: mk at crc.dk Homepage: http://www.crc.dk
>  _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Patrick Derwael
Rue Hubert Larock, 20
4280 Hannut
G: 0479/80.50.79
T: 019/63.64.45
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20100421/11b83f07/attachment-0002.html>