Last active
October 14, 2015 16:23
-
-
Save Technicus/67416d6a485c1735f4e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Start X server on remote host | |
ssh pi@192.168.1.130 "xinit -- :1 > /home/pi/Utility/Logs/xinit.log 2>&1 & x11vnc -display :1 -forever -xrandr resize > /home/pi/Utility/Logs/xvnc11.log 2>&1 & ps -A | grep -E 'x11vnc|xinit'" | |
# Slow down | |
sleep 2 | |
vncviewer 192.168.1.130 | |
# Get its PID | |
#PID=$! | |
# Wait for password entry | |
#sleep 5 | |
# Relese terminal | |
#kill $PID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment