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
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo apt install build-essential
sudo apt install --assume-yes git clang curl libssl-dev protobuf-compiler
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustc --version
rustup default stable
rustup update
rustup show
rustup +nightly show
git clone https://github.com/substrate-developer-hub/substrate-node-template
cd substrate-node-template
git switch -c my-wip-branch
cargo build --release
git clone https://github.com/availproject/avail
cd avail
mkdir -p output
mkdir -p data
git checkout v1.7.2
sudo docker run -v $(pwd)/state:/da/state:rw -v $(pwd)/keystore:/da/keystore:rw -e DA_CHAIN=kate -e DA_NAME=YOUR_NODENAME -p 0.0.0.0:30333:30333 -p 9615:9615 -p 9933:9933 -d --name=avail --restart unless-stopped availj/avail:v1.7.2