Cài cpuminer cho linux
Tổng hợp lệnh đào Monero XMR trên Linux - UbuntuSau khi mình chia sẽ bài viết hướng dẫn đào monero ở đây và bên diễn đàn mmo4me (https://mmo4me.com/threads/huong-dan-dao-monero-cho-nguoi-co-nhieu-vps-free.323842/) thì có rất nhiều lão làng quay lại theo trào lưu đào coin và những bạn mới bước vào nghề đào coin này, một số bạn đã tìm được bug vcc để reg vps đào coin free và kiếm vài k$/ngay...
Giải thích các lệnh Linux cơ bản để đào coin#!/bin/bash // giúp linux nhận ra đây là một đoạn bash script
Các bạn có thể copy nguyên lệnh trên 123456789101112131415#!/bin/bash
sudo apt-get update
sudo apt-get install -y automake build-essential autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev
sudo sysctl -w vm.nr_hugepages=$((`grep -c ^processor /proc/cpuinfo` * 3))
git clone https://github.com/tpruvot/cpuminer-multi && cd cpuminer-multi && ./autogen.sh
if [ ! "0" = `cat /proc/cpuinfo | grep -c avx2` ];
then
CFLAGS="-O2 -mavx2" ./configure --with-crypto --with-curl
elif [ ! "0" = `cat /proc/cpuinfo | grep -c avx` ];
then
CFLAGS="-O2 -mavx" ./configure --with-crypto --with-curl
else
CFLAGS="-march=native" ./configure --with-crypto --with-curl
fi
make clean && make && ./cpuminer -a cryptonight -o stratum+tcp://fcn-xmr.pool.minergate.com:45590 -u -p x --thread=7 Các lệnh bổ sung nếu cầnget -y upgrade && apt-get -y autoremove Các đoạn code bash script đào coin phổ biếnDebian-cli với tool đào
Minergate-cli, lệnh này phổ biến, đơn giản nhất #!/bin/bash Code chạy cpuminer-multi của tpruvot - pool Minergate - đào XMR 1234567891011121314sudo apt-get update
sudo apt-get install -y automake build-essential autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev
sudo sysctl -w vm.nr_hugepages=$((`grep -c ^processor /proc/cpuinfo` * 3))
git clone https://github.com/tpruvot/cpuminer-multi && cd cpuminer-multi && ./autogen.sh
if [ ! "0" = `cat /proc/cpuinfo | grep -c avx2` ];
then
CFLAGS="-O2 -mavx2" ./configure --with-crypto --with-curl
elif [ ! "0" = `cat /proc/cpuinfo | grep -c avx` ];
then
CFLAGS="-O2 -mavx" ./configure --with-crypto --with-curl
else
CFLAGS="-march=native" ./configure --with-crypto --with-curl
fi
make clean && make && ./cpuminer -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u mail_của_bạn -p x --thread=số_core_để_đào Các bạn có thể theo dõi tại: https://mmo4me.com/threads/tong-hop-lenh-dao-xmr-xzc-tren-linux.332923/https://mmo4me.com/threads/tong-hop-lenh-dao-xmr-xzc-tren-linux.332923/ |