# Clone project repositorycd $HOMErm-rfsgegitclonehttps://github.com/sge-network/sgecdsgegitcheckoutv1.1.1makeinstallsgedversion#make sure version match the latest.
Initialize Node & Genesis
sged init NodeName --chain-id=sgenet-1
Initialize
# Set node configuration
sged config chain-id sgenet-1
sged config keyring-backend file
# Add seeds
sed -i -e "s|^seeds *=.*|seeds = \"6a727128f427d166d90a1185c7965b178235aaee@rpc.sge.nodestake.top:666,e752327338c0141b946ec54f85d51f450c4ad643@46.250.237.163:26656\"|" $HOME/.sge/config/config.toml
# Set minimfum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"10000usge\"|" $HOME/.sge/config/app.toml
# Set pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.sge/config/app.toml
// setup cosmovisor
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@latest
// create sge cosmovisor folder
mkdir -p ~/.sge/cosmovisor/genesis/bin
mkdir -p ~/.sge/cosmovisor/upgrades
// copy the binary to cosmovisor
cp ~/go/bin/sged ~/.sge/cosmovisor/genesis/bin/
Setting up services
Now we’ll create a systemd service sge.service to control the node via cosmovisor. As root and with a text editor, open /etc/systemd/system/sge.service (nano /etc/systemd/system/sge.service) and type the following: