fcaviggia / classification-banner Goto Github PK
View Code? Open in Web Editor NEWDisplays Classification Banner for a Graphical Session
License: Other
Displays Classification Banner for a Graphical Session
License: Other
I am not a python expert by any stretch of the imagination...
I downloaded the classification-banner-master.zip and moved it to my system (offline)
Unzipped the file in my /root directory to the classification-banner-master directory
ran:
python setup.py install
in the classification-banner-master directory
Got no errors.
only thing installed on the system was a /usr/bin/classification-banner file that has nothing in it.
and a link to that file /bin/classification-banner.
Trying to run either of these just gives an error.
Does the zip file need to be in a specific place before installing?
Are there other steps that you do not have documented?
RHEL 7.6
STIG'd v2r4
Limited GNOME desktop running
Prior to installation on a CentOS 7.2.1511 VM, I was able to right-click, select 'Open in terminal', and begin typing into the terminal window because it was focused. After installation, I have to click inside the terminal window to begin typing because the focus is not happening automatically.
I tried modifying the classification-banner.desktop file, since I saw a reference to terminal, and I changed the terminal=false to terminal=true, but this just launched an active terminal window at login, but it did not present the classification banner in the desktop.
I'd like to request an option that disables the "press escape to hide" feature completely (wherein pressing ESC will not hide the classification banner at all), preferably controlled from either the command line or the config file (/etc/classification-banner).
With pulling in change #23 python 2.6 is no longer supported breaking native support on RHEL6.
Is there an easy way to offset the banner from the y value that's set? I'm using CentOS 7 with XFCE and there is a ~20 pixel gap between the taskbar and the banner. I'm trying to get the banner to rest exactly below the taskbar.
I went into the code and tried doing a simple offset on the top.window.move self.y_location - 20 but the bar doesn't seem to actually change position and offset. Conversely if I test with a self.y_location + 20 the bar moves down, so there is something that causes it to not accept negative values
Window management keyboard shortcuts are able to resize the banner to be full-screen or half-screen. I often trigger this behavior trying to resize my active windows & the Classification Banner is seen as the target. Is there a mechanism to disable window management from applying this behavior?
As our implementation is ran as a system process, the user is forced to terminate their session to restore the original behavior.
See below for sample scenarios
there is a ConfigParser error that pops up. This is because ConfigParser has now been changed to configparser, so it is unable to correctly find the module.
I don't know exactly why I'm experiencing this but my bottom banner does not show. If I modify line 71 to subtract 5 from the vres it does show.
If the goal is to still support RHEL6, then either the information provided by sys.version_info should be accessed via index number or sys.hexversion should be used as suggested in https://stackoverflow.com/a/3018075/1698660
I will put in a pull request with my suggested change.
On a fairly basic arch install running the script resulted in "No such file or directory" being spat out when calling get_user().
My solution was to replace os.getlogin() with getpass.getuser()
Edit - Replaced with pull request
I would like to change the Licence of this project from GNU Public Licence version 2 (GPLv2) to Apache Public Licence 2.0 (APL2.0) to allow people to utilize this software without having to submit changes back to the project. I believe that this will allow for better use in the DOD/IC without the requirements to give back everything - however, it would still remain open source as a reference model.
the bar appears correctly initially, but if you escape it to make it disappear, it will reappear in the middle of the screen
Experienced on RHEL 7.2.
When the classification banner is running, new windows will open without focus.
To recreate:
This issue also prevents firefox from bringing new windows into focus. If Firefox is running maximized and the user clicks on a link which opens a new window, the window is opened in the background and Gnome 3 shows a notification with message: Firefox Web Browser - "" is ready. This forces the user to click this annoying gnome 3 message to bring up the new window.
Checking with echo $DISPLAY shows :0, when attempting to run classification-banner it complains with an error "DISPLAY environment variable not set."
When resizing a VNC window of a desktop that has the classification-banner running, it crashes.
I will open a PR to address this issue.
The title bars of maximized windows are obscured by the banner. Is there a way to have the banner block windows like on the Windows NetBanner, or is there a workaround for metacity (or something) to prevent this?
python_requires should probably be 2.6 and not 2.7 if this is still supposed to work on RHEL6.
Also data_files is incorrect. The format is a tuple of (install path, file name). Currently what is being installed is /usr/lib/python2.6/site-packages/classification_banner-1.7.0-py2.6.egg/share/banner.conf/classification-banner-screenshot.png
If there is a configuration error (message or color option omitted), the default should be some form of CLASSIFICATION UNKNOWN. Possibly use the purple color for classified not, level not specified or #00ffff
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.