Advertisement
Legion_Leet

LINUX_CPU_MINER-I2P-TOR

Jan 27th, 2018
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.62 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # EASY SERVER SETUP:
  4. # RUN IN SEPERATE FOLDER
  5.  
  6. MINER_EMAIL="your.miner@gmail.com"
  7. sudo dpkg --configure -a
  8.  
  9. [ -f step1.log ]
  10. if [ "$?" -eq "1" ]
  11. then
  12.     echo "1" > step1.log
  13.     sudo apt-get update
  14.     clear
  15.     sudo apt-get dist-upgrade -y
  16.     sudo reboot
  17. fi
  18.  
  19. [ -f step2.log ]
  20. if [ "$?" -eq "1" ]
  21. then
  22.     echo "1" > step2.log
  23.     sudo apt-add-repository -y ppa:i2p-maintainers/i2p
  24.     sudo apt-get update
  25.     sudo apt-get install -y i2p
  26.     clear
  27.     sudo dpkg-reconfigure i2p
  28.     sudo reboot
  29. fi
  30.  
  31. [ -f step3.log ]
  32. if [ "$?" -eq "1" ]
  33. then
  34.     echo "1" > step3.log
  35.     sudo apt-get update && sudo apt-get dist-upgrade -y
  36.     clear
  37.     sudo git clone https://github.com/susmithHCK/torghost.git
  38.     sudo apt-get install -y libcurl-ocaml-dev libcurl3 libcurl3-dbg libcurl-ocaml cmake build-essential libboost-all-dev
  39.     sudo apt-get install -y python-pip automake automake1.11 htop gdebi
  40.     cd torghost/
  41.     clear
  42.     sudo chmod +x install.sh
  43.     sudo ./install.sh
  44.     cd ..
  45.     clear
  46.     sudo git clone https://github.com/OhGodAPet/cpuminer-multi.git
  47.     cd cpuminer-multi/
  48.     clear
  49.     sudo ./autogen.sh
  50.     clear
  51.     sudo CFLAGS="-march=native" ./configure
  52.     clear
  53.     sudo make
  54.     clear
  55.     sudo ./autogen.sh
  56.     sudo CFLAGS="-march=native" ./configure
  57.     clear
  58.     sudo make
  59.     sudo reboot
  60. fi
  61.  
  62. [ -f step4.log ]
  63. if [ "$?" -eq "1" ]
  64. then
  65.     echo "1" > step4.log
  66.     cd cpuminer-multi/
  67.     clear
  68.     sudo nohup ./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u $MINER_EMAIL -p x & disown
  69.     clear
  70. else
  71.     clear
  72.     cd cpuminer-multi/
  73.     clear
  74.     sudo nohup ./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u $MINER_EMAIL -p x & disown
  75.     clear
  76. fi
  77.  
  78. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement