Linux mining guide

By | 13.06.2018
1

How to mine Monero on Windows or Linux (Fedora or Ubuntu) Then choose a mining pool from the list above. For the resilience of the Monero mining network. Latest version of my guide to building and operating a mining rig is here, How I’ve been building mining rigs using Ubuntu linux for Block Operations. Mining setup. From Gridcoin. search. Gridcoin-Research Mining Guide. Note: If you have not already setup BOINC, Linux. Follow the Linux Guide. Mac.
sudo apt-get install software-properties-common If you want to do Ethereum mining using Keep reading and follow this guide. You have to pick a Linux distro to. ethOS Mining OS. ethOS is a 64-bit linux OS that mines Ethereum, Zcash, Monero, and other GPU-minable coins. Altcoins can be autotraded to Bitcoin. How to mine Monero on Windows or Linux (Fedora or Ubuntu) Then choose a mining pool from the list above. For the resilience of the Monero mining network. Latest version of my guide to building and operating a mining rig is here, How I’ve been building mining rigs using Ubuntu linux for Block Operations. Mining setup. From Gridcoin. search. Gridcoin-Research Mining Guide. Note: If you have not already setup BOINC, Linux. Follow the Linux Guide. Mac.

Latest version of my guide to building and operating a mining rig is here,  How to Build a 6 Rig GPU Miner for Zcash and Ethereum with Nvidia GTX 1070 and EthosDistro posted Oct 1, 2017 on Steemit.

Bitcoin is getting all the press, and Bitcoin mining can be profitable. But the equipment is noisy, expensive, and hard to get. If you want to get started in crypto-currency, linux mining guide, and have a little bit of technical knowhow, I recommend you build a GPU mining rig first.

GPU mining rigs are just as profitable as Bitcoin mining, linux mining guide, the products are easy to purchase, and mining spoils GPU cards have a 2 year warranty in case you burn them out. They are multipurpose, and can be used to mine many different crypto-currencies. These will usually pay for themselves in one year, including the cost of electricity. After that you are making money.

I’ve been building mining rigs using Ubuntu linux for a while now. I really like the AMD RX480 cards, and recently moved my Ethereum miners to using Claymore’s mining code. I wanted to mine Zcash also, and found that the AMD R9 Fury cards were better than the AMD RX480’s.

The first miners I built for Zcash used the SilentArmy miner for Ubuntu. It was good, but Claymore’s Windows version was 3 times as fast! I moved the machines to Windows 10 and ran the Claymore miner. Fabulous performance, no problems.

Except I don’t like Windows 10. When I need to check on the miner, or reboot it, I want to be able to SSH to it directly, make the change, and be done. Windows was rebooting at inconvenient times for updates, and I hated having to VPN in and get a GUI going with NoMachine just to make a change.

So when Claymore came out with a Linux version of the Zcash miner, I was very happy. I built a new 6 GPU mining rig and got things going. It works really well. It’s set up to run headless on Ubuntu 16.04 LTS with the latest AMD drivers. This same basic setup can be used to mine for Ethereum and Monero also.

Check out the Stats – 2515 Hash/second. This box uses 7 amps at 240 VAC – 1600 Watts of power. In January of 2016, this box generates $250/month of Zcash, and uses about $50/month of electricity, for a net of $200/month, or $2400 per year. First year mining pays for itself, then it’s making you money.

Plug that into the Equihash numbers at Coinwarz, and you’ll see Zcash comes out pretty good.

Bill of Materials

