SlideShare a Scribd company logo
Building a Ethereum Miner
Workshop
Who am I
● Long Time Friend (@d1vious in slack)
● Do Security in Fastly by Day
● Play with Cryptocurrencies some nights
Agenda
● Light Concepts
● Anatomy of a Mining Rig
● Sourcing Components
● OS and Mining software
● Mining Pools and Selling Mining Power
● Overclocking GPUs
● Troubleshooting
● Economy of Mining
Concepts - Blockchain
Concepts - Merkle Tree
DAG
D - Directed = One direction
A - Acyclic = cannot ref self
G - Graph = as in graph DB
Building an ethereum miner workshop
Anatomy of a Miner
Building an ethereum miner workshop
non-critical components
● CPU— any slow processor would do, you will be running low overhead *nix
OS, least likely Windows, just make sure it works with your motherboard.
● Memory— as long as it has minimally 4GB of RAM memory
● HDD/SDD— Any would work, although I highly recommend purchasing the
pre-loaded SSD with ethos from gpushack.
critical components
● board— The most important aspect of purchasing a motherboard is making
sure it has +4 PCI 2.0 slots, the more slots supported by the motherboard the
more GPU density you can have and thus a bigger hash rate.
● Power Supply— It is what will feed your rig, two things are important when
selecting the power supply, make sure you have plenty of capacity and it is
very efficient. The lowest capacity I would recommend is 850 WATT.
Critical components continued
● GPU— The most critical component in an ethereum mining rig by far. Base on
crypto compare the best GPU to use today based on the consumption/vs
hash rate generated. For ETHER mining it is recommended for the GPU to
have +4GB of memory. Cryptocompare.com has a great list of suggested
GPUs and reviews.
accessories
● USB Riser Cards— you will need these to comfortably connect all GPUs.
● Power Meter (optional) — you will need this to understand what your power
consumption is, see the economics portion of the guide for details.
● Power switch for ATX MOBO— if you don’t plan on shorting the two power
pins on the motherboard buy this ;-).
● Case— open air cases are recommended to allow a rig to breathe, most open
air frame cases are $100 — $250 USD. Personally I decided to use a bamboo
dish rack which has exactly the same effect and it costs $15 USD on
Amazon. It does not look half bad either and is extremely portable.
Let’s Build the Dishwasher!
OS
ethos
● Purpose built for mining
● Built on Ubuntu 16.04 with an LXE Desktop Environment
● Runs many popular miners
● Supports AMD + NVIDIA GPUs
● + 8 GPU support natively (windows has an issue here)
● Great admin panel
Other considerations
Windows
● 8 GPU Limit
● Better driver support for GPUs
● More options for tweaking like firmware
hacking
SMOS
● Don’t know much about it
● Looks easier to use than ethos
● Although very similar
● Forces claymore
Let’s explore ethos!
Miners
Common ones (in ethos)
● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 ccminer [old]
● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 cgminer-skein [old]
● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 claymore [details next]
● drwxr-xr-x 2 ethos ethos 4.0K Mar 16 2017 claymore-zcash ^
● drwxr-xr-x 3 ethos ethos 4.0K Mar 16 2017 ethminer [details next]
● drwxr-xr-x 2 ethos ethos 4.0K Jul 8 10:22 ewbf-zcash [details next]
● drwxr-xr-x 8 ethos ethos 4.0K Mar 16 2017 optiminer-zcash [old]
● drwxr-xr-x 4 ethos ethos 4.0K Nov 9 22:36 sgminer-gm [details next]
● drwxr-xr-x 2 ethos ethos 4.0K Mar 16 2017 silentarmy [old]
claymore
● Mines ETH, XMR, ZCASH
● Supports NVIDIAS and AMD GPUs
● Great Performance for ETH in AMD
● 2% Mining Fee
● Supports Dual Mining Decre, Pascal, SIA
ethminer
● Mines - ETH
● Supports NVIDIAS and AMD GPUs
● Good Performance
● No mining Fee
ewbf-zcash
● Best zcash (equihash) miner currently available for NVIDIAS (only)
● Great Performance
● 2% Mining Fee
sgminer-gm
● Mines many coins
● Supports NVIDIAS and AMD GPUs
● No Mining Fee
● Supports Dual Mining Decre, Pascal, SIA
Mining Pools
Mining Pools
In the context of cryptocurrency mining, a mining pool is the pooling of resources by miners, who share their processing power over a network, to
split the reward equally, according to the amount of work they contributed to solving a block. A "share" is awarded to members of the mining pool who
present a valid proof-of-work that their miner solved
● helps you get paid faster and track your progress for a fee, in nanopool’s case
is 1%
● There are many out there research, some without fees, some whom have
more rejects etc..
Building an ethereum miner workshop
Selling Mining Power
Easy
Wallets + trading services
Types of Wallets
Software
● Easy to setup
● No cost
● Many features built in like shapeshift
● Great for daily (weekly) mining profits
● Risk of losing via a hack etc..
Hardware
● Most secure
● Great for long term storage of currency
● Not great for depositing mining gains
Common Wallets
Software
● Jaxx
● Exodus
● Coinbase
Hardware
● Trezor
● Ledger Nano S
Common Trading Services/Exchanges
● Coinbase
● Bittrex
● Binance
Economies of Mining
Building an ethereum miner workshop
Variables to Consider
● Power Cost - typically ~.12 KWH in Miami see your power bill
● Power Consumption - Depends on GPU + mining algo + miner
● GPU Hashing Speed - Depends on algo + miner
● Price of currency
Calculators
http://coinwarz.com/ - what coin (algorithm is most profitable)
https://www.cryptocompare.com/mining/calculator/ - what would my potential
earnings be base on coins
https://www.nicehash.com/profitability-calculator - what would my potential
earnings be based on hardware + algorithm if selling mining power
Risk of Mining
Building an ethereum miner workshop
Building an ethereum miner workshop
Questions?
josehelps.com
Building an ethereum miner workshop
BTC use of the
Merkel Tree
Vitalik Buterin
Creator of Ethereum
The benefit that this provides is the concept that Satoshi
described as “simplified payment verification”: instead of
downloading every transaction and every block, a “light client”
can only download the chain of block headers, 80-byte chunks of
data for each block that contain only five things:
● A hash of the previous header
● A timestamp
● A mining difficulty value
● A proof of work nonce
● A root hash for the Merkle tree containing the
transactions for that block.
If the light client wants to determine the status of a transaction, it
can simply ask for a Merkle proof showing that a particular
transaction is in one of the Merkle trees whose root is in a block
header for the main chain.

