diff --git a/Makefile b/Makefile index 7c30ef4..27bb4fb 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,10 @@ PYTHON := $(shell command -v python3 > /dev/null && echo python3 || echo python) run: @$(PYTHON) -m genume +.phony: sudorun +sudorun: + @sudo $(PYTHON) -m genume + .phony: lint lint: @$(PYTHON) -m compileall -fq genume diff --git a/genume/view/main.py b/genume/view/main.py index 669df5c..f97b08e 100644 --- a/genume/view/main.py +++ b/genume/view/main.py @@ -21,7 +21,7 @@ def main(): # Sizes WIDTH = 650 -HEIGHT = 400 +HEIGHT = 425 class MainWindow(Gtk.Window): diff --git a/scripts/software/apps.sh b/scripts/software/apps.sh new file mode 100755 index 0000000..f2d50e3 --- /dev/null +++ b/scripts/software/apps.sh @@ -0,0 +1,34 @@ +#!/bin/bash + + +# check for a app and if exists provide the version +function check { + name=$1 + version=$2 + + # add the prefix app_ to every entry + key="app_$name" + + if command -v "$name" > /dev/null; then + + echo VALUE BAS "$key" \"$($name $version 2>&1 | head -n1)\" + else + echo VALUE BAS "$key" \"""\" + fi +} + + +check "bash" "-version" +check "make" "--version" +check "git" "--version" + +check "gnome-software" "--version" + +check "gcc" "--version" +check "java" "-version" +check "python" "-V" +check "mysql" "--version" +check "freedom" "-version" + +# TODO extend + diff --git a/scripts/software/firewall.sh b/scripts/software/firewall.sh new file mode 100755 index 0000000..127a545 --- /dev/null +++ b/scripts/software/firewall.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# check for root user +if [ "$EUID" -ne 0 ]; then + + echo VALUE BAS firewall \"""\" + +else + + # TODO extend + + status=$(sudo ufw status verbose) + + active=$(echo "$status" | grep Status: | cut -d " " -f 2) + + echo VALUE BAS firewall \"$active\" + +fi +