Windows OS
How to Setup a Darknode via AWS on Windows
Step 1: Creating an AWS Account and Access Keys
Create an account on Amazon Web Service | https://aws.amazon.com
Enter your personal and payment information
Once completed check out our Getting Started on AWS instructions and follow the instructions found below to acquire your Access Keys:
Once your Access Keys have been acquired
Download the CSV file containing your access key ID, and your secret access key. Make sure you keep these values secure, anyone with access to them will be able to control your Darknode.
Step 2: Installing the Necessary Windows Software
Follow the below instructions:
Click Start and type Powershell. Right-click and launch Windows PowerShell as an administrator. Run this command:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
This will activate "Windows Subsystem for Linux" optional feature. After this, restart your computer.
Once restarted, open Microsoft Store and search for Ubuntu 18.04 LTS. Click on it and from the distribution's page, select "Get".
Open up Ubuntu app on Desktop once installed and then you will be asked to:
Launch Ubuntu and create a user account and password for your new Linux distribution but clicking this link.
Close terminal and proceed below
Step 3: Install the Darknode CLI on Your Computer
Open your Ubuntu terminal
Input the password you created above in step 2.5.1.
Insert this text to install the CLI, by pasting:
curl https://www.github.com/renproject/darknode-cli/releases/latest/download/install.sh -sSfL | sh
Wait a minute or two. Once successfully installed, you'll see some green text.
Step 4: Deploy your Darknode
Close and re-open the Terminal app on your computer
If everything goes well, you should see 3.1.3 when you run
darknode --version
command.Then copy and paste the following:
Replace MY-FIRST-DARKNODE and YOUR-AWS-KEY and YOUR-AWS-SECRET-KEY
Input a name for your Darknode but make sure it has no spaces in it or is not too long.
Input your access keys and secret key found in step 1 Example of what this would look like: darknode up --name darknodeone --aws --aws-access-key 5151585151 --aws-secret-key 5818181181818
Press enter and wait approximately 3-5 minutes while your Darknode is installed.
Don’t touch anything, let the CLI works its magic and wait patiently!
When completed, a web page should pop up and redirect you the Command Center but if not, you will be provided a link (in green) within the terminal.
Some tips to keep in mind
If you see "Register Darknode (Public Key Required)". Copy/paste the green link directly from Ubuntu, input that into your web browser and all should work well.
Turn off all ad blockers (and "shields" if using Brave).
If using a Ledger via MetaMask, make sure your “Contract Data” is turned on.
Step 5: Register and launch your Darknode on the Command Center (CC)
Sign into MetaMask and then bookmark your CC Webpage!
Before proceeding, make sure you have 100K REN in your MetaMask wallet.
Please be aware you must register using the CC with MetaMask. You can use Hardware wallets via MetaMask but we have seen issues in the past with drivers updates, etc.. so proceed with caution and make sure your contract data setting is turned on.
Note: One cannot just send REN to your Darknode because this will not cause it to be registered.
Sign into MetaMask as you normally would and ensure the above REN and ETH are in your account.
Register your Darknode
Click the ‘REGISTER YOUR DARKNODE’ button (top left) in the CC.
Submit your 100K Ren via MetaMask instructions, signing the presented transactions.
Once completed, you will be notified that your ‘Registration is in Progress’
Wait patiently for your Darknode to be fully registered (can take up to 28 days).
The CC will not function fully until the Darknode has been fully registered, so don't be alarmed if you explore the CC and buttons don't function properly. Just wait to explore until your registration is complete.
[Very important step!] Back up your Darknode file by inputting this into your terminal and pressing enter:
cp -r .darknode/ /mnt/c/Users/Administrator/Desktop/2020xxxx
(Note: Replace ‘Administrator’ with you Windows username). A backup folder will then appear on your Desktop, save this somewhere safe!After the (up to) 28 days waiting period, check back on the CC.
Review the NETWORK INFORMATION tab on the right-hand side of the CC for details. The CC should also note that you Darknode is 'Registered' on the top-left.
Step 6: Congrats, you're all done and remember to periodically check on your Darknode.
Last updated