sudo apt-get install ocl-icd-opencl-dev curl -y
sudo mkdir ~/subspace-cli && cd ~/subspace-cli
wget https://github.com/subspace/subspace/releases/download/gemini-2a-2022-sep-06/subspace-node-ubuntu-x86_64-gemini-2a-2022-sep-06
wget https://github.com/subspace/subspace/releases/download/gemini-2a-2022-sep-06/subspace-farmer-ubuntu-x86_64-gemini-2a-2022-sep-06
# 运行node
nohup ./subspace-node-ubuntu-x86_64-gemini-2a-2022-sep-06 \
--chain gemini-2a \
--execution wasm \
--state-pruning archive \
--validator \
--name <修改自己的节点名字> \
> node.log 2>&1 &
# 运行farmer
nohup ./subspace-farmer-ubuntu-x86_64-gemini-2a-2022-sep-06 farm \
--reward-address <修改为自己的钱包地址> \
--plot-size <修改为想要绘图的大小,最大100G> \
> farmer.log 2>&1 &
# 运行node
nohup ./subspace-node-ubuntu-x86_64-gemini-2a-2022-sep-06 \
--chain gemini-2a \
--execution wasm \
--state-pruning archive \
--validator \
--name test \
> node.log 2>&1 &
# 运行farmer
nohup ./subspace-farmer-ubuntu-x86_64-gemini-2a-2022-sep-06 farm \
--reward-address stxxxxxxxxxxx \
--plot-size 50G \
> farmer.log 2>&1 &
# 查看node运行日志 (退出查看日志界面,直接按键盘Ctrl + C)
cd ~/subspace-cli
tail -f node.log
#查看farmer运行日志
tail -f farmer.log
# 安装 Docker
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
systemctl enable docker
systemctl start docker
# 安装 Docker-compose
curl -L https://github.com/docker/compose/releases/download/v2.10.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
sudo mkdir ~/subspace-docker && cd ~/subspace-docker
sudo wget -O docker-compose.yml https://raw.githubusercontent.com/skyMetaverse/subspace-docker/main/dokcer-compose.yml
nodeImage=node:gemini-2a-2022-sep-06
farmerImage=farmer:gemini-2a-2022-sep-06
name=<节点名字,建议用英文>
rewardAddress=<钱包地址>
plotSize=<绘图大小>
sed -i "s/node:snapshot-DATE/node:$nodeImage/g" docker-compose.yml
sed -i "s/farmer:snapshot-DATE/node:$farmerImage/g" docker-compose.yml
sed -i "s/INSERT_YOUR_ID/$name/g" docker-compose.yml
sed -i "s/WALLET_ADDRESS/$rewardAddress/g" docker-compose.yml
sed -i "s/PLOT_SIZE/$plotSize/g" docker-compose.yml
nodeImage=ghcr.io/subspace/node:gemini-2a-2022-sep-06
farmerImage=ghcr.io/subspace/farmer:gemini-2a-2022-sep-06
name=test
rewardAddress=stxxxxxxxxxx
plotSize=50G
sed -i "s/node:snapshot-DATE/node:$nodeImage/g" docker-compose.yml
sed -i "s/farmer:snapshot-DATE/node:$farmerImage/g" docker-compose.yml
sed -i "s/INSERT_YOUR_ID/$name/g" docker-compose.yml
sed -i "s/WALLET_ADDRESS/$rewardAddress/g" docker-compose.yml
sed -i "s/PLOT_SIZE/$plotSize/g" docker-compose.yml
sudo docker-compose pull
sudo docker-compose up -d
cd ~/subspace-docker
sudo docker-compose logs -f --tail=1000
# 退出查看日志界面
# 按住键盘Ctrl + C