auto install
pip install rich alive-progress
wget -O story-auto.py https://raw.githubusercontent.com/Onixs50/Story-Node-Installation/refs/heads/main/story-auto.py
python3 story-auto.py
Manual installation
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
GO 1.21.6
ver="1.21.6"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
Build
cd $HOME && mkdir -p go/bin/
wget https://story-geth-binaries.s3.us-west-1.amazonaws.com/geth-public/geth-linux-amd64-0.9.2-ea9f0d2.tar.gz
wget https://story-geth-binaries.s3.us-west-1.amazonaws.com/story-public/story-linux-amd64-0.9.11-2a25df1.tar.gz
tar -xvf geth-linux-amd64-0.9.2-ea9f0d2.tar.gz
tar -xvf story-linux-amd64-0.9.11-2a25df1.tar.gz
mv ~/geth-linux-amd64-0.9.2-ea9f0d2/geth ~/go/bin/story-geth
mv ~/story-linux-amd64-0.9.11-2a25df1/story ~/go/bin/
mkdir -p ~/.story/story
mkdir -p ~/.story/geth
chek version
story version
change your moniker name
story init --network iliad --moniker "onixia_node"
wget -O $HOME/.story/story/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Story/addrbook.json"
sudo tee /etc/systemd/system/story-geth.service > /dev/null <<EOF
[Unit]
Description=Story Geth Client
After=network.target
[Service]
User=$USER
ExecStart=$HOME/go/bin/story-geth --iliad --syncmode full
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
sudo tee /etc/systemd/system/story.service > /dev/null <<EOF
[Unit]
Description=Story Consensus Client
After=network.target
[Service]
User=$USER
WorkingDirectory=$HOME/.story/story
ExecStart=$HOME/go/bin/story run
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$(curl -sS https://story-testnet-rpc.polkachu.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | paste -sd, -)\"/" $HOME/.story/story/config/config.toml
sudo systemctl daemon-reload
sudo systemctl enable story-geth
sudo systemctl enable story
sudo systemctl restart story-geth && sudo journalctl -fu story-geth -o cat
sudo systemctl restart story && sudo journalctl -fu story -o cat
story validator export --export-evm-key
story validator create --stake 1000000000000000000 --private-key "your_private_key"
curl -s http://localhost:26657/status | jq .result.sync_info
or
curl -s http://localhost:26657/status | jq
cd ~/.story/story/config
cat priv_validator_key.json | grep address
chek it here after catching_up is false
update
sudo systemctl stop story
sudo systemctl stop story-geth
wget https://story-geth-binaries.s3.us-west-1.amazonaws.com/geth-public/geth-linux-amd64-0.9.3-b224fdf.tar.gz
tar -xvf geth-linux-amd64-0.9.3-b224fdf.tar.gz
rm -rf geth-linux-amd64-0.9.3-b224fdf.tar.gz
rm -rf ~/go/bin/story-geth
mv geth-linux-amd64-0.9.3-b224fdf/geth ~/go/bin/story-geth
rm -rf $HOME/story
mkdir -p $HOME/story
git clone https://github.com/piplabs/story $HOME/story
cd $HOME/story
git checkout v0.10.1
go build -o story ./client
sudo mv $HOME/story/story $HOME/go/bin/
story version
sudo systemctl restart story-geth
sudo systemctl restart story && sudo journalctl -u story -f -o cat
or
sudo systemctl stop story && sudo systemctl stop story-geth && wget https://story-geth-binaries.s3.us-west-1.amazonaws.com/geth-public/geth-linux-amd64-0.9.3-b224fdf.tar.gz && tar -xvf geth-linux-amd64-0.9.3-b224fdf.tar.gz && rm -rf geth-linux-amd64-0.9.3-b224fdf.tar.gz && rm -rf ~/go/bin/story-geth && mv geth-linux-amd64-0.9.3-b224fdf/geth ~/go/bin/story-geth && rm -rf $HOME/story && mkdir -p $HOME/story && git clone https://github.com/piplabs/story $HOME/story && cd $HOME/story && git checkout v0.10.1 && go build -o story ./client && sudo mv $HOME/story/story $HOME/go/bin/ && story version && sudo systemctl restart story-geth && sudo systemctl restart story && sudo journalctl -u story -f -o cat
when at Height -> 1325860
cd $HOME
rm -rf story
git clone https://github.com/piplabs/story
cd $HOME/story
git checkout v0.11.0
go build -o story ./client
sudo mv $HOME/story/story $(which story)
story version
sudo systemctl restart story && journalctl -fu story -ocat
or
cd $HOME && rm -rf story && git clone https://github.com/piplabs/story && cd story && git checkout v0.11.0 && go build -o story ./client && sudo mv $HOME/story/story $(which story) && story version && sudo systemctl restart story && journalctl -fu story -ocat