Windows OS

Chaosnet Darknode via Digital Ocean with Windows OS

How to Setup a Chaosnet Darknode via Digital Ocean (DO) on Windows

Step 1: Destroy old Darknode(s)

  1. If you have any previously deployed Darknodes; deregister, refund and destroy by following these instructions.

  2. 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.

  3. Delete the API token via https://cloud.digitalocean.com/account/api 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 | Create a Digital Ocean Account and API Token

  1. If you don't have one already, create an account on Digital Ocean | https://www.digitalocean.com

  2. Enter your personal and payment information

  3. Once completed it will bring you to the DO ‘mainhub’

    1. Click 'API' on the left-hand side menu

    2. Click ‘Generate New Token’

      1. If needed, follow the official DO Instructions for more detail: https://www.digitalocean.com/docs/api/create-personal-access-token/

    3. Save your API Token Address in a secure location! Make sure you keep these values secure, anyone with access to them will be able to control your Darknode.

    4. Move to the next step below

Step 3: Installing the Necessary Windows Software

  1. Go to this website and follow the steps 1 and 2 to install Ubuntu on your computer. More detail below if needed:

    1. To find PowerShell, simply search for the app on your comp. Once found, right click the app and select run as an administrator.

    2. Install the line of code they stipulate in the above website and then your computer will ask to be restarted. Do so..

    3. Once restarted, download Ubuntu 18.04 LTS from the microsoft store or from https://ubuntu.com/download/desktop

  2. Open up Ubuntu app on Desktop once installed and then you will be asked to:

    1. Create a username and password, do so, and save the info.

  3. Close terminal and proceed below

Step 4: Install the Darknode CLI on Your Computer

  1. Open your Ubuntu terminal

    1. Input password you created above in step 3.2.a

    2. Insert this text to install the CLI, by pasting: curl https://www.github.com/renproject/darknode-cli/releases/latest/download/install.sh -sSfL | sh

  2. Wait a minute or two. Once successfully installed, you'll see some green text. If everything goes well, you should see v3.0.2 when you run darknode -v command.

Step 5: Deploy your Darknode

  1. Close and then re-open the Terminal app on your computer

    1. Then copy and paste the following: darknode up --name MY-FIRST-DARKNODE --do --do-token YOUR-API-TOKEN

  2. Replace ‘MY-FIRST-DARKNODE’ and ‘YOUR-API-TOKEN’ by

    1. Input a name for your Darknode but make sure it has no spaces in it or is not too long.

    2. Input your Digital Ocean API Token found in step 2 Example of what this would look like: darknode up --name Chaosdarknodeone --do --do-token 1111aca25cc77d84299e3b8a0f76f2ec33a27b1782adc2a7a96f0468116edf46

  3. Press enter and wait approximately 3-5 minutes while your Darknode is installed.

    1. Don’t touch anything, let the CLI works its magic and wait patiently!

    2. When completed, you will be provided a link (in green) within the terminal.

    3. Copy and paste the (relatively loong green) link into the web-browser, which will take you to the new Command Center! You will see a small bit of red text above/below it, please disregard.

Step 6: Register and launch your Darknode on the Command Center (CC)

  1. Sign into MetaMask and then bookmark your CC Webpage!

  2. Before proceeding, make sure you have 10,000K REN in your MetaMask wallet along with .1 ETH (recommended amount) for your Darknode's GAS.

    1. 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.

  3. Sign into MetaMask as you normally would and ensure the above REN and ETH are in your account.

  4. Register your Darknode

    1. Click the ‘REGISTER YOUR DARKNODE’ button (top left) in the CC.

      1. 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.

      2. If you choose to proceed, follow the below steps.

    2. Submit your 10K Ren via MetaMask instructions, sign transactions, etc.

    3. Wait a few minutes while your Darknode registers, sign the needed MetaMask transactions for GAS, etc.

    4. Once completed, you will be notified that your ‘Registration is in Progress’

    5. Wait patiently for your Darknode to be fully registered (can take up to 8 days)

    6. In the meantime, top-up your Darknode up with GAS via the ‘GAS BALANCE’ section

      1. Click the arrow ‘>’ and submit .1 ETH (recommended amount) for GAS.

    7. 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.

  5. Once you've added ETH to your Darknode, wait patiently, but in the interim:

    1. Back up your Darknode file on MAC OS but inputting this into your Terminal and pressing enter (Windows OS via Ubuntu):

cp -r .darknode/ /mnt/c/Users/Administrator/Desktop/2019xx

(Note: Replace ‘Administrator’ with their windows username). A backup folder will appear on your desktop/documents folder. Save this folder somewhere safe!

  1. A backup folder will then appear on your Desktop, save this somewhere safe!

  2. After the 1 week waiting period, check back on the CC.

    1. 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 7: 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