More Related Content

PDF
NetBSD on Google Compute Engine (en)
PDF
Building packages through emulation by Sean Bruno
PPT
الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...
PDF
Automated Hadoop Cluster Construction on EC2
PDF
s6196-chris-huybregts-microsoft-new-gpu-virtualization-technologies
PDF
Running Docker with OpenStack | Docker workshop #1
DOCX
Video game console specs 2
PDF
Scaling IO-bound microservices
NetBSD on Google Compute Engine (en)
Building packages through emulation by Sean Bruno
الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...
Automated Hadoop Cluster Construction on EC2
s6196-chris-huybregts-microsoft-new-gpu-virtualization-technologies
Running Docker with OpenStack | Docker workshop #1
Video game console specs 2
Scaling IO-bound microservices

What's hot (19)

PDF
Multipath
PPT
Computer Parts Products
PDF
HPP Week 1 Summary
PPTX
Windows Azure Overview 20131128
DOCX
ข่าวIt
PDF
SmartOS Primer
PPTX
OpenStack Instance Migration
PDF
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
PPTX
Cnam azure 2014 iaas
PDF
Building a continuous delivery platform for the biggest spike in e-commerce -...
PDF
OpenStack on SmartOS
PDF
PHP at Density and Scale (Lone Star PHP 2014)
PPT
Computing powerpoint
PPTX
망고100 보드로 놀아보자 10
PDF
FreeBSD under DigitalOcean VPS
PDF
Everyone Loves a Sausage
PDF
Practical ZFS
PDF
System Capa Planning_DBA oracle edu
PDF
WiredTiger In-Memory vs WiredTiger B-Tree
Multipath
Computer Parts Products
HPP Week 1 Summary
Windows Azure Overview 20131128
ข่าวIt
SmartOS Primer
OpenStack Instance Migration
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
Cnam azure 2014 iaas
Building a continuous delivery platform for the biggest spike in e-commerce -...
OpenStack on SmartOS
PHP at Density and Scale (Lone Star PHP 2014)
Computing powerpoint
망고100 보드로 놀아보자 10
FreeBSD under DigitalOcean VPS
Everyone Loves a Sausage
Practical ZFS
System Capa Planning_DBA oracle edu
WiredTiger In-Memory vs WiredTiger B-Tree
Ad

Similar to Building an ethereum miner workshop (20)

