build.sh 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. sudo cp 70-bfgminer.rules /etc/udev/rules.d/
  59. cd ..
  60. echo ""
  61. cd bfgminer
  62. ./autogen.sh
  63. ./configure --enable-futurebit --enable-scrypt
  64. make
  65. cat <<'EOF'>> go.sh
  66. #!/bin/bash
  67. ./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x -S ALL --set MLD:clock=600
  68. EOF
  69. chmod +x go.sh
  70. cd ..
  71. echo ""
  72. cd cgminer-ants3
  73. ./autogen.sh
  74. ./configure --enable-ants3
  75. make
  76. cd ..
  77. echo ""
  78. cd cpuminer-multi
  79. ./autogen.sh
  80. ./build.sh
  81. cd ..