Linux Classification Banner

2,583 views
Skip to first unread message

Joshua L. Davis

unread,
Jan 2, 2014, 4:40:35 PM1/2/14
to Military Open Source Software
Question from outside the list...

"Hello we having been looking for a Classification Banner program for Linux platforms similar to the NetBanner program for Windows that would display a classification ribbon across the top of Linux desktops.  We work in a DoD environment and this has always been mandated for the Windows side.  I thought your group might have something or could point us in the right direction.

 

Thanks much"


Any ideas?


--
Josh
678.831.0182
@ijoshuadavis

Matthew

unread,
Jan 2, 2014, 4:54:57 PM1/2/14
to mil...@googlegroups.com

Gconf. Its actually a stig requirement.

--
--
You received this message because you are subscribed to the "Military Open Source Software" Google Group.
To post to this group, send email to mil...@googlegroups.com
To unsubscribe from this group, send email to mil-oss+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mil-oss?hl=en
 
www.mil-oss.org
 
---
You received this message because you are subscribed to the Google Groups "Military Open Source Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mil-oss+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Shawn Wells

unread,
Jan 2, 2014, 4:55:49 PM1/2/14
to mil...@googlegroups.com

Frank Caviggia

unread,
Jan 2, 2014, 10:28:59 PM1/2/14
to mil...@googlegroups.com
Hey Josh,

I've developed the classification banner - I've added some features to allow global configuration in /etc/classification-banner:

vi /etc/classification-banner

   message = "CLASSIFICATION"
   fgcolor = "#000000"
   bgcolor = "#00CC00"

You can auto start the python script by adding the following to Gnome:

vi /etc/xdg/autostart/classification-banner.desktop

  [Desktop Entry]
  Name=Classification Banner
  Exec=/usr/local/bin/classification-banner.py
  Comment=User Notification for Security Level of System.
  Type=Application
  Encoding=UTF-8
  Version=1.0
MimeType=application/python;
Categories=Utility;
X-GNOME-Autostart-enabled=true
StartupNotify=false
Terminal=false

Chuck Atkins

unread,
Jan 3, 2014, 4:02:28 PM1/3/14
to mil...@googlegroups.com
And the pull requests begin :-)

Chuck Atkins
R&D Engineer, Kitware, Inc.
(518) 371-3971 x603
chuck....@kitware.com

-- "Mathematicians are tools for turning coffee grounds into formulas.", Paul Erdos

Joshua L. Davis

unread,
Jan 5, 2014, 9:43:27 PM1/5/14
to Military Open Source Software
thanks all for the help!

--
Josh
678.831.0182
@ijoshuadavis

Trevor Vaughan

unread,
Jan 6, 2014, 1:11:49 PM1/6/14
to mil...@googlegroups.com
I tried this just for kicks and here are a few of my observations (Gnome only):

* It gets really creative if you have two monitors and drops two bars at the bottom of the entire screen span unless they both have a Gnome bar
* You can simply drag them off of your screen using Alt and they'll be gone forever
* They tend to cover useful portions of maximized windows and it would be nice if they had a feature where they would retract down to a pixel if the mouse came near

I know, all whining and no patching but I'm hoping that it's at least constructive.

Thanks,

Trevor
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvau...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

Chuck Atkins

unread,
Jan 6, 2014, 1:15:40 PM1/6/14
to mil...@googlegroups.com
FWIW, I've usually implemented this by adding an additional panel with the classification level and color being part of the panel.

Chuck Atkins
R&D Engineer, Kitware, Inc.
(518) 371-3971 x603
chuck....@kitware.com

-- "Mathematicians are tools for turning coffee grounds into formulas.", Paul Erdos


Trevor Vaughan

unread,
Jan 6, 2014, 1:19:03 PM1/6/14
to mil...@googlegroups.com
Do you have any handy auto-code for that just to save the Googling. It would be interesting to compare the various alternatives.

Trevor

Chuck Atkins

