ENG Version instructions for running the full Moonbeam node in Ubuntu 18.04 / 20.04 on WSL2 (Windows system component for running Linux applications inside Windows 10 and Windows Server 2019)

Enabling the Windows Subsystem for Linux.

dism.exe /online /enable-feature /featurename:Microsoft-Windows- Subsystem-Linux /all /norestart

Checking requirements for running WSL 2.

Enabling the virtual machines component.

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Downloading the Linux kernel update package.

Choosing WSL 2 as the default version.

wsl — set-default-version 2

Installing a Linux distribution of choice.

Install your distribution version to WSL 1 or WSL 2

wsl — list — verbose
wsl — set-version <distribution name> <versionNumber>
wsl — set-default-version 2

Installing docker on Ubuntu 18.04 WSL 2

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable”
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo systemctl status docker
sudo service docker start
sudo service docker status

Installing a node in Ubuntu 18.04 WSL 2

Port opening

sudo ufw allow 30333/tcpsudo ufw allow 30334/tcp

Creating a directory, setting access rights

mkdir /var/lib/alphanet-datachmod 777 /varchmod 777 /var/libchmod 777 /var/lib/alphanet-data

Running a node

docker run -p 30334:30334 -p 30333:30333 -v "/var/lib/alphanet-data:/data" \
purestake/moonbase-parachain-testnet:v0.5.1 \
/moonbase-alphanet/moonbase-alphanet \
--base-path=/data \
--chain alphanet \
--name="YOUR-NODE-NAME" \
--execution wasm \
--wasm-execution compiled \
--state-cache-size 4 \
-- \
--name="YOUR-NODE-NAME (Embedded Relay)"
sudo docker logs container id -f  --tail="100" - launches the node logs
sudo docker ps

Starting and stopping containers

sudo docker start container id
sudo docker stop container id
sudo docker restart container id
sudo docker attach container id

Installing Windows Terminal for the convenience of working with a node in Ubuntu 18.04 WSL 2





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Curious Case of the Sorted Array

Quest Techie: Wireless File Access From Your Phone, Computer

An interesting tool/technology I encountered in preparation for Bootcamp

2020 SDK Update

Activate x Wormhole Miami: Join The First Multi-Chain Hackathon

How to Trim a Binary Search Tree?

SUP.1 Quality Assurance 品質保證

Introduction to VANTA’s API and SDK Services

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alexander B.

Alexander B.


More from Medium

Access Delegation — OAuth 2.0 sample WSO2

Nu World fishing area is being prepared!

Introduction to KoaJS

Auto-Staking Features