Re: How to display the IP on the welcome screen

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



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-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] De la part de Patrick Derwael
Envoyé : mardi 20 avril 2010 19:49
À : 'CentOS mailing list'
Objet : Re:  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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
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@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