unread,
Jan 6, 2014, 1:26:27 PM1/6/14
to mil...@googlegroups.com
No code, I just did it manually.  I usually only have to deal with a handful of machines
so it's not so critical for me to have an automated process.

Chuck Atkins
R&D Engineer, Kitware, Inc.
(518) 371-3971 x603
chuck....@kitware.com

-- "Mathematicians are tools for turning coffee grounds into formulas.", Paul Erdos


Frank Caviggia

unread,
Jan 6, 2014, 5:11:27 PM1/6/14
to mil...@googlegroups.com
Trevor,

For what it's worth, the Windows NetBanner program has similar behaviour (especially on the covering of maximized windows) - I've tried to make it as flexible as possible for configuration with the fonts, size, typeface, and the ability to toggle top and bottom.  As for multiple monitors, the problem is that there are several technologies inculding xinerama and twinview (nvidia binary) that have different behaviours and configurations.

The simple goal is to display something so that the user knows that they are processing data at a particular classification.

All contributions are welcome which is why I posted it to github...

Regards,

Frank Caviggia

Trevor Vaughan

unread,
Jan 6, 2014, 5:22:40 PM1/6/14
to mil...@googlegroups.com
Absolutely no complaints, just things to put on the backlog!

Far better than what I had yesterday.

Thanks,

Trevor

Kendrick Spencer

unread,
Mar 30, 2015, 10:33:32 AM3/30/15
to mil...@googlegroups.com
Hi All,

I have place the need files on the system from Frank Caviggia  post on Github (Thanks Frank) and it is not working. Have RedHat 6 box. When I run the python program for the terminal window I get this Error.

Traceback (most rencent call last):
     File "classification-banner.py", line 200, in<module>
              run=Display_Banner()
     File "classification-banner.py", line 129, in_init_
              self.execute(self.config)
     File "classification-banner.py", line 179, in execute
              options.weights)
     File "classification-banner.py", line 79, in_init_
              self
     IndexError: List index out of range

I'm not python programmer but it seem like it is have trouble with screen resolution. The system is running a NVIDIA Quadro 4000. Any help you all could provide with would be great!

-- K. Spencer

Frank Caviggia

unread,
Mar 30, 2015, 12:24:17 PM3/30/15
to mil...@googlegroups.com
Hey Kendrick,

Can you send me some output of 'xrandr' command? What version of RHEL 6 and are you using the binary driver - I might need to add a 'try:' statement like lines 67-86 of the python code. Also, try the latest version here:

https://github.com/fcaviggia/classification-banner

Let me know how you determine the resolution of your system:

-Frank

Kendrick Spencer

unread,
Mar 30, 2015, 4:33:57 PM3/30/15
to mil...@googlegroups.com
xrandr

Screen 0: Minimum 8x8 current 5120x1600, Maximum 16384x16384
...
....
DP-2 connected 2560x1600+2560to.....
         
            2560x1600      59.9*+
            1920x1440      60.0
            1920x1200      59.9
            1680x1050      60.0

DP-3 connected 2560x1400+0+0+0

            2560x1440    60.0*+
            1280x720      59.9


I am running RedHat 6.6 linux 2.6.32. Also running the latest version of the code. I am not doing anything to determine the resolution I was just trying to figure out why is not working is all.

Frank Caviggia

unread,
Mar 30, 2015, 11:43:09 PM3/30/15
to mil...@googlegroups.com
Kendrick,

I updated the ordering of the resolution detection methods. Give that a shot and let me know if that works better for you.

Regards,

Frank

--
--
You received this message because you are subscribed to the "Military Open Source Software" Google Group.
To post to this group, send email to mil...@googlegroups.com
To unsubscribe from this group, send email to mil-oss+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mil-oss?hl=en
 
www.mil-oss.org

---
You received this message because you are subscribed to a topic in the Google Groups "Military Open Source Software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mil-oss/TKvb5KoxX5w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mil-oss+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kendrick Spencer

unread,
Mar 31, 2015, 8:28:07 AM3/31/15
to mil...@googlegroups.com
Thanks I will give a shot
Reply all
Reply to author
Forward
0 new messages