Running a Handshake Full Node on the Windows Subsystem for Linux

Introduction

Activate the Windows Subsystem for Linux

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart

Install Ubuntu on Windows

sudo apt update sudo apt upgrade

Set up Environment and Dependencies

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install v14.16.1
node --version
sudo apt install unbound
sudo apt install python3-pip

Install and Configure the Handshake Daemon

git clone git://github.com/handshake-org/hsd.git
npm install --production
./bin/hsd
node -e "bcrypto=require('bcrypto');\ console.log(bcrypto.random.randomBytes(32).toString('hex'))"
touch hsd.confecho "http-host: 0.0.0.0" >> hsd.confecho "api-key: <your-generated-api-key>" >> hsd.conf
npm install --global hs-client
tmux./bin/hsd

Wrap Up

Hacker & Popperian