π§Installation
Last updated
sudo rm -rf /usr/local/go
curl -sL https://go.dev/dl/go1.21.9.linux-amd64.tar.gz | sudo tar -x -z -C ~/
echo export PATH=\$PATH:\$HOME/go/bin >> ~/.bashrc
source ~/.bashrcgit clone https://github.com/Galactica-corp/galactica.git
cd galactica
make installBINDIR=/usr/local/bin make installgalacticad version --longexport GALACTICA_HOME=$(realpath ~/.galactica)
export CHAIN_ID=[Target Chain ID]
echo > /etc/systemd/system/galactica.service <<EOF
[Unit]
Description=Galactica Network Node
After=network-online.target
[Service]
WorkingDirectory=$GALACTICA_HOME
ExecStart=$(which galacticad) start --chain-id=$CHAIN_ID --home=$GALACTICA_HOME
Type=simple
## uncomment if you want to run as a specific user and group
# User=galactica
# Group=galactica
Restart=always
[Install]
WantedBy=network.target
EOF
systemctl daemon-reload
systemctl enable --now galactica.service
systemctl status galactica.service