This page outlines the steps involved on setting up a local node on Windows
- If Windows Subsystem for Linux is not enabled, open PowerShell as administrator and run:
Then restart your computer.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Go to your Microsoft Store and look for Ubuntu; this is the Ubuntu Terminal instance. Install and launch it.
- Now you might be asked for username and password, do not use admin as username.
- Your Ubuntu Instance does not have OpenSSL, which you will need to run the node. To download OpenSSL, please run the following commands in the Ubuntu Terminal:
tar xvf openssl-1.1.1.tar.gz
- After it finished downloading OpenSSL, run the following commands to install:
sudo ./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)'
The files will be under the following directory: /usr/local/ssl.
sudo make install
- Once this is finished, you have to ensure that Ubuntu is going to use the right version of OpenSSL. Now update the path for man pages and binaries. Run the following command:
sudo nano /etc/manpath.config
- A text file will open, add the following line:
- Once this is done press ctrl + o . It will ask you to save the file, just press enter. Now press ctrl + x to exit.
- To make sure that OpenSSL is installed run:
This should show you the installed version. More info on this can be found here. (https://manpages.ubuntu.com/manpages/bionic/man1/version.1ssl.html)
openssl version -v
- Now you have to run the following commands:
sudo apt-get update
sudo apt-get upgrade
Great! All set to get the node up and running!
sudo apt-get install pkg-config libssl-dev
- Create a new directory:
mkdir nearprotocol (you can name this however you like)
- Change into the directory:
- Install a few more dependencies:
sudo apt update
sudo apt install -y git binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev cmake gcc g++ python docker.io protobuf-compiler
- Clone the github nearcore
git clone https://github.com/nearprotocol/nearcore.git
- This created a nearcore directory, change into that one:
Final: And now run the testnet:
sudo ./scripts/start_testnet.py --nodocker
You might be asked for a validator ID; if you do not want to validate, simply press enter. For validation, please refer to the validation section.