LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2012, 07:02 PM   #1
socalheel
Member
 
Registered: Oct 2012
Location: Raleigh, NC
Distribution: CentOS / RHEL
Posts: 135

Rep: Reputation: 3
Adding banner to GDM Greeter theme (RHEL login screen)


I am working on hardening a server to meet DoD requirements. I'm having a problem with adding a warning banner to the logon screen. I am using RHEL 5.5. The error I continually get is XML Parse error.

The /usr/share/gdm/themes/RHEL/RHEL.xml file is listed below.

Code:
<?xml version="1.O"?>
<!DOCTYPE greeter SYSTEM "greeter.dtd">
<greeter>

<item type="pixmap">
  <pos anchor="nw" x="0" y="0" width="100%" height="100%"/>
  <normal file="background.png" color="#cc0000"/>
</item>

<item type="rect">
  <box xpadding="15">
  <item type="label">
    <pos anchor="nw" x="10%" y="10%" width="box"/>
    <normal font="Serif 20" color="#ffffff"/>
<text>DoDIIS Linux Build Version 2.2.0</text>
</item>
<item type="label">
<normal font="Serif 12" color="#ffffff"/>
<text>%h</text>
</item>
<item type="label">
<normal font="Serif 12" color="#ffffff"/>
</item>
</box>
</item>
<item type="rect">
<pos anchor="w" x="70%" y="8S%" width="25%" height="100%"/>
<box xpadding="15">
<item type="label">
<normal font="San 12" color="#ffff00"/>
<text>
This Automated Information System (AIS) is subject to Monitoring at all times.<br/>
Use of this AIS constitutes consent to monitoring.
</text>
</item>
</box>
</item>
<!-- login w/selection -->
<item type="rect">
<pos anchor="sw" x="20%" y="80%" width="box" height="10%"/>
<box orientation="vertical" xpadding="30" spacing="5">
<item type="label" id="timed-label">
<show type="timed"/>
<pos anchor="c" x="50%" y="50%" width="100%" height="100%"/>
<normal color="#ffffff" font="Sans Bold 12"/>
<stock type="timed-label"/>
</item>
<item type="rect">
<pos anchor="c" x="50%" y="20%" width="100%" height="box"/>
<box orientation="vertical" xpadding="15">
<item type="label" id="pam-prompt">
<pos anchor="nw" x="0" y="0"/>
<normal font="Sans 16" color="#ffffff"/>
<stock type="username-label"/>
</item>
<item type="entry" id="user-pw-entry">
<pos anchor="nw" x="0" y="0" width="100%" height="26"/>
<normal font="Sans 13" color="#000000"/>
</item>
</box>
</item>
<item type="rect">
<pos x="5%" y="0" width="box" height="box"/>
<box orientation="vertical" spacing="15" ypadding="5">
<item type="label" id="caps-lock-warning">
<pos anchor="c" x="50%" y="50%" width="388" height="100%"/>
<normal color="#ffffff" font="Sans Bold 14"/>
<stock type="caps-lock-warning"/>
</item>
<item type="rect">
<pos anchor="c" x="50%" y="50%" width="388" height="box"/>
<box>
<item type="label" id="pam-error">
<normal color="#ffffff' font="Sans 13"/>
<pos anchor="c" x="50%" y="50%" width="100%" height="100%"/>
<text></text>
</item>
</box>
</item>
</box>
</item>
<item type="rect">
<pos anchor="sw" x="0" y="100%" width="box" height="box"/>
<box orientation="horizontal" ypadding="10">
<item type="rect">
<pos anchor="nw" x="0" y="0" width="box" height="box"/>
<box orientation="horizontal">
<item type="rect" id="language_button" button="true">
<pos y="50%" anchor="w" width="box" height="box"/>
<box orientation="horizontal" xpadding="6">
<item type="pixmap">
<normal file="icon-language.png"/>
</item>
<item type="label">
<active color="#b49d9c" font="Sans Bold 12"/>
<prelight color="#ccabbb" font="Sans Bold 12"/>
<normal color="#ffffff" font="Sans Bold 12"/>
<pos y="50%" anchor="w"/>
<stock type="language"/>
</item>
</box>
</item>
<item type="rect" id="session_button" button="true">
<pos y="50%" anchor="w" width="box" height="box"/>
<box orientation="horizontal" xpadding="6">
<item type="pixmap">
<normal file="icon-session.png"/>
</item>
<item type="label">
<active color="#b49d9c" font="Sans Bold 12"/>
<prelight color="#ccabbb" font="Sans Bold 12"/>
<normal color="#ffffff" font="Sans Bold 12"/>
<pos y="50%" anchor="w"/>
<stock type="session"/>
</item>
</box>
</item>
<item type="rect" id="reboot_button" button="true">
<show modes="console" type="reboot"/>
<pos y="50%" anchor="w" width="box" height="box"/>
<box orientation="horizontal" xpadding="6">
<item type="pixmap">
<normal file="icon-reboot.png"/>
</item>
<item type="label">
<active color="#b49d9c" font="Sans Bold 12"/>
<prelight color="#ccabbb" font="Sans Bold 12"/>
<normal color="#ffffff" font="Sans Bold 12"/>
<pos y="50%" anchor="w"/>
<stock type="reboot"/>
</item>
</box>
</item>
<item type="rect" id="halt_button" button="true">
<show modes="console" type="halt"/>
<pos y="50%" anchor="w" width="box" height="box"l>
<box orientation="horizontal" xpadding="6">
<item type="pixmap">
<normal file="icon-shutdown.png"/>
</item>
<item type="label">
<active color="#b49d9c" font="Sans Bold 12"/>
<prelight color="#ccabbb" font="Sans Bold 12"/>
<normal color="#ffffff" font="Sans Bold 12"/>
<pos y="50%" anchor="w"/>
<stock type="halt"/>
</item>
</box>
</item>
<item type="rect" id="disconnect_button" button="true">
<show modes="flexi,remote"/>
<pos y="50%" anchor="w" width="box" height="box"/>
<box orientation="horizontal" xpadding="6">
<item type="pixmap">
<normal file="icon-shutdown.png"/>
</item>
<item type="label">
<show modes="remote"/>
<active color="#b49d9c" font="Sans Bold 12"/>
<prelight color="#ccabbb" font="Sans Bold 12"/>
<normal color="#ffffff" font="Sans Bold 12"/>
<pos y="50 anchor="w"/>
<stock type="disconnect"/>
</item>
<item type="label">
<show modes="flexi"/>
<active color="#b49d9c" font="Sans Bold 12"/>
<prelight color="#ccabbb" font="Sans Bold 12"/>
<normal color="#ffffff" font="Sans Bold 12"/>
<pos y="50%" anchor="w"/>
<stock type="quit"/>
</item>
</box>
</item>
</box>
</item>
</box>
</item>
</box>
</item>
</greeter>

Last edited by unSpawn; 10-24-2012 at 07:32 PM. Reason: //Add code tags before move
 
Old 10-26-2012, 02:20 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,665

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
Have you run xmllint?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Remove GDM greeter theme form the command line ceh383 Slackware 2 03-13-2012 09:48 AM
Login Warning Banner or Greeter /etc/gdm/custom.conf johnmccarthy Linux - Newbie 2 08-03-2010 09:30 PM
Adding banner to RHEL.xml mijohnst Programming 1 04-08-2008 04:28 PM
login screen banner mijohnst Linux - Enterprise 2 04-06-2008 02:00 AM
Creating Graphical Greeter Login Screen BlandoCal Fedora 4 11-03-2006 01:31 AM


All times are GMT -5. The time now is 06:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration