GithubHelp home page GithubHelp logo

padamshrestha / ethereum_nvidia_miner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyclenerd/ethereum_nvidia_miner

0.0 3.0 0.0 258 KB

๐Ÿ’ฐ USB flash drive ISO image for Ethereum mining with NVIDIA graphics cards and Ubuntu GNU/Linux (headless)

Shell 100.00%

ethereum_nvidia_miner's Introduction

Ethereum Mining with NVIDIA Graphics Cards and Ubuntu

USB flash drive ISO image for Ethereum mining with NVIDIA graphics cards and Ubuntu GNU/Linux (64-bit Intel/AMD (x86_64)).

Ubuntu NVIDIA

Press the ๐Ÿ‘๏ธ "Watch" button to get updates. Do not forget the ๐ŸŒŸ "Star" button ๐Ÿ˜€

๐Ÿšจ Use at your own risk. Hope to help you. Do not make me responsible for broken hardware. ๐Ÿšจ

Introduction

  • This ISO image is based on ๐Ÿง Ubuntu 16.04.2 LTS (Server).
  • KISS, keep it simple, stupid. Only the most necessary included. No ๐Ÿ’ฉ bullshit.
  • NVIDIA drivers version 381.22 and CUDA 8 are installed.
  • ethminer with the optimized code by David Li (from NVIDIA) already compiled and ready for use.
    • The code is optimized for NVIDIA GTX 1060, can improve NVIDIA GTX 1060 with 2 GPC performance by 15%, and NVIDIA GTX 1060 with 1 GPC performance by more than 30%. Meanwhile, it also increases performance on NVIDIA GTX 1070.
  • Claymore's dual ethereum miner ethdcrminer64 is also included.
  • Already configured to participate in the ethermine ethereum mining pool.
  • The installation is optimized for operation without monitor (headless).
  • No hard disk drive (HDD/SSD) required. Installation on USB flash drive.
  • Created and tested with NVIDIA GeForce GTX 1060 and NVIDIA GeForce GTX 1070.

Navigation

Leave a Tip ๐Ÿ™

With this ISO image, you can immediately mine Ethereum (ETH). Do not spend long time searching and researching.

I would be happy about a small donation. Thank you very much.

Currency Address
ฮž Ethereum 0xfbbc9f870bccadf8847eba29b0ed3755e30c9f0d
ษƒ Bitcoin 13fQA3mCQPmnXBDSmfautP4VMq6Sj2GVSA

Installation

If you do not trust me and do not want to use the image, you will find all configuration files and scripts in the files folder. You only have to install an Ubuntu Linux with all the drivers and tools yourself.

If you want to get started quickly, simply use the pre-configured ISO image (contains the shell scripts, tools, and all necessary drivers).

Download

Download the ISO image via BitTorrent (ethereum-ubuntu-nvidia-miner_v2.img.7z.torrent). Compressed 1.3GB, unzipped 7.5GB.

Download

MD5

It is recommended to test that the image is correct and safe to use. The MD5 calculation gives a checksum, which must equal the MD5 value of a correct ISO image.

Filename MD5sum
ethereum-ubuntu-nvidia-miner_v2.img.7z 236204df132665c68ed3eb9a2729e26c
ethereum-ubuntu-nvidia-miner_v2.img 3a78efe07014e3b665e899a490eaa33b

More help is available here: https://en.wikipedia.org/wiki/Md5sum

Copy

  1. Unzip the 7zip file ethereum-ubuntu-nvidia-miner_v2.img.7z.
  2. Copy the image ethereum-ubuntu-nvidia-miner_v2.img to a at least 8GB USB flash drive.

Larger USB flash drive should also work. I use the "Sandisk 32GB Ultra Fit USB 3.0 Flash Drive".

The copy can be done with dd. โš ๏ธ The copy lasts long. Be patient.

How this works exactly is explained to you here: https://wiki.archlinux.org/index.php/USB_flash_installation_media#Using_dd

Windows

Use the free and open source software Rufus. Simply select the ISO ethereum-ubuntu-nvidia-miner_v2.img, the USB drive you want to create the bootable Linux onto and click start.

Be sure to select DD mode or the image will be transferred incorrectly.

๐ŸŽ macOS

Identify the disk (not partition) of your USB flash drive e.g. disk3:

nils@macbookpro ~ $ diskutil list

Unmount your USB flash drive:

nils@macbookpro ~ $ diskutil unmountDisk /dev/disk3

Copy the image to your USB flash drive:

nils@macbookpro ~ $ sudo dd bs=1m if=Downloads/ethereum-ubuntu-nvidia-miner_v2.img of=/dev/rdisk3

Btw. rdisk3 (with r) not disk3 is not a write error.

Mainboard

Set the primary graphics output to one of your NVIDIA cards. Disable Secure Boot (UEFI) and boot from the USB flash drive.

Login

The network configuration is done by DHCP. Look in your router which IP your miner has.

Connect via SSH with your miner.

nils@macbookpro ~ $ ssh prospector@minerIP

