Re: How to display the IP on the welcome screen [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxx>
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@xxxxxx Homepage: http://www.crc.dk
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux