]> git.hoellein.online Git - help/commitdiff
bash-scripte
authorMario Höllein <mhoellein@moellein.homeip.net>
Fri, 24 Jun 2016 08:56:55 +0000 (10:56 +0200)
committerMario Höllein <mhoellein@moellein.homeip.net>
Fri, 24 Jun 2016 08:56:55 +0000 (10:56 +0200)
.raspberrypi.txt.swp [deleted file]
bash-scripte/hostl.sh [new file with mode: 0644]
bash-scripte/x11vnc_toHost.sh [new file with mode: 0644]

diff --git a/.raspberrypi.txt.swp b/.raspberrypi.txt.swp
deleted file mode 100644 (file)
index 3c67fde..0000000
Binary files a/.raspberrypi.txt.swp and /dev/null differ
diff --git a/bash-scripte/hostl.sh b/bash-scripte/hostl.sh
new file mode 100644 (file)
index 0000000..1c365d4
--- /dev/null
@@ -0,0 +1,4 @@
+#/bin/bash
+host -l tbz-pariv.lan
+host -l modarch.lan
+host -l dmz.lan
diff --git a/bash-scripte/x11vnc_toHost.sh b/bash-scripte/x11vnc_toHost.sh
new file mode 100644 (file)
index 0000000..8ddbce7
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ $1 = "" ]; then
+        echo "rechner angeben!"
+        echo "xvnc_scanrechner rechner"
+fi
+echo "Passwort für root auf $1 eingeben:"
+ssh -t -L 5900:localhost:5900 root@${1} "x11vnc -localhost -nolookup -nopw -display :0 -auth \$(ps axuww | egrep 'Xorg.*-auth' | grep -v egrep | sed -e 's#^.*-auth *##' | awk '{print \$1}')"