Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo

Kennt ihr ein Script was zurückliefert

a) "SecureBoot an: grüner Bobbel" bzw. "SecureBoot aus: roter Bobbel"

b) "SELinux enforcing: grüner Bobbel" oder "SELinux permissive: gelber Bobbel" oder "SELinux disabled: roter Bobbel"

c) "SSH erlaubt für Root: roter Bobbel" oder "SSH nicht erlaubt für Root: grüner Bobbel"

d) Festplattenverschlüsselung

e) ...

f) ...

Zielplattform: CentOS, Almalinux & co, Version 8 aufwärts.

Ciao

Für farbigen Output kannst du sog. "ANSI escape sequences" verwenden:

$ echo -e "\e[31mRed Text\e[0m"

-> https://www.shellhacks.com/bash-colors/

Oder, nach Belieben, auch gleich Emojis, zB

printf '\U1F984\n'

Siehe:
https://unix.stackexchange.com/a/467000
Freie Auswahl: https://unicode-table.com/en/

Den Rest, also die conditions, in welchem Fall welcher Output kommen soll, kriegst du gut mit grep hin, also sowas:

grep -q "SELINUX=disabled" /etc/selinux/config && echo -e "\e[31mDisabled\e[0m"
grep -q "SELINUX=enforcing" /etc/selinux/config && echo -e "\e[32mEnforcing\e[0m"

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.