Mac OS & Linux
How to Setup a Darknode via AWS | Chaosnet Instructions
How to Setup a Chaosnet Darknode via AWS on Mac OS & Linux
Step 1: Destroy old Darknode(s)
If you have any previously deployed Darknodes on AWS; deregister, refund and destroy by following these instructions.
After this has been fully completed, delete the entire .darknode backup folder on your computer. It is no longer relevant if you have completed the above steps.
Delete the API token via https://aws.amazon.com/ that correspond to the old Darknode.
*The new Chaosnet CLI is not backwards compatible with old darknodes, so if trying to managing old backup with new darknode-cli, it’s not going to work. The old Darknode CLI (version 2.2.11 release) must be used to deregister old Darknodes. You must not upgrade your CLI until you have done this.
Step 2: Starting Fresh | 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 3: Install the Darknode CLI on Your Computer
Open your Terminal
Open your terminal by searching for 'Terminal' in the 'Launchpad' app
Click the app to open the Terminal
Insert this text to install the CLI, by pasting:
curl https://www.github.com/renproject/darknode-cli/releases/latest/download/install.sh -sSfL | sh
It will take a minute. Once successfully installed, you'll see some green text.
Now, close the Terminal app and re-open.
If everything goes well, you should see v3.0.2 when you run
darknode -v
command.
Step 4: Deploy your Darknode
Re-open the Terminal app on your computer
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 2 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, the CC should open automatically in your browser but you will also be provided a link (in green) within the terminal. If it doesn't open automatically in your browser, copy and paste (the relatively long green link) it into the web-browser. Either way it will take you to the new Command Center!
Step 5: Register and launch your Darknode on the Command Center (CC)
Bookmark your CC Webpage!
Before proceeding, make sure you have 10,000K REN in your MetaMask wallet along with at least .1 ETH (recommended amount) for your Darknode's GAS.
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.
At this point, the CC will indicate the profitability of running a Darknode (via pop-up notification), and you will be notified if it’s unprofitable.
If you choose to proceed, follow the below steps.
Submit your 10K Ren via MetaMask instructions, sign transactions, etc.
Wait a few minutes while your Darknode registers, sign the needed MetaMask transactions for GAS, etc.
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 8 days)
In the meantime, top-up your Darknode up with GAS via the ‘GAS BALANCE’ section
Click the arrow ‘>’ and submit .1 ETH (recommended amount) for GAS.
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.
Once you've added ETH to your Darknode, wait patiently, but in the interim:
Back up your Darknode file on MAC OS but inputting this into your Terminal and pressing enter:
cp -r ~/.darknode ~/Desktop/darknode-backup-2019XXXX
(i.e XXXX = A date of your choice).A backup folder will then appear on your Desktop, save this somewhere safe!
After the 8 day 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 and refill it with ETH as needed. Welcome to Chaosnet!
Last updated