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-10/subspace-node-ubuntu-x86_64-gemini-2a-2022-sep-10
wget https://github.com/subspace/subspace/releases/download/gemini-2a-2022-sep-10/subspace-farmer-ubuntu-x86_64-gemini-2a-2022-sep-10
# 运行node
nohup ./subspace-node-ubuntu-x86_64-gemini-2a-2022-sep-10 \
--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-10 farm \
--reward-address <修改为自己的钱包地址> \
--plot-size <修改为想要绘图的大小,最大100G> \
> farmer.log 2>&1 &
# 运行node
nohup ./subspace-node-ubuntu-x86_64-gemini-2a-2022-sep-10 \
--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-10 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
curl -fsSL get.docker.com -o get-docker.sh \
&& sh get-docker.sh \
&& systemctl enable docker \
&& systemctl start docker \
&& 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 \
&& docker info \
&& docker-compose -v
sudo mkdir ~/subspace-docker && cd ~/subspace-docker
sudo wget -O docker-compose.yml https://raw.githubusercontent.com/skyMetaverse/subspace-docker/main/dokcer-compose.yml
name=<节点名字,建议用英文>
rewardAddress=<钱包地址>
plotSize=<绘图大小>
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.ymlshe
name=test
rewardAddress=stxxxxxxxxxx
plotSize=100G
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