- Install
sudo apt update
wget <https://story-geth-binaries.s3.us-west-1.amazonaws.com/geth-public/geth-linux-amd64-0.9.2-ea9f0d2.tar.gz>
tar -xzvf geth-linux-amd64-0.9.2-ea9f0d2.tar.gz
sudo cp geth-linux-amd64-0.9.2-ea9f0d2/geth $HOME/go/bin/story-geth
source $HOME/.bash_profile
story-geth version
# Update or add MONIKER
grep -q '^export MONIKER=' ~/.bash_profile && \\
sed -i 's/export MONIKER="[^"]*"/export MONIKER="zstake"/' ~/.bash_profile || \\
echo 'export MONIKER="zstake"' >> ~/.bash_profile
source ~/.bash_profile
- Git install
wget <https://story-geth-binaries.s3.us-west-1.amazonaws.com/story-public/story-linux-amd64-0.9.11-2a25df1.tar.gz>
tar -xzvf story-linux-amd64-0.9.11-2a25df1.tar.gz
sudo cp story-linux-amd64-0.9.11-2a25df1/story $HOME/go/bin/story
source $HOME/.bash_profile
story version
- 0gchain Install
story init --network iliad
- 0gchain Service create
sudo tee /etc/systemd/system/story-geth.service > /dev/null <<EOF
[Unit]
Description=Story Geth Client
After=network.target
[Service]
User=rootExecStart=/root/go/bin/story-geth --iliad --syncmode full
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.targetEOF
- Snapshot Download
sudo tee /etc/systemd/system/story.service > /dev/null <<EOF
[Unit]
Description=Story Consensus Client
After=network.target
[Service]
User=root
ExecStart=/root/go/bin/story run
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
- story Service Restart
sudo systemctl daemon-reload && \\
sudo systemctl start story && \\
sudo systemctl enable story && \\
sudo systemctl status story
- story-geth Service Restart
sudo systemctl daemon-reload && \\
sudo systemctl start story-geth && \\
sudo systemctl enable story-geth && \\
sudo systemctl status story-geth
- Log Check
sudo journalctl -u story-geth -f -o cat
sudo journalctl -u story -f -o cat