Chain ID: centauri-1 | Current Node Version: v6.6.41
Feel free to skip this step if you already have Go and Cosmovisor.
We will use Go v1.22.4
as
example here. The code below also
cleanly removes any previous Go installation.
sudo rm -rvf /usr/local/go/
wget https://golang.org/dl/go1.22.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
rm go1.22.4.linux-amd64.tar.gz
Unless you want to configure in a non-standard way, then set these in
the ~/.profile
file.
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
We will use Cosmovisor v1.0.0
as example here.
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]
Install the current version of node binary.
git clone https://github.com/ComposableFi/composable-cosmos picasso
cd picasso
git checkout v6.6.41
make install
Please replace YOUR_MONIKER
with your own moniker.
picad init YOUR_MONIKER --chain-id centauri-1
The genesis file link below is Polkachu's mirror download. The best practice is to find the official genesis download link.
wget -O genesis.json https://snapshots.polkachu.com/genesis/picasso/genesis.json --inet4-only
mv genesis.json ~/.banksy/config
Using a seed node to bootstrap is the best practice in our view. Alternatively, you can use addrbook or persistent_peers.
sed -i 's/seeds = ""/seeds = "[email protected]:22256"/' ~/.banksy/config/config.toml
Create Cosmovisor folders and load the node binary.
# Create Cosmovisor Folders
mkdir -p ~/.banksy/cosmovisor/genesis/bin
mkdir -p ~/.banksy/cosmovisor/upgrades
# Load Node Binary into Cosmovisor Folder
cp ~/go/bin/picad ~/.banksy/cosmovisor/genesis/bin
Create a picasso.service
file in the
/etc/systemd/system
folder with the following code snippet.
Make sure to replace USER
with your Linux user name. You
need sudo previlege to do this step.
[Unit]
Description="picasso node"
After=network-online.target
[Service]
User=USER
ExecStart=/home/USER/go/bin/cosmovisor start
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=picad"
Environment="DAEMON_HOME=/home/USER/.banksy"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"
[Install]
WantedBy=multi-user.target
# Enable service
sudo systemctl enable picasso.service
# Start service
sudo service picasso start
# Check logs
sudo journalctl -fu picasso
This installation guide is the bare minimum to get a node started. You should consider the following as you become a more experienced node operator.
If you find a bug in this installation guide, please reach out to our Discord Server and let us know.