Equipment list – Links are to Newegg or Amazon or Parallel Mining product page

  1. Motherboard – BIOSTAR TB85 LGA 1150 Intel B85 SATA 6Gb/s USB 3.0 ATX Motherboards – Intel – $71
  2. Processor – Intel Celeron G1820 Processor 2.7GHz 5.0GT/s 2MB LGA 1150 CPU BX80646G1820 – $43
  3. Memory – Kingston HyperX FURY 8GB Kit (2x4GB) 1600MHz DDR3 CL10 DIMM – Black (HX316C10FBK2/8) – $49
  4. SSD business intelligence and data mining tools 2.5″ 7mm SATA III 6Gb/s Internal Solid State Drive SSD for Desktop PCs Laptop ( 60GB ) – $30
  5. Case – ParallelMiner BAREBONE – ALL ALUMINIUM 6.1 GPU OPEN AIR MINING CASE – $120
  6. Power Supply 1 – Antec High Current Pro 1300W ATX12V/EPS12V Power Supply HCP-1300 Platinum – $260
  7. Power Supply 2 – Build this out of these 3 parts:
  8. PCI-E Risers – ELEGIANT PCI-E USB 3.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 – $66
  9. GPU’s – SAPPHIRE NITRO Radeon R9 Fury 100379NTOC+SR 4GB 4096-Bit HBM TRI-X OC+ (UEFI) Video Card – qty 6 at $260 – $1550
  10. ATX power switch – PC Case Red Green LED Lamp ATX Power Supply Reset HDD Switch Lead 20″ – $10

Total Cost for Bill of Materials – $2270

Build Notes:

I used an MSI board in the video, 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, linux mining guide. And it costs less.

Buy twice as many PCI-E risers as you think you will need. I’ve tried 3 different brands, and usually half of the risers will be bad and won’t work. Most of the time the GPU card will stop working due to a bad risers after a few hours or a day. This latest batch had some that had electric shorts that prevented the PC from starting!

You may want to buy two of the HP power supplies also.

AMD RX480 Option

As an option, you can buy AMD RX480 graphics cards instead of Fury’s. The RX480’s use less power. Most of my mining rigs use AMD RX480’s. Here is one I like a lot:

XFX Radeon RS RX 480 DirectX 12 RX-480P836BM 8GB 256-Bit GDDR5 PCI Express 3.0 CrossFireX Support Video Card

If you use the RX480 instead of the R9 Fury (item 9 above), you will use less electricity. You will not need to buy the second power supply (Item7 above).The hash rate will be less, and it will use less power also.

This is an output from an RX480 6-GPU rig running Claymore Zcash miner 11.1 for linux:

Build Instructions

I always forget 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 computer built, troubleshoot any potential issues, install the operating system and application, then build the rest of the machine.

Hardware Build – Part One

  1. Assemble the Case
  2. Put linux mining guide CPU, CPU fan, and memory on the motherboard. Plug in the fan.
  3. Attach the ATX switches and LED’s to the power header.
  4. Plug the SATA cable into the motherboard.
  5. Put the motherboard in the case on the already attached rubber offsets.
  6. Attach the Antec power supply to the right side of the case. Use the screws that came in the box. Attach power cables from the Antec power supply to the Motherboard, CPU power, SSD.
  7. Attach the HP power supply and X5 board to the left side of the case. Use the bottom two fan screws from the HP power supply.
  8. Screw in one of the PCI-X Riser cards, plug it into the PCI-E slot closest to the processor, and plug in power from the power supply.
  9. Attach a keyboard, mouse, and HDMI monitor to the machine.
  10. Plug the power cord into the Antec power supply, turn on the power switch.
  11. 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 later 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 in if you use the onboard video.

Software Installation and Configuration

Initial Operating System Setup

Install Ubuntu 16.04 LTS Server
Do a standard install using all the defaultsinclude OpenSSH on installation
After install, login with your username and password
Get ip address with

ifconfig

Go to your PC, ssh to the Ubuntu machine, and do the rest of the setup from your PC so you can copy and paste the commands. I prefer to SSH from Bash shell, but Putty is a good client also.

Make things easier

Install some basics

sudo apt update sudo apt install git screen vim nmap ncdu busybox inxi links unzip python

Change colors in the VIM editor. If you don’t like VIM, use nano instead.

vim .vimrc

Add in new file linux mining guide desert

Improve the bash shell

vim .bashrc

In the file .bashrc
change #force_color_prompt=yes
to

force_color_prompt=yes

add this at the end:

LS_COLORS=$LS_COLORS:'di=0;36:' ; export LS_COLORS

Upgrade the operating systems in a screen:

screen -S upgrade sudo apt dist-upgrade

ctrl-a d to get back

Fix the network so IP address can be changed from DHCP

Not sure why Ubuntu locks one IP address into itself when it first gets an IP address. But it does. So that needs to be changed.
Step 1: Disable the default Firmware inherited names.
Edit your /etc/default/grub

sudo vim /etc/default/grub

Change the line from
GRUB_CMDLINE_LINUX_DEFAULT=””
to

GRUB_CMDLINE_LINUX_DEFAULT="text"

Change the line from
GRUB_CMDLINE_LINUX=””
to

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

make it take effect

sudo update-grub

Step 2: Create the persistent file /etc/udev/rules.d/70-persistent-net.rules as root and fill them.

sudo vim /etc/udev/rules.d/70-persistent-net.rules

Paste this into the new file you just created:

# This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device lan Device SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:yy:XX:yy:XX:yy", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", linux mining guide, NAME="ethX" # PCI device Wlan Device SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:yy:XX:yy:XX:yy", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="wlanX"

Edit the network interfaces:

sudo vim  /etc/network/interfaces

Change device names to eth0 so it reads:

# The primary network interface auto eth0 iface eth0 inet dhcp

Look up your hardware device name (MAC address) with

ifconfig

example:

HWaddr 4c:cc:6a:67:57:07

Go to your DHCP server and map your preferred IP address to the hardware address. You’re on your own for that one.
Check in the screen to make sure the update is finished

screen -r

When the update is finished REBOOT  

sudo reboot

ssh to box using the new IP address you assigned in your DHCP server!
If you didn’t, then it should be at the same address as before. If you can’t find it, login to the terminal at the computer, type

ifconfig

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

sudo dhclient

and redo the network fix.

Install AMD drivers 

Option 1 to install the AMD driver:

sudo apt install amdgpu-pro

If that doesn’t work, try option 2

Copy 3 files from PC to server
AMD Linux Ubuntu Driver 16.50
AMD OpenCL SDK 3.0
Claymore’s ZCash AMD GPU Miner v11.0 (Windows/Linux)
Install AMD driver

tar xf amdgpu-pro-16.50-362463.tar.xz cd amdgpu-pro-16.50-362463/ sudo ./amdgpu-pro-install

Install AMD SDK (optional – some application need this, others don’t)

tar xf AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 sudo ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh

Add user to video group

sudo usermod -a -G video $LOGNAME

Check amdgpu driver status

sudo apt install clinfo sudo clinfo sudo clinfo | grep compute

REBOOT

Install  X server and Display Manager

Install xorg

sudo apt install xorg  xserver-xorg-legacy xserver-xorg-video-dummy

Edit the config file for xorg-legacy:

sudo vim /etc/X11/Xwrapper.config

delete the last line:
allowed_users=console
insert at end of file:

allowed_users=anybody needs_root_rights=yes

Create a new file for operating without a monitor connected to box:

sudo vim /etc/X11/xorg.conf

create new file xorg.conf:

Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen8" 0 0 EndSection Section "Files" ModulePath "/usr/lib/xorg/modules" FontPath "/usr/share/fonts/X11/misc" FontPath "/usr/share/fonts/X11/cyrillic" FontPath "/usr/share/fonts/X11/100dpi/:unscaled" FontPath "/usr/share/fonts/X11/75dpi/:unscaled" FontPath "/usr/share/fonts/X11/Type1" FontPath "/usr/share/fonts/X11/100dpi" FontPath "/usr/share/fonts/X11/75dpi" FontPath "built-ins" EndSection Section "Device" ### Available Driver options are:- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz", ### <percent>: "<f>%" ### [arg]: arg optional #Option "ShadowFB" # [<bool>] #Option "DefaultRefresh" # [<bool>] #Option "ModeSetClearScreen" # [<bool>] Identifier "Card8" Driver "dummy" VideoRam 16384 EndSection Section "Monitor" Identifier "Monitor8" HorizSync 15.0-100.0 VertRefresh 15.0-200.0 Modeline linux mining guide 33.92 1600 1632 1760 1792 900 921 924 946 EndSection Section "Screen" Identifier "Screen8" Device "Card8" Monitor "Monitor8" SubSection "Display" Viewport 0 0 Depth 24 Virtual 1600 900 EndSubSection EndSection

Make sure X works for user on login

vim .bashrc

Add the following at end of .bashrc

export DISPLAY=:0

Change /etc/profile to make it work

sudo vim /etc/profile

# add the following at end of /etc/profile:

export XAUTHORITY=~/.Xauthority

Set variables when user calls X

vim .xinitrc

create new file .xinitrc:

#!/bin/bash DISPLAY=:0 && xterm -geometry +1+1 -n login

Install Claymore Zcash GPU Miner

Install dependency:

sudo apt install libcurl3

Prepare Claymore binary

mv Claymore\'s\ ZCash\ AMD\ GPU\ Miner\ v10.0\ Beta\ -\ LINUX\ -\ Catalyst\ 15.12-16.x.tar.gz claymore10 tar xf claymore10 cd claymore10

Create a start script

vim mine.sh

Create new file:

#!/bin/sh xinit & sleep 5 #export GPU_FORCE_64BIT_PTR=1 #export GPU_MAX_HEAP_SIZE=100 #export GPU_USE_SYNC_OBJECTS=1 #export GPU_MAX_ALLOC_PERCENT=100 #export GPU_SINGLE_ALLOC_PERCENT=100 ./zecminer64

Make it executable

chmod +x mine.sh

Update config.txt file. Use your own zcash address if you prefer in the zwal setting.

-zpool us1-zcash.flypool.org:3333 -zwal t1TGP8AzTBjS3kxxXQNPqmpBQjWaTLFhEKZ.rigz -zpsw x -di 0123456 #-tt 75 #-i 6 #-logfile /home/user/log/lognoappend

Enter a screen

screen -S mining

run the miner

./mine.sh

Watch and see if anything breaks. This could be an error code, hardware freeze, or something else. 

If it goes well, great! Go on to the next step. To exit the screen and keep the miner running when you log out of your session, type a Ctrl-a, followed by just the key d.

ctrl-a d

Then exit your ssh session with

exit

If there linux mining guide a problem, it is usually:

  • riser hardware problem
  • power cable linux mining guide power supply problem
  • resource contention. If this happens, turn off unneeded service in the BIOS. First turn off sound, then serial port.

Get the entire rig Running

Add one riser and  GPU at a time, boot, and make sure it works. First power 3 of the cards from the Antec power supply. Then power the other 3 cards with the HP power supply. Quick way to see if Ubuntu recognizes the board is with

lspci | grep VGA

or

sudo clinfo | grep compute

This box 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.

Best of luck – let me know if you have comments or questions on this build.

Rolf Versluis


Also published on Medium, linux mining guide.

Related

Источник:




ethOS Mining OS

Mining setup. From Gridcoin. search. Gridcoin-Research Mining Guide. Note: If you have not already setup BOINC, Linux. Follow the Linux Guide. Mac. Ethereum Community Forum. GTX1070 Linux installation and mining clue my guide is a stable overall machine so the lowers stable card pulls down the higher. If you successfully follow the directions in the video then Congratulations! You now have taken your first step into the world of Linux and Zcash Mining! # QuazarCoin (QCN) Mining Guide ## Installation **QuazarCoin**, works on Windows, Linux and Mac OS X platforms. You can download it from [official website](http. After that all can be done from Mining Dashboard on simplemining.net! Bitcointalk thread https://bitcointalk.org/index.php?topic=1541084. Price. Updated ccMiner 1.8 fork by tpruvot With LBRY Support. Mac OSX and Linux), people have been mining the to get to mining LBRY Credits however you should.

