create account

How to mine Monero on Ubuntu 16.04 using ccminer-cryptonight by mobidick

View this thread on: hive.blogpeakd.comecency.com
· @mobidick · (edited)
How to mine Monero on Ubuntu 16.04 using ccminer-cryptonight
With the recent upsurge in Monero popularity and price,  now is the perfect opportunity to begin exploring and mining the cryptocurrency. If you're not familiar with Monero, it's a cryptocurrency with privacy built in.

> Monero uses a cryptographically sound system that allows you to send and receive funds without your transactions being publicly visible on the blockchain (the distributed ledger of transactions). This ensures that your purchases, receipts, and other transfers remain private by default.
— [getmonero.org](https://getmonero.org/home)

If you have some spare computing power, or a decent GPU, you can contribute some hashing power to the network and earn some Monero yourself.

---
# Getting started
This tutorial assumes you're running a version of Ubuntu. If you don't have Ubuntu, you can install it on your machine for free [here](http://www.ubuntu.com/download).

## Installing ccminer-cryptonight
ccminer-cryptonight is a fork of ccminer that runs on the CUDA architecture and takes advantage of your Nvidia video card.
#### Download the source code for ccminer-cryptonight
 [https://github.com/tsiv/ccminer-cryptonight/archive/v0.17.zip](https://github.com/tsiv/ccminer-cryptonight/archive/v0.17.zip).

#### Update the system
`sudo apt-get update && sudo apt-get -y dist-upgrade`
#### Install dependencies
```
sudo apt-get -y install gcc g++ build-essential automake linux-headers-$(uname -r) git gawk libcurl4-openssl-dev libjansson-dev xorg libc++-dev libgmp-dev python-dev
```

#### Install the nvidia display driver
```
cd && wget http://us.download.nvidia.com/XFree86/Linux-x86_64/352.41/NVIDIA-Linux-x86_64-352.41.run
sudo chmod +x NVIDIA-Linux-x86_64-352.41.run
sudo ./NVIDIA-Linux-x86_64-352.41.run --accept-license --no-questions --disable-nouveau --no-install-compat32-libs
rm NVIDIA-Linux-x86_64-352.41.run
```

```
sudo echo 'GRUB_CMDLINE_LINUX="nomodeset"' >> /etc/default/grub
sudo update-grub
sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration  # flags enable OC and fan controls.  via: https://bitcointalk.org/index.php?topic=826901.msg12279696#msg12279696
```

#### Install Cuda
```
cd && wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_6.5-14_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb
rm cuda-repo-ubuntu1404_6.5-14_amd64.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-6-5 
```
*Note: you can skip having to read over the entire agreement by pressing ctrl+c after the last command above.*
```
sudo usermod -a -G video $USER
echo "" >> ~/.bashrc
echo "export PATH=/usr/local/cuda-6.5/bin:$PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64:$LD_LIBRARY_PATH" >> ~/.bashrc
```

#### Reboot
`sudo reboot`

*Make the deviceQuery sample.  This is used to verify cuda works*
`cd /usr/local/cuda/samples/1_Utilities/deviceQuery && sudo make`

*If you see all of your cards listed, and the last line says "Result = PASS" you're good to go.*
`/usr/local/cuda/samples/1_Utilities/deviceQuery/deviceQuery`

#### Build ccminer-cryptonight
```
cd ccminer-cryptonight_20140926
./autogen.sh
./configure
make
```

## Mining
First create a wallet, either using the [simplewallet](https://getmonero.org/downloads/) binary, or using [mymonero.com](https://mymonero.com). Copy your wallet address.

We'll be mining with a pool I like called [MoneroHash](https://monerohash.com/). It's relatively small, which means payouts will be larger (but might take longer).

Simply start ccminer to begin mining:
`ccminer -o stratum+tcp://monerohash.com:3333 -u YOUR_WALLET_ADDRESS -p x`

If everything went smoothly, you'll see output like this:
```
[2016-08-24 17:48:52] Using JSON-RPC 2.0
[2016-08-24 17:48:52] 1 miner threads started, using 'cryptonight' algorithm.
[2016-08-24 17:48:52] Starting Stratum on stratum+tcp://monerohash.com:3333
[2016-08-24 17:48:52] GPU #0: GeForce GTX 970 (13 SMX), using 40 blocks of 8 threads
[2016-08-24 17:48:52] Pool set diff to 5000
[2016-08-24 17:48:52] Stratum detected new block
[2016-08-24 17:48:57] GPU #0: GeForce GTX 970, 76.20 H/s
[2016-08-24 17:49:10] GPU #0: GeForce GTX 970, 350.35 H/s
[2016-08-24 17:49:10] accepted: 1/1 (100.00%), 350.35 H/s (yay!!!)
```

Happy mining!

*Thanks to Zach Shiner for his [UbuntuMiner script](https://gist.github.com/zcshiner/4b32980792d367222304#file-ubuntuminer).*
👍  , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authormobidick
permlinkhow-to-mine-monero-on-ubuntu-16-04-using-ccminer-cryptonight
categorymonero
json_metadata{"tags":["monero","cryptocurrencies","mining","hash","bitcoin"],"links":["https://getmonero.org/home"]}
created2016-08-24 23:36:09
last_update2016-08-24 23:44:15
depth0
children4
last_payout2016-09-24 23:36:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,395
author_reputation262,438,538
root_title"How to mine Monero on Ubuntu 16.04 using ccminer-cryptonight"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id974,735
net_rshares16,796,066,622
author_curate_reward""
vote details (24)
@gobe1kenobi ·
Great post but my quadro 2000 just doesnt want to play ball...
👍  
properties (23)
authorgobe1kenobi
permlinkre-mobidick-how-to-mine-monero-on-ubuntu-16-04-using-ccminer-cryptonight-20160920t221614280z
categorymonero
json_metadata{"tags":["monero"]}
created2016-09-20 22:16:15
last_update2016-09-20 22:16:15
depth1
children0
last_payout2016-09-24 23:36:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length62
author_reputation4,431,513
root_title"How to mine Monero on Ubuntu 16.04 using ccminer-cryptonight"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,311,237
net_rshares0
author_curate_reward""
vote details (1)
@krasi ·
Thanks for share... i will try this right way
Thanks
👍  
properties (23)
authorkrasi
permlinkre-mobidick-how-to-mine-monero-on-ubuntu-16-04-using-ccminer-cryptonight-20170704t050835229z
categorymonero
json_metadata{"tags":["monero"],"app":"steemit/0.1"}
created2017-07-04 05:08:36
last_update2017-07-04 05:08:36
depth1
children0
last_payout2017-07-11 05:08:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length52
author_reputation8,175,070,314
root_title"How to mine Monero on Ubuntu 16.04 using ccminer-cryptonight"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id7,232,436
net_rshares2,861,613,704
author_curate_reward""
vote details (1)
@sdfg ·
I am having trouble installing cuda 6.5
 
How did you get around this "No Hash entry in Release file /var/lib/apt/lists/partial/_var_cuda-repo-6-5-prod_Release which is considered strong enough for security purposes" when you do the sudo apt-get update
properties (22)
authorsdfg
permlinkre-mobidick-how-to-mine-monero-on-ubuntu-16-04-using-ccminer-cryptonight-20160909t104820683z
categorymonero
json_metadata{"tags":["monero"]}
created2016-09-09 10:48:21
last_update2016-09-09 10:48:21
depth1
children0
last_payout2016-09-24 23:36:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length252
author_reputation0
root_title"How to mine Monero on Ubuntu 16.04 using ccminer-cryptonight"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,182,853
net_rshares0
@steemitboard ·
Congratulations @mobidick! You received a personal award!

<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@mobidick/birthday3.png</td><td>Happy Birthday! - You are on the Steem blockchain for 3 years!</td></tr></table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@mobidick) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=mobidick)_</sub>


###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-mobidick-20190821t193944000z
categorymonero
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-08-21 19:39:45
last_update2019-08-21 19:39:45
depth1
children0
last_payout2019-08-28 19:39:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length620
author_reputation38,975,615,169,260
root_title"How to mine Monero on Ubuntu 16.04 using ccminer-cryptonight"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,796,800
net_rshares0