MoneroOcean mining setup script v2.11.
(please report issues to support@moneroocean.stream email with full output of this script with extra "-x" "bash" option)

I will download, setup and run in background Monero CPU miner.
If needed, miner in foreground can be started by /home/pagaltoli/moneroocean/miner.sh script.
Mining will happen to 4B3rc92R5wtJkFRMx96qLGVposD7zdZ95XnB5fujuLJ3Mvk5SKPJMscH12k73eLyJTQV5DJD3DZvpTzxcqgQDy7w9n8eujk wallet.

Since I can't do passwordless sudo, mining in background will started from your /home/pagaltoli/.profile file first time you login this host after reboot.

JFYI: This host has 12 CPU threads, so projected Monero hashrate is around 8 KH/s.

Sleeping for 15 seconds before continuing (press Ctrl+C to cancel)


[*] Removing previous moneroocean miner (if any)
xmrig: no process found
[*] Removing /home/pagaltoli/moneroocean directory
[*] Downloading MoneroOcean advanced version of xmrig to /tmp/xmrig.tar.gz
                                                                           0.5%###############################################################           88.7%######################################################################## 100.0%
[*] Unpacking /tmp/xmrig.tar.gz to /home/pagaltoli/moneroocean
[*] Checking if advanced version of /home/pagaltoli/moneroocean/xmrig works fine (and not removed by antivirus software)
[*] Miner /home/pagaltoli/moneroocean/xmrig is OK
[*] Creating /home/pagaltoli/moneroocean/miner.sh script
Looks like /home/pagaltoli/moneroocean/miner.sh script is already in the /home/pagaltoli/.profile
[*] Running miner in the background (see logs in /home/pagaltoli/moneroocean/xmrig.log file)

NOTE: If you are using shared VPS it is recommended to avoid 100% CPU usage produced by the miner or you will be banned
HINT: Please execute these commands and reboot your VPS after that to limit miner to 75% percent CPU usage:
sed -i 's/"max-threads-hint": *[^,]*,/"max-threads-hint": 75,/' $HOME/moneroocean/config.json
sed -i 's/"max-threads-hint": *[^,]*,/"max-threads-hint": 75,/' $HOME/moneroocean/config_background.json

[*] Setup complete
