source: trunk/dev/bin/script/Frameshare-SSH-Tunnel-CONFIG.sh@ 868

Last change on this file since 868 was 868, checked in by jts21, 10 years ago

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

File size: 988 bytes
Line 
1#!/bin/bash
2
3# If you don't have public-key authentication set up for your SSH login,
4# You won't be able to use this script, because the SSH connections won't be able to login automatically
5# So either set up public-key authentication, or you can manually start every SSH tunnel and login
6
7# You should change the username and hostname to your own username and the hostname of your server
8username=jts21
9hostname=toro.cms.waikato.ac.nz
10# You should change the port to the port of your server (leave it at 3000 if not sure)
11port=3000
12
13# ----------------------------------------------------#
14# NOTHING BELOW THIS POINT SHOULD NEED TO BE MODIFIED #
15# ----------------------------------------------------#
16
17# get the offseted port values
18frameserverPort=$port
19framesaverPort=$((port+1))
20messagePort=$((port+2))
21infserverPort=$((port+3))
22infupdatePort=$((port+4))
23imageserverPort=$((port+5))
24imagesaverPort=$((port+6))
25
26# get the jar file for UDPTunnel
27jarFile=$(dirname $0)/../UDPTunnel.jar
Note: See TracBrowser for help on using the repository browser.