Ethereum Mining Tutorial - Ethereum Linux System Mining Tutorial

Ethereum Mining Tutorial - Ethereum Linux System Mining Tutorial

hardware

GPU mining requires 1-2GB of video memory (Translator's note: 1GB video memory is not allowed). If the video memory is not enough, errors will be reported. GPU mining machines are based on OpenCL, so AMD graphics cards are more efficient than NVIDI graphics cards.

ASICs and FPGAs (i.e. professional mining machines) are ineffective.

Select openCL according to your graphics card type and system:

AMD SDK openCL

NVIDIA CUDA openCL

Ubuntu

AMD Graphics Cards

• Address 1

• Address 2

Download: ADL_SDK8.zip and AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh

./AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh

ln -s /opt/AMDAPPSDK-2.9-1 /opt/AMDAPP

ln -s /opt/AMDAPP/include/CL /usr/include

ln -s /opt/AMDAPP/lib/x86_64/* /usr/lib/

ldconfig

reboot

apt-get install fglrx-updates

// wget, tar, opencl

sudo aticonfig –adapter=all –initial

sudo aticonfig –list-adapters

* 0. 01:00.0 AMD Radeon R9 200 Series

* – Default adapter

Nvidia graphics card

For users using Ubuntu 14.04 and Nvidia graphics cards, please see this post

MacOSx

wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.29_mac.pkg

sudo installer -pkg ~/Desktop/cuda_7.0.29_mac.pkg -target /

brew update

brew tap ethereum/ethereum

brew reinstall cpp-ethereum --with-gpu-mining --devel --headless --build-from-source

Check your cooldown status:

aticonfig –adapter=0 –od-gettemperature

Mining software

The default client Geth in the Frontier phase only supports CPU mining. We are developing the GPU mining function of the Geth client, but it cannot be completed in the Frontier phase. However, Geth can cooperate with Ethminer for GPU mining.

C++ clients can perform GPU mining. C++ clients include eth (command line user interface), AlethZero (graphical user interface), and ethMiner (standalone mining software).

It can be installed using ppa on Linux, brew tap on MacOS, or from source.

MacOS:

brew install cpp-ethereum –with-gpu-mining –devel –build-from-source

Linux:

apt-get install cpp-ethereum

View on Windows

GPU mining with ethminer

Mining with eth:

eth -m on -G -a -i -v 8 //

Install ethminer from source:

cd cpp-ethereum

cmake -DETHASHCL=1 -DGUI=0

make -j4

make install

To do GPU mining, you need a coinbase account. You can set this up locally or remotely.

Using ethminer with geth

geth account new

geth –rpccorsdomain localhost 2>> geth.log &

ethminer -G // -G for GPU, -M for benchmark

tail -f geth.log

ethminer communicates with geth on port 8545. You can change this default port with the geth –rpcport optoin. Ethminer will discover any port that geth is running on. Note that you need to use the –rpccorsdomain localhost color ring to indicate the CORS header. You can also set the port for ethminer with -F http://127.0.0.1:3301. Setting the port is necessary if you plan to set up multiple mining instances on the same computer. If you are testing on a private cluster, we recommend CPU mining.

Note that you should not set the --mine option to geth or start the miner in the console unless you want to do CPU mining in addition to GPU mining.

If the default settings of ethminer do not work, specify the OpenCL device with the command: --opencl-device X, where X is 0, 1, 2, etc. If you run ethminer -M, you should see something similar to the following:

Benchmarking on platform: { "platform": "NVIDIA CUDA", "device": "GeForce GTX 750 Ti", "version": "OpenCL 1.1 CUDA" }

Benchmarking on platform: { "platform": "Apple", "device": "Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz", "version": "OpenCL 1.2 " }

Debugging geth:

geth –rpccorsdomain “localhost” –verbosity 6 2>> geth.log

Debugging the mining machine:

make -DCMAKE_BUILD_TYPE=Debug -DETHASHCL=1 -DGUI=0

gdb –args ethminer -G -M

Note that when GPU mining, hashrate is not available in geth. Checking the hashrate in ethminer, miner.hashrate will always report 0.

ethminer and eth

Through rpc, ethminer can also be used with eth

eth -i -v 8 -j // -j for rpc

ethminer -G -M // -G for GPU, -M for benchmark

tail -f geth.log

Or you can use GPU mining with eth alone:

eth -m on -G -a -i -v 8 //


<<:  91Pool supports Bytom mining

>>:  The bull market in the cryptocurrency market has arrived! Digital gold NEWG welcomes new development trends

Recommend

Is it good for a woman to have horizontal lines on her nose?

The phenomenon of horizontal lines on the bridge ...

What is the fate of a person with a wide forehead and high cheekbones?

For people with wide foreheads, what is the reali...

How to analyze whether it is good or bad to have a mole on the tip of the chin

Many times we will pay attention to something on ...

Miners refuse "forced donations", BCH is about to fork again

If nothing unexpected happens, BCH will have its ...

If your bangs cover your forehead, your fortune will be hindered.

From the perspective of physiognomy, the position...

Comprehensive analysis of DeFi 6-layer stack and DeFi risk management

Open Finance is one of Multicoin's three cryp...

People with these faces are always worrying.

Some people just look noble. Even though they don...

Your nose tells you your fortune in life

In physiognomy, the nose is a very important obje...