Skip to main content
diff options
Diffstat (limited to 'production/miscToolsAndNotes/misc/')
1 files changed, 55 insertions, 0 deletions
diff --git a/production/miscToolsAndNotes/misc/ b/production/miscToolsAndNotes/misc/
new file mode 100755
index 00000000..aaba3679
--- /dev/null
+++ b/production/miscToolsAndNotes/misc/
@@ -0,0 +1,55 @@
+#!/usr/bin/env bash
+# of special interest, though most won't be defined
+echo "uname -a"
+uname -a
+echo "lsb_release -a"
+lsb_release -a
+echo "cat /etc/lsb-release"
+cat /etc/lsb-release
+echo "cat /etc/SuSE-release"
+cat /etc/SuSE-release
+echo "rpm -q cairo"
+rpm -q cairo
+echo "rpm -q gtk2"
+rpm -q gtk2
+echo "rpm -q glibc"
+rpm -q glibc
+echo "rpm -q pango"
+rpm -q pango
+echo "rpm -q glib2"
+rpm -q glib2
+echo "Check if any window managers are running (xfwm|twm|metacity|beryl|fluxbox|compiz):"
+ps -ef | egrep -i "xfwm|twm|metacity|beryl|fluxbox|compiz" | grep -v egrep
+# unity|mint|gnome|kde|xfce|ion|wmii|dwm (was original list, but matched too much,
+# espeically "ion' I suppose.
+echo "Check for popular desktop environments (gnome or kde):"
+ps -ef | egrep -i "gnome|kde" | grep -v egrep
+echo " == all env variables == "
+# we always end with "success" even though some commands may "fail"
+exit 0

Back to the top