build.sh 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. echo ""
  7. git clone https://github.com/wareck/cgminer-gekko.git
  8. echo ""
  9. git clone https://github.com/wareck/cgminer-lketc.git
  10. echo ""
  11. git clone https://github.com/wareck/bfgminer.git bfgminer-ftb
  12. echo ""
  13. git clone https://github.com/wareck/bfgminer.git
  14. echo ""
  15. git clone https://github.com/wareck/dualminer-cgminer.git
  16. echo ""
  17. git clone https://github.com/csa402/cgminer-ants3.git
  18. echo ""
  19. git clone https://github.com/tpruvot/cpuminer-multi.git
  20. echo ""
  21. sudo usermod -a -G dialout,plugdev $USER
  22. sudo cp 01-cgminer.rules /etc/udev/rules.d/
  23. echo ""
  24. cd cgminer-gekko
  25. ./autogen.sh
  26. ./configure --enable-gekko
  27. make
  28. cat <<'EOF'>> go.sh
  29. #!/bin/bash
  30. ./cgminer -o stratum+tcp://b3v.f2pool.com:1328 -u 1EjmJRoZ5UL7Bd7ujpRFRLK7g1oQt78nSR.Stick -p x --gekko-compac-freq 200 --gekko-2pac-freq 150
  31. EOF
  32. chmod +x go.sh
  33. cd ..
  34. echo ""
  35. cd cgminer-lketc
  36. ./autogen.sh
  37. ./configure --enable-scrypt --enable-zeus --enable-lketc
  38. make
  39. cat <<'EOF'>> go.sh
  40. #!/bin/bash
  41. ./cgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x --lketc-clock 280 --zeus-chips 6 --zeus-clock 328
  42. EOF
  43. chmod +x go.sh
  44. cd ..
  45. echo ""
  46. cd dualminer-cgminer
  47. ./autogen.sh
  48. ./configure --enable-dualminer --enable-scrypt
  49. make
  50. cat <<'EOF'>> go.sh
  51. #!/bin/bash
  52. ./cgminer --scrypt -o stratum+tcp://b3v.f2pool.com:1328 -u 1EjmJRoZ5UL7Bd7ujpRFRLK7g1oQt78nSR.Stick -p x
  53. EOF
  54. chmod +x go.sh
  55. cd ..
  56. echo ""
  57. cd bfgminer-ftb
  58. ./autogen.sh
  59. ./configure --enable-futurebit --enable-scrypt --disable-gridseed --disable-zeus --disable-dualminer
  60. make
  61. cat <<'EOF'>> go.sh
  62. #!/bin/bash
  63. ./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x -S ALL --set MLD:clock=600
  64. EOF
  65. chmod +x go.sh
  66. sudo cp 70-bfgminer.rules /etc/udev/rules.d/
  67. cd ..
  68. echo ""
  69. cd bfgminer
  70. ./autogen.sh
  71. ./configure --enable-futurebit --enable-scrypt
  72. make
  73. cat <<'EOF'>> go.sh
  74. #!/bin/bash
  75. ./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x -S ALL --set MLD:clock=600
  76. EOF
  77. chmod +x go.sh
  78. cd ..
  79. echo ""
  80. cd cgminer-ants3
  81. ./autogen.sh
  82. ./configure --enable-ants3
  83. make
  84. cd ..
  85. echo ""
  86. cd cpuminer-multi
  87. ./autogen.sh
  88. ./build.sh
  89. cd ..