Difference between revisions of "Bitcoin Miner: cpuminer"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm | + | sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm make git |
Line 9: | Line 9: | ||
# compile | # compile | ||
− | cd cpuminer | + | cd /usr/local/src/cpuminer |
./autogen.sh | ./autogen.sh | ||
− | ./configure CFLAGS="-O3" | + | # ./configure CFLAGS="-O3" |
+ | ./configure CFLAGS="-O3 -Wall -msse2" | ||
make | make | ||
Line 18: | Line 19: | ||
# start the miner | # start the miner | ||
− | ./minerd -- | + | cd /usr/local/src/cpuminer/ |
− | ./minerd -- | + | ./minerd -q -a sha256d -o stratum+tcp://sg.stratum.slushpool.com:3333 -O username.work:password |
+ | ./minerd -q -a sha256d -o stratum+tcp://sg.stratum.slushpool.com:3333 -O username.work:password -t 1 | ||
+ | |||
+ | Masukan ke /etc/rc.local | ||
+ | |||
+ | /usr/local/src/cpuminer/minerd -q -a sha256d -o stratum+tcp://sg.stratum.slushpool.com:3333 -O username.work:password -t 1 |
Latest revision as of 18:37, 6 September 2017
sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm make git
# clone cpuminer cd /usr/local/src git clone https://github.com/pooler/cpuminer.git
# compile cd /usr/local/src/cpuminer ./autogen.sh # ./configure CFLAGS="-O3" ./configure CFLAGS="-O3 -Wall -msse2" make
# choose a miner pool and register there # start the miner cd /usr/local/src/cpuminer/ ./minerd -q -a sha256d -o stratum+tcp://sg.stratum.slushpool.com:3333 -O username.work:password ./minerd -q -a sha256d -o stratum+tcp://sg.stratum.slushpool.com:3333 -O username.work:password -t 1
Masukan ke /etc/rc.local
/usr/local/src/cpuminer/minerd -q -a sha256d -o stratum+tcp://sg.stratum.slushpool.com:3333 -O username.work:password -t 1