This guide ensures the Bitrecs validator works on Ubuntu 24.10 LTS. Follow the steps below.
sudo apt install ufw
sudo apt-get update && sudo apt-get upgrade -y
ufw allow 22
ufw allow proto tcp to 0.0.0.0/0 port 8091
ufw enable
ufw reload
sudo mount -o remount,size=8G /tmp
sudo apt-get update && sudo apt-get upgrade -y
apt install python3-pip
sudo apt install python3.12-venv
mkdir bt
cd bt
python3.12 -m venv bt_venv
source bt_venv/bin/activate
pip3 install bittensor[torch]
echo "source /root/bt/bt_venv/bin/activate" >> ~/.bashrc
reboot now
sudo apt-get update && sudo apt-get upgrade -y
cd /bt
git clone https://github.com/janusdotai/bitrecs-subnet.git
cd bitrecs-subnet
pip3 install -r requirements.txt
python3 -m pip install -e .
sudo apt install -y nodejs npm
sudo npm install -g pm2
If you do not have a Bittensor coldkey:
- Install btcli: Installation Guide
- Create coldkey and hotkey: BTCLI Wallet Guide
If you already have a wallet, run the following on the validator:
btcli w regen_coldkeypub
btcli w regen_hotkey
btcli subnet register --wallet.name default --wallet.hotkey default --network ws://138.197.163.127:9944
btcli stake add --wallet.name default --wallet.hotkey default --network ws://138.197.163.127:9944
Before running the validator, edit the environment file and fill in the necessary details.
pm2 start ./neurons/validator.py --name v -- --netuid 296 --subtensor.chain_endpoint wss://test.finney.opentensor.ai:443 --wallet.name default --wallet.hotkey default --logging.debug
- Verify the validator is running.
- Use
pm2 list
to check running processes.
Congratulations! Your Bitrecs validator is now set up and running. 🚀
``