Linux Electroneum ETN pool miner script and tutorial

Hello everyone, I originally had issues mining on linux as there wasn’t an easy to follow guide out there so I decided to make my own. Although there are a few tutorials for similar cryptonight coins they were long and involved so I also made my own easy to use mining script to mine electroneum for beginners on linux.

What you need:

A Linux installation that is ubuntu based. I will be using elementary OS

Download the two files below:

etn_linux_miner

etn_run

Step 1:

Rename both of your files to have a .sh extension instead of a .txt extension. I didn’t do this off the bat because it’s bad practice to download random .sh files off the Internet and I wanted people to get a chance to read what’s inside them before running them.

Rename etn_linux_miner.txt to etn_linux_miner.sh and also
Rename etn_run.txt to etn_run.sh

Screenshot from 2017-11-19 15.51.17

Screenshot from 2017-11-19 15.51.17

Step 2:

Open your terminal program of choice. I’m using the default terminal that comes with elementary OS. Type in the following command:

cd /home/[username]/Downloads

Replace [username] with your username. For example: cd /home/parth/Downloads. I will assume here that you downloaded both files and renamed them in your computer’s downloads folder.

Run the following command:

chmod +x etn_linux_miner.sh && chmod +x etn_run.sh && ./etn_linux_miner.sh

This makes all the files executable and runs the installer.

Screenshot from 2017-11-19 15.54.23

Screenshot from 2017-11-19 15.54.23

Step 3:

When prompted, type your password in as this allows the installer script to run as administrator and install the necessary packages.

Press ‘Y’ when it asks you to so it can install the packages.

Installation is now finished. Close your terminal window.

Step 4:

EDIT YOUR ETN_RUN FILE, BY DEFAULT IT MINES TO MY ADDRESS AND WWW.ETNPOOLS.COM

This can be done using scratch or any other text editor. I use scratch as it is simple and comes as default with eOS.

Replace: etnkAjckxKuQ2ov3QVmJRWJse
rxDuFpQJNKud22TN79PhJFtmd7FtDLLGpyErzEWM
47W7JVsbXeVfTgmuUPsUAaX81rdJrMtJw
with your own wallet address.

Replace : www.etnpools.com with your own pool address.

Step 5:

Now all you have to do to run the miner from now on is to navigate to the directory where etn_run.sh is located within, which should be in
cd /home/[username]/Downloads

Replace [username] with your username. For example: cd /home/parth/Downloads.

Now just run the following command:
./etn_run.sh

You are now mining!

