Coder Social home page Coder Social logo

ethminer-scripts's Introduction

ethminer-scripts

Ethminer scripts because my machine is a wee bit too unstable

I installed all the following on a latest copy of Ubuntu 17.04. Friends asked me why I do not use the LTS version, but well.

My mining rig consists of the following:

  1. AsRock H110 BTC+ Pro motherboard - supports 13 PCI-E cards, and super stable
  2. Intel Pentium CPU G4400 processor @ 3.30 GHz
  3. 4GB Crucial RAM
  4. Some really old 120GB SSD
  5. Gigabyte G1 Gaming GTX 1070 x 03
  6. Asus ROG Strix Radeon RX570 x 01

The rig currently churns out an average of 104 MH/s, with power consumption of about 540W.

Overall rig cost SGD 4k, and I expect to break even after 2 years on a basis of zero inflation.

https://ethermine.org/miners/a04954b34a5d54715b03d732caa9bc05ef4d6df5

Instructions to follow:

  1. After installing ubuntu (I have a tendency to use the server version) on the SSD, reboot

  2. Run the following commands to upgrade the machine:

     sudo apt-get update 
     sudo apt-get -f -y dist-upgrade 
     sudo apt-get install -y \
         opencl-headers \
         build-essential \
         protobuf-compiler \
         libprotoc-dev \
         libboost-all-dev \
         libleveldb-dev \
         hdf5-tools \
         libhdf5-serial-dev \
         libopencv-core-dev \
         libopencv-highgui-dev \
         libsnappy-dev \
         libsnappy1 \
         libatlas-base-dev \
         cmake \
         libstdc++6-4.8-dbg \
         libgoogle-glog0 \
         libgoogle-glog-dev \
         libgflags-dev \
         liblmdb-dev \
         git \
         python-pip \
         gfortran \
         python-twisted \
         gcc-4.9 \
         g++-4.9
     sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
     sudo apt-get install software-properties-common
     sudo add-apt-repository ppa:ethereum/ethereum
     sudo apt-get update
     sudo apt-get install ethereum
     curl -O cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
     sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
     sudo apt-get update
     sudo apt-get install -y cuda nvidia-375 
     mkdir $HOME/src
     cd $HOME/src
     git clone https://github.com/ethereum-mining/ethminer.git
     cd ethminer
     mkdir build
     cmake .. -DETHASHCUDA=ON
     cmake --build .
     sudo make install
     sudo mv /usr/share/dbus-1/system-services/org.freedesktop.Accounts.service /usr/share/dbus-1/system-services/org.freedesktop.Accounts.service.disabled
     sudo systemctl disable snapd
     sudo systemctl disable lvm2-lvmetad
     sudo systemctl disable atd
    
  3. Copy all the files here into the relevant directory

  4. Add the following to crontab -e on root - TODO: Move this to a file in /etc/cron.d and test properly

     */5 * * * * /bin/bash /usr/local/bin/monitorFarm.sh 0
     */5 * * * * /bin/bash /usr/local/bin/monitorFarm.sh 1
    
  5. Part of the installation includes a .tmux.conf which must be used to replace your $HOME/.byobu/.tmux.conf

  6. Another change you need to make is to the files which currently all point to /home/st_lim which is probably a different directory for all of you guys.

     find . -type f -exec sed -e 's/\/home\/st_lim/\/home\/<yourid>/g' {} \;
    

ethminer-scripts's People

Contributors

stlimtat avatar

Stargazers

 avatar Faruk avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.