Ethereum Mining on Ubuntu 18.04 and Debian - LinuxConfig.org

Ethereum has established itself as one of the big players in the cryptocurrency world. It's value has been on a steady rise for well over a year, and it's one of the most widely traded coins in the world.
This is a companion discussion topic for the original entry at https://linuxconfig.org/ethereum-mining-on-ubuntu-18-04-and-debian

Hello I’m having a bit of a problem when I’m starting my miner. I have attached the screenshot of the result that it shows. I’m using Lubuntu version 18.04, Can you please help me with this I would really appreciate it Thank you.

Hi Cj_com,

Welcome to our forums.

From the printscreen provided I think the miner needs at least 3.7 GB of memory to operate, and detected only 1.94 GB in your device, so it can’t work properly.

Hello sir,

Thank you for the information.

Sincerely,

Cleverjean

Do you think this will work on an AWS EC2 instance, with 16 gb gpu and 16 gpu ?
Should I follow the same set up steps?
When calling the mining pool, should I put my ethereum address?

Thanks

Hi Rodolfo_garza,

Welcome to our forums.

For your AWS contract’s safety, I would suggest check AWS Terms Of Service first. Most cloud providers prohibit mining on their infrastructure. I do not know if that is the case about AWS, but you know, just to be on the safe side.

1 Like

Thanks sandmann, I didnt know that, I had som credits and i was thinking of running a test. So when you launch miner and pool , you need to pass an ether address of my wallet?

Yes, as in the article’s example, you need to pass your eth wallet’s address where you will receive your share of the pool. But that’s only an example, there are many pools out there, some may require registration, and give you a balance within your account, and may require you to pass an ID to the miner that links to your account, etc. That depends entirely in the pool.

I am getting segmentation Fault (core dumped) When I try to start the ./ethminer app. I am running ubuntu 20.10

Hi Macminer,

Welcome to our forums.

Which version of ethminer do you try to run?

Thank you for having these forums! I am learning a lot from them!
I am running - ethminer-0.18.0-cuda-8-linux-x86_64

Does the miner throw any error messages? Or any message at all before crashing?

no other messages were given. I think it may have been hardware related(video card). I am switching to a different mining platform!
Thanks so much for looking into this.

Hello Sandman,
Thank you for the guide, I followed the instructions but my ethminer gets a SIGSEV after a while.
It starts of well:

./ethminer -G -P stratum1+tcp: / / 0xc23myaddr@us1.ethermine.org:4444

ethminer 0.19.0-alpha.0
Build: linux/release/gnu

i 17:19:38 ethminer Configured pool :4444
i 17:19:38 ethminer Selected pool :4444
i 17:19:38 ethminer Stratum mode : Eth-Proxy compatible
i 17:19:38 ethminer Established connection to [172.65.218.238:4444]
i 17:19:38 ethminer Spinning up miners…
cl 17:19:38 cl-0 Using PciId : 01:00.0 GeForce RTX 2080 Ti (Compute 7.5) Memory : 10.76 GB
cl 17:19:38 cl-1 Using PciId : 02:00.0 GeForce RTX 2080 Ti (Compute 7.5) Memory : 10.76 GB
i 17:19:38 ethminer Epoch : 397 Difficulty : 4.00 Gh
i 17:19:38 ethminer Job: fc2ecc4a… block 11936358 [172.65.218.238:4444]
cl 17:19:40 cl-1 Generating DAG + Li

jobs are accepted:
ethminer Job: dc45fd15… block 11936364 [172.65.218.238:4444]
i 17:20:44 ethminer **Accepted1162 ms. [172.65.218.238:4444]
m 17:20:44 ethminer 0:01 A1 100.41 Mh - cl0 50.01, cl1 50.40
i 17:20:45 ethminer Job: f85a65e7… block 11936364 [172.65.218.238:4444]

but after a while it ends here:

