Skip to content

BitcoinMechanic/datum-guides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

Table of Contents

Overview

Get DATUM running in various different setups!

datum-main


Prerequisites

If running X machines - need Y powerful machine If running Z machines - need A powerful machine


Windows

windows-0

Installing WSL

  1. Open up a PowerShell open-powershell
  2. Install WSL with wsl --install install-wsl
  3. Hit "Yes" yes-1.png
  4. Restart your machine restart-windows

Install and Setup Debian

  1. Open PowerShell again and type wsl --install -d Debian install-debian installed-debian
  2. Start Debian with wsl.exe -d Debian exe-debian
  3. It will request a username - here we will use Bitcoin debian-username-bitcoin
  4. Enter and retype a password for this user (typed characters will not appear) debian-password-retype
  5. Go root with sudo -i sudo-i
  6. It will request the password you just created sudo-enter-password
  7. Run apt update apt-update
  8. Run apt upgrade -y apt-upgrade-y

Clone the Installation Repo

  1. Install git by running apt install git -y apt-install-git-y
  2. Clone the repo with git clone https://github.com/Com320/OC-mech-datum-boxes/ git-clone

Install Bitcoin Knots and Datum

  1. Change directory into the repo with cd OC-mech-datum-boxes changed-dir
  2. Modify the scripts to make them executable with chmod +x *.sh chmod
  3. Run the installation script with ./main.sh mainsh

The installation script will now run and the configuration files for Bitcoin Knots and DATUM will be generated requesting your input along the way. The configuration files can be modified later if desired.

  1. Once the script has successfully been run, you will see the following finished-script
  2. You will now begin syncing the Blockchain - you can monitor its progress with tail -f /home/bitcoin/.bitcoin/data/debug.log debug-log
  3. Hit ctrl C to stop watching the logs ctrl-c

Configuring systemd

  1. Ensure that systemd is configured to run automatically with cat /etc/wsl.conf cat-wsl-conf
  2. Skip to the Networking if you see the above output. If you do not see the output in the above picture:
If `systemd=false` change it to "true" by doing the following:
  -  `nano /etc/wsl.conf`
  -  Change "false" to "true"
  -  Hit `ctrl X` then `Y` then `enter` to save the file. 
  
If the file "/etc/wsl.conf" does not exist:
  - `nano /etc/wsl.conf`
  - Then enter the following:
[boot]
systemd=true
  - Hit `ctrl X` then `Y` then `enter` to save the file
  1. Restart wsl with wsl.exe --shutdown
  2. Confirm it is working with systemctl status systemctl-status

Networking

  1. Enter "WSL Settings" wsl-settings
  2. Click "Networking" and change "Networking mode" to "Mirrored" networking-mirrored
  3. Right click on "Terminal" and click "Run as administrator" run-as-admin
  4. Click "Yes" when asked if you want to allow Terminal to make changes terminal-makes-changes
  5. Enter "wsl --shutdown" wsl-shutdown
  6. Open "Windows Defender Firewall with Advanced Security" firewall-advanced
  7. Click on "Inbound Rules" and then "New Rule..." inbound-new-rule
  8. Click "Port" and click "Next" port-next
  9. Enter "23334" for "Specific local ports" and click "Next" 23334-next
  10. "Allow the connection" and click "Next" allow-next
  11. Under "When does this rule apply?" leave all three enabled and click "Next" just-next
  12. Name the new rule and click "Finish" name-finish
  13. Finally, go back to Terminal and enter ipconfig /all and make a note of the IPv4 Address - this is where you will point your miners ipconfig-all

Note: You will want to assign your Windows machine a static IP on your network to ensure that it doesn't change.

Run WSL at Startup

  1. Right click on the Windows button right-click-start
  2. Unfurl "Task Scheduler" unfurl-task
  3. Left click then right click on "Task Scheduler Library" and click "Create Task"
  4. Name the task startWSL and check "Run whether user is logged on or not" name-run-whether
  5. Click "Triggers" then "New" triggers-new
  6. Open the "Begin the task" drop down menu and select "At startup" at-startup
  7. Click "Actions" then "New" actions-new
  8. Click "Browse" browse
  9. Search for "wsl.exe" and click "Open" search-wsl-open
  10. Click "OK" ok-1
  11. Uncheck "Start the task only if the computer is on AC power" if desired uncheck-ac
  12. Copy the below settings - modify as desired many-mods
  13. Click "OK", enter your password and click "OK" again enter-pass-ok

You can now connect your miners to your DATUM gateway once your node has finished syncing!

Debian

Install Git and Clone the Installation Repo

  1. Go sudo with sudo -i
  2. Run apt update
  3. Run apt upgrade -y
  4. Run apt install git -y
  5. Run git clone https://github.com/Com320/OC-mech-datum-boxes
  6. Change into the cloned repo cd OC-mech-datum-boxes

Run the Installation Scripts

  1. Start by making them executable chmod +x *.sh
  2. Run ./main.sh
  3. Follow the onscreen prompts to install and configure your Bitcoin Knots node and your DATUM gateway!

For instructions on how to configure your node/gateway see here.

Your node will now sync. Check its progress with /home/bitcoin/bitcoin/bin/bitcoin-cli getblockcount

You can now connect your miners to your DATUM gateway!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published