Installation Node
Hardware requirements
The following requirements are recommended for running :
- 4 or more physical CPU cores
- At least 200GB of SSD disk storage
- At least 8GB of memory (RAM)
- SWAP: 4 GB (RAM)
- At least 100mbps network bandwidth
Create Polkadot.js wallet
To create polkadot wallet:
- Download and install Browser Extension
- Navigate to Subspace Explorer and press
Add account
button - Save
mnemonic
and create wallet - This will generate wallet address that you will have to use later. Example of wallet address:
st7QseTESMmUYcT5aftRJZ3jg357MsaAa93CFQL5UKsyGEk53
NODE
Package
sudo apt update && sudo apt install curl -y
sudo apt update && sudo apt install ocl-icd-opencl-dev libopencl-clang-dev libgomp1 -y
Vars Input Your_Nodename & Wallet_address
NODENAME=<YOUR_NODENAME>
WALLET_ADDRESS=<YOUR_WALLET_ADDRESS>
PLOT_SIZE=100G
Import
echo "export NODENAME=$NODENAME" >> $HOME/.bash_profile
echo "export WALLET_ADDRESS=$WALLET_ADDRESS" >> $HOME/.bash_profile
echo "export PLOT_SIZE=$PLOT_SIZE" >> $HOME/.bash_profile
source $HOME/.bash_profile
Binary skylake: for Intel/AMD Ryzen processors and newer
cd $HOME
rm -rf subspace-*
wget -O subspace-node https://github.com/subspace/subspace/releases/download/gemini-3f-2023-sep-05subspace-node-ubuntu-x86_64-skylake-gemini-3f-2023-sep-05
wget -O subspace-farmer https://github.com/subspace/subspace/releases/download/gemini-3f-2023-sep-05/subspace-farmer-ubuntu-x86_64-skylake-gemini-3f-2023-sep-05
chmod +x subspace-*
mv subspace-* /usr/local/bin/
Binary for older processors since ~2009 and some old VMs
cd $HOME
rm -rf subspace-*
wget -O subspace-node https://github.com/subspace/subspace/releases/download/gemini-3f-2023-sep-05/subspace-node-ubuntu-x86_64-v2-gemini-3f-2023-sep-05
wget -O subspace-farmer https://github.com/subspace/subspace/releases/download/gemini-3f-2023-sep-05/subspace-farmer-ubuntu-x86_64-v2-gemini-3f-2023-sep-05
chmod +x subspace-*
mv subspace-* /usr/local/bin/
Latest skylake: for Intel/AMD Ryzen processors and newer
cd $HOME
rm -rf subspace-*
wget -O subspace-node https://github.com/subspace/subspace/releases/download/gemini-3f-2023-sep-13-2/subspace-node-ubuntu-x86_64-skylake-gemini-3f-2023-sep-13-2
wget -O subspace-farmer https://github.com/subspace/subspace/releases/download/gemini-3f-2023-sep-13-2/subspace-farmer-ubuntu-x86_64-skylake-gemini-3f-2023-sep-13-2
chmod +x subspace-*
mv subspace-* /usr/local/bin/
systemctl restart subspaced
systemctl restart subspaced-farmer
Latest for older processors since ~2009 and some old VMs
cd $HOME
rm -rf subspace-*
wget -O subspace-node https://github.com/subspace/subspace/releases/download/gemini-3f-2023-sep-13-2/subspace-node-ubuntu-x86_64-v2-gemini-3f-2023-sep-13-2
wget -O subspace-farmer https://github.com/subspace/subspace/releases/download/gemini-3f-2023-sep-13-2/subspace-farmer-ubuntu-x86_64-v2-gemini-3f-2023-sep-13-2
chmod +x subspace-*
mv subspace-* /usr/local/bin/
systemctl restart subspaced
systemctl restart subspaced-farmer
Service Subspace Node
tee $HOME/subspaced.service > /dev/null <<EOF
[Unit]
Description=Subspace Node
After=network.target
[Service]
User=$USER
Type=simple
ExecStart=$(which subspace-node) --chain gemini-3f --execution wasm --state-pruning archive --validator --name $NODENAME
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
mv $HOME/subspaced.service /etc/systemd/system/
Start
sudo systemctl daemon-reload
sudo systemctl enable subspaced
sudo systemctl restart subspaced
Service Subspace Farmer change <WALLET_ADDRESS> with ur wallet & Plot Size=<ex=100G>
tee $HOME/subspaced-farmer.service > /dev/null <<EOF
[Unit]
Description=Subspaced Farm
After=network.target
[Service]
User=$USER
Type=simple
ExecStart=/usr/local/bin/subspace-farmer farm --reward-address <WALLET_ADDRESS> path=/root/.local/share/subspace-farmer,size=<PLOT_SIZE>
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
mv $HOME/subspaced-farmer.service /etc/systemd/system/
Start
sudo systemctl daemon-reload
sudo systemctl enable subspaced-farmer
sudo systemctl restart subspaced-farmer
Cek Node status
service subspaced status
Cek Logs
journalctl -u subspaced -f -o cat
Cek Famer Status
service subspaced-farmer status
Cek Log Farmer
journalctl -u subspaced-farmer -f -o cat
Reinstall Farmer
cd $HOME
wget -O subspace-farmer https://github.com/subspace/subspace/releases/download/gemini-3f-2023-sep-05/subspace-farmer-ubuntu-x86_64-skylake-gemini-3f-2023-sep-05
chmod +x subspace-*
mv subspace-* /usr/local/bin/
Restart
sudo systemctl daemon-reload
sudo systemctl enable subspaced-farmer
sudo systemctl restart subspaced-farmer
Wipe
/usr/local/bin/subspace-farmer wipe /root/.local/share/subspace-farmer
Delete Node
sudo systemctl stop subspaced
sudo systemctl stop subspaced-farmer
sudo systemctl disable subspaced
sudo systemctl disable subspaced-farmer
rm -rf ~/.local/share/subspace*
rm -rf /etc/systemd/system/subspaced*
rm -rf /usr/local/bin/subspace*