Difference between revisions of "How to mine Electroneum"

From CoinWiki
Jump to: navigation, search
Line 25: Line 25:
 
=== Set up miner ==
 
=== Set up miner ==
 
* Install the following prerequisites
 
* Install the following prerequisites
sudo apt-get install git  
+
<code>sudo apt-get install git</code>
  
sudo apt-get install aptitude
+
<code>sudo apt-get install aptitude</code>
 
   
 
   
sudo aptitude update
+
<code>sudo aptitude update</code>
 
   
 
   
sudo aptitude install –with-recommends build-essential autotools-dev autoconf automake libcurl3 libcurl4-gnutls-dev git make cmake libssl-dev pkg-config libevent-dev libunbound-dev libminiupnpc-dev doxygen supervisor jq libboost-all-dev htop
+
<code>sudo aptitude install –with-recommends build-essential autotools-dev autoconf automake libcurl3 libcurl4-gnutls-dev git make cmake libssl-dev pkg-config libevent-dev libunbound-dev libminiupnpc-dev doxygen supervisor jq libboost-all-dev htop</code>
  
 
* Make sure you are using gcc v5
 
* Make sure you are using gcc v5
sudo apt-get update
+
<code>sudo apt-get update</code>
  
sudo apt-get install gcc-5 g++-5
+
<code>sudo apt-get install gcc-5 g++-5</code>
  
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
+
<code>sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5</code>
  
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
+
<code>sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1</code>
  
 
* Clone repository
 
* Clone repository
git clone https://github.com/toninoxp/CPUMiner-Multi.git
+
<code>git clone https://github.com/toninoxp/CPUMiner-Multi.git</code>
  
 
* Set up mining client
 
* Set up mining client
cd CpuMiner-Multi
+
<code>cd CpuMiner-Multi</code>
  
unzip cpuminer-multi.zip
+
<code>unzip cpuminer-multi.zip</code>
 
   
 
   
cd cpuminer-multi
+
<code>cd cpuminer-multi</code>
 
   
 
   
./autogen.sh
+
<code>./autogen.sh</code>
 
   
 
   
./configure
+
<code>./configure</code>
 
   
 
   
make
+
<code>make</code>
  
 
* Run custom mining script
 
* Run custom mining script
 
Example:  
 
Example:  
./minerd -a cryptonight -o stratum+tcp://pool.etn.spacepools.3333 -u etnkKC7Ed1T62u1ZcADw7ZCpDAmudSe2CbW1NaYwUahzSwFty3WCTMYeVU4v1ADhZ1P9Wf1D2VRE6MnZGcvh5RXp5NEreL3rjk -p x &
+
<code>./minerd -a cryptonight -o stratum+tcp://pool.etn.spacepools.3333 -u etnkKC7Ed1T62u1ZcADw7ZCpDAmudSe2CbW1NaYwUahzSwFty3WCTMYeVU4v1ADhZ1P9Wf1D2VRE6MnZGcvh5RXp5NEreL3rjk -p x &</code>
  
 
Generic:  
 
Generic:  
./minerd -a cryptonight -o stratum+tcp://<pool_address>:<port> -u <wallet_address> -p x &
+
<code>./minerd -a cryptonight -o stratum+tcp://<pool_address>:<port> -u <wallet_address> -p x &</code>
  
 
You should see something like this with each event:
 
You should see something like this with each event:
[2018-04-11 15:30:15] accepted: 1/1 (100.00%), 750.63 H/s at diff 35000.1 (yay!!!)
+
<code>[2018-04-11 15:30:15] accepted: 1/1 (100.00%), 750.63 H/s at diff 35000.1 (yay!!!)</code>
  
 
To end mining type "control c".
 
To end mining type "control c".
  
 
To see your pool stats, look up your wallet address in the mining pool's website and you should see something like this:
 
To see your pool stats, look up your wallet address in the mining pool's website and you should see something like this:
[[File:Pool_stats.png|thump|center|750px]]
+
[[File:Pool_stats.png|thump|left|750px]]

Revision as of 19:18, 11 April 2018

Direct Mining

  • Go to Electroneum's download page and scroll down to where it says "Direct Mining Software" then choose your operating system and click download. I will be using the Mac miner for this tutorial.
  • Unzip the file and click on "electroneumd" to start syncing with the blockchain. It can take up to 24 hours to do so.
  • Next create a wallet address. To do so click "electroneum-wallet-cli" and follow the steps to create a wallet.
  • To start mining in "electoneumd" type "start_mining <wallet_address> <number_of_threads>".
  • Congratulations, you are now mining Electroneum! To stop the miner type "stop_mining" and you can type "help" for more options.

Pool Mining

The best way to mine for Electroneum is to do so with a mining pool. There are many choices with varying pool fees, donation fees and locations. To help reduce latency, choose a pool that's in a location near you. For this tutorial I will

Choose an Electroneum mining pool

Create a wallet

= Set up miner

  • Install the following prerequisites

sudo apt-get install git

sudo apt-get install aptitude

sudo aptitude update

sudo aptitude install –with-recommends build-essential autotools-dev autoconf automake libcurl3 libcurl4-gnutls-dev git make cmake libssl-dev pkg-config libevent-dev libunbound-dev libminiupnpc-dev doxygen supervisor jq libboost-all-dev htop

  • Make sure you are using gcc v5

sudo apt-get update

sudo apt-get install gcc-5 g++-5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1

  • Clone repository

git clone https://github.com/toninoxp/CPUMiner-Multi.git

  • Set up mining client

cd CpuMiner-Multi

unzip cpuminer-multi.zip

cd cpuminer-multi

./autogen.sh

./configure

make

  • Run custom mining script

Example: ./minerd -a cryptonight -o stratum+tcp://pool.etn.spacepools.3333 -u etnkKC7Ed1T62u1ZcADw7ZCpDAmudSe2CbW1NaYwUahzSwFty3WCTMYeVU4v1ADhZ1P9Wf1D2VRE6MnZGcvh5RXp5NEreL3rjk -p x &

Generic: ./minerd -a cryptonight -o stratum+tcp://<pool_address>:<port> -u <wallet_address> -p x &

You should see something like this with each event: [2018-04-11 15:30:15] accepted: 1/1 (100.00%), 750.63 H/s at diff 35000.1 (yay!!!)

To end mining type "control c".

To see your pool stats, look up your wallet address in the mining pool's website and you should see something like this:

thump