comparison .bash_aliases @ 195:e04f955ab31c

Use xanadu for proxying usually, and setup a cancel command based on the one run
author Steve Huston <huston@srhuston.net>
date Tue, 29 Sep 2020 15:43:29 -0400
parents bb1c927125a5
children 1d13f4ed76f5
comparison
equal deleted inserted replaced
194:bb1c927125a5 195:e04f955ab31c
84 fi 84 fi
85 } 85 }
86 86
87 # Proxying/tunneling - predominantly for my Mac laptop 87 # Proxying/tunneling - predominantly for my Mac laptop
88 proxy() { 88 proxy() {
89 PROXY_HOST=${PROXY_HOST:-csesbh2.princeton.edu} 89 PROXY_HOST=${PROXY_HOST:-xanadu.astro.princeton.edu}
90 PROXY_PORT=${PROXY_PORT:-8888} 90 PROXY_PORT=${PROXY_PORT:-8888}
91 ssh -D $PROXY_PORT -f -C -q $PROXY_HOST 'sleep 15' 91 ssh -D $PROXY_PORT -f -C -q $PROXY_HOST 'sleep 15'
92 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ 92 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
93 --proxy-server="socks5://127.0.0.1:$PROXY_PORT" \ 93 --proxy-server="socks5://127.0.0.1:$PROXY_PORT" \
94 --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \ 94 --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \
95 --user-data-dir="/Users/huston/Library/Application Support/Google/Chrome/ProxiedProfile" & 95 --user-data-dir="/Users/huston/Library/Application Support/Google/Chrome/ProxiedProfile" &
96 history -s ssh -O cancel -D $PROXY_PORT $PROXY_HOST
97 echo Cancel command added to history
96 } 98 }
97 99
98 # Remote desktop/VNC 100 # Remote desktop/VNC
99 eval "alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9930 &'" 101 eval "alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9930 &'"
100 # Xanadu VMs 102 # Xanadu VMs