Privacy and Security Notice

XDM Banner for Linux

XDM Banner for Linux

Here is a note from Frank Wesselmann on setting up a banner for display by XDM.

The gif file that Frank mentions is displayed at the bottom of this page and may be saved and used on your machine.



  My approach to getting the graphical login to show a banner
  is based on the RH 6 Gnome setup.  Specifically, I have
  modified the file

    /etc/X11/xdm/Xsetup_0

  which is responsible for putting the RedHat logo on the
  login screen.  My version looks like this:

  ------------------------------------------------------------
  #!/bin/sh
  # Xsetup for Red Hat Linux 6.0
  # Copyright (c) 1999 Red Hat Software, Inc.

  pidof -s kdm > /dev/null 2>&1
  if [ $? -eq 0 -a -x /usr/bin/kdmdesktop ]; then
    /usr/bin/kdmdesktop
  else
    /usr/X11R6/bin/xsetroot -solid "#356390"
  fi

  # only set the background if the xsri program is installed
  if [ -x /usr/bin/xsri ]; then
   /usr/bin/xsri -geometry +5+5 -avoid 300x250 -keep-aspect \
	    /usr/share/pixmaps/redhat/redhat-transparent.png
   /usr/bin/xsri -geometry +128+600 -avoid 300x250 \
	    -keep-aspect \
	    /usr/share/pixmaps/local/DOE-notice-transparent.gif
  fi
  ------------------------------------------------------------

  Only the 2nd-to-last line is actually different from the
  default installation.  I am attaching my banner file, as
  well.

  For completeness, here's my rc.local which rewrites the 2
  issue files on boot:

  ------------------------------------------------------------
  #!/bin/sh
  #
  # This script will be executed *after* all the other init scripts.
  # You can put your own initialization stuff in here if you don't
  # want to do the full Sys V style init stuff.

  if [ -f /etc/redhat-release ]; then
	R=$(cat /etc/redhat-release)

	arch=$(uname -m)
	a="a"
	case "_$arch" in
		_a*) a="an";;
		_i*) a="an";;
	esac
	=

	NUMPROC=`grep -cl "^cpu[0-9]+" /proc/stat`
	if [ "$NUMPROC" -gt "1" ]; then
	    SMP="$NUMPROC-processor "
	    if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
		a="an"
	    else
		a="a"
	    fi
	fi

	# This will overwrite /etc/issue at every boot.  So,
      # make any changes you want to make to /etc/issue here or
      # you will lose them when you reboot.

	# modified for Jlab
	# echo "" > /etc/issue
	cp -f /etc/Jlab.DOE.Banner /etc/issue
	echo "$R" >> /etc/issue
	echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue

	cp -f /etc/issue /etc/issue.net
	echo >> /etc/issue
  fi

[DOE Banner] align=center

This document is maintained by {helpdesk@jlab.org}

Copyright Jefferson Lab 2007