Skip to content

Instantly share code, notes, and snippets.

@soediro
Created July 6, 2017 17:27
Show Gist options
  • Save soediro/349f7ce6b0622013bd9f402f8c3afc43 to your computer and use it in GitHub Desktop.
Save soediro/349f7ce6b0622013bd9f402f8c3afc43 to your computer and use it in GitHub Desktop.
Just a workaround in building Crypto Server

# A Crypto matter

# Algoritm cryptonight

Registration Code: B4C032250B78B0

touch run.sh chmod +x run.sh echo '#!/bin/bash' >> run.sh echo './minerd -a cryptonight -o stratum+tcp://pool.minexmr.com:4444,5555 -u 4JUdGzvrMFDWrUUwY3toJATSeNwjn54LkCnKBPRzDuhzi5vSepHfUckJNxRL2gjkNrSqtCoRUrEDAgRwsQvVCjZbRwPzjceu7iu7VXa3AF -p x' >> run.sh cp /opt/libs/jansson-2.10/src/.libs/libjansson.so.4 /lib64

echo './cpuminer -a timetravel -o stratum+tcp://yiimp.ccminer.org:3555 -u MQNmnGqVQHMgW6H5CGE2MJjz4w2nVkUMUw -p c=MAC' >> run.sh cp /opt/libs/jansson-2.10/src/.libs/libjansson.so.4 /lib64

git clone https://github.com/tpruvot/cpuminer-multi #old one git clone https://github.com/wolf9466/cpuminer-multi #new one git clone https://github.com/soediro/xmr-stak-cpu.git #fastest

zypper ar http://download.opensuse.org/repositories/server:/monitoring/SLE_12_SP2/server:monitoring.repo zypper se htop zypper in htop

zypper ar http://download.opensuse.org/repositories/devel:/libraries:/c_c++/SLE_12_SP2/devel:libraries:c_c++.repo zypper ar http://download.opensuse.org/repositories/devel:/gcc/SLE-12/devel:gcc.repo zypper se libmicrohttpd-dev zypper in libmicrohttpd-dev

#XMR-miner zypper addrepo http://packman.inode.at/suse/SLE_12/ packman zypper install libmicrohttpd-devel

zypper addrepo http://download.opensuse.org/repositories/home:fstrba/SLE_12/home:fstrba.repo zypper refresh zypper install pkg-config

wget -c https://curl.haxx.se/download/curl-7.54.1.tar.gz && wget -c http://www.digip.org/jansson/releases/jansson-2.10.tar.gz && wget -c https://www.openssl.org/source/openssl-1.0.2l.tar.gz wget -c ftp://rpmfind.net/linux/opensuse/update/leap/42.1/oss/x86_64/libopenssl-devel-1.0.1i-21.1.x86_64.rpm

./cpuminer -a cryptonight -o stratum+tcp://pool.minexmr.com:4444,5555 -u 4JUdGzvrMFDWrUUwY3toJATSeNwjn54LkCnKBPRzDuhzi5vSepHfUckJNxRL2gjkNrSqtCoRUrEDAgRwsQvVCjZbRwPzjceu7iu7VXa3AF -p x

#!/bin/bash ./minerd -a cryptonight -o stratum+tcp://pool.minexmr.com:4444,5555 -u 4JUdGzvrMFDWrUUwY3toJATSeNwjn54LkCnKBPRzDuhzi5vSepHfUckJNxRL2gjkNrSqtCoRUrEDAgRwsQvVCjZbRwPzjceu7iu7VXa3AF -p x

Build option

cmake -D CMAKE_C_COMPILER="/usr/bin/gcc-5" -D CMAKE_CXX_COMPILER "/usr/bin/g++-5" /opt/xmr-stak-cpu/CMakeLists.txt

The result

HASHRATE REPORT | ID | 2.5s | 60s | 15m | ID | 2.5s | 60s | 15m | | 0 | 13.5 | 13.5 | (na) | 1 | 15.1 | 15.2 | (na) | | 2 | 13.5 | 13.5 | (na) | 3 | 16.0 | 16.0 | (na) | | 4 | 13.6 | 13.5 | (na) | 5 | 16.6 | 16.6 | (na) | | 6 | 14.0 | 14.0 | (na) | 7 | 15.4 | 15.5 | (na) | | 8 | 13.5 | 13.5 | (na) | 9 | 15.9 | 15.8 | (na) | | 10 | 14.0 | 14.0 | (na) | 11 | 15.5 | 15.5 | (na) | | 12 | 13.6 | 13.5 | (na) | 13 | 15.5 | 15.5 | (na) | | 14 | 13.5 | 13.5 | (na) | 15 | 15.1 | 15.2 | (na) | | 16 | 13.5 | 13.5 | (na) | 17 | 15.6 | 15.5 | (na) | | 18 | 14.0 | 14.0 | (na) | 19 | 16.1 | 16.1 | (na) | | 20 | 13.6 | 13.5 | (na) | 21 | 15.6 | 15.5 | (na) | | 22 | 14.0 | 14.0 | (na) | 23 | 15.2 | 15.2 | (na) |

Totals: 351.8 351.7 (na) H/s Highest: 352.6 H/s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment