STEP 6:USING TMUX THROUGH PUTTY
Last updated
Last updated
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/
You can see that Tmux is running by viewing a green bar at the bottom of the SSH panel.
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:
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!
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.