Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # EASY SERVER SETUP:
- # RUN IN SEPERATE FOLDER
- MINER_EMAIL="your.miner@gmail.com"
- sudo dpkg --configure -a
- [ -f step1.log ]
- if [ "$?" -eq "1" ]
- then
- echo "1" > step1.log
- sudo apt-get update
- clear
- sudo apt-get dist-upgrade -y
- sudo reboot
- fi
- [ -f step2.log ]
- if [ "$?" -eq "1" ]
- then
- echo "1" > step2.log
- sudo apt-add-repository -y ppa:i2p-maintainers/i2p
- sudo apt-get update
- sudo apt-get install -y i2p
- clear
- sudo dpkg-reconfigure i2p
- sudo reboot
- fi
- [ -f step3.log ]
- if [ "$?" -eq "1" ]
- then
- echo "1" > step3.log
- sudo apt-get update && sudo apt-get dist-upgrade -y
- clear
- sudo git clone https://github.com/susmithHCK/torghost.git
- sudo apt-get install -y libcurl-ocaml-dev libcurl3 libcurl3-dbg libcurl-ocaml cmake build-essential libboost-all-dev
- sudo apt-get install -y python-pip automake automake1.11 htop gdebi
- cd torghost/
- clear
- sudo chmod +x install.sh
- sudo ./install.sh
- cd ..
- clear
- sudo git clone https://github.com/OhGodAPet/cpuminer-multi.git
- cd cpuminer-multi/
- clear
- sudo ./autogen.sh
- clear
- sudo CFLAGS="-march=native" ./configure
- clear
- sudo make
- clear
- sudo ./autogen.sh
- sudo CFLAGS="-march=native" ./configure
- clear
- sudo make
- sudo reboot
- fi
- [ -f step4.log ]
- if [ "$?" -eq "1" ]
- then
- echo "1" > step4.log
- cd cpuminer-multi/
- clear
- sudo nohup ./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u $MINER_EMAIL -p x & disown
- clear
- else
- clear
- cd cpuminer-multi/
- clear
- sudo nohup ./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u $MINER_EMAIL -p x & disown
- clear
- fi
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement