Developers
  • SWT PROTOCOL
    • Introduction
    • Accounts
    • Transactions
    • Fees
    • Smart Contracts
  • GETTING STARTED
    • Network Node
      • Introduction
      • STEP 1:RENTING A LINUX VPS
      • STEP 2:INSTALLATION OF PUTTY
      • STEP 3:INSTALLATION OF FILEZILLA
      • STEP 4:VPS CONNECTION AND LINUX CONFIGURATION WITH PUTTY (SSH)
      • STEP 5:HOW TO SECURE YOUR VPS
      • STEP 6:USING TMUX THROUGH PUTTY
      • STEP 7:UPLOAD OF THE SWT SOFTWARE WITH FILEZILLA
      • STEP 8:EXTRACT THE SWT SOFTWARE FOLDER
      • STEP 9:RUNNING THE SWT NODE THROUGH TMUX
      • STEP 10:RUNNING THE MONITORING TOOLS
  • API REFERENCE
    • Apache Thrift API
      • Transactions
      • Blocks
      • Smart contract
      • Tokens
      • Wallets
      • Sync info
      • Data structures
    • REST API
      • GetBlocks()
      • GetNodeInfo()
      • GetBalance()
      • GetWalletInfo()
      • GetTokenBalance()
      • GetTransactionsByWallet()
      • GetTransactionInfo()
      • GetEstimatedFee()
      • GetContractByAddress()
      • GetContractFromTransaction()
      • GetContractMethods()
      • ContractValidation()
      • ContractCall()
      • TransactionPack()
      • TransactionExec()
  • SMART CONTRACTS
    • Creating "Hello-world" Smart Contract
    • Smart Contract Methods
    • Smart Contract Standarts
      • Token Smart Contract
      • Escrow Smart Contract
      • Stable coin Token
  • HOW TO REST API
    • Introduction
    • Retrieve a balance from the blockchain
    • Request a specific transaction from the blockchain
    • Sending Transactions to the SWT Blockchain
    • Validating and deploying a Smart Contract with REST API
Powered by GitBook
On this page
  1. GETTING STARTED
  2. Network Node

STEP 6:USING TMUX THROUGH PUTTY

PreviousSTEP 5:HOW TO SECURE YOUR VPSNextSTEP 7:UPLOAD OF THE SWT SOFTWARE WITH FILEZILLA

Last updated 1 year ago

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/

Special characters and numbers from your numeric keypad are not taken into account by Tmux, thus you must use the main keyboard.

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 [+]).

Press CTRL key, don’t release it and press B key. Then release the two keys and press %.

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.