Here's a *THOROUGH* guide to set up cpuminer and mine darkcoin. Basically, I've done most of the thinking for you already; you mostly just have to copy and paste. This should work for Ubuntu, Xubuntu, Linux Mint, etc.
1- Check if your processor supports the new AES-NI instruction sets. You can do this one of two ways (Method A is easier if you know the model of your processor):
- Method A
-If your processor is listed on this page, it supports the AES-NI instruction set:
http://ark.intel.com/search/advanced/?AESTech=true- Method B
-Run this command in Terminal:
--If nothing shows up, your processor DOESN'T support the AES-NI instruction set.Code:grep aes /proc/cpuinfo
--If you DO see line(s) containing the word "aes", your processor DOES support the AES-NI instruction set.
2- If your processor supports the AES-NI instruction set, jump to post two of this thread. If it doesn't, just keep following this post.
For processors that DON'T support AES-NI
(I uploaded a script at the bottom of this post that will run steps 3-10 for you. To run it, run this command:
"cd ~/Downloads && chmod +x install-cpu*.sh && sh install-cpu*.sh")
(The regular one is for Ubuntu, but I've also uploaded one for Arch Linux.)
3- Update your computer and install dependencies. Open up Terminal with ctrl+alt+t. Then copy (ctrl+c) and paste (ctrl+SHIFT+v) this:
4- Download version 1.2c of cpuminer (this version is best for processors that DON'T support the AES-NI instruction set)Code:sudo apt-get update sudo apt-get upgrade -y sudo apt-get install -y git curl unzip gedit automake autoconf dh-autoreconf build-essential pkg-config openssh-server screen libtool libcurl4-openssl-dev libtool libncurses5-dev libudev-dev
5- Install cpuminer (compile, make, and install)Code:cd ~ git clone https://github.com/ig0tik3d/darkcoin-cpuminer-1.2c.git
6- Create a script with this step. This script will run cpuminer with your mining preferences. It's pretty handy.Code:cd ~/darkcoin-cpuminer-1.2c chmod +x autogen.sh ./autogen.sh ./configure CFLAGS="-O3" make sudo make install
7- An empty file should pop up. Copy and paste this in there:Code:cd ~ gedit darkcpu
8- Don't close the file yet. First replace the "#" signs with what you need. If you have no idea what to put for "#", keep reading. If you know what to put, then skip to step 8.Code:#!/bin/bash cd ~/darkcoin-cpuminer-1.2c ./minerd -a X11 -o # -u # -p #
- "-a" stands for "algorithm." You'll always want X11. Don't change this.
- "-o" stands for your pool's address and port. "stratum+tcp://address.com:####" Find that on your pool's website (usually under "Help" and then "Getting started"). If you don't have a pool yet, here's a list: https://www.darkcoin.io/mining.html This is what mine is:
Code:./minerd -a X11 -o stratum+tcp://mine1.coinmine.pl:16090- "-u" stands for your personal username that you use to login on your pool's website. BUT "-u" also includes a worker name that you have to create on your pool's website. The format looks like this: “-u username.worker”. On your pool's website, you can have ONE username but MANY different workers. Think of it this way. The "username" represents "you" and the "workers" are the "slaves" that work for you. Your username identifies you, and each worker represents each computer/processor that's mining for you. If you haven't created a worker on your pool's website, do that now.
So if the username on my pool is "GreenRaccoon23," and I created a worker on there named "chucknorris," it would look like this:
Code:./minerd -a X11 -o stratum+tcp://mine1.coinmine.pl:16090 -u GreenRaccoon23.chucknorris- "-p" stands for your password: your WORKER'S password, NOT your username's password. You set this up on your pool's website.
So if the password for my worker "chucknorris" is "knowsvictoriassecret," this is what it would look like:
Code:./minerd -a X11 -o stratum+tcp://mine1.coinmine.pl:16090 -u GreenRaccoon23.chucknorris -p knowsvictoriassecret- Here's the basic format for the whole line:
Here's an example format for the whole file:Code:./minerd -a X11 -o stratum+tcp://your.pool.address:port -u username.worker -p password
Code:#!/bin/bash cd ~/darkcoin-cpuminer-1.2c ./minerd -a X11 -o stratum+tcp://mine1.coinmine.pl:16090 -u GreenRaccoon23.chucknorris -p knowsvictoriassecret
9- Save the file and close it.
10- Make the script executable with this command:
Run cpuminerCode:chmod +x darkcpu
11- Running cpuminer is easy once you've made the "darkcpu" script explained above. Just change directory to your home folder and run the script:
12- Now you're making currency by doing nothing. When you want to stop it, press "ctrl+c". To run it again, repeat step 11. To change cpuminer's settings, go through steps 6-9 again.Code:cd ~ ./darkcpu
(If you want to install sgminer for GPU mining also, I have another guide: http://ubuntuforums.org/showthread.php?t=2243387)
Bookmarks