Steps to Run Linux Build

  1. Download Ubuntu Desktop 20.04 LTS ISO from the Ubuntu website

  2. Create a VM with the image from step 1 (process depends on your machine - not covered here)

(These first two steps do not apply if you have a native Linux machine or are using WSL command line)

  1. Download/copy .sh file from this link

  2. chmod +x install_xgt.sh
    • must be in the directory where install_xgt.sh is located
  3. ./install_xgt.sh
    • must be in the directory where install_xgt.sh is located
    • this will take 10-15 minutes
  4. sudo apt install ruby-full

  5. sudo gem install xgt-ruby

  6. cd xgt

  7. rake configure

  8. rake make
    • this will take 10-15 minutes
  9. cd ..

  10. nano runXGT.sh

  11. Copy and paste the following format into the new file, replacing the empty values with your wallet and private recovery key:
#/bin/sh

export wallet_name=your-wallet-address
export recovery_private=your-private-recovery-key
export witness_private=your-private-recovery-key

cd xgt &&
  MINING_DISABLED=FALSE \
  MINING_THREADS=4 \
  XGT_INSTANCE_INDEX=1 \
  XGT_WALLET=$wallet_name \
  XGT_WIF=$recovery_private \
  XGT_RECOVERY_PRIVATE_KEY=$recovery_private \
  XGT_WITNESS_PRIVATE_KEY=$witness_private \
  rake run

Set MINING_DISABLED=TRUE if you are setting up a sync/seed node. The value of MINING_THREADS depends on your machine. Run ctrl-o to save and ctrl-x to exit.

  1. chmod +x runXGT.sh

  2. ./runXGT.sh