From: Mario Höllein Date: Fri, 24 Jun 2016 08:56:55 +0000 (+0200) Subject: bash-scripte X-Git-Url: https://git.hoellein.online/?a=commitdiff_plain;h=a7303b17ab58e11c2dae73c634518f3cd7429bfb;p=help bash-scripte --- diff --git a/.raspberrypi.txt.swp b/.raspberrypi.txt.swp deleted file mode 100644 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 index 0000000..1c365d4 --- /dev/null +++ b/bash-scripte/hostl.sh @@ -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 index 0000000..8ddbce7 --- /dev/null +++ b/bash-scripte/x11vnc_toHost.sh @@ -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}')"