Unix CPU miner setup
For Ubuntu 16.04
  1. cd to your home directory. Do not run the wallet as root!
  2. Execute: sudo apt-get install gcc libssl-dev libgmp3-dev build-essential git
  3. Execute: git clone https://github.com/XDagger/xdag.git
  4. Change directory: cd ./xdag/client
  5. Run: make
  6. Run the wallet with ./xdag -d -m 1 ca1.xdag.org:443. Set up your wallet password, type random keys (at least 3 lines of random keys). Wait until host keys are generated.
  7. Execute ./xdag -i. Type terminate and press enter.
  8. cd to your home directory.
  9. Execute:
    cat << 'EOD' > ./xdag_wallet_console.sh
    #!/bin/bash
    
    pidof xdag > /dev/null
    
    if [ "$?" -ne 0 ]; then
    	echo "Wallet not running! Start it with ./xdag_wallet_run.sh"
    	exit 1
    fi
    
    echo Starting wallet console...
    (cd ./xdag/client && ./xdag -i)
    echo -n "Wallet PIDs: "
    pidof xdag
    EOD
    				
  10. Execute:
    cat << 'EOD' > ./xdag_wallet_run.sh
    #!/bin/bash
    
    PIDS="`pidof xdag`"
    
    if [ "$?" -eq 0 ]; then
    	echo "Wallet already running? PIDs: ${PIDS}"
    	echo "run ./xdag_wallet_console.sh and type 'terminate' to terminate the wallet."
    	exit 1
    fi
    
    echo Starting wallet...
    (cd ./xdag/client && ./xdag -d -m 1 ca1.xdag.org:443)
    echo -n "Wallet PIDs: "
    pidof xdag
    EOD
    				
    Replace 4 with number of mining threads, for dedicated mining machines, set this to number of CPU threads. You can control this later by typing mining N in the XDAG console, where N is the number of mining threads you want to run.
  11. Execute:
    cat << 'EOD' > ./xdag_wallet_update.sh
    #!/bin/bash
    
    PIDS="`pidof xdag`"
    
    if [ "$?" -eq 0 ]; then
    	echo "Wallet is running! Stop it before updating. PIDs: ${PIDS}"
    	echo "run ./xdag_wallet_console.sh and type 'terminate' to terminate the wallet."
    exit 1
    fi
    
    echo Updating git repository...
    (cd ./xdag && git pull && cd ./client && make)
    
    echo "Done! Start the wallet with ./xdag_wallet_run.sh"
    EOD
    				
  12. Execute: chmod +x xdag_*
Usage
  1. To start the miner, simply execute ./xdag_wallet_run.sh in your home folder, type in your wallet password.
  2. To connect to the miner console at any time, execute ./xdag_wallet_console.sh.
  3. To conveniently update your installation to the latest version, stop the deamon by executing ./xdag_wallet_console.sh, type terminate, press enter, run ./xdag_update.sh, then ./xdag_wallet_run.sh and type your wallet password again.
  4. To view your current balance at any time, type balance in the miner console. To show your wallet address, type account in the miner console. You can also use our website to check your balance at any time on the home page, or register your miner to automatically show it's balance, payouts, unpaid shares and more.
Copyright © 2018 |