XoloMiner Linux Install Script

Posted on .

I’ve written an install script for Xolo’s PrimeCoin Pool Miner XoloMiner on my new favourite coin, PrimeCoin (XPM).

This makes the miner ready to use at beeeeer.org, or any other pool that supports XoloMiner.

This is still a work in progress, but the install script itself is complete. So far it has been created only for Debian Wheezy as this is the distro I have been using.

$ ./xolominer

Usage: ./xolominer {start|stop|restart|force-reload|status|install|uninstall}

This script will do the following:

  • Install pre-requisites
  • Compile from latest GitHub source
  • Add user/group
  • Init script
  • Log to /var/log/xolominer
  • Crontab entries for auto-restart and log rotate
  • Set to run at boot
  • Uses /etc/xolominer/xolominer.conf as list of pools to loop through (failover)
  • Command “status” for pool and chains per day rate (can be used in Nagios/Zabbix)
  • Command “uninstall” to remove all files except config at /etc/xolominer

I made this as I have access to a few Debian machines and wanted to be able to quickly and easily install the miner without having to perform it all manually. I also needed a reason to code some more bash 🙂

I actually have similar scripts for installing cpuminer, cgminer and bfgminer but this script has been tested the most and is worthy of public attention, enjoy 🙂

Updated 2014-05-12
Updated build method
Renamed to XoloMiner

Note: When updating, uninstall old version and copy /etc/primeminer/primeminer.conf to /etc/xolominer/xolominer.conf

  xolominer.sh (13.3 KiB, 1,440 hits)

Download (old version)
  primeminer.sh (12.3 KiB, 1,568 hits)

Happy mining!

How to use:
wget -q https://nooblet.org/blog/download/xolominer.sh;
chmod +x xolominer.sh;
sudo ./xolominer.sh install;

Installer output:
Uninstaller output:

6 thoughts on “XoloMiner Linux Install Script

  1. Myerss

    Tried it on BAMT but got this error when compiling.

    Building LevelDB …
    cc1plus: error: invalid option argument ‘-Ofast’
    make: *** [obj/alert.o] Error 1
    make: *** Waiting for unfinished jobs….
    make[1]: Entering directory /tmp/tmp.XKHCYr20RE/primeminer/src/leveldb'
    g++ -Ofast -march=native -fomit-frame-pointer -pthread -Wall -Wextra -Wformat -Wformat-security -W$
    g++ -Ofast -march=native -fomit-frame-pointer -pthread -Wall -Wextra -Wformat -Wformat-security -W$
    cc1plus: error: invalid option argument ‘-Ofast’
    cc1plus: error: invalid option argument ‘-Ofast’
    make[1]: *** [db/builder.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    cc1plus: error: invalid option argument ‘-Ofast’
    cc1plus: error: invalid option argument ‘-Ofast’
    make[1]: *** [db/c.o] Error 1
    make[1]: Leaving directory
    make: *** [leveldb/libleveldb.a] Error 2

    1. stalks Post author

      “-Ofast” is an option for current GCC (it was added 3+ years ago). No idea what compile tools are installed on BAMT not many I expect, as its not meant as a build-box.

      You could go through the script and remove “-Ofast” from the following line:

      export CXXFLAGS="-Ofast -march=native -fomit-frame-pointer -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter"


Leave a Reply

You may leave the Name and Email fields blank to post anonymously.