tag:blogger.com,1999:blog-1810057280041377847.post1135146006772489340..comments2023-12-31T06:37:48.216+01:00Comments on LINUX CLUES: How to Build CPUMINER from Source Code in DebianVicente Hernandohttp://www.blogger.com/profile/08115029329135594927noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-1810057280041377847.post-59542256818632664972018-01-23T12:24:13.958+01:002018-01-23T12:24:13.958+01:00"-O3" means the optimization level.
Any..."-O3" means the optimization level.<br /><br />Anyway this article is outdated. What is the point today of mining Litecoin or Bitcoin with a CPU? Even mining with a GPU does not make sense either.Vicente Hernandohttps://www.blogger.com/profile/08115029329135594927noreply@blogger.comtag:blogger.com,1999:blog-1810057280041377847.post-48133618733551345542018-01-23T12:10:27.034+01:002018-01-23T12:10:27.034+01:00didn't work for me...followed your guide to th...didn't work for me...followed your guide to the letter and nothing! worked. it did something but at the end nothing was produced it seems because when i type in "minerd" nothing at all i even tried "cpuminer", still nothing. also can you going into detail about this "./configure CFLAGS="-O3"" what is the meaning of that. what is the "03" mean?. i have seen other guides some say this other say no but no one explains what it is or what is about. if i omit that or change it will it work then maybe?. whatelse can i try?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1810057280041377847.post-14747371741928174642014-05-18T21:23:22.907+02:002014-05-18T21:23:22.907+02:00Hello Michael NA,
about the getwork issue, cpumin...Hello Michael NA,<br /><br />about the getwork issue, cpuminer only supports getwork protocol for pools.<br /><br />If pool only supports stratum protocol you will probably need a proxy.<br /><br />http://bitcoin.stackexchange.com/questions/13002/cpuminer-problem-empty-reply-from-server<br /><br />https://bitcointalk.org/index.php?topic=193354.msg2287148#msg2287148Vicente Hernandohttps://www.blogger.com/profile/08115029329135594927noreply@blogger.comtag:blogger.com,1999:blog-1810057280041377847.post-80340359885693180842014-05-18T21:12:38.614+02:002014-05-18T21:12:38.614+02:00Hi Michael NA,
I do not see any cpuminer package ...Hi Michael NA,<br /><br />I do not see any cpuminer package in debian repository. Probably it is not in ubuntu repo either.<br /><br />In that case you could try to find someone who has already built a debian cpuminer package on his own.<br /><br />May be this link (I have not tested it) suits you:<br />https://launchpad.net/~tuxsoul/+archive/ppaVicente Hernandohttps://www.blogger.com/profile/08115029329135594927noreply@blogger.comtag:blogger.com,1999:blog-1810057280041377847.post-36337848191036333242014-05-11T03:32:20.978+02:002014-05-11T03:32:20.978+02:00get
pt@storage01:~/cpuminer$ ./minerd --url http... get <br /><br />pt@storage01:~/cpuminer$ ./minerd --url http://work.mmcpool.com --user rWSdVd7P2T9918p -p x --threads 1 <br />[2014-05-11 02:19:14] 1 miner threads started, using 'scrypt' algorithm.<br /><br /><br /><br />[2014-05-11 02:19:14] JSON-RPC call failed: {<br />"message": "method not getwork",<br />"code": -1<br />}<br />[2014-05-11 02:19:14] getblocktemplate failed, falling back to getwork<br /><br />[2014-05-11 02:19:14] Long-polling activated for http://work.mmcpool.com:8880/LP<br />[2014-05-11 02:19:14] thread 0: 12 hashes, 3.23 khash/s<br />[2014-05-11 02:19:14] thread 0: 12 hashes, 4.01 khash/s<br /><br /><br />AND THEN<br /><br /><br />[2014-05-11 02:25:20] JSON-RPC call failed: {<br />"message": "upstream RPC error",<br />"code": -4<br />}<br />Does anyone know whats wrong?MFhttps://www.blogger.com/profile/01687093323069273257noreply@blogger.comtag:blogger.com,1999:blog-1810057280041377847.post-9848621700524187112014-04-24T23:28:27.130+02:002014-04-24T23:28:27.130+02:00Wow, thanks for the speedy/informitive responce :-...Wow, thanks for the speedy/informitive responce :-D <br />Here's a link to a G+ post I did a wile back on the fetures I've worked on for Android Linux and RPi<br />https://plus.google.com/109122627771394663675/posts/Kusytsxzhyt<br /><br />I work part-time for a living so the fetures listed are constently being expanded and I write new posts on G+ when there's a magior update of fun things to play with.<br /><br />Oh and no wories on the miner not tracking temps I found a few commands that I can "grep" up into a script that "pauses" spicific CPUs for a given amount of time and then duble checks the temp again befor allowing the miner to us it again.<br />Curently I found the "screen" comandline program to offer running and killing processes in the background wile still alowing the active user to perform other tasks or even connect into the task that "screen" is prossessing. However I'm running into issues with starting and killing tasks in one line so I'll be going over the "man" pages for that because I didn't notice any change in workflow on mining when running it through screen; well so long as I didn't do much with the device ;-)<br /><br />One odd thing I've noticed so far; the device seems to be chugging along but when I check my pool acount on deepbit (I gave it a good amount of time to update befor checking) I don't see any connected workers. However when I use an Android app directly for mining I see workers connected almost emediatly... odd but not disturbing just yet... I'm using your example with my own info without any other options and like I said the device is happy.<br /><br />I'll be working on editing my curent installer to include the directions in your guide (only guide to have worked so far is yours) so I can implimint on my other devices swiftly and then get to work on a script to monitor CPU temp; which if I'm really good should work on PC, RPi, and Android/Linux.<br /><br />One more question for future script fetures: Is there a way to install all with apt-get or is "make" the only option for cpuminer?Anonymoushttps://www.blogger.com/profile/16838267123066154434noreply@blogger.comtag:blogger.com,1999:blog-1810057280041377847.post-67117202537695655962014-04-24T21:11:02.387+02:002014-04-24T21:11:02.387+02:00Hi Michael,
thank you for your interesting commen...Hi Michael,<br /><br />thank you for your interesting comment!<br /><br />Looking at <a href="https://github.com/pooler/cpuminer" rel="nofollow">cpuminer source code</a><br /><br />It automatically detects the processor(at compilation time) and uses some assembler code to compute the algorithm.<br /><br />The usage options:<br />-a, --algo=ALGO specify the algorithm to use<br />-o, --url=URL URL of mining server<br />-O, --userpass=U:P username:password pair for mining server<br />-u, --user=USERNAME username for mining server<br />-p, --pass=PASSWORD password for mining server<br />--cert=FILE certificate for mining server using SSL<br />-x, --proxy=[PROTOCOL://]HOST[:PORT] connect through a proxy<br />-t, --threads=N number of miner threads (default: number of processors)<br />-r, --retries=N number of times to retry if a network call fails<br />(default: retry indefinitely)<br />-R, --retry-pause=N time to pause between retries, in seconds (default: 30)<br />-T, --timeout=N timeout for long polling, in seconds (default: none)<br />-s, --scantime=N upper bound on time spent scanning current work when<br />long polling is unavailable, in seconds (default: 5)<br />--no-longpoll disable X-Long-Polling support<br />--no-stratum disable X-Stratum support<br />--no-redirect ignore requests to change the URL of the mining server<br />-q, --quiet disable per-thread hashmeter output<br />-D, --debug enable debug output<br />-P, --protocol-dump verbose dump of protocol-level activities<br />-S, --syslog use system log for output messages<br />-B, --background run the miner in the background<br />--benchmark run in offline benchmark mode<br />-c, --config=FILE load a JSON-format configuration file<br />-V, --version display version information and exit.<br />-h, --help display this help text and exit.<br /><br />It does not appear anything about the temperature. You will have to monitor it using other ways and stop the app or whatever.Vicente Hernandohttps://www.blogger.com/profile/08115029329135594927noreply@blogger.comtag:blogger.com,1999:blog-1810057280041377847.post-30121068411630216852014-04-24T20:32:11.484+02:002014-04-24T20:32:11.484+02:00To the auther: Thanks for this guide I now have mi...To the auther: Thanks for this guide I now have mining on an old Android phone running Linux that was otherwize incompatible with the apps on the market place :-D<br /><br />To all that may read this that have an Android device or two and want to mine on them: First it's really not time efective on older devices and it requires "root" permissions on Android; the way I do it.<br />I use the "Debian Kit" app that is free on the marketplace on all my devices which provides; squeeze, wheezy and ubuntu flavors of Linux in a very friendly hybrid filesystem instead of chroot segrogated file trees. I also use the "LilDebi" app for some of my devices because it offers "hard float" Linux for compatible ARM CPUs which has some great advantiges over normal "soft float" options offered by (I think) all other similar Android apps curently out for download.<br /><br />I have tested mining with a free Android app on two devices;<br />Sero 7" Pro (a quad core 1+ Ghrtz ARM) and received one shair after less than an hour of running 3 out of 4 of the CPUs :-) and averaged about 700 Khps<br />Epic 4G (a single core 1 Ghrtz ARMv7) no shaires after an hour and avareged 600 Khps<br />HTC myTouch 3G (a single core 600-800 Mhtz ARMv6) using Linux and the above posted guide to install minrd, no shaires just yet with an average of less than 1 Khps<br /><br />I've been working on mounting USB devices to Linux running on Android so I belive it to be more than possible for anyone to up-cycle an old Android phone to run as a controller much like the Raspberry Pi comunity is doing now.<br /><br />You can contact me on G+ under the name of "Michael NA" or at XDA forums or github under the name of "S0AndS0" if you nead help with Android based mining. Furthermore I write scripts for RPi and Android Linux setup of Java, Nodejs, NoFlo, Bramble, OpenStack, and others.<br /><br />Thanks again for this guide. One question; are there any options in minerd to choose which processor is used and are there any tools already available to monitor CPU temp and put a "sleep/waite" on mining for a bit to cool off?<br /><br /><br />Anonymoushttps://www.blogger.com/profile/16838267123066154434noreply@blogger.comtag:blogger.com,1999:blog-1810057280041377847.post-24004513122535276732014-03-07T21:53:02.963+01:002014-03-07T21:53:02.963+01:00Good to know! I also have a Raspberry Pi, someday ...Good to know! I also have a Raspberry Pi, someday it will be fun to run cpuminer on it. :)Vicente Hernandohttps://www.blogger.com/profile/08115029329135594927noreply@blogger.comtag:blogger.com,1999:blog-1810057280041377847.post-77461637797709970842014-03-07T20:03:37.050+01:002014-03-07T20:03:37.050+01:00Great instructions. I compiled it on a RaspberryPi...Great instructions. I compiled it on a RaspberryPi under Raspbian, and get 227 khash/sec. <br /><br />Not really useful at all, but interesting to tinker with. Anonymousnoreply@blogger.com