-
Notifications
You must be signed in to change notification settings - Fork 4
Building in Linux
bobwurtz edited this page Jul 7, 2021
·
4 revisions
-
Download Ubuntu Desktop 20.04 LTS ISO from the Ubuntu website
-
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)
-
Download/copy .sh file from this link
-
chmod +x install_xgt.sh- must be in the directory where
install_xgt.shis located
- must be in the directory where
-
./install_xgt.sh- must be in the directory where
install_xgt.shis located - this will take 10-15 minutes
- must be in the directory where
-
sudo apt install ruby-full -
sudo gem install xgt-ruby -
cg xgt -
rake configure -
rake make- this will take 10-15 minutes
-
cd .. -
nano runXGT.sh -
Copy and paste the following format into the new file, replacing the empty values with your wallet and private recovery key:
#/bin/sh
export seed_host=98.33.76.100:2001,xgt.rag.pub:2001,xgt2.rag.pub:2001,45.138.27.42:2001,68.129.31.2:2001,116.202.114.157:2001,195.201.167.19:2001
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 \
XGT_SEED_HOST=$seed_host \
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.
-
chmod +x runXGT.sh -
./runXGT.sh