G2A Many GEOs
SHARE
TWEET

bitcoinfornatty.bash

a guest May 7th, 2011 1,288 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. echo "DISCLAIMER: you are using this script at your own discretion! By typing 'c', you agree that you have read the script yourself and have understood it and that you will thus take full responsabilty in the eventuality that this script leads to any harm to you or your property. If you do not agree type 'n'"
  3. read -n 1 r
  4. [ "$r" = 'c' ] || exit 0
  5.  
  6. set -e
  7.  
  8. echo "You will be prompted to enter your password in order to install necessary dependencies."
  9.  
  10. sudo apt-get install build-essential libgtk2.0-dev libssl-dev libdb4.7-dev libdb4.7++-dev libboost-all-dev
  11. sudo apt-get build-dep libwxgtk2.8-dev
  12.  
  13. mkdir bitcoin || true
  14. cd bitcoin
  15.  
  16. [ -e wxWidgets.tar.gz ] || wget "http://biolpc22.york.ac.uk/pub/Daily_HEAD/wxWidgets.tar.gz"
  17. [ -e wxWidgets ] || tar -xvzf wxWidgets.tar.gz
  18. cd wxWidgets
  19. ./configure
  20. make -j3
  21. sudo make install
  22. sudo ldconfig
  23. cd ..
  24.  
  25. [ -e miniupnpc*.tar.gz ] || wget "http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz"
  26. [ -e miniupnpc*/ ] || tar -xvzf *miniupnpc*.tar.gz
  27. cd *miniupnpc*/
  28. make
  29. sudo make install
  30. cd ..
  31.  
  32. #for some reason, github's certificate doesn't work:
  33. [ -e bitcoin*.tar.gz ] || wget --no-check-certificate "https://www.github.com/bitcoin/bitcoin/tarball/v0.3.21"
  34. [ -e bitcoin*/ ] || tar -xvzf "v0.3.21"
  35. cd bitcoin*/
  36. make -f makefile.unix
  37. #optional:
  38. strip bitcoin
  39. echo "Bitcoin is now compiled : '$PWD/bitcoin'"
  40. echo "Launch bitcoin now? (y/n)"
  41. read -n1 r
  42. [[ "$r" = y ]] && ./bitcoin
  43. cd ..
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top