ethminer Job: f5295ad9… block 11936375 172.65.218.238:4444]
i 17:23:38 ethminer Job: 3eb227b0… block 11936375 [172.65.218.238:4444]
i 17:23:42 ethminer Job: 603ef59b… block 11936375 [172.65.218.238:4444]
m 17:23:43 ethminer 0:04 A4 100.45 Mh - cl0 50.05, cl1 50.39
i 17:23:46 ethminer Job: 455e8058… block 11936375 [172.65.218.238:4444]
cl 17:24:15 cl-1 Job: 603ef59b… Sol: 0xf5518d144bc82905
cl 17:24:16 cl-1 Job: 603ef59b… Sol: 0xf5518d1450763add
cl 17:24:52 cl-1 Job: 603ef59b… Sol: 0xf5518d14be1bc07a
i 17:25:35 ethminer Job: 95357739… block 11936375 us1[172.65.218.238:4444]
cl 17:26:09 cl-0 Job: 95357739… Sol: 0xf5518d1350fef7a9
cl 17:26:36 cl-1 Job: 95357739… Sol: 0xf5518d143abf2fd0
X 17:26:36 ethminer No response received in 2 seconds.
m 17:26:36 ethminer 0:06 A4 100.07 Mh - cl0 49.67, cl1 50.39
i 17:26:36 ethminer Job: d04d049a… block 11936376 u [172.65.218.238:4444]
cl 17:26:41 cl-0 Job: d04d049a… Sol: 0xf5518d12fad8f7ee
cl 17:26:43 cl-0 Job: d04d049a… Sol: 0xf5518d13018028d4
cl 17:26:46 cl-1 Job: d04d049a… Sol: 0xf5518d13f9a973a5
i 17:26:46 ethminer Disconnected from[172.65.218.238:4444]
i 17:26:46 ethminer No connection. Suspend mining …
i 17:26:46 ethminer Solution 0xf5518d12fad8f7ee wasted. Waiting for connection…
i 17:26:46 ethminer Solution 0xf5518d13018028d4 wasted. Waiting for connection…
i 17:26:46 ethminer Solution 0xf5518d13f9a973a5 wasted. Waiting for connection…
SIGSEGV encountered …
stack trace:
backtrace() returned 13 addresses
./ethminer() [0x426929]
/lib/x86_64-linux-gnu/libc.so.6(+0x3f040) [0x7f88b5063040]
./ethminer() [0x496067]
./ethminer() [0x49b451]
./ethminer() [0x48d8ce]
./ethminer() [0x48f631]
./ethminer() [0x48f877]
./ethminer() [0x492935]
./ethminer() [0x492b8d]
./ethminer() [0x423ed2]
./ethminer() [0x7bdb20]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7f88b59d26db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f88b514571f]
^CSIGSEGV encountered …
stack trace:
backtrace() returned 16 addresses
malloc_consolidate(): invalid chunk size
Aborted (core dumped)

Please help
Best,
newminer

Hi Rooshi_singh,

Welcome to our forums.

Here you get no answer from the server:

And a bit later you disconnect from it:

After that your miner’s work goes to waste. I suspect it may be a network, or a server issue. Do you have a stable and fast Internet connection?

Potentially stupid question:

I have a headless Ubuntu server running 24/7 (fulfilling a number of server roles such as web, FTP, e-mail, vpn and fileserver) with a theoretical bandwith of 100/20Mbit/s (realistically 80/15Mbit/s) at its disposal.

Given that I install a sufficiently powerful GPU, would it be feasible to use it for mining crypto currency as well, with negligable performance impact on its present server roles, or would that require too much CPU time to perform any of the tasks with any degree of efficiency?

Hi Iznougoud,

Welcome to our forums.

If you plan to mine with GPU, the burden the miner puts on CPU should be small, but that also depends on your CPU power. Note however, that an Ethereum miner also eats up quite some memory (see posts above) to operate at all. But CPU-wise if you have one or two spare core even on peak loads, you could give mining a try. Just don’t forget to check if it worth it, regarding electricity costs.

Hi sandmann, and thanks for answering my question.

The server in question is sporting an old Phenom II (six core 1055T@2.8GHz) and 16GB RAM which is more than enough for its present duties (the CPU load is usually between 5% - 20% and total RAM used rarely exceeds 2GB). As for mining, I wouldn’t know, but hopefully it’ll suffice.

Another perhaps more pressing question would be the required minimum specs for a GPU for a “test run”, before going all in with a costly monster GPU…

Before buying anything I would advise you check an online mining calculator. You can specify the hardware (video card as well) you plan to use for mining, electricity costs, and the calculator can give you some hint on how viable your setup is with the given currency mining. This way you can get an estimate on your earnings if you would use a minimal GPU setup, or some high-end monster without spending a penny. I recall multiple such calculators exist around the web.

Looks like sound advice. I’ll have a look around. Thanks.