Comments (5)
Yes it certainly can be, in fact I tried to make it as cross-platform as possible. The only mac-specific part currently is the osxnotifiactions.py
logger.
The only major thing that needs to be done is to make a menubarlet for Linux that displays the output of menubar.sh
, and passes click events as the text of the item clicked as an argument, e.g.
./menubar.sh "Settings..."
.
I personally don't use desktop linux for day-to-day work, so I don't have the time to invest in making a Linux version, but feel free to fork/submit a pr!
from security-growler.
Integration with Gnome's notifications is possible (as per Arch Wiki and Gnome's specs, or the relative bindings docs), and in fact I've achived it with the attached patch.
The scripts starts and produces notifications, but I noticed another important problem: parsing the system's logs. For example I use systemd
, and reading the system's logs is only possible by piping the output of the journalctl
command; it isn't possible to just read a file as the script is currently doing.
Anyway, this patch might be a good starting point for whoever wants to work at this port.
gnome_patch.txt
from security-growler.
Thanks for this patch!
I'd rather have the gnome notification be a seperate logger rather than overload osxnotifications.py
. The platform detection can actually happen inside of settings.py
, which then just sets the proper logger list on app launch.
As for the systemd problem, it's not an issue at all, we can simply add a new logger
source and specify the output of popen('journalctl').readline()
as the source of new lines instead of a file.
from security-growler.
Great suggestion, I didn't consider it. My Python-fu is rusty...
I'll look into this and eventually begin working on a proper PR, what do you reckon?
from security-growler.
Thanks! I probably wont have time to tackle full linux support myself in the near future, but if you submit a PR for a prototype, I'd be happy to help test/refactor/bugfix it.
Always happy to answer any questions as well, shoot an email if you want.
from security-growler.
Related Issues (20)
- sed: /Users/ in menu HOT 4
- Detect Network Settings Changes / VPN / DNS HOT 17
- Guide for suggested actions to take when being portscanned/attacked HOT 8
- VPN triggers sudo lsof i:21 error HOT 1
- New menu layout? HOT 10
- New App icon HOT 10
- Detect ARP spoofing/poisoning HOT 1
- Ambiguous redirect HOT 4
- [Off-topic] What apps are there in your menu bar? HOT 9
- Can't get past "Starting" HOT 3
- Immediately Stopped Working After Launch HOT 7
- Add email notifications logger using mailuitils
- error: BSM audit: getaddrinfo failed for... HOT 1
- Auto-start on launch HOT 7
- Airport state change HOT 1
- macOS sierra logging system breaks sudo, nmap, and other system.log alerts HOT 6
- Alert on DNS resolver changes
- Alert on new public IP address with GeoIP and latency
- iTunes 3689 HOT 3
- Autostart or Persistence HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from security-growler.