Dedicated Smesher Dedicated Node Spacemesh Setup Smeshing Part 14
#############################
Video Source: www.youtube.com/watch?v=cpzvRi1AkCg
This is part 1 of 4 where I walk through every step required to run a dedicated smesher and then move the files to a low power node to mine. This is specifically for Linux + Nvidia users. • Instructions • Post CLI • Update • sudo apt update sudo apt upgrade -y • Dependencies • sudo apt install git clinfo nvtop nvidia-driver-525 tmux unzip -y • Reboot • sudo reboot • Confirm card is detected • clinfo -l • Set up directory • mkdir postcli • Change Directory • cd postcli • Download PostCLI • https://github.com/spacemeshos/post/r... and copy link for latest release • wget [Latest Release URL Here] • Unzip • unzip postcli-Linux.zip • Make executable • chmod +x postcli • Confirm you can see providers, take note of ID for GPU • ./postcli -printProviders • Post Data Storage • Same Disk • cd .. • mkdir postdata • Separate Disk • Find Disk • lsblk • Format Disk - THIS WILL ERASE ALL DATA ON THE DRIVE!!! • sudo mkfs -t ext4 /dev/nvme0n1 • See space prior to tune2fs • df -h • Remove Reserved Space • sudo tune2fs -r 0 /dev/nvme0n1 • Make mount directory • sudo mkdir /media/postdata • Get UUID • lsblk -f • Open fstab • sudo nano /etc/fstab • Add Line • UUID=[Your UUID] /media/postdata ext4 defaults,noatime,nofail 0 0 • Change ownership of drive • sudo chown -R $USER:$USER /media/postdata • Mount • sudo mount -av • Decide how much space to use • Drive Size GB / 1.074 / 64 = numUnits (round down) • Execute Post CLI command • cd ~/postcli • Get Highest ATX • Ask in discord or run spacemesh node (go-spacemesh) • If running go-spacemesh node, you can use echo -n '[highest atx from node]' | base64 -d | xxd -c 32 -g 32 to convert to hex • sudo ./postcli -provider 0 -commitmentAtxId [Highest ATX] -labelsPerUnit 4294967296 -maxFileSize 2147483648 -numUnits 26 -datadir /media/postdata • The key.bin is automatically created since we did not provide a -id flag. If you have to stop and then restart you must get the last 64 characters of your key.bin cat key.bin | tail -c 64 ; echo and use it as your -id flag (add it to the postcli command) so it looks like this • sudo ./postcli -provider 0 -commitmentAtxId [Highest ATX] -id [ID] -labelsPerUnit 4294967296 -maxFileSize 2147483648 -numUnits 26 -datadir /media/postdata • If this video helped you, please share with others. Let's make Spacemesh community the best community. Thanks!
#############################