Story-Tesnet
Story Test
💻 Sistem Gereksinimleri
Bileşenler
Minimum Gereksinimler
🚧Gerekli kurulumlar
🚧Go kurulumu
Story
Last updated
Last updated
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
sudo apt install -y \
curl \
git \
make \
jq \
build-essential \
gcc \
unzip \
wget \
lz4 \
aria2 \
ghcd $HOME
VER="1.22.0"
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"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bincd $HOME
wget https://github.com/piplabs/story-geth/releases/download/v1.0.2/geth-linux-amd64
sudo mv ./geth-linux-amd64 story-geth
sudo chmod +x story-geth
sudo mv ./story-geth $HOME/go/bin/
source $HOME/.bashrcgit colone https://github.com/piplabs/story-geth.git
cd story-geth
go build -v ./cmd/geth
mv ./geth $HOME/go/bin/story-gethstory-geth versionsudo tee /etc/systemd/system/story-geth.service > /dev/null <<EOF
[Unit]
Description=Story Geth Client
After=network.target
[Service]
User=${user}
ExecStart=$(which story-geth) --aeneid --syncmode full
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOFsudo systemctl daemon-reload
sudo systemctl enable story-geth
sudo systemctl restart story-gethsudo systemctl status story-gethjournalctl -u story-geth -f -o catcd $HOME
wget https://github.com/piplabs/story/releases/download/v1.2.0/story-linux-amd64
sudo mv story-linux-amd64 story
sudo chmod +x story
sudo mv ./story $HOME/go/bin/
source $HOME/.bashrc
story versionstory init --network aeneid --moniker corenodePEERS="[email protected]:32656,[email protected]:26656,[email protected]:28656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:29256,[email protected]:26656,[email protected]:28656,[email protected]:26656,[email protected]:56356,[email protected]:26656,[email protected]:26656,[email protected]:56356,[email protected]:26656,[email protected]:29256,[email protected]:29456,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:29456"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.story/story/config/config.tomlsudo tee /etc/systemd/system/story.service > /dev/null <<EOF
[Unit]
Description=Story
After=network.target
[Service]
Type=simple
User=${USER}
Group=${GROUP}
ExecStart=$(which story) run
Restart=on-failure
RestartSec=5s
LimitNOFILE=65535
WorkingDirectory=$HOME/.story/story
[Install]
WantedBy=multi-user.target
EOFsudo systemctl daemon-reload
sudo systemctl enable story
sudo systemctl restart storyjournalctl -u story -f -o cat