S6. Extra Feature - Run Jacktrip in Server Mode independently
This extra section is for users who would like to be able to run jacktrip in Server Mode without having to stay logged into the remote server. This might be useful if you are setting up a session for someone else or if you want to free up your computer or even logout of your computer completely.
The ability to do this is by using the screen command in Terminal which provides the ability to launch and use multiple shell sessions within a single ssh session. Once you end your Linode session, you can create an image with the screen command pre-installed for future sessions if you wish so you don’t have to repeat Step 1. for subsequent sessions.
The instructions in this section assume you already have a running remote Linode Cloud Server.
Type in the Terminal commands below (shown in boldface) and hit the <enter> key;
[ exceptions: when you press <ctrl>a and then press <ctrl>d ]
1. Install the screen command:
sudo apt update
then
sudo apt install screen
2. Start up a jacktrip server using the screen command:
2a. Go to the builddir directory:
cd
then
cd jacktrip
then
cd builddir
2b. Run Terminal in screen mode; for [name] pick an id you will remember:
screen -S [name]
for example: screen -S feb14
your Terminal window will suddenly change to just this:
root@localhost:~/jacktrip/builddir#
2c. Start jack in server mode:
in this example, buffer of 512 frames/period, sample rate of 48k, &=run command in background
jackd -d dummy -p512 -r48000 &
After the jackd messages appear, hit <enter> to see the prompt for a new command.
2d. Start jacktrip in server mode:
here is an example of a command Sarah Weaver has used with the NowNet ensembles
[-S = run in Hub Server Mode, -p2 = client out/in but no loopback, &=run command in background]
./jacktrip -S -p2 -q32 -z &
After the jacktrip messages appear, hit <enter> to see the prompt for a new command.
2e. Once jacktrip is running in server mode you can now exit out of the screen:
press <ctrl>a
then
press <ctrl>d
2f. Now you can quit out of Terminal and jacktrip in server mode will continue to run.
3. If you want to check what is happening on the jacktrip server you set up, do the following:
3a. Log back into your remote Linode Cloud Server via Terminal.
3b. Restore the screen that has jacktrip in server mode (in the example, the name was feb14):
screen -r feb14
If you forgot what you named the screen, you can list all screens you had setup by typing in:
screen -ls
note that the name of the screen might have more characters in it, for example:
1224.feb14
3c. Once you are in the screen for jacktrip in server mode, you will see whatever activity was generated by that session.
4. When you are done with your session, DON’T FORGET to DELETE your remote Linode Cloud Server or you will continue to get charged!