ODP
Shootout at the PAAS Corral
PDF
How to build a gaming computer
PDF
Deep Learning Computer Build
PPTX
GPU Cracking on the Cheap
PPTX
GPU Cracking - On the Cheap
PDF
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farm
PDF
Ether Mining 101
PPTX
Logs @ OVHcloud
PDF
GPU databases - How to use them and what the future holds
PPTX
Creating desktop for gaming
KEY
Deployment Strategies (Mongo Austin)
PDF
Ether mining 101 v2
ODP
Shootout at the AWS Corral
KEY
Deployment Strategies
PPTX
Open Source Data Deduplication
PDF
Deployment
PDF
Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)
KEY
Deployment Strategy
PDF
Mike Pittaro - High Performance Hardware for Data Analysis
PDF
High Performance Hardware for Data Analysis
Shootout at the PAAS Corral
How to build a gaming computer
Deep Learning Computer Build
GPU Cracking on the Cheap
GPU Cracking - On the Cheap
Kernel Recipes 2016 - Speeding up development by setting up a kernel build farm
Ether Mining 101
Logs @ OVHcloud
GPU databases - How to use them and what the future holds
Creating desktop for gaming
Deployment Strategies (Mongo Austin)
Ether mining 101 v2
Shootout at the AWS Corral
Deployment Strategies
Open Source Data Deduplication
Deployment
Operation Unthinkable – Software Defined Storage @ Booking.com (Peter Buschman)
Deployment Strategy
Mike Pittaro - High Performance Hardware for Data Analysis
High Performance Hardware for Data Analysis
Ad

Recently uploaded (20)

PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
project resource management chapter-09.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
Modernising the Digital Integration Hub
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Hybrid model detection and classification of lung cancer
PPT
Module 1.ppt Iot fundamentals and Architecture
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Programs and apps: productivity, graphics, security and other tools
Zenith AI: Advanced Artificial Intelligence
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
cloud_computing_Infrastucture_as_cloud_p
Getting started with AI Agents and Multi-Agent Systems
project resource management chapter-09.pdf
Enhancing emotion recognition model for a student engagement use case through...
OMC Textile Division Presentation 2021.pptx
Univ-Connecticut-ChatGPT-Presentaion.pdf
Final SEM Unit 1 for mit wpu at pune .pptx
Modernising the Digital Integration Hub
O2C Customer Invoices to Receipt V15A.pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Chapter 5: Probability Theory and Statistics
Web App vs Mobile App What Should You Build First.pdf
Hybrid model detection and classification of lung cancer
Module 1.ppt Iot fundamentals and Architecture

