STEP 9:RUNNING THE SWT NODE THROUGH TMUX
Last updated
Last updated
Let’s begin with starting the SWT client node. This action is quite easy if you follow our different steps. But before, be sure that you have well secured your installation with our chapter “How to secure your VPS”.
For now, your Tmux session looks like this:
The password encryption method allows you to encrypt your private key with a strong and complex password. It will encrypt your private key so that you will have a private key on your node but it will not allow access to your swt portfolio. It is a substitute key in some way and its goal is to start your SWT node. Your real private key can be visible only with the password that you will create in the next point. This password will be asked each time you want to launch your node.
The other method (access by a file) allows you to launch your node by indicating the path of a file on your node. This file can be a text file, a video file or any kind of file you want. It is a very ingenious system because you are the only one to know what is the name of this file and where it is.
In this tutorial, for practical reasons we will only go through the password method. Choose a password as complex as possible. In the example that follows, we will encode a password of more than 26 characters, which seems to be more than enough.
Your SWT node is starting, please be patient… The sync process will appear soon. Once it's running, the first time it can take a while before your node is 100% synchronized, it's totally normal.
Congrats, you SWT node is running!
PS: every time you will start your node after a stop, you will have the possibility to change your password by pressing the 'P' key.
Now that your node is running, you have to backup your private and public node addresses.
Via FileZilla, go to your SWT folder, and you will see two files among the others: NodePrivate.txt and NodePublic.txt.
Copy them and paste them into a secure folder outside your VPS (or best, on a sheet).
In Part 1 (“Starting SWT client node”), we have choosen to encrypt private key. Therefore this key is protected and can only be used to run your node, not to open your wallet.
To open the node wallet, you need to generate the unencrypted key in a file. In this exemple, you will generate a file named myNode1.json but you can replace this name by the file name you want.
With Tmux, select a free panel (not running the client or anything else) or create a new one (CTRL-B + % or “), and type:
Enter your password and then hit Enter. This will generate the myNode1.json file in your swt folder. Now you can use FileZilla to copy this file on your own computer and save it in a safe place. This file can be directly used to open wallet client applications (SWT web wallet or desktop wallet). Open your wallet, click on “Sign in”, then “Upload file”, and choose the .json file previously generated!
Last thing to do to be safe is to delete this file on the VPS. Go back to your Tmux terminal and type the following line:
If you want to participate in transactions validation and earn SWT rewards, you have to send more than 1.000.000 SWT to your node wallet (ie: 1.000.001 SWT), and stake it for as long as you want to earn SWT rewards.
Thus, you have to send this amount from your current wallet to the SWT node address written in your NodePublic.txt file. That's it!
If you want to reinstall your node, please first backup your files for a better safety (through FileZilla) and then follow this steps.
First you are going to delete your SWT folder.
If you want to know if you SWT node software is up to date or need an upgrade to the last version, you can find out which version of the SWT node software you are running, simply by going to the swt folder and typing the following command:
Then, if you need to update your swt node with a new release without installing again the whole system, it's quite easy. Just follow this steps: