English tutorial for Goldmine (Coinhive) on LinuxAs you may noticed there's a new feature on epvp with which you can mine e*gold,
. 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>
For me it's 5212114 ->

The explanation for the attached parameter can be found
under the point "Constructor Options".Step 2 - Linux)
First of all you're going to install
with the following command: (Run apt-get update before)Code:
apt-get install chromium chromium-l10n
When installed, run the following command:
Code:
chromium --headless --disable-gpu --repl <URL>
Example:

More informaton for the command
.This will allow you to execute javascript in the DOM via the command line.
Now just run
Code:
miner.start();
Help with error messages:
- Running as root without --no-sandbox is not supported
Code:
/etc/chromium-browser/default
Code:
CHROMIUM_FLAGS="--no-sandbox"
, 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:".
, there you can find all commands and events.Have fun mining e*gold!






