STEP 6:USING TMUX THROUGH PUTTY
Now that everything is ready, you are going to launch Tmux through PuTTY. Tmux will allow you to run uninterruptedly your SWT node and others programs/applications, and they will continue to run even if you close our PuTTY SSH client. Hence, next time you will connect on your VPS you will find your node and other apps running like the last time you have seen them running before closing PuTTY.
You are going to see in this part the basic functions needed to run the SWT node, but below are some interesting tutorials about Tmux:
danielmiessler.com/study/tmux/
hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/
1. Run Tmux.

You can see that Tmux is running by viewing a green bar at the bottom of the SSH panel.

2. Now run: CTRL-B + % (don’t type the [-]and the [+]).
You will see that your panel has been split vertically.

You can see that the active panel is on the right thanks to the green Tmux cursor. If you want to close this extra panel just created, you just have to type “exit”.

Result:

3. Now type again: CTRL-B + % (Don’t type the [-]and the [+])

4. You can see that the curser is on the right panel. You are going now to divide the right-side panel horizontally by pressing: CTRL-B + ” (Don’t type the [-]and the [+])

5. Just enter one last time CTRL-B + ” and you will have enough panels to run the node client and the monitoring tools, as you can see in the screenshot below.

Navigating through panels
Switching to a different panel uses the CTRL-B + <arrow key> shortcut, where <arrow key> is the direction pointing to the panel you want to switch to. In your case, you want to switch to the left panel, so it’s CTRL-B + <left>. Just once more, in order to fully understand this concept: this means you press CTRL and B (your prefix) followed by the left arrow key to get to the panel on the left.
The main advantage of Tmux is that you can run your node and others tools, then quit your SSH session and when you log in again and run “tmux a” at the prompt, you will recover your Tmux session (and of course your SWT node running!).
Let’s try it!
1. Close your Putty SSH session:

2. Connect again on your VPS:

3. Once connected, just type:
tmux a
Your previous closed session will appear. In the screenshot below, uninterrupted Tmux session has been restored. You can see that there are only four empty panels, but if there was a SWT Node or any other programs running in one of those panels, they will be still running when typing “tmux a” at the prompt after connecting again with PuTTY.

Last updated