Skip to content

Latest commit

 

History

History
100 lines (58 loc) · 5.65 KB

README.md

File metadata and controls

100 lines (58 loc) · 5.65 KB

DynamicScripts

Scripts for the Dynamic (DYN) Cryptocurrency

Setup a Dynode with one line! You can generate a pairing key from any wallet using the dynode genkey command. We recommend the latest Ubuntu LTS 18.04 version as the OS, but any version is compatible.

wget -N https://github.com/LordDarkHelmet/DynamicScripts/releases/download/v1.0.0/dynSimpleSetup.sh && sudo sh dynSimpleSetup.sh -d ReplaceMeWithOutputFrom_dynode_genkey

You can also setup a dynamic miner with one line! Example: (be sure to replace the address with your scrape address)

wget -N https://github.com/LordDarkHelmet/DynamicScripts/releases/download/v1.0.0/dynSimpleSetup.sh && sudo sh dynSimpleSetup.sh -s D9T2NVLGZEFSw3yc6ye4BenfK7n356wudR -m true

The script can:

  • Create remote dynodes
  • Create miners
  • Auto Scrapes
  • Auto Updates
  • Watchdog to keep the mining going just in case of a crash
  • Startup on reboot
  • Download and run the executables
  • Download the Bootstrap
  • Download the Blockchain
  • Auto optimizes for your CPU: SSSE3, AVX2, AVX512F, and more
  • If you are using Vultr as your VPS provider, the script can update the server name to give you up to date status info
  • and more...

Use the -h command to see the full list of capabilities and options, Examples are provided.

wget -N https://github.com/LordDarkHelmet/DynamicScripts/releases/download/v1.0.0/dynSimpleSetup.sh && sudo sh dynSimpleSetup.sh -h

This is a collection of scripts that will assist users in setting up and managing instances of the dynamic wallet.

dynSimpleSetup.sh This script is used in conjunction with the dynStartupScript.sh script. It is a non, or rarely changing script that will pull the latest dynStartupScript.sh script and run it. This allows us to have a static location for a release script so we can use one-line startup commands while always running the latest script.

dynStartupScript.sh: This script is a one stop shop. Run it on your VPS and it will do everything hands off. It will mine for you, it will scrape for you, it will auto update when new versions come out, it can even setup a dynode for you. Simple and easy. If you set it as a startup script, you will never need to log into your VPS.

Dynamic (DYN) is a cryptocurrency. You can find out more at: https://duality.solutions/dynamic/

Options: Use these attributes to customize your deployment:

-s Scrape address requires an attribute Ex. -s D9T2NVLGZEFSw3yc6ye4BenfK7n356wudR

-d Dynode Pairing key. if you populate this it will setup a Dynode. ex -d ReplaceMeWithOutputFrom_dynamic-cli_dynode_genkey You can also pre-enable a dynode by using the following: -d unknown

-y Dynode Label, a human readable label for your Dynode. Useful with the -v option.

-a Auto Updates. Turns auto updates (on by default) on or off, ex -a true

-r Auto Repair. Turn auto repair on (default) or off, ex -r true

-l System Lockdown. Secure the instance. True to lock down your system. ex -l true

-w Watchdog. The watchdog restarts processes if they fail. true for on, false for off.

-c Compile. Compile the code, default is true. If you set it to false it will also turn off AutoUpdate

-v Vultr API. see http://www.vultr.com/?ref=6923885 If you are using Vultr as an API service, this will change the label to update the last watchdog status

-b bootstrap or blockchain. Download an external bootstrap, blockchain or none, ex"-b bootstrap"

-m Mining. enables or disables mining. true for on, false for off. Off by default. ex"-m true" to enable mining

-t Various test attributes (in development)

-h Display Help then exit.

Examples:

Example 1: Just set up a simple miner (use the -m attribute to turn on mining)

sudo sh ./dynStartupScript.sh -s D9T2NVLGZEFSw3yc6ye4BenfK7n356wudR -m true

Example 2: Setup a remote Dynode that also mines. Not recommended for VPS's as most provides will ban you.

sudo sh ./dynStartupScript.sh -s D9T2NVLGZEFSw3yc6ye4BenfK7n356wudR -d ReplaceMeWithOutputFrom_dynamic-cli_dynode_genkey -m true

Example 3: Setup a remote Dynode that does not mine. Great for VPS's that will ban high CPU usage. (mining is turned off by default)

sudo sh ./dynStartupScript.sh -s D9T2NVLGZEFSw3yc6ye4BenfK7n356wudR -d ReplaceMeWithOutputFrom_dynamic-cli_dynode_genkey

Example 4: Run a miner, but don't compile (auto update will be turned off by default), useful for low RAM VPS's that don't allow for SWAP files

sudo sh ./dynStartupScript.sh -s D9T2NVLGZEFSw3yc6ye4BenfK7n356wudR -c false -m true

Example 5: Turn off auto update on a Dynode, you will be required to manually update if a new version comes along

sudo sh ./dynStartupScript.sh -s D9T2NVLGZEFSw3yc6ye4BenfK7n356wudR -d ReplaceMeWithOutputFrom_dynamic-cli_dynode_genkey -a false

The "-d unknown" attribute allows you to pre-setup a Dynode. The dynode will create the dynode pairing key that your control wallet can use. You can see it at the end of the log file or in the dynamic.conf file.

The "-v API_KEY" attribute is very useful if Vultr is your service provider. It will update your server name with the current status. You can see the status of all of your servers right from the Vultr website. The server name is the status. The tag is the Dynode pairing key.

Using the -v and -d unknown allows you to create a Dynode without ever logging into the VPS. No coding skills or tools needed.