Gear Node Installation Instructions
CPU: 2 Core
RAM: 4Gb
SSD: 60Gb
OS: Ubuntu 20.04 LTS
Installing the Gear Node | Update
sudo apt update && apt upgrade -y
copy and paste with one command
wget https://get.gear.rs/gear-nightly-linux-x86_64.tar.xz && \
tar xvf gear-nightly-linux-x86_64.tar.xz && \
rm gear-nightly-linux-x86_64.tar.xz
cp gear /usr/bin
nano /etc/systemd/system/gear-node.service
Instead of "NodeName" - specify the name of your node
[Unit]
Description=Gear Node
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/
ExecStart=/usr/bin/gear --name "NodeName" --telemetry-url "ws://telemetry-backend-shard.gear-tech.io:32001/submit 0"
Restart=always
RestartSec=3
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
Exit nano by saving changes to the file
Ctrl+X, Ctrl+Y, Enter
systemctl daemon-reload
systemctl enable gear-node
systemctl start gear-node
You can check the success of the deployed node on the Telemetry website.
Follow the link, type the name of the node.
journalctl -n 100 -f -u gear-node
Note that once a node is deleted, you won't be able to fully restore it. See the article Backup and Restore for important data to be backed up.
sudo systemctl stop gear-node
sudo systemctl disable gear-node
sudo rm -rf /root/.local/share/gear
sudo rm /etc/systemd/system/gear-node.service
sudo rm /usr/bin/gear
du -h $HOME/.local/share/gear/chains/gear_staging_testnet_v4/db/full
systemctl stop gear-node
gear purge-chain
systemctl start gear-node
Viewing the Gear Unique Node ID
hexdump -e '1/1 "%02x"' /root/.local/share/gear/chains/gear_staging_testnet_v4/network/secret_ed25519
Override key to use new server with old Gear ID
After the = sign, specify your key
gear --node-key=42bb2fdd46edfa4f41a5f0f9c1a5a1d407a39bafbce6f07456a2c8d9963c8f5c
- We recommend cleaning the previous network DB before the update:
sudo systemctl stop gear-node
gear purge-chain -y
- Then, update the node executable to the latest version that contains everything needed to connect to the new network.
wget https://get.gear.rs/gear-nightly-linux-x86_64.tar.xz
sudo tar -xvf gear-nightly-linux-x86_64.tar.xz -C /usr/bin
rm gear-nightly-linux-x86_64.tar.xz
- Start the new version (Gear Staging Testnet V6):
sudo systemctl start gear-node
- (optional) If you care about keeping your peer ID the same as earlier, you can copy the network key from the previous chain:
sudo systemctl stop gear-node
cd /root/.local/share/gear/chains
sudo cp gear_staging_testnet_v6/network/secret_ed25519 gear_staging_testnet_v7/network/secret_ed25519
sudo systemctl start gear-node
- Find your node at https://telemetry.gear-tech.io/ under the Gear Staging Testnet V5 tab.