Mining setup. From Gridcoin. search. Gridcoin-Research Mining Guide. Note: If you have not already setup BOINC, Linux. Follow the Linux Guide. Mac. Zcash was launched on October 28, 2016 and people are now able to mine Zcash. In this Zcash mining guide we are going to look at how to mine Zcash on Linux, including. After that all can be done from Mining Dashboard on simplemining.net! Bitcointalk thread https://bitcointalk.org/index.php?topic=1541084. Price.


Zcash was launched on October 28, 2016 and people are now able to mine Zcash. In this Zcash mining guide we are going to look at how to mine Zcash on Linux, including Debian, Ubuntu, Linux Mint, Elementary OS.

Zcash is a new cryptocurrency that promises better privacy and full anonymity for users. Unlike Bitcoin, Zcash transaction info (the sender, recipient, and value of all transactions on the blockchain) is encrypted and can’t be viewed unless you have the view key.

The official Zcash client is currently available as a command-line tool for Linux only.

Prerequisites

  • You are comfortable with Linux command line.
  • You have at least 4GB of RAM on your computer
  • A 64-bit Debian-based Linux distribution.

Install Zcash on Debian, Ubuntu, Linux Mint, Elementar OS from Zcash repository

Fire up a terminal window (), then open the file.

sudo nano /etc/apt/sources.list

Paste the following line to the end of the file.

deb [arch=amd64] https://apt.z.cash/ jessie main

Save and close the file. Then import Zcash signing key to your system using the following command.

wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -

You should see an message which indicates that the import is successful. Since Zcash repository uses https protocol, we need to install the package so that APT can talk to Zcash repository in https.

sudo apt install apt-transport-https

Now update local package index and install Zcash.

sudo apt update sudo apt install zcash

Setting up Zcash

Once it’s installed, run the following command to fetch the zero-knowledge parameters. The params directory will be created at .

zcash-fetch-params

Once the download is complete, we also need to create a config file before running Zcash. Create the config directory under your home directory with:

mkdir ~/.zcash

Then run the folllowing 3 command to create the file. Replace username with your preferred username.

echo"addnode=mainnet.z.cash">~/.zcash/zcash.conf echo"rpcuser=username">>~/.zcash/zcash.conf echo"rpcpassword=`head -c 32 /dev/urandom | base64`">>~/.zcash/zcash.conf

If you want to enable CPU mining, then run the following 2 commands:

echo 'gen=1' >> ~/.zcash/zcash.conf echo "genproclimit=$(nproc)" >> ~/.zcash/zcash.conf

Now start the Zcash daemon:

zcashd

zcashd running on Ubuntu 16.04

Now your Zcash mining node is up and running. To let it run in the background, add flag.

zcashd --daemon

You can use the client to get information on your node like below.

zcash-cli getinfo

To stop mining, run

zcash-cli stop

For more info on the usage of and , check out the man pages.

man zcashd man zcash-cli

It’s worth mentioning that Equihash, a memory-oriented Proof-of-Work,  is used for block mining in Zcash which means how much mining you can do is mostly determined by how much RAM you have.

That’s it!

I hope this how to mine Zcash guide helped you. As always, if you found this post useful, then Subscribe to our free newsletter to get latest Linux tutorials. You can also follow us on Google+, Twitter or like our Facebook page.

Rate this tutorial

[Total: 38 Average: 3]
Источник:

Linux mining guide Accenture mining
SPARTAN 6 MINING Nvidia mining cards
Mining share prices 181

1 thoughts on “Linux mining guide

Add comment

E-mail *