coinhive headless

Not using coinhive any more, jse is better¬

leaving this for reference

Save some resources by running the clickforafrica miner in headless mode.

Install chromium-browser then

chromium-browser --headless --disable-gpu --repl https://clickforafrica.org/mine-for-africa/

if errors re. gpu and

chromium-browser --headless --repl https://clickforafrica.org/mine-for-africa/

headless mode - REPL enabled, (Read-Evaluate-Print-Loop, to execute javascript in the DOM via command line).

at the prompt:

miner = new CoinHive.User('zs9qQRPi3kDck4QlvMl6GrGqj7LPESg3', "ClickForAfrica", { throttle: 0.8, autoThreads: true});

Then start the miner with:

miner.start()

And then check it is running with

miner.isRunning()

docs are here

for google chrome use google-chrome instead.

refs:

https://0x00sec.org/t/how-to-run-the-coinhive-miner-in-the-command-line-headless/3721

https://askubuntu.com/questions/234663/what-command-should-i-type-to-run-chrome-from-the-terminal

https://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line