May 9, 2022

Гайд для GEAR

wget https://builds.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 && \
chmod +x gear-node

apt install -y clang build-essential

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

rustup toolchain add nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

git clone https://github.com/gear-tech/gear.git
cd gear

cargo build -p gear-node --release


tee <<EOF >/dev/null /etc/systemd/system/gear-node.service
[Unit]
Description=Gear Node
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/root/
ExecStart=/root/gear-node --name 'NODE_NAME' --telemetry-url 'ws://telemetry-backend-shard.gear-tech.io:32001/submit 0'
Restart=always
RestartSec=3
LimitNOFILE=10000

[Install]
WantedBy=multi-user.target

EOF


systemctl start gear-node
systemctl enable gear-node

Обновления и детали можно чекнуть у официалов https://wiki.gear-tech.io/node/setting-up