본 글은 ccminer를 이용하여 ubuntu(linux)에서 mining하는 방법에 관한 글입니다.
Miner 다운 받기
Intel/ATI/AMD CGMiner (Linux)
NVIDIA CCminer
CPU Miner Linux/Windows
혹은 git이 설치되어 있는 환경이라면 바로 프로젝트를 clone 하셔도 됩니다.
git clone -b linux https://github.com/tpruvot/ccminer.git
Miner 빌드하기
nVidia 그래픽카드 사용 시 CUDA 가 설치되어 있어야 합니다.
Ubuntu에 CUDA 설치 관련해서는 아래 글을 참고하세요.
CUDA PATH 설정
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} root@server:source ~/.bashrc
설치 확인 시
root@server:~/ccminer# which nvcc /usr/local/cuda-8.0/bin/nvcc
Auto-configure error
root@server:~/ccminer# ./build.sh make: *** No rule to make target 'distclean'. Stop. clean ./autogen.sh: line 1: aclocal: command not found done ./configure.sh: line 5: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop.
위와 같이 애러날 경우
sudo apt-get install autotools-dev sudo apt-get install autoconf
OpenSSL Library Error
root@server:~/ccminer# ./configure.sh checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu (중략) checking for gzopen in -lz... no checking for SSL_library_init in -lssl... no configure: error: OpenSSL library required
위와 같이 애러 시
apt-get install libssl-dev
Libcurl4 OpenSSL Error
checking for gzopen in -lz... yes checking for SSL_library_init in -lssl... yes checking for EVP_DigestFinal_ex in -lcrypto... yes ./configure: line 6177: syntax error near unexpected token `,' ./configure: line 6177: `LIBCURL_CHECK_CONFIG(, 7.15.2, ,' make: *** No targets specified and no makefile found. Stop.
에러 시
apt-get install libcurl4-openssl-dev
Miner 설정하기
skein algorithm을 사용하는 경우
CGMiner for ATI/AMD
cgminer --skein -o stratum+tcp://url.com:1234 -u UserName.WorkerName -p WorkerPassword
CCMiner For NVIDIA Cards
ccminer --algo=skein -o stratum+tcp://url.com:1234 -u UserName.WorkerName -p WorkerPassword
CPU Miner
cpuminer-multi-x64 -a skein -o stratum+tcp://url.com:1234 -u UserName.WorkerName -p WorkerPassword
e.g.)
./ccminer -a myr-gr -o stratum+tcp://hub.miningpoolhub.com:20499 -u user.worker -p x
./ccminer -a skein -o stratum+tcp://hub.miningpoolhub.com:20527 -u user.worker -p x
./ccminer -a myr-gr -o stratum+tcp://dgbg.suprnova.cc:7978 -u user.worker -p x
./ccminer -a myr-gr -o stratum+tcp://hub.miningpoolhub.com:20499 -u user.worker -p sd=0.5
./ccminer-x64 -r 2 -a skein -o stratum+tcp://hub.miningpoolhub.com:20527 -u user.worker -p x