Advertisement
EvenoR

Fractal Node

Aug 25th, 2024 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.55 KB | None | 0 0
  1.  - - - - - 1 - - - - -
  2. sudo apt update & sudo apt upgrade -y
  3.  
  4. sudo apt install ca-certificates zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev curl git wget make jq build-essential pkg-config lsb-release libssl-dev libreadline-dev libffi-dev gcc screen unzip lz4 -y
  5.  
  6.  - - - - - 2 - - - - -
  7. wget https://github.com/fractal-bitcoin/fractald-release/releases/download/v0.1.7/fractald-0.1.7-x86_64-linux-gnu.tar.gz
  8.  
  9. tar -zxvf fractald-0.1.7-x86_64-linux-gnu.tar.gz
  10.  
  11.  - - - - - 3 - - - - -
  12.  
  13. cd fractald-0.1.7-x86_64-linux-gnu/
  14.  
  15.  - - - - - 4 - - - - -
  16. mkdir data
  17.  
  18. cp ./bitcoin.conf ./data
  19.  
  20.  
  21.  - - - - - 5 - - - - -
  22. sudo tee /etc/systemd/system/fractald.service > /dev/null << EOF
  23. [Unit]
  24. Description=Fractal Node
  25. After=network-online.target
  26. [Service]
  27. User=$USER
  28. ExecStart=/root/fractald-0.1.7-x86_64-linux-gnu/bin/bitcoind -datadir=/root/fractald-0.1.7-x86_64-linux-gnu/data/ -maxtipage=504576000
  29. Restart=always
  30. RestartSec=5
  31. LimitNOFILE=infinity
  32. [Install]
  33. WantedBy=multi-user.target
  34. EOF
  35.  
  36.  - - - - - 6 - - - - -
  37. cd bin
  38.  
  39. ./bitcoin-wallet -wallet=wallet -legacy create
  40.  
  41. cd /root/fractald-0.1.7-x86_64-linux-gnu/bin
  42.  
  43. ./bitcoin-wallet -wallet=/root/.bitcoin/wallets/wallet/wallet.dat -dumpfile=/root/.bitcoin/wallets/wallet/MyPK.dat dump
  44.  
  45. cd && awk -F 'checksum,' '/checksum/ {print "Wallet Private Key:" $2}' .bitcoin/wallets/wallet/MyPK.dat
  46.  
  47.  - - - - - 7 - - - - -
  48.  
  49. sudo systemctl daemon-reload
  50. sudo systemctl enable fractald
  51. sudo systemctl start fractald
  52.  
  53.  - - - - - 8 - - - - -
  54.  
  55. sudo journalctl -u fractald -f --no-hostname -o cat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement