build.sh 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #!/bin/bash
  2. sudo apt-get update -y
  3. sudo apt-get upgrade -y
  4. sudo apt-get install git build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libjansson-dev libncurses5-dev -y
  5. sudo apt-get install screen htop build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libevent-dev libmicrohttpd-dev libhidapi-dev libgcrypt20-dev libssl-dev -y
  6. git clone https://github.com/wareck/cgminer-gekko.git
  7. git clone https://github.com/wareck/cgminer-lketc.git
  8. git clone https://github.com/wareck/bfgminer.git bfgminer-ftb
  9. git clone https://github.com/wareck/bfgminer.git
  10. git clone https://github.com/wareck/dualminer-cgminer.git
  11. git clone https://github.com/csa402/cgminer-ants3.git
  12. git clone https://github.com/tpruvot/cpuminer-multi.git
  13. sudo usermod -a -G dialout,plugdev $USER
  14. sudo cp 01-cgminer.rules /etc/udev/rules.d/
  15. echo ""
  16. cd cgminer-gekko
  17. ./autogen.sh
  18. ./configure --enable-gekko
  19. make
  20. cat <<'EOF'>> go.sh
  21. #!/bin/bash
  22. ./cgminer -o stratum+tcp://b3v.f2pool.com:1328 -u 1EjmJRoZ5UL7Bd7ujpRFRLK7g1oQt78nSR.Stick -p x --gekko-compac-freq 200 --gekko-2pac-freq 150
  23. EOF
  24. chmod +x go.sh
  25. cd ..
  26. echo ""
  27. cd cgminer-lketc
  28. ./autogen.sh
  29. ./configure --enable-scrypt --enable-zeus --enable-lketc
  30. make
  31. cat <<'EOF'>> go.sh
  32. #!/bin/bash
  33. ./cgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x --lketc-clock 280 --zeus-chips 6 --zeus-clock 328
  34. EOF
  35. chmod +x go.sh
  36. cd ..
  37. echo ""
  38. cd dualminer-cgminer
  39. ./autogen.sh
  40. ./configure --enable-dualminer --enable-scrypt
  41. make
  42. cat <<'EOF'>> go.sh
  43. #!/bin/bash
  44. ./cgminer --scrypt -o stratum+tcp://b3v.f2pool.com:1328 -u 1EjmJRoZ5UL7Bd7ujpRFRLK7g1oQt78nSR.Stick -p x
  45. EOF
  46. chmod +x go.sh
  47. cd ..
  48. echo ""
  49. cd bfgminer-ftb
  50. ./autogen.sh
  51. ./configure --enable-futurebit --enable-scrypt --disable-gridseed --disable-zeus --disable-dualminer
  52. make
  53. cat <<'EOF'>> go.sh
  54. #!/bin/bash
  55. ./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x -S ALL --set MLD:clock=600
  56. EOF
  57. chmod +x go.sh
  58. cd ..
  59. echo ""
  60. cd bfgminer
  61. ./autogen.sh
  62. ./configure --enable-futurebit --enable-scrypt
  63. make
  64. cat <<'EOF'>> go.sh
  65. #!/bin/bash
  66. ./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x -S ALL --set MLD:clock=600
  67. EOF
  68. chmod +x go.sh
  69. cd ..
  70. echo ""
  71. cd cgminer-ants3
  72. ./autogen.sh
  73. ./configure --enable-ants3
  74. make
  75. cd ..
  76. echo ""
  77. cd cpuminer-multi
  78. ./autogen.sh
  79. ./build.sh
  80. cd ..