pantz.org banner
GDM login banner for CentOS
Posted on 09-26-2008 16:45:24 UTC | Updated on 09-26-2008 16:59:25 UTC
Section: /software/gdm/ | Permanent Link

Trying to get CentOS 5 to display a login banner is not as easy as it would seem. It should be as easy as running gdmsetup as a privileged user. Under Local tab there is a section called "Welcome Message". You click custom and type in your message and close the window. Logout and hit ctrl-alt-backspace to restart X. I get no message. I try to run gdm-restart from a tty. It restarts gdm and comes back to the login term with the same themed CentOS gdm screen. I figure out eventually that in gdm-setup you have to turn off themes to get the welcome message to show up. Under the gdm-setup local tab you have to choose Style: Plain. Then close and restart.

The way I found this out was not easy as I just figured it was smart enough to know that if you choose a message to display it would know to turn themes off. I guess not. So I found out about turning themes off by actually changing the config file for gdm that CentOS uses. To do this you need to edit the /etc/gdm/custom.conf file.

In the [daemon] section put the following line.

Greeter=/usr/libexec/gdmlogin

In the [greeter] section put the following lines.

DefaultWelcome=false
Welcome=Authorized users only!
ChooserButton=false

Then just restart X (ctl-alt-backspace) or issue the command gdm-restart from a term. If you log back in after restarting gdm and then run gdmsetup you will see that themes where turned off. That is when it hit me that unless your theme has the message embedded it it you will never see your welcome message with themes turned on. gdm-setup should be a bit smarter than this.

Just a note that on Debian/Ubuntu systems custom file is /etc/gdm/gdm.conf-custom. Also, you don't need the daemon section above for Debian/Ubuntu.

Del.icio.us! | Digg Me! | Reddit!

Related stories


RSS Feed RSS feed logo
About


3com
3ware
alsa
alsactl
alsamixer
amd
android
apache
areca
arm
ati
auditd
awk
badblocks
bash
bind
bios
bonnie
cable
carp
cat5
cdrom
cellphone
centos
chart
chrome
cifs
cisco
cloudera
comcast
commands
comodo
compiz-fusion
corsair
cpufreq
cpufrequtils
cpuspeed
cron
crontab
crossover
cu
cups
cvs
database
dbus
dd
dd_rescue
ddclient
debian
decimal
dhclient
dhcp
diagnostic
diskexplorer
disks
dkim
dns
dos
dovecot
drac
dsniff
dvdauthor
e-mail
echo
editor
emerald
ethernet
expect
ext3
ext4
fat32
fedora
fetchmail
fiber
filesystems
firefox
firewall
flac
flexlm
floppy
flowtools
fonts
format
freebsd
ftp
gdm
gmail
gnome
greasemonkey
greylisting
growisofs
grub
hacking
hadoop
harddrive
hba
hex
hfsc
html
html5
http
https
idl
ie
ilo
intel
ios
iperf
ipmi
iptables
ipv6
irix
javascript
kde
kernel
kickstart
kmail
kprinter
krecord
kubuntu
kvm
lame
ldap
linux
logfile
lp
lpq
lpr
maradns
matlab
memory
mencoder
mhdd
mkinitrd
mkisofs
moinmoin
motherboard
mouse
movemail
mplayer
multitail
mutt
myodbc
mysql
mythtv
nagios
nameserver
netflix
netflow
nginx
nic
ntfs
ntp
nvidia
odbc
openbsd
openntpd
openoffice
openssh
openssl
openvpn
opteron
parted
partimage
patch
perl
pf
pfflowd
pfsync
photorec
php
pop3
pop3s
ports
postfix
power
procmail
proftpd
proxy
pulseaudio
putty
pxe
python
qemu
r-studio
raid
recovery
redhat
router
rpc
rsync
ruby
saltstack
samba
schedule
screen
scsi
seagate
seatools
sed
sendmail
sgi
shell
siw
smtp
snort
solaris
soundcard
sox
spam
spamd
spf
sql
sqlite
squid
srs
ssh
ssh.com
ssl
su
subnet
subversion
sudo
sun
supermicro
switches
symbols
syslinux
syslog
systemrescuecd
t1
tcpip
tcpwrappers
telnet
terminal
testdisk
tftp
thttpd
thunderbird
timezone
ting
tls
tools
tr
trac
tuning
tunnel
ubuntu
unbound
vi
vpn
wget
wiki
windows
windowsxp
wireless
wpa_supplicant
x
xauth
xfree86
xfs
xinearama
xmms
youtube
zdump
zeromq
zic
zlib