April 13, 2022

Subspace node installation guide

Subspace Network lets developers run Web3 apps at Internet scale. It provides a simple interface for quickly deploying multi-chain decentralized apps that auto-scale with demand. Subspace is powered by a new eco-friendly, 4th generation blockchain that enables massively scalable on-chain storage and compute, without compromising security or decentralization. It seamlessly integrates with existing blockchains, layer two protocols, and decentralized applications, allowing it to serve as a foundational infrastructure layer for the entire Web3 ecosystem. Subspace will empower builders to unlock the next wave of crypto adoption by supporting NFTs, GameFi, and the Metaverse at Internet scale.

Subspace Labs, the developer of Subspace Network, announced fundraising of $32,9M from Pantera Capital with Coinbase Ventures, Crypto.com, Alameda Research, ConsenSys Mesh, KR1, Hypersphere Ventures, Stratos Technologies, Alumni Ventures. Blockchain Fund, GSR Ventures, Eniac Ventures, Bixin Ventures, Definancex, Candaq, Vendetta Capital, Illusionist Group, NGC Ventures, Cabin VC, Gate Ventures, OneBlock Capital & Automata Network.

Follow projects' socials for updates.

Discord | Twitter | Web | Medium

Server rental

Rent a server, for example, on Contabo. The following characteristics are suitable for Subspace: 2 CPU, 2 GB RAM, 60 SSD & the Ubuntu 20.04 OS. An example of such server is at the link.

After the purchase, you will receive an email with your server data: IP address and password.

Connection to server

To connect to the server on Windows, use PuTTy.

  • Paste server IP to “Host Name” and click “Open”
  • In the opened tab, write the command: root;
  • Press “Enter” and paste the password from the server, then “Enter”

On macOS, launch the Terminal.

  • Enter the server with the command (change IP_ADDRESS to the server IP):ssh root@IP_ADDRESS
  • Next, enter “yes”, press “Enter,” and paste the server password (the icon with the key will hide the entered password). Press “Enter”.

Node installation

After a successful connection to your server, enter the commands to update & add needed tools:

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install wget -y

Then:

mkdir $HOME/subspace
cd $HOME/subspace &&
wget https://github.com/subspace/subspace/releases/download/snapshot-2022-mar-09/subspace-farmer-ubuntu-x86_64-snapshot-2022-mar-09 -O farmer &&
wget https://github.com/subspace/subspace/releases/download/snapshot-2022-mar-09/subspace-node-ubuntu-x86_64-snapshot-2022-mar-09 -O subspace &&
sudo chmod +x * &&
sudo mv * /usr/local/bin/ &&
cd $HOME &&
rm -Rvf $HOME/subspace

After we need to check installed versions:

farmer --version && subspace --version

The result should be like this:

For further installation, we need a Polkadot wallet. Download the wallet here. After registration, select "Allow use on any chain", then go to the Subspace Testnet website and copy the address by clicking on the icon next to your wallet name, look at the screen below.

Set your node's name

echo "export NICKNAME="nickname"" >> ~/.bash_profile
Replace the "nickname" with the name you like, for example:
echo "export NICKNAME="test"" >> ~/.bash_profile

Now enter your wallet:

echo "export SUBSPACE_ADDRESS="address"" >> ~/.bash_profile
Replace "address" with you wallets' address, which you've got on website, for example:
echo "export SUBSPACE_ADDRESS="st8BLg9p6ysCuDjEmMV7X4L9NbFVWdwwmJsQ9epgLnB4CJqEJ"" >> ~/.bash_profile

Reboot bash_profile:

source ~/.bash_profile

Check your node's name and wallet:

echo "node name: '$NICKNAME', wallet: '$SUBSPACE_ADDRESS'."

Then enter:

sudo tee <<EOF >/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF

Restart journal:

sudo systemctl restart systemd-journald

Then create a file to start the node:

sudo tee <<EOF >/dev/null /etc/systemd/system/subspaced.service
[Unit]
Description=Subspace Node
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which subspace) \\
--chain testnet \\
--wasm-execution compiled \\
--execution wasm \\
--bootnodes "/dns/farm-rpc.subspace.network/tcp/30333/p2p/12D3KooWPjMZuSYj35ehced2MTJFf95upwpHKgKUrFRfHwohzJXr" \\
--rpc-cors all \\
--rpc-methods unsafe \\
--ws-external \\
--validator \\
--telemetry-url "wss://telemetry.polkadot.io/submit/ 1" \\
--telemetry-url "wss://telemetry.subspace.network/submit 1" \\
--name $NICKNAME
Restart=on-failure
RestartSec=10
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF

Start the node:

sudo systemctl daemon-reload && sudo systemctl enable subspaced && sudo systemctl restart subspaced

Check logs (ignore telemetry errors):

sudo journalctl -u subspaced -f -o cat

Then create farmer file:

sudo tee <<EOF >/dev/null /etc/systemd/system/farmerd.service
[Unit]
Description=Subspace Farmer
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which farmer) farm --reward-address=$SUBSPACE_ADDRESS
Restart=on-failure
RestartSec=10
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF

Start farmer:

sudo systemctl daemon-reload && sudo systemctl enable farmerd && sudo systemctl restart farmerd

Check logs:

sudo journalctl -u farmerd -f -o cat

This completes the installation. After this, you'll start token farming. Check farmed amount on the website.


Commands to check logs & restart.

sudo journalctl -u farmerd -f -o cat
sudo journalctl -u subspaced -f -o cat
sudo systemctl restart farmerd subspaced

WhiteList Official | Telegram | Chat | Twitter