Skip to content

Instantly share code, notes, and snippets.

@Technicus
Last active October 14, 2015 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Technicus/67416d6a485c1735f4e4 to your computer and use it in GitHub Desktop.
Save Technicus/67416d6a485c1735f4e4 to your computer and use it in GitHub Desktop.
#! /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