Changeset 868
- Timestamp:
- 02/08/14 20:32:50 (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Frameshare-SSH-tunnelling.txt
r867 r868 8 8 Scripts for Expeditee are in dev/bin/script 9 9 10 Edit "Frameshare-SSH-Tunnel-CONFIG.sh" to set the server port, SSH username and host 10 11 Run "Frameshare-SSH-Tunnel-Client.sh" on the machine that you're running the Expeditee window on 11 12 Run "Frameshare-SSH-Tunnel-Server.sh" on the machine that the Expeditee frameserver is running on (only needs to be run once and it should support all users) -
trunk/dev/bin/script/Frameshare-SSH-Tunnel-Client.sh
r867 r868 1 1 #!/bin/bash 2 2 3 # IMPORTANT: 3 trap ctrl_c INT 4 4 5 # This script does NOT close cleanly, 6 # the SSH tunnels will be left active after the script exits! 5 function ctrl_c() { 6 echo -e "\nExiting" 7 # clean up the SSH tunnels 8 jobs -p | xargs kill 9 exit 0 10 } 7 11 8 # If you don't have public-key authentication set up for your SSH login, 9 # You won't be able to use this script, because the SSH connections won't be able to login automatically 10 # So either set up public-key authentication, or you can manually start every SSH tunnel and login 11 12 # You should change the username and hostname to your own username and the hostname of your server 13 username=jts21 14 hostname=toro.cms.waikato.ac.nz 15 # You should change the port to the port of your server (leave it at 3000 if not sure) 16 port=3000 17 18 # --------------------------------------------------- 19 # NOTHING BELOW THIS POINT SHOULD NEED TO BE MODIFIED 20 # --------------------------------------------------- 21 22 # get the offseted port values 23 frameserverPort=$port 24 framesaverPort=$((port+1)) 25 messagePort=$((port+2)) 26 infserverPort=$((port+3)) 27 infupdatePort=$((port+4)) 28 imageserverPort=$((port+5)) 29 imagesaverPort=$((port+6)) 30 12 # load config 13 . $(dirname $0)/Frameshare-SSH-Tunnel-CONFIG.sh 31 14 32 15 # setup ssh tunnels … … 41 24 sleep 1 42 25 # tunnel udp connections through their equivalent tcp ports 43 java UDPTunnelclient $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort26 java -jar $jarFile client $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort -
trunk/dev/bin/script/Frameshare-SSH-Tunnel-Server.sh
r867 r868 1 1 #!/bin/bash 2 2 3 # You should change the port to the port of your server (leave it at 3000 if not sure) 4 port=3000 5 6 # --------------------------------------------------- 7 # NOTHING BELOW THIS POINT SHOULD NEED TO BE MODIFIED 8 # --------------------------------------------------- 9 10 # get the offseted port values 11 frameserverPort=$port 12 framesaverPort=$((port+1)) 13 messagePort=$((port+2)) 14 infserverPort=$((port+3)) 15 infupdatePort=$((port+4)) 16 imageserverPort=$((port+5)) 17 imagesaverPort=$((port+6)) 3 # load config 4 . $(dirname $0)/Frameshare-SSH-Tunnel-CONFIG.sh 18 5 19 6 # tunnel udp connections through their equivalent tcp ports 20 java UDPTunnelserver $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort7 java -jar $jarFile server $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort
Note:
See TracChangeset
for help on using the changeset viewer.