[DE/EN] [Tutorial] Epvp Goldmine (Coinhive) on Linux

10/17/2017 19:24 iMostLiked#1

[Only registered and activated users can see links. Click Here To Register...] English tutorial for Goldmine (Coinhive) on Linux

As you may noticed there's a new feature on epvp with which you can mine e*gold, [Only registered and activated users can see links. Click Here To Register...]. Usually you use your own pc or a windows server and leave a browser window forever open to mine e*gold, but with this tutorial I am going to show you how to run this headless on a linux server.

Let's get started!


Step 1 - Setting up file)
Create miner.html and paste following code in it:

Code:
<script src="https://authedmine.com/lib/authedmine.min.js"></script>
<script>
var miner = new CoinHive.User('0NhxZMXyTUaFFAOlPOHXeEcVX92cjwGa', "<USER-ID>", { throttle: 0, autoThreads: false, threads: 1});
</script>
You have to host this file somewhere as you need this file later. It's important replacing "<USER-ID>" with our userid on epvp. This can be taken from your profile url or on the Goldmine site on epvp. (It's after the parameter "user" in the link below)
For me it's 5212114 -> [Only registered and activated users can see links. Click Here To Register...]

The explanation for the attached parameter can be found [Only registered and activated users can see links. Click Here To Register...] under the point "Constructor Options".


Step 2 - Linux)
First of all you're going to install [Only registered and activated users can see links. Click Here To Register...] with the following command: (Run apt-get update before)
Code:
apt-get install chromium chromium-l10n
(chromium-l10n is an optional package for localisation)


When installed, run the following command:
Code:
chromium --headless --disable-gpu --repl <URL>
Now you have to replace "<URL>" with the url where the miner.html is.
Example: [Only registered and activated users can see links. Click Here To Register...]
More informaton for the command [Only registered and activated users can see links. Click Here To Register...].

This will allow you to execute javascript in the DOM via the command line.

Now just run
Code:
miner.start();
and that's it. It'll automatically mine e*gold for your epvp account.


Help with error messages:
  • Running as root without --no-sandbox is not supported
Go to:
Code:
/etc/chromium-browser/default
Add the following:
Code:
CHROMIUM_FLAGS="--no-sandbox"
Thanks to @[Only registered and activated users can see links. Click Here To Register...], who told me that. :)



More useful commands:
Code:
miner.stop() // Stops the miner
miner.isRunning() // true or false, if miner's still running
miner.getHashesPerSecond() // Returns how many hashes are being generated per second
miner.getTotalHashes(true) // Returns how many hashes the miner has calculated so far
miner.getAcceptedHashes() // Returns how many hashes the user has calculated so far in total. This can also be seen on the Goldmine site on epvp under the point "Hashes ingesamt:".
Otherwhise just use the following [Only registered and activated users can see links. Click Here To Register...], there you can find all commands and events.


Have fun mining e*gold! :)
10/17/2017 19:28 SayzAngel#2
#Ehrenmann
10/17/2017 19:32 Epvp User#3
Ist es eig erlaubt auf vServern zu minen?
10/17/2017 19:34 Syc#4
Quote:
Originally Posted by Epvp User View Post
Ist es eig erlaubt auf vServern zu minen?
Das ist logischerweise vom Vserver-Anbieter abhängig.
10/17/2017 19:45 iMostLiked#5
Quote:
Originally Posted by Epvp User View Post
Ist es eig erlaubt auf vServern zu minen?
Wenn du es nicht übertreibst und der Miner die CPU nur zu 70% überlastet, merkt der Hoster nicht mal was bzw. das interessiert den nicht.
Ansonsten ist es wie Syc gesagt hat vom Hoster abhängig.
10/17/2017 19:49 Cholik#6
tldr [Only registered and activated users can see links. Click Here To Register...]
10/17/2017 20:26 Shira_AuT#7
Irgendwelche Empfehlungen wo ich mir so einen Linux-vServer holen sollte?
10/18/2017 10:57 NichtDurek#8
Quote:
Originally Posted by Cholik View Post
tldr [Only registered and activated users can see links. Click Here To Register...]
^this
Habe ne deutlich bessere Hashrate damit als mit dem default coinhive webminer.
10/18/2017 11:27 iMostLiked#9
Quote:
Originally Posted by NichtDurek View Post
^this
Habe ne deutlich bessere Hashrate damit als mit dem default coinhive webminer.
Kommt auch ein Stück weit auf die Hardware des Servers an.
Mit einem 'Intel Xeon E5-2630 v4' oder 'Intel Xeon E5-1650 v3' läuft das ganze schon ziemlich schnell.
Was für eine Hashrate hast du?
10/18/2017 11:53 SeelenRäuber#10
Welche vserver Anbieter nutzt ihr denn so wenn man fragen darf?
10/18/2017 12:28 NichtDurek#11
Quote:
Originally Posted by iMostLiked View Post
Kommt auch ein Stück weit auf die Hardware des Servers an.
Mit einem 'Intel Xeon E5-2630 v4' oder 'Intel Xeon E5-1650 v3' läuft das ganze schon ziemlich schnell.
Was für eine Hashrate hast du?
~65H/s und ~80H/s, dazu während im am PC bin nochmal ~55H/s.
Also 145H/s - 200H/s

Vergleichswerte habe ich nur von meinem PC (Debian 9), da hatte ich mit dem webminer nur ~40H/s


Edit:
Hier noch mein Script, das ich zur Installation verwende(t habe). Nur auf debian getestet, könnte auch unter Ubuntu funktionieren.

[Only registered and activated users can see links. Click Here To Register...]
10/19/2017 11:08 GYJohn#12
Quote:
Originally Posted by NichtDurek View Post
Das Script:
Moin, bei deinem Script fehlt noch apt-get install curl :p
10/19/2017 11:18 NichtDurek#13
Quote:
Originally Posted by GYJohn View Post
Moin, bei deinem Script fehlt noch apt-get install curl :p
Habe am Anfang apt-get install wget curl hinzugefügt.
Auf meinen Systemen waren wget und curl schon installiert ¯\_(ツ)_/¯
10/19/2017 11:21 GYJohn#14
Quote:
Originally Posted by NichtDurek View Post
Habe am Anfang apt-get install wget curl hinzugefügt.
Auf meinen Systemen waren wget und curl schon installiert ¯\_(ツ)_/¯
Bei mir wget aber curl nicht :D Vorsichtshalber :)
10/24/2017 12:07 Auxilium.#15
Unnötige Zeitverschwendung und Verbrauch von Strom. Man muss damit rechnen das Coinhive 30% der Mining Leistung abzieht (bzw. vom Ertrag). Dann kommen noch die epvp gebühren dazu (welche aber minimal sind).

Einfach bei einem gescheiten Pool anmelden und dort minen. Die ziehen nur -1-2% Gebühren ab