-
-
Save elyezer/4798f04a8e6d271f6478 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 -e | |
# allow change to pass-in display argument | |
DISPLAY=$1 | |
: ${DISPLAY:=:1} | |
export DISPLAY | |
echo "Starting VNC server" | |
vncserver ${DISPLAY} -geometry 1280x1024 | |
echo "=== now running ===" | |
ps -fwC Xvnc4 --no-header || ps -fwC Xvnc --no-header | |
echo | |
echo "=== network after $0 ===" | |
netstat -na | grep "LISTEN " | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment