Update transformers Version 1.0.0_t
- We save old certificates.
- Log into our shell (tmux or scream).
- Make a backup of old certificates.
- Stop the node.
ALL COMMANDS BELOW ARE EXECUTED IN THE SHELL.
We make a temporary backup of data.
cd $HOME/tfsc mv data.db data.db.bak mv cert cert.bak.23.05.2024 mv config.json config.json.bak.23.05.2024 mv tfsc tfsc.bak.23.05.2024
Update, download and prepare the node.
wget <https://fastcdn.tfsc.io/testnet/tfs_v1.0.0_830f4b9_testnet.zip> unzip tfs_v1.0.0_830f4b9_testnet.zip mv tfs_v1.0.0_830f4b9_testnet tfsc rm tfs_v1.0.0_830f4b9_testnet.zip chmod +x $HOME/tfsc/tfsc
Generate a new Config file. After generation, the ports will change: "http_port": 20620, "server_port": 20619. Therefore, if you are using a firewall, make changes to it and give permission to these ports.
./tfsc -c #Init Config file
This is what the configuration file (config.json) looks like after automatic generation.
{ "http_callback": { "ip": "", "path": "", "port": 0 }, "http_port": 20620, "info": { "logo": "", "name": "" }, "ip": "", "log": { "console": false, "level": "OFF", "path": "./logs" }, "rpc": true, "server": [ "52.8.162.216", "50.18.55.167" ], "server_port": 20619, "version": "1.0.0" }
We make changes and substitute our data. Parameter "name": odanoder - Change the nodes to your name. It is better to use a name without periods or capital letters. And then decide for yourself. Parameter "logo": optional. Parameter "ip", for example: 19.19.19.19 - write the IP address of your server (on which the node is installed)
nano $HOME/tfsc/config.json
View of the configuration file after editing. INSERT YOUR DATA.
{ "http_callback": { "ip": "", "path": "", "port": 0 }, "http_port": 20620, "info": { "logo": "<https://twitter.com/odanoder/photo>", "name": "odanoder" }, "ip": "19.19.19.19", "log": { "console": false, "level": "OFF", "path": "./logs" }, "rpc": true, "server": [ "52.8.162.216", "50.18.55.167" ], "server_port": 20619, "version": "1.0.0" }
In the nano text editor, press "ctrl x", save and exit.
cd $HOME/tfsc/ && ./tfsc -m
When the node has started, minimize the shell (tmux or scream) - it should work in the background.
COMMANDS ARE EXECUTED OUTSIDE SHELLS We save the cert folder (new folder) with certificates in a safe place. Old certificates should also be preserved.
rm $HOME/tfsc/data.db.bak rm $HOME/tfsc/tfsc.bak.23.05.2024