Created
October 20, 2012 17:21
-
-
Save francoiskha/3924092 to your computer and use it in GitHub Desktop.
VNC through SSH
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
echo "lancement du serveur VNC" | |
ssh $REMOTE_IP 'bash -s' < ~/vnc-start.sh | |
echo "demarrage du tunnel SSH" | |
ssh -L 1234:localhost:5901 $REMOTE_IP | |
echo "arret du serveur VNC" | |
ssh $REMOTE_IP 'bash -s' < ~/vnc-stop.sh |
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 | |
vncserver -kill :1 | |
vncserver -geometry 1280x800 |
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 | |
vncserver -kill :1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment