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
# Generated by iptables-save v1.4.21 on Sun Mar 20 20:06:57 2016 | |
*nat | |
:PREROUTING ACCEPT [181:25653] | |
:INPUT ACCEPT [1:60] | |
:OUTPUT ACCEPT [29:1972] | |
:POSTROUTING ACCEPT [29:1972] | |
:postrouting_lan_rule - [0:0] | |
:postrouting_rule - [0:0] | |
:postrouting_wan_rule - [0:0] | |
:prerouting_lan_rule - [0:0] |
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 | |
# Connect to the actual X desktop session of another machine | |
# x0vncserver is included with TigerVNC | |
DESKTOP=10.10.10.10 | |
if ! nc -nvz ${DESKTOP} 5900; then | |
ssh ${DESKTOP} 'x0vncserver -MaxDisconnectionTime=120 -Display :0 -PasswordFile ~/.vnc/passwd' & | |
sleep 1 | |
fi | |
vncviewer DotWhenNoCursor=1 ${DESKTOP} |