Changeset 868


Ignore:
Timestamp:
02/08/14 20:32:50 (10 years ago)
Author:
jts21
Message:

Tidy up scripts and add UDPTunnel jar, so tunnelling frameserver shouldn't require any more setup than modifying the config file (see the readme)

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Frameshare-SSH-tunnelling.txt

    r867 r868  
    88Scripts for Expeditee are in dev/bin/script
    99
     10Edit "Frameshare-SSH-Tunnel-CONFIG.sh" to set the server port, SSH username and host
    1011Run "Frameshare-SSH-Tunnel-Client.sh" on the machine that you're running the Expeditee window on
    1112Run "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  
    11#!/bin/bash
    22
    3 # IMPORTANT:
     3trap ctrl_c INT
    44
    5 # This script does NOT close cleanly,
    6 # the SSH tunnels will be left active after the script exits!
     5function ctrl_c() {
     6        echo -e "\nExiting"
     7        # clean up the SSH tunnels
     8        jobs -p | xargs kill
     9        exit 0
     10}
    711
    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
    3114
    3215# setup ssh tunnels
     
    4124sleep 1
    4225# tunnel udp connections through their equivalent tcp ports
    43 java UDPTunnel client $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort
     26java -jar $jarFile client $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort
  • trunk/dev/bin/script/Frameshare-SSH-Tunnel-Server.sh

    r867 r868  
    11#!/bin/bash
    22
    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
    185
    196# tunnel udp connections through their equivalent tcp ports
    20 java UDPTunnel server $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort
     7java -jar $jarFile server $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort
Note: See TracChangeset for help on using the changeset viewer.