Hi,

Add the content of the file  /etc/issue in the file /etc/gdm/custom.conf .
See the line :

....
.....
.....
[gui]

[greeter]
TitleBar=true
LockPosition=false
ConfigAvailable=false
BackgroundType=1
BackgroundImage=YOUR BACKGROUND IMAGE
Logo=YOUR LOGO
DefaultWelcome=false
Welcome=%s: %r - %n
InfoMsgFile=/etc/issue <--------------ADD HERE THE FILE
Use24Clock=true

....
....



Restart X11, and a new window will be appear with the content of the file 
/etc/issue


Regards.







-----Message d'origine-----
De : centos-boun...@centos.org [mailto:centos-boun...@centos.org] De la part de 
Patrick Derwael
Envoyé : mardi 20 avril 2010 19:49
À : 'CentOS mailing list'
Objet : Re: [CentOS] How to display the IP on the welcome screen

This is a good step, but how do I get the contents of /etc/issue on the gui
??



Patrick Derwael
Rue Hubert Larock, 20
4280 Hannut - Belgique
G: +32 (0)479.80.50.79
T : +32 (0)19.63.64.45
 

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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
__________________________

Ce message (et toutes ses pièces jointes éventuelles) est confidentiel et 
établi à l'intention exclusive de ses destinataires. Toute utilisation de ce 
message non conforme à sa destination, toute diffusion ou toute publication, 
totale ou partielle, est interdite, sauf autorisation expresse. L'IFP décline 
toute responsabilité au titre de ce message.

This message and any attachments (the message) are confidential and intended 
solely for the addressees. Any unauthorised use or dissemination is prohibited. 
IFP should not be liable for this message.

Visitez notre site Web / Visit our web site : http://www.ifp.fr
__________________________

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to