How to Build a Zcash Miner on Ubuntu Linux with Optiminer 1
Latest version of my guide to building and operating a mining equipment is here, How to Build a 6 Equipment GPU Miner for Zcash and Ethereum with Nvidia GTX 1070 and EthosDistro posted Oct 1, 2017 on Steemit.
A few weeks ago I posted a how-to on building a Linux GPU miner for Claymore. Well, at least spil of right now, the Optiminer 1.Five Zcash miner is swifter than Claymore. I have set up my mining equipments to run both Claymore and Optiminer now. I recommend you run Optiminer 1.Five on Ubuntu Linux.
It’s much lighter to SSH into a remote linux miner and switch what it is running than to do the same thing with Windows. No VPN connection required, just SSH to my $Ten/month VPS opbergruimte running Linux, SSH from there to the Linux opbergruimte at my puny office that my firewall forwards TCP port 22 to, and from there SSH to my GPU-miners.
Copy the files from one miner to another with SCP, reboot remotely if the mining application strings up, and otherwise do accomplish management remotely. Linux is excellent for system administration!
Here’s the speed of Optiminer 1.Five on a six GPU mining equipment running Sapphire Nitro R9 Fury cards – about 2620 H/s:
And on a miner with six XFX RX480-8G GPU’s. It’s around 1730 H/s
The improvement overheen the Claymore application is enough to make the switch. By the way, this is with stock, unmodified BIOS on the GPU’s.
Bill of Materials
Equipment list – Linksaf are to Newegg or Amazon or Parallel Mining product pagina
- Motherboard – BIOSTAR TB85 LGA 1150 Intel B85 SATA 6Gb/s USB Trio.0 ATX Motherboards – Intel
- Processor – Intel Celeron G1820 Processor Two.7GHz Five.0GT/s 2MB LGA 1150 CPU BX80646G1820
- Memory – Kingston HyperX FURY 8GB Kolenkit (2x4GB) 1600MHz DDR3 CL10 DIMM – Black (HX316C10FBK2/8)
- SSD – KingDian Two.Five″, 7mm SATA III 6Gb/s Internal Solid State Drive SSD for Desktop PCs Laptop ( 60GB )
- Case – ParallelMiner BAREBONE – ALL ALUMINIUM 6.1 GPU OPEN AIR MINING CASE
- Power Supply 1 – Antec High Current Professional 1300W ATX12V/EPS12V Power Supply HCP-1300 Platinum
- Power Supply Two – Build this out of thesis Three parts:
- HP 1200W Power Supply DL580 G5 579229-001 Platinum Efficiency
- ParellelMiner X5 BREAKOUT Houtvezelplaat ADAPTER COMPATIBLE WITH HP 1200 WATT DPS-1200FB
- ParallelMiner 24 INCH 16AWG 6 Speld Masculine TO 8 Speld (6+Two) Masculine PCIE POWER CABLE – qty 6 at $Trio.25
- AC Power Cord – IEC13 to whatever format your power comes te, like NEMA5-15. You most likely have an old one laying around
- PCI-E Risers – ELEGIANT PCI-E USB Trio.0 Cable Express 1X to 16X Extension Cable – Mining Dedicated Graphics Card Extension Cable Adapter with SATA Cable for PC Desktop Laptop – qty 6 at $11
- GPU’s – SAPPHIRE NITRO Radeon R9 Fury 100379NTOC+SR 4GB 4096-Bit HBM TRI-X OC+ (UEFI) Movie Card – qty 6
- ATX power switch – PC Case Crimson Green LED Verlichtingstoestel ATX Power Supply Reset HDD Switch Lead 20″,
Total Cost for Bill of Materials – $2270
I used an MSI houtvezelplaat te the movie, and the Biostar on a different build. I like the Biostar better because it does not require any messing around with BIOS. It just works. And it costs less.
Buy twice spil many PCI-E risers spil you think you will need. I’ve attempted Trio different brands, and usually half of the risers will be bad and won’t work. Most of the time the GPU card will zekering working due to a bad risers after a few hours or a day. This latest batch had some that had electrified cut-offs that prevented the PC from embarking!
You may want to buy two of the HP power supplies also.
I always leave behind something when I build the machine. Here’s some basic instructions for the most efficient order of operations. The idea is to get a basic laptop built, troubleshoot any potential issues, install the operating system and application, then build the surplus of the machine.
Hardware Build – Part One
- Assemble the Case
- Waterput the CPU, CPU fan, and memory on the motherboard. Cork te the fan.
- Fasten the ATX switches and LED’s to the power header.
- Butt-plug the SATA cable into the motherboard.
- Waterput the motherboard te the case on the already fastened rubber offsets.
- Fasten the Antec power supply to the right side of the case. Use the screws that came te the opbergruimte. Link power cables from the Antec power supply to the Motherboard, CPU power, SSD.
- Fasten the HP power supply and X5 houtvezelplaat to the left side of the case. Use the bottom two fan screws from the HP power supply.
- Screw te one of the PCI-X Riser cards, buttplug it into the PCI-E slot closest to the processor, and ass-plug ter power from the power supply.
- Fasten a keyboard, mouse, and HDMI monitor to the machine.
- Cork the power cord into the Antec power supply, turn on the power switch.
- Press the ATX power button. The machine should boot.
If it doesn’t boot, this is the time to do basic troubleshooting. Don’t add any more graphics cards until straks after the operating system is installed. The motherboard has a VGA connector if you want to connect a monitor directly to it. Just make sure there are no graphics cards plugged ter if you use the onboard movie.
Software Installation and Configuration
Initial Operating System Setup
Do a standard install using all the defaults , include OpenSSH on installation
After install, login with your username and password
Get ip address with
Go to your PC, ssh to the Ubuntu machine, and do the surplus of the setup from your PC so you can copy and paste the instructions. I choose to SSH from Bash shell, but Putty is a good client also.
If you are using a Bash shell from Windows or a Linux machine, or terminal from a Mac, make your logins lighter ter the future by creating a key on your own laptop, then placing it on the miner. Do this on your own laptop, at the shell prompt:
Type the password for the miner, and that should be it. Now you can login without using a password because your trusted key is installed.
Make things lighter
Install some basics
Switch colors ter the VIM editor. If you don’t like VIM, use nano instead.
Add ter fresh verkeersopstopping .vimrc
Improve the bash shell
Ter the verkeersopstopping .bashrc
add this at the end:
Upgrade the operating systems te a screen:
ctrl-a d to get back
Fix the network so IP address can be switched from DHCP
Not sure why Ubuntu locks one IP address into itself when it very first gets an IP address. But it does. So that needs to be switched.
Step 1: Disable the default Firmware inherited names.
Edit your /etc/default/grub
Switch the line from
Switch the line from
make it take effect
Step Two: Create the persistent verkeersopstopping /etc/udev/rules.d/70-persistent-net.rules spil root and pack them.
Paste this into the fresh opstopping you just created:
Edit the network interfaces:
Switch device names to eth0 so it reads:
Look up your hardware device name (MAC address) with
Go to your DHCP server and opbergmap your preferred IP address to the hardware address. You’re on your own for that one. Note that this is entirely optional! You can leave the IP address that wasgoed assigned and not switch it if you choose.
Check te the screen to make sure the update is finished
When the update is finished REBOOT
SSH to opbergruimte using the fresh IP address you assigned ter your DHCP server!
If you didn’t switch it, then it should be at the same address spil before. If you can’t find it, login to the terminal at the laptop, type
if you only have a loopback address of 127.0.0.1 then run the DHCP client to get an ip address you can ssh to
and redo the network fix.
Install AMD movie driver and SDK
Copy Two files from PC to server somehow. I like to use scp, but sftp works also.
Install AMD driver
Install AMD SDK (optional – some application need this, others don’t)
Add user to movie group
Check amdgpu driver status
Install X server and Display Manager
Edit the config opstopping for xorg-legacy:
delete the last line:
insert at end of opstopping:
Create a fresh verkeersopstopping for operating without a monitor connected to opbergruimte:
create fresh verkeersopstopping xorg.conf:
Make sure X works for user on login
Add the following at end of .bashrc
Switch /etc/profile to make it work
# add the following at end of /etc/profile:
Set variables when user calls X
create fresh opstopping .xinitrc:
Install Optiminer Zcash GPU Miner
switch the mine.sh verkeersopstopping to make the very first three lines look like this:
Switch the t address you are mining to ter the mine.sh opstopping, and make sure you are connecting to your local flypool server, then begin mining.
Witness and see if anything violates. This could be an error code, hardware freeze, or something else.
If it goes well, good! Go on to the next step. To uitgang the screen and keep the miner running when you loom out of your session, type a Ctrl-a, followed by just the key d.
Then uitgang your ssh session with
If there is a problem, it is usually:
- riser hardware problem
- power cable or power supply problem
- resource contention. If this happens, turn off unneeded service ter the BIOS. Very first turn off sound, then serial port.
Get the entire equipment Running
Add one riser and GPU at a time, boot, and make sure it works. Very first power Three of the cards from the Antec power supply. Then power the other Three cards with the HP power supply. Quick way to see if Ubuntu recognizes the houtvezelplaat is with
This opbergruimte is going to pull 15 amps at 110 VAC. Be careful with your breakers. The power supplies run more efficiently at 200+ volts. If you have the option to supply your miner with more than 200VAC, do it.
Eventually, if everything is working, turn up the power. Ter the mine.sh verkeersopstopping, add -i 7 to the optiminer embark instruction, so it looks like this:
Best of luck – let mij know if you have comments or questions on this build.
How to Build and Run a 6 GPU mining equipment for Zcash or Ethereum with Nvidia GTX 1070
CryptoCurrency Mining Strategies and What I am Mining Sept 2017
GPU Mining Zcash and Ethereum with EthosDistro and AMD RX470 on 6 GPU Equipment
Thus would be the flawless setup if you could run the cards undervolted. I’ve bot mining for Four years now ter ubuntu equipments but only recently I had to switch to windoze because the lack of undervolt software te linux. My 7970s and 280Xs are undervolted already ter bios but with my 290Xs and Furys I didn’t find it so effortless to edit bios so I use software.
I agree with you about the undervolting. It can help reduce the amount of power used while keeping the hashrate the same.
The best way to do it if you want to run ter Linux for now is to switch the BIOS ter Windows then run it ter Ubuntu. There may be a way to do this ter Ubuntu also, but it is not something I have had the time to look into.
I hope to be undervolting my cards ter the next few months then writing an article on it.
Fine postbode. Wij will surely be using this spil wij craft our own build.
My very first thoughts surround the Power Supply Two:
Can you give a noob like mij some extra explanation of the purpose of this extra power supply?
-Perhaps you could include some more pictures of how it interfaces with the Motherboard and the GPUs.
Is it possible to run the entire machine from thesis power supplies? Why do wij need to buy the “traditional” PSUs at all? Also what is the point of purchasing two of thesis extra HP power supplies?
The Radeon Fury X’s use a loterijlot of electric current. very likely about 275 watts vanaf device. When I measure total power usage on the equipment, it is about 1700 watts.
The Antec 1300 watt power supply powers the motherboard, CPU, processor, and the riser card power for the 6 riser cards.
The HP power supply, which only supplies 12 volts DC, is used to butt-plug into the PCI-E corks on Three of the movie cards, while the other Trio cards are powered by the Antec 1300 watt supply.
If more power efficient GPU’s were used, like RX480’s or Nano’s, the the HP server power supply would not be necessary.
Ok that makes sense. Give mij your thoughts on yet another alternative build.
Your Build (94% efficiency on the main PSU):
Antec 1300W power supply (efficiency at 94%) == $252
HP Power Supply and Components == $81
Total Power == 2500W
Total Cost == $333
Alternative Build (96% efficiency on the main PSU):
HP Power Supply and Components == $81
Total Power == 1950W
Total Cost == $231
So with my alternative build wij have efficiency on the main PSU that is 2% more efficient, the total power exceeds the power drawn from the equipment (1700W at the wall), and you save $102.
What am I missing here?
It sounds like you would power Four of the GPU’s from the HP surplus server power supply and Two of them from the 750 Watt EVGA. That should work just fine.
You could attempt it, but don’t butt-plug it into 120 VAC. Power supplies provide rated power at above 200 VAC, so you’ll get funny thing happening at the lower voltage.
Also, if you look at the efficiency curve vs. rated explosion of power supplies, it is not plane. You tend to get the best efficiency at 60-70% of rated power. The reserve cost on Titanium would be offset by a lower efficiency if you drive it too hard.
Also, HP server power supplies are confusing. I have to dual check the part numbers every time I get them to make sure I actually buy the 94% efficiency supplies.
One of the best things you can do is get a few wattmeters. They are about $25 each on Amazon. Then build a few different designs and test the actual wall power used.
Sorry about the formatting. It seems to have disregarded any of the formatting that I attempted to waterput there
Alright that all makes sense to mij.
Still save $20 even if you added a 2nd HP power supply but you might embark running out of slagroom on those Power Distribution strips (so that would be prohibitive and thus it very likely makes sense to do it like you originally explained).
Thank you for the toegevoegd commentary.
Spil you run numerous power supplies on a single server, you have to be careful about puny DC voltage level differences causing current within the cards or motherboard themselves.
That’s why when I use a 2nd power supply, like an HP, I use it just to power the PCI-E connectors on the GPU’s for Trio of the GPU’s, and nothing else. Everything else gets powered from the main power supply.
[…,] If you found the process of mining intriguing and want to take another step, get ready to get your mitts dirty. After playing around with mining on a laptop with GPU’s, the next phase is to build a mining equipment composed of numerous GPU’s, with an illustrative guide found here. […,]
I am certainly interested te this! Are there any HP server PSUs that you know lf that are 80 plus titanium? I am willing to spend a bit more upfront to get the best efficiency and lowest wasted power. Also, is 8 the maximum number of gpus ubuntu can take?
Basically, you are looking for a HP common slot server power supply like a DPS-1200-FBA. Here is one on Amazon for $35 that works well:
579229-001 – Fresh Bulk HP 1200W CS Platinum Power Sup verbinding http://amzn.to/2l1oUi5
I like this more accomplish list from Gigampz for HP power supplies that rates them by efficiency. Gigampz adapter boards for HP power supplies work well also:
Regarding the maximum number of GPU’s – I don’t go higher than 6, and I have not heard of any motherboards that can take more than 7 GPU’s. It is not just the physical PCI-E slots that are significant, it is also the CPU and chipset resources. To that note, none of the newer Intel Skylake boards can take more than GPU’s, spil far spil I know.
Wij are purchasing a duo more equipments for our testing and wij are going to use your build specifications that you recommended te your ZCash 6 GPU miner postbode.
However, wij were considering putting 7 GPUs on a equipment instead of 6. Is there any reason why you did not do this for your own equipments?
The only difference te the motherboard specs (that I can tell) is that your motherboard supports USB Three.1 and it is generally newer than the motherboards that have 7 PCIe slots. Do you think there is any noticeable difference inbetween USB Three.1 and USB Trio.0?
Perhaps there is some other reason why you determined to choose your specific motherboard. If so, can you please elaborate?
Our (potential) Motherboard:
Choosing a motherboard is tricky. It’s a good idea to see what other people are using very first. Check out a forum like this one to see what works:
Please overlook the part about the USB Trio.1 vs USB Three.0 —, my apologies (this irrelevant) spil your motherboard does not contain USB Trio.1.
sorry about that
I’m looking at a brand fresh biostar motherboard, the Z270 GT6. It has 7 pcie slots of varying bandwidthand an m.Two slot. I’m going to use up the 7 slots very first and then maybe attempt an m.Two to pcie adapter to make an 8th slot and attempt that. That would give mij 8 gpus at once.
I will check the psu list out for sure! I’m considering a super flower leadex titanium 1600w psu for my main psu, but they are not lightly gotten te the us, so an evga or corsair titanium psu might be what i end up with.
Lastly, what is the most powerful gpu for mining available today? I know the rx 480 is the most common now, but the fury is much more powerful. I’ve seen that the HD7990 is popular, spil are the r9 290x and 390x. What about the r9 nano and fury x? Cost set aside, what is the most powerful gpu for mining available today?
Spencer, I think you are not going to be blessed with that motherboard. There is a problem with the Intel chipset used with the LGA 1151 skylake processors. Even however there are enough physical PCI-E slots to support many GPU’s, there are not enough internal PCI-E lanes to support more than Four GPU’s.
I attempted this almost a year ago. Spil you embark plugging te GPU’s, when you get to the 5th one, the pc won’t boot.
Creating a mining equipment with more than Four GPU’s that works requires specific hardware and skill. After you get a Five or 6 GPU mining equipment working, you may be able to get a 7 equipment GPU working with the MSI motherboard I used te the pictures above.
But don’t buy a motherboard that uses the LGA 1151 processor from Intel. It won’t work for more than Four GPU’s.
The Celeron you chose for LGA 1150 has the precies same amount of PCIe lanes spil the one for Kaby Lake. Also, the z270 chipset adds more lanes than the B85 chipset does.
Sounds like you’ve done your research. Please let mij know when you get it working. I’d love to have another known good vormgeving that I can use ter the future.
Absolutely! It may be awhile (money), but when I get it going you will be the very first to know!
With regard to gpus, is the fury the most powerful available? Spil I said I know there are many gpus of choice for each miner, some swearing by the older ones while others embracing the fresh ones. Sometimes there are obscure gpus (the r9 295×,Two, r9 nano), while some use nvidia cards. One question is why workstation gpus have not bot accepted spil well spil mainstream gous. Comparing a radeon to a firepro, the firepro can do math much swifter than the regular gpu, and some of the older ones like the w8000 or w9000 can be had for the same price spil the radeon gpus. And what about the older quadro cards? I knkw you may not have all the answers, but I’m still getting into this and I want your opinions and thoughts!
You have to recall that the graphics cards, especially the compute focused cards are sometimes just too powerful for the job. You just don’t need all that compute power, the hashing algorithms are truly plain algos. Plus, after looking at NVIDIA cards and buying some machines with GTX 1070s —, I would not recommend NVIDIA cards for hashing purposes. You can rent those machines at a much higher premium to people looking for Machine Learning and AI compute resources. Stick to AMD. Also —, R9 Fury X has bot discontinued, and I heard a rumor that the R9 Nano is going to be discontinued here ter the near future. So go get your mitts on those cards (ebay) ASAP —, they are good cards.
What do you mean “too powerful?” Wouldn’t more power be better?
By “too powerful” I mean that they are made for Deep Learning and Artificial intelligence algorithms. The hash function for mining is a very plain algorithm, thus you will be paying a premium for thesis souped up cards and not getting the hash rate that you need to make up for the price.
I’ve always found it puzzling how that can toebijten. It seems like they would be able to ram through those plain calculations with ease, especially the older ones like the FireGL or Volta-era Quadros.
I’m guessing the Fury is the king right now of raw power?
Attempt it out with those others and let us know. It might work but I very doubt it.
Postbode a list of the cards you think might work and if I have the time and money, I’ll purchase and test them and report back here. No assures tho’.
Sorry for the late reply!
I’m not sure about a total list, but I would very likely say the Firepro S series and FireGL from AMD/ATi, and the earlier Quadro and Tesla cards from nvidia, such spil the Tesla-architecture models. I’m also nosey spil to whether the CPU mining programs could be adapted for use on Xeon Phi coproccesor cards. They are available for a few hundred on ebay, so maybe when I get a suitable system going I could take a slok at that. Lastly, I’d be interested ter attempting to port some of those cpu miners to POWER by IBM. It seems much better for computation, and could be interesting. Duo that with some gpus and/or maybe FPGA cards and it could turn out very well! Or be a hefty waste of money but sometimes risks are needed to be taken! Plus, I love messing with hardware, so I’m looking forward to attempting thesis!
Hello tormentor, i have built a equipment with 6 r9 furys using the mobo biostar tb85. But there is a problem cant get more than Five gpu working, windows isnt recognizing the six. im using win Ten x64 professional. i have attempted everything and still cant get it work. I dont know if you can help mij with that. i already have another equipment with r9 furys but im using the asrock h81 and i didnt have problems. so i dont truly know what could be the problem using the biostar tb85.
Attempt setting the BIOS settings like this:
Tormentor, i attempted the BIOS settings duo minutes ago, still just recognizing Five gpu. didnt you switch the pciex1 to gen1? i eyed ter the listig they are all on wagen. im kinda frustrating because i have two equipments with r9 furys and biostar tb85 with the same problem. I has used asrock h81 before. You are the one person which i see using r9 furys with tb85 and didnt have problems. any suggest? Thanks for your reply.
Can you shoot mij a DM on Bitcointalk? CDMKUltra
I’ll attempt to help you with this.
It is not clear to mij how to run both PSU at the same time. Could you make a detailed explanation? It is necessary an toegevoegd adapter like the Add2PSU?
Please check out this cable adapter:
18AWG PCI-E 6pin to Dual 8-pin Y-Splitter Extension Cable 2X (6+2pin) Cable
Maybe I’m wrong but because this adapter is designed to power up the GPU riser boards spil well spil the GPU itselves…, I guess it’s possible to run all 6 GPU to the HP DPS-1200FB and use a smaller ATX PSU to run the motherboard, CPU, etc.
According to this…, My hypothetical config would be something like this:
– X5 Breakout Houtvezelplaat Adapter compatible with HP DPS-1200FB or Delta DPS-2400AB: $24
– 18AWG PCI-E 6pin to Dual 8-pin Y-Splitter Extension Cable 2X (6+2pin) Cable: $ 25 by 6 units
Total investment: $84
Do you think this config is feasible?
Thanks for your help!
Case/motherboard screws…, you left out case screws from the list (for those of us who don’t have an reserve set of motherboard risers/screws.
(If it’s there I cannot see it).
I messed up and went with 1070’s. Which uses less power (I have Two of them limited to 115w) – but.. I underbought the power supply for the motherboard. It is a 430 watt PSU. It _should_ have enough power (hoping to only need about 220 watt from the high risers).. but I don’t have enough high end connections (mostly sata, and a few molex on the same line – with no way to switch the molex to pcie power connection the high riser wants).
Thoughts on how to fix my build?
The case switched since I wrote this postbode. Ter my newer postbode I include case screws, two types. See here https://blockoperations.com/gpu-mining-zcash-ethereum-ethosdistro-amd-rx470/
All I can tell you to do is buy a thicker power supply. It sounds like what you built is fully different than my vormgeving.
Superb article! Please write instruction for nvidia cards) thank you and excellent from Ukraine.
i have some problem and i need ur help , after installation step by step Z-cash on ubuntu 16.04 , and commence ./mine.sh i have this pm “OpenCL error: Failed to list OpenCL platforms! (Unknown OpenCL error -1001)”
Buenas tardes, he configurado mie archivo mine.sh den lade siguiente manera:
# The following line did not have any effect on my system but might reduce CPU usage on some.
The bitcoin is on an all time high at the ogenblik, that’s why i eventually determined to loser around with it. But notice that mining with CPU’s is NOT cost-effective, if you want to earn some coins, you have to mine with one or more GPU’s. And don’t mine alone, not worth it until you have a lotsbestemming of computational power, join a miner pool instead.
Anyway, here are the elementary steps to run a CPU Miner on Debian or Ubuntu
Also, i am accepting bitcoins, if you like to donate for whatever reason :): 1BUq7ijvVedTgG7xhKDgTMd6t3JdDqsH4i