Building an ethereum miner workshop

  • 1. Building a Ethereum Miner Workshop
  • 2. Who am I ● Long Time Friend (@d1vious in slack) ● Do Security in Fastly by Day ● Play with Cryptocurrencies some nights
  • 3. Agenda ● Light Concepts ● Anatomy of a Mining Rig ● Sourcing Components ● OS and Mining software ● Mining Pools and Selling Mining Power ● Overclocking GPUs ● Troubleshooting ● Economy of Mining
  • 6. DAG D - Directed = One direction A - Acyclic = cannot ref self G - Graph = as in graph DB
  • 8. Anatomy of a Miner
  • 10. non-critical components ● CPU— any slow processor would do, you will be running low overhead *nix OS, least likely Windows, just make sure it works with your motherboard. ● Memory— as long as it has minimally 4GB of RAM memory ● HDD/SDD— Any would work, although I highly recommend purchasing the pre-loaded SSD with ethos from gpushack.
  • 11. critical components ● board— The most important aspect of purchasing a motherboard is making sure it has +4 PCI 2.0 slots, the more slots supported by the motherboard the more GPU density you can have and thus a bigger hash rate. ● Power Supply— It is what will feed your rig, two things are important when selecting the power supply, make sure you have plenty of capacity and it is very efficient. The lowest capacity I would recommend is 850 WATT.
  • 12. Critical components continued ● GPU— The most critical component in an ethereum mining rig by far. Base on crypto compare the best GPU to use today based on the consumption/vs hash rate generated. For ETHER mining it is recommended for the GPU to have +4GB of memory. Cryptocompare.com has a great list of suggested GPUs and reviews.
  • 13. accessories ● USB Riser Cards— you will need these to comfortably connect all GPUs. ● Power Meter (optional) — you will need this to understand what your power consumption is, see the economics portion of the guide for details. ● Power switch for ATX MOBO— if you don’t plan on shorting the two power pins on the motherboard buy this ;-). ● Case— open air cases are recommended to allow a rig to breathe, most open air frame cases are $100 — $250 USD. Personally I decided to use a bamboo dish rack which has exactly the same effect and it costs $15 USD on Amazon. It does not look half bad either and is extremely portable.
  • 14. Let’s Build the Dishwasher!
  • 15. OS
  • 16. ethos ● Purpose built for mining ● Built on Ubuntu 16.04 with an LXE Desktop Environment ● Runs many popular miners ● Supports AMD + NVIDIA GPUs ● + 8 GPU support natively (windows has an issue here) ● Great admin panel
  • 17. Other considerations Windows ● 8 GPU Limit ● Better driver support for GPUs ● More options for tweaking like firmware hacking SMOS ● Don’t know much about it ● Looks easier to use than ethos ● Although very similar ● Forces claymore
  • 20. Common ones (in ethos) ● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 ccminer [old] ● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 cgminer-skein [old] ● drwxr-xr-x 2 ethos ethos 4.0K Sep 9 09:26 claymore [details next] ● drwxr-xr-x 2 ethos ethos 4.0K Mar 16 2017 claymore-zcash ^ ● drwxr-xr-x 3 ethos ethos 4.0K Mar 16 2017 ethminer [details next] ● drwxr-xr-x 2 ethos ethos 4.0K Jul 8 10:22 ewbf-zcash [details next] ● drwxr-xr-x 8 ethos ethos 4.0K Mar 16 2017 optiminer-zcash [old] ● drwxr-xr-x 4 ethos ethos 4.0K Nov 9 22:36 sgminer-gm [details next] ● drwxr-xr-x 2 ethos ethos 4.0K Mar 16 2017 silentarmy [old]
  • 21. claymore ● Mines ETH, XMR, ZCASH ● Supports NVIDIAS and AMD GPUs ● Great Performance for ETH in AMD ● 2% Mining Fee ● Supports Dual Mining Decre, Pascal, SIA
  • 22. ethminer ● Mines - ETH ● Supports NVIDIAS and AMD GPUs ● Good Performance ● No mining Fee
  • 23. ewbf-zcash ● Best zcash (equihash) miner currently available for NVIDIAS (only) ● Great Performance ● 2% Mining Fee
  • 24. sgminer-gm ● Mines many coins ● Supports NVIDIAS and AMD GPUs ● No Mining Fee ● Supports Dual Mining Decre, Pascal, SIA
  • 26. Mining Pools In the context of cryptocurrency mining, a mining pool is the pooling of resources by miners, who share their processing power over a network, to split the reward equally, according to the amount of work they contributed to solving a block. A "share" is awarded to members of the mining pool who present a valid proof-of-work that their miner solved ● helps you get paid faster and track your progress for a fee, in nanopool’s case is 1% ● There are many out there research, some without fees, some whom have more rejects etc..
  • 29. Easy
  • 30. Wallets + trading services
  • 31. Types of Wallets Software ● Easy to setup ● No cost ● Many features built in like shapeshift ● Great for daily (weekly) mining profits ● Risk of losing via a hack etc.. Hardware ● Most secure ● Great for long term storage of currency ● Not great for depositing mining gains
  • 32. Common Wallets Software ● Jaxx ● Exodus ● Coinbase Hardware ● Trezor ● Ledger Nano S
  • 33. Common Trading Services/Exchanges ● Coinbase ● Bittrex ● Binance
  • 36. Variables to Consider ● Power Cost - typically ~.12 KWH in Miami see your power bill ● Power Consumption - Depends on GPU + mining algo + miner ● GPU Hashing Speed - Depends on algo + miner ● Price of currency
  • 37. Calculators http://coinwarz.com/ - what coin (algorithm is most profitable) https://www.cryptocompare.com/mining/calculator/ - what would my potential earnings be base on coins https://www.nicehash.com/profitability-calculator - what would my potential earnings be based on hardware + algorithm if selling mining power
  • 44. BTC use of the Merkel Tree Vitalik Buterin Creator of Ethereum The benefit that this provides is the concept that Satoshi described as “simplified payment verification”: instead of downloading every transaction and every block, a “light client” can only download the chain of block headers, 80-byte chunks of data for each block that contain only five things: ● A hash of the previous header ● A timestamp ● A mining difficulty value ● A proof of work nonce ● A root hash for the Merkle tree containing the transactions for that block. If the light client wants to determine the status of a transaction, it can simply ask for a Merkle proof showing that a particular transaction is in one of the Merkle trees whose root is in a block header for the main chain.

Editor's Notes

  • #3: Mention SFISSA, last year CTF on the WAF, current work..
  • #5: Your machine needs figure out what the right answer to the NONCE hashed block is in order or the block to be written and miner paid
  • #6: Blocks are made up of transactions which are hashed and then united and then
  • #7: Generated every - 100 Hours EPOCH, grows continuously Stored in Memory (GPU)
  • #11: Show machine
  • #12: Show machine
  • #13: Due to their incredibly high demand from miners and gamers it is darn near impossible to find RX480, RX470s, or their predecessors RX570 or RX580s in the market at a reasonble price. After much research and hunting for a deal I decided to settle with RX460’s (~11MH/s) for my first machine. These do not have as much power as the RX480 (~24 MH/s) but they also consume considerably less power. Most importantly they were 4–5 times cheaper than the RX480 sold today and easier to find.
  • #19: Note on bootup minimum RAM BIOS explanation (PCI generation and memory) Empty out remote.conf Updating Show stats Show miner Walk through local.conf Change Fan parameters Overclock 5% Panel .. challenge to find a RCE on the panel
  • #21: Location of mining software
  • #28: Show how to lower mining pool minimum payout