Credentials. Password should be changed (passwd):

  • ๐Ÿ‘ค Username: prospector
  • ๐Ÿ”‘ Password: m1n1ng

Setup

There is an extra program which helps you with the initial setup. Type setup to start it.

prospector@mine ~ $ setup

setup

Go through each step. If you have everything set you should do a reboot.

Mine

After a minute uptime, a script (screen) starts automatically in the background, which starts the mining.

prospector@mine ~ $ crontab -l

# run screen after reboot
@reboot sleep 60 && /usr/bin/screen -d -m

Enter mine to get it in the foreground:

prospector@mine ~ $ mine

Use key combination Ctrl + a, and subsequently pressing a key to execute one of the commands given below:

  • n : switches to the next available console
  • p : switches back to the previous console
  • c : creates a new virtual Bash console
  • d : detatches the current screen sessions and brings you back to the normal terminal

htop nvidia-smi etherminer

More help is available here: https://help.ubuntu.com/community/Screen

miner.sh

The miner.sh script starts automatically (mine console). If you want to make settings that go beyond the setup program, you need to adjust it.

prospector@mine ~ $ nano -w miner.sh

Overclocking

To pull the last MH/s out of your cards, you should overclock.

With nvidia-overclock.sh (nvidia-settings)

Run the nvidia-overclock.sh to adjust the memory and graphics clock. The settings are lost after a restart. You have to repeat it.

prospector@mine ~ $ nvidia-overclock

For safety I did not add it in the autostart. Sometimes you exaggerate when overclocking, and you'll be glad if a simple reboot helps.

If you are sure that everything works, you can add it to the autostart. For security, it will start after 10 minutes.

prospector@mine ~ $ crontab -e

# After 10 minutes uptime, 'nvidia-overclock.sh' starts automatically
# Only remove the comment if you are sure that everything works!!!
#@reboot sleep 600 && bash ~/nvidia-overclock.sh >/dev/null 2>&1

You should experiment with the values and adjust the values in the script. I wish you success ๐Ÿค“

Why not use nvidia-smi?

nvidia-smi does not work with my cards (NVIDIA GeForce GTX 1060 and 1070).

prospector@mine ~ $ nvidia-smi -i 0 -ac 4004,1987
Setting applications clocks is not supported for GPU 0000:01:00.0.
Treating as warning and moving on.
All done.

No idea if this is a ๐Ÿ› bug. Have tried several drivers. Forums are full of bug reports. With nvidia-settings I have no problems.

You can try it with your cards. It should work with Ti models. Here the text from the help:

-ac, --applications-clocks=MEM_CLOCK,GRAPHICS_CLOCK

Specifies maximum <memory,graphics> clocks as a pair (e.g. 2000,800) that defines GPU's speed while running applications on a GPU.

Other things you should do

Update ethminer

Update and recompile ethminer:

prospector@mine ~ $ cd ~/ethereum-mining/ethminer
prospector@mine ethminer $ git pull
prospector@mine ethminer $ cd build/
prospector@mine build $ cmake -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-8.0 ..
prospector@mine build $ cmake --build .

Update Claymore's Dual Ethereum Miner

Download the latest version for Linux and copy it to your USB flash driver. The copy can be done via SCP.

On Windows, you can use FileZilla or WinSCP. On Linux and macOS it works like this:

nils@macbookpro ~ $ scp "Claymore's Dual GPU Miner - LINUX.tar.gz" prospector@minerIP:/home/prospector/

Unpack the tar.gz file into the claymore-dual-miner folder:

prospector@mine ~ $ tar xvfz "Claymore's Dual GPU Miner - LINUX.tar.gz" -C ~/claymore-dual-miner --strip-components=1

Monitoring

Of course, with SSH.

Munin

munin and the lighttpd web server are also installed. You can use it to access statistics pages.

http://minerIP/munin

Here you can find diagrams of the sensors, etc.

munin

Fail2ban

Fail2ban is installed. The program monitors logins via SSH. Too many false logins from an IP and the IP is blocked. At each start (reboot) and block you will receive an e-mail. You should check your e-mails from time to time.

prospector@mine ~ $ mutt

More help is available here: https://help.ubuntu.com/community/Fail2ban

VNC

Start x11vnc server.

prospector@mine ~ $ x11vnc

Enter the IP address and display in VNC Viewer to establish a direct connection. For example:

minerIP:0

x11vnc

Help ๐Ÿ‘

If you have found a bug (English is not my mother tongue) or have any improvements, send me a pull request.

Known Issues

NVIDIA tools (especially nvidia-smi) seems to be lagging on 7 GPU rigs, crashing the system and/or causing some system instabilities. Issue reproduced on two differents 7 GPUs rigs (different motherboard & GPU brands). Six graphics cards work without problems.

NVIDIA GeForce GTX 1050 Ti does not have Performance Level 3 (only Level 2) thus nvidia-overclock.sh has to be changed (change [3] with [2]).

ethereum_nvidia_miner's People

Contributors

cyclenerd avatar scoorf avatar bscrk avatar

Watchers

James Cloos avatar Padam Shrestha 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.