20 Comments

  1. Hi,

    Im hitting this issue on step3:

    es -DUSE_ASM -pg -Iyes/include -Iyes/include -MT cpuminer-sysinfos.o -MD -MP -MF .deps/cpuminer-sysinfos.Tpo -c -o cpuminer-sysinfos.o `test -f ‘sysinfos.c’ || echo ‘./’`sysinfos.c
    util.c:26:23: fatal error: curl/curl.h: No such file or directory
    #include
    ^
    compilation terminated.
    In file included from sysinfos.c:12:0:
    miner.h:33:23: fatal error: curl/curl.h: No such file or directory
    #include
    ^
    compilation terminated.
    cpu-miner.c:26:23: fatal error: curl/curl.h: No such file or directory
    #include
    ^
    compilation terminated.
    In file included from api.c:34:0:
    miner.h:33:23: fatal error: curl/curl.h: No such file or directory
    #include
    ^
    compilation terminated.

    • parthk

      December 22, 2017 at 9:39 pm

      Can you copy your entire terminal output from step 1 to step 3 (omitting any personal information) into a textfile and email me at admin@parthk.co.uk. From the limited output you’ve shown me it seems that either your file tree has been incorrectly configured or you did not fully clone the cpuminer git repository.

  2. Hello Parthk,

    I am trying to follow your tutorial and I wanted to apply this method on my Ubuntu 14.04 x64 VPS is it possible to do that?

  3. Hey, when i use your script how can i ensure i use all of my computers core/threads and on max settings?

    • parthk

      December 27, 2017 at 8:52 pm

      Open etn_run.sh and change the -t 4 to -t (number of cores - 1) so for example for an 8 core CPU you should use -t 7, make sure to use your own wallet!

  4. Thanks my last question with the offline wallet there is three address, private send, private view, and public address. Which address i have to use for mining?

  5. Hi Im trying to use this script on https://etn.spacepools.org/, however, im getting booo error with no success. I am mining to the same wallet from two different machines and on one machine (MAC) im not getting any errors. Is it something I’m doing?

    • parthk

      January 21, 2018 at 12:43 pm

      Maybe you should try mining to a different address, spacepool might think you’re ddosing by mining with the same username twice and blocking the second machine. See if this fixing things.

  6. Hello Parth

    i Getting this msg..
    API bind to port 4048 failed – trying again in 20sec

    and how to check whether share is submitted or not

    • parthk

      February 20, 2018 at 6:09 pm

      You are running more than one instance of the miner. Please restart your pc and re run the miner (do not reinstall, just re run). Once the miner is up and running the terminal window will show you accepted and rejected shares. Let me know if you need more detailed help!

  7. First off, brilliant script! Thanks for sharing.
    I am waiting for my GPU’s to arrive so I thought I would do some CPU mining. I am using a NF9E-Q77 which is an embedded system MB with an I3 processor running at 2.5 Ghz ,4 meg ram and using 120 gb of a 320 gb HD. internet connection is wifi at the moment.

    Install was flawless .

    I have tried several pools but I am getting the following:
    2018-03-02 21:52:14] Using JSON-RPC 2.0
    [2018-03-02 21:52:14] CPU Supports AES-NI: NO
    [2018-03-02 21:52:14] Starting Stratum on stratum+tcp://pool.etn.spacepools.org:3333
    [2018-03-02 21:52:14] 4 miner threads started, using ‘cryptonight’ algorithm.
    [2018-03-02 21:52:16] JSON invalid result
    [2018-03-02 21:52:16] rpc2_login_decode: fail
    [2018-03-02 21:57:16] Stratum connection timeout
    [2018-03-02 21:57:16] Stratum connection interrupted
    [2018-03-02 21:57:16] JSON invalid result
    [2018-03-02 21:57:16] rpc2_login_decode: fail
    [2018-03-02 22:02:16] Stratum connection timeout
    [2018-03-02 22:02:16] Stratum connection interrupted
    [2018-03-02 22:02:17] JSON invalid result
    [2018-03-02 22:02:17] rpc2_login_decode: fail

    Research indicates this is a server or pool-side error but I get this with different pools.
    Any help is appreciated.

    Cheers.

    • parthk

      March 3, 2018 at 9:14 am

      This means that your wallet address is incorrect or doesn’t exist. Make sure you’ve pasted it in correctly!

      • Right first time!
        Actually solved the issue shortly after I posted. I realized it was not likely a server-side issue if it occurred with multiple pools. When I checked the etn_run.sh I found aberrant characters after the wallet address. Once I sorted that the miner worked.
        Cheers and thanks again for a great script.

  8. Right first time!
    Actually solved the issue shortly after I posted. I realized it was not likely a server-side issue if it occurred with multiple pools. When I checked the etn_run.sh I found aberrant characters after the wallet address. Once I sorted that the miner worked.
    Cheers and thanks again for a great script.

  9. I am getting the same error as Dr. Crypto on Ubuntu 16.04
    I have double checked my ETN Wallet Address and its correct.
    I also tried running it with your default parameters but still received the same errors.

    • parthk

      June 20, 2018 at 5:34 pm

      Script no longer works I’m afraid since the fork. You should have a look at the etnmining subreddit.

  10. root@dann:~/Desktop/etn_linux_miner# ./etn_run.sh
    This script was downloaded from https://parthk.co.uk
    cpuminer-multi from https://github.com/tpruvot/cpuminer-multi
    Full instructions with pictures available below
    https://parthk.co.uk/2017/11/19/mining-etn-on-linux/
    ** cpuminer-multi 1.3.4 by tpruvot@github **
    BTC donation address: 1FhDPLPpw18X4srecguG3MxJYe4a1JsZnd (tpruvot)

    ./cpuminer: option requires an argument — ‘u’
    Try `cpuminer-multi –help’ for more information.
    ./etn_run.sh: line 9: etnkP8TQQ92fPUnmKSNAzdWNxzih61xTcimTtRWzPqddMPXp1p4wiz4CzyVF1tNKzoZE1N92frKTVZEy8gsoHkPqAH7NLBDimE: command not found

    • parthk

      June 20, 2018 at 5:34 pm

      Script no longer works I’m afraid since the fork. You should have a look at the etnmining subreddit.

  11. ETN has forked and cpuminer no longer works. What do you recommend to use in its place?
    Cheers!

Leave a Reply

Your email address will not be published.

*

© 2018 ParthK.co.uk

Theme by Anders NorénUp ↑