{"id":213103,"date":"2021-03-21T08:56:19","date_gmt":"2021-03-21T00:56:19","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=213103"},"modified":"2021-03-11T13:56:45","modified_gmt":"2021-03-11T05:56:45","slug":"ubuntu-ethminer","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ubuntu-ethminer.html","title":{"rendered":"\u5982\u4f55\u5728Ubuntu Linux\u4e0a\u5f00\u91c7\u4ee5\u592a\u574a?"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u622a\u81f3\u6700\u8fd1\uff0c\u52a0\u5bc6\u8d27\u5e01\u70ed\u6f6e\u5e2d\u5377\u6574\u4e2a\u4e92\u8054\u7f51\u793e\u533a\u3002\u4eba\u4eec\u53d1\u73b0\uff0c\u4e0d\u9700\u8981\u4e00\u4e2a\u4ef7\u503c\u6570\u5343\u7f8e\u5143\u7684\u77ff\u673a\u5c31\u53ef\u4ee5\u4ece\u4e2d\u8d5a\u94b1\u7684\u52a0\u5bc6\u8d27\u5e01\u3002\u5546\u5e97\u91cc\u663e\u5361\u77ed\u7f3a\uff0c\u6dd8\u91d1\u70ed\u5df2\u7ecf\u5e2d\u5377\u4e86\u77ff\u5546\u3002\u5982\u679c\u60a8\u6709\u4e00\u5f20\u8d85\u8fc72GB\u7684VRAM\uff0c\u60a8\u4e5f\u53ef\u4ee5\u5c1d\u8bd5\u6316\u6398\u3002\u8ba9\u6211\u4eec\u6765\u770b\u770b\u6700\u5e38\u89c1\u7684\u91c7\u77ff\u65b9\u5f0f\u2014\u2014\u4ee5\u592a\u574a\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4ee5\u592a\u574a\u88ab\u8ba4\u4e3a\u662f\u4e00\u4e2a\u4f1f\u5927\u7684\u8d27\u5e01\uff0c\u5177\u6709\u5f88\u9ad8\u7684\u6f5c\u5728\u5229\u6da6\u3002\u8981\u5f00\u91c7\u4ee5\u592a\u574a\uff0c\u60a8\u9700\u8981\u4e00\u4e2a\u540d\u4e3a\u201cethminer\u201d\u7684\u8f6f\u4ef6\uff0c\u8fd9\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u5728\u591a\u4e2aLinux\u53d1\u884c\u7248\u4e0a\u8fd0\u884c\uff0c\u4f46\u662f\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u91cd\u70b9\u4ecb\u7ecdUbuntu 16.0.4\/20.04\u548cDebian 8\u3002<\/p>\n

\u5728\u5f00\u59cb\u4e4b\u524d\u2013\u4e3a\u4e86\u4e0d\u6d6a\u8d39\u65f6\u95f4\uff0c\u8bf7\u52ff\u5c1d\u8bd5\u4f7f\u75282 GB VRAM\u4ee5\u4e0b\u7684\u5361\u8fdb\u884c\u6316\u6398\uff0c\u56e0\u4e3a\u8be5\u8f6f\u4ef6\u4e0d\u592a\u53ef\u80fd\u88ab\u8f6f\u4ef6\u68c0\u6d4b\u5230\u5e76\u80fd\u591f\u8fdb\u884c\u4efb\u4f55\u6316\u6398\u3002\u6700\u91cd\u8981\u7684\u662f\uff0c\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662fNvidia\u5361\uff0c\u5219\u5fc5\u987b\u4f7f\u7528\u4e13\u6709\u9a71\u52a8\u7a0b\u5e8f\u3002\u5bf9\u4e8eAMD\uff0cAMDGPU\u9a71\u52a8\u7a0b\u5e8f\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n

\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u5c06\u5411\u60a8\u5c55\u793a\u5982\u4f55\u4f7f\u7528\u7ec8\u7aef\u5728Ubuntu\u4e0a\u5b89\u88c5Ethminer\u3002<\/p>\n

\u6dfb\u52a0\u4ee5\u592a\u574a\u5b58\u50a8\u5e93<\/strong><\/div>\n

\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u4ee5\u592a\u574a\u5b58\u50a8\u5e93\uff0c\u56e0\u6b64\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

linuxmi@linuxmi:~\/www.linuxmi.com$ sudo apt-get install software-properties-common<\/pre>\n

\"\"<\/p>\n

linuxmi@linuxmi:~\/www.linuxmi.com$ sudo add-apt-repository ppa:ethereum\/ethereum<\/pre>\n

\"\"<\/p>\n

linuxmi@linuxmi:~\/www.linuxmi.com$ sudo apt-get update<\/pre>\n

\"\"<\/p>\n

\u5982\u679c\u60a8\u6b63\u5728\u8fd0\u884cDebian\uff0c\u5219\u9700\u8981\u66ff\u6362\u5b58\u50a8\u5e93\u540d\u79f0:<\/p>\n

linuxmi@linuxmi:~\/www.linuxmi.com$ sudo sed \u2018s\/jessie\/vivid\/\u2019 -i \/etc\/apt\/sources.list.d\/ethereum-ethereum-*.list<\/pre>\n
\u5b89\u88c5Ethminer<\/strong><\/div>\n

\u6211\u4eec\u7ec8\u4e8e\u53ef\u4ee5\u5f00\u59cb\u5b89\u88c5ethminer\u4e86\u3002\u7136\u800c\uff0c\u9664\u6b64\u4e4b\u5916\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u989d\u5916\u7684\u5305:Geth\u548cEthereum:<\/p>\n

\u5b89\u88c5\u5305<\/strong><\/div>\n

\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\u6240\u9700\u7684\u8f6f\u4ef6\u5305:<\/p>\n

linuxmi@linuxmi:~\/www.linuxmi.com$ sudo apt-get install ethereum geth<\/pre>\n

\u8981\u4f7f\u7528\u6316\u6398\u865a\u62df\u8d27\u5e01\u6240\u9700\u7684ethminer\uff0c\u6211\u4eec\u5fc5\u987b\u4eceGitHub\u4e0b\u8f7d:https:\/\/github.com\/ethereum-mining\/ethminer\/releases,\u5728\u7f16\u5199\u672c\u6559\u7a0b\u65f6\uff0c\u6700\u65b0\u7248\u672c\u662fethminer 0.19.0-alpha.0
\n\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u5e76\u89e3\u538b\u7f29\u4e8c\u8fdb\u5236\u6587\u4ef6:<\/p>\n

linuxmi@linuxmi:~\/www.linuxmi.com$ wget https:\/\/github.com\/ethereum-mining\/ethminer\/releases\/download\/v0.19.0-alpha.0\/ethminer-0.19.0-alpha.0-cuda-8-linux-x86_64.tar.gz\r\nlinuxmi@linuxmi:~\/www.linuxmi.com$ mkdir ethminer\r\nlinuxmi@linuxmi:~\/www.linuxmi.com$ cd ethminer\r\nlinuxmi@linuxmi:~\/www.linuxmi.com$ tar -xzvf ..\/ethminer-0.19.0-alpha.0-cuda-8-linux-x86_64.tar.gz<\/pre>\n
\u9009\u62e9\u4e00\u4e2a\u7f51\u7edc<\/strong><\/div>\n

\u4ee5\u592a\u574a\u6709\u4e24\u4e2a\u3002\u4ee5\u592a\u574a\u7ecf\u5178\uff08\u79f0\u4e3aETC\uff09\u548c\u4ee5\u592a\u574a\uff08\u79f0\u4e3aETH\uff09\u3002<\/p>\n

\u5bf9\u4e8e\u77ff\u5de5\u800c\u8a00\uff0c\u4e3b\u8981\u533a\u522b\u5728\u4e8e\u4ef7\u683c\u548c\u91c7\u77ff\u96be\u5ea6\u3002\u96be\u5ea6\u8d8a\u9ad8\uff0c\u60a8\u5f00\u91c7\u7684\u8d27\u5e01\u5c31\u8d8a\u5c11\u3002\u60a8\u9700\u8981\u9009\u62e9\u4e00\u79cd\u8d27\u5e01\uff0c\u5b83\u5c06\u4e3a\u60a8\u5e26\u6765\u6700\u5927\u7684\u5229\u6da6\u3002\u622a\u81f3\u64b0\u5199\u672c\u6587\u65f6\uff0cETH\u5177\u6709\u66f4\u597d\u7684\u6bd4\u7387\uff0c20\u5146\u74e6\u7684\u529f\u7387\u5c06\u4e3a\u60a8\u5e26\u676529\u7f8e\u5143\u7684\u5229\u6da6\uff0c\u800cETC\u5219\u4e3a15\u7f8e\u5143\uff0c\u800c\u529f\u8017\u76f8\u540c\u3002<\/p>\n

\u9009\u62e9\u4e00\u4e2a\u94b1\u5305<\/strong><\/div>\n

\u6211\u5047\u8bbe\u60a8\u6b63\u5728\u6316\u6398ETH\uff1b\u56e0\u6b64\uff0c\u6211\u5efa\u8bae\u4f7f\u7528\u8fd9\u4e2a\u94b1\u5305\u3002\u60a8\u8bbe\u7f6e\u7684\u5bc6\u7801\u662f\u6c38\u4e45\u6027\u7684\uff0c\u8bf7\u4e0d\u8981\u4e22\u5931\uff0c\u56e0\u4e3a\u60a8\u5c06\u4e22\u5931\u94b1\u5305\u4e2d\u4fdd\u5b58\u7684\u6240\u6709\u5185\u5bb9\u3002\u8fdb\u884c\u8bbe\u7f6e\uff0c\u7136\u540e\u6211\u4eec\u5c06\u79fb\u81f3\u4e0b\u4e00\u70b9\u3002<\/p>\n

\u5355\u91c7\u6216\u6c60\u91c7<\/strong><\/div>\n

\u901a\u5e38\uff0c\u7531\u4e8e\u5956\u52b1\u8f83\u9ad8\uff0c\u56e0\u6b64\u60a8\u5e0c\u671b\u5728\u54c8\u5e0c\u8f83\u4f4e\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u6316\u77ff\u3002\u60a8\u4e5f\u5c06\u9700\u8981\u66f4\u957f\u7684\u65f6\u95f4\u624d\u80fd\u4ece\u5355\u4eba\u91c7\u77ff\u4e2d\u83b7\u5f97\u5229\u6da6\u3002<\/p>\n

\u4ece\u6b64\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u6c60\u3002<\/p>\n

\u9664\u4e86\u5217\u8868\u4e2d\u7684\u6c60\u4e4b\u5916\uff0c\u53ef\u80fd\u8fd8\u6709\u5176\u4ed6\u6c60-\u627e\u5230\u6700\u9002\u5408\u60a8\u7684\u6c60\u3002<\/p>\n

\u5f00\u59cb\u91c7\u77ff\uff01<\/strong><\/div>\n

\u5982\u5e94\u7528\u7a0b\u5e8f\u6240\u8ff0\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cethminer\u5c06\u5c1d\u8bd5\u4f7f\u7528\u5176\u53ef\u4ee5\u68c0\u6d4b\u5230\u7684\u6240\u6709\u8bbe\u5907\u7c7b\u578b\u3002\uff08\u53ef\u9009\uff09\u60a8\u53ef\u4ee5\u9650\u5236\u6b64\u884c\u4e3a\u8bbe\u7f6e\u7684\u4ee5\u4e0b\u4e24\u4e2a\u9009\u9879\u4e4b\u4e00\uff1a<\/p>\n

-G,--opencl Mine\/Benchmark using OpenCL only\r\n-U,--cuda Mine\/Benchmark using CUDA only<\/pre>\n

\u7136\u540e\uff0c\u6267\u884c\u6316\u6398\u547d\u4ee4\uff0c\u901a\u5e38\u5728\u6c60\u7684\u7f51\u7ad9\u4e0a\u58f0\u660e\u3002<\/p>\n

\u5bf9dwarfpool\u6765\u8bf4,\u8fd9\u662f:<\/p>\n

$ cd .\/bin\r\n$ .\/ethminer -G -P http:\/\/eth-eu.dwarfpool.com:80\/YOUR_WALLET<\/pre>\n

\u7c98\u8d34\u60a8\u7684\u94b1\u5305\u5730\u5740\uff0c\u800c\u4e0d\u662fYOUR_WALLET\u3002<\/p>\n

RX480\u5361\u4e0a\u7684\u8f93\u51fa\u5e94\u4e3a\uff1a<\/p>\n

[OPENCL] Found suitable OpenCL device [Ellesmere] with 8560984064 bytes of GPU Memory<\/pre>\n

\u867d\u7136\u5b57\u8282\u6570\u5c06\u53d6\u51b3\u4e8e\u6709\u591a\u5c11VRAM\u60a8\u7684\u7279\u5b9a\u6a21\u578b\u3002\u7ed9\u4f60!\u60a8\u73b0\u5728\u6b63\u5728Linux\u4e0a\u6316\u6398\u4ee5\u592a\u574a\u3002<\/p>\n

\u5c3d\u7ba1\u5b57\u8282\u6570\u5c06\u53d6\u51b3\u4e8e\u60a8\u7684\u7279\u5b9a\u578b\u53f7\u5177\u6709\u591a\u5c11VRAM\u3002\u60a8\u73b0\u5728\u53ef\u4ee5\u5728Linux\u4e0a\u8fdb\u884c\u6316\u6398\u4ee5\u592a\u574a\u4e86\u3002<\/p>\n

\u4ec5\u9700\u51e0\u4e2a\u547d\u4ee4\uff0c\u60a8\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u52a0\u5bc6\u8d27\u5e01\u77ff\u5de5\u3002Ethminer\u7684\u4f18\u52bf\u662f\u76f8\u5bf9\u4e8e\u5176\u4ed6\u89e3\u51b3\u65b9\u6848\u800c\u8a00\u662f\u514d\u8d39\u7684\uff0c\u540c\u65f6\u4fdd\u6301\u4e0e\u4e13\u6709\u8f6f\u4ef6\u76f8\u540c\u7684\u901f\u5ea6\u548c\u6548\u7387\u3002\u5982\u679c\u60a8\u60f3\u4e86\u89e3\u66f4\u591a\u6709\u5173\u5982\u6b64\u51fa\u8272\u7684Linux\u8f6f\u4ef6\u7684\u4fe1\u606f\uff0c\u8bf7\u7ee7\u7eed\u5173\u6ce8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4ee5\u592a\u574a\u88ab\u8ba4\u4e3a\u662f\u4e00\u4e2a\u4f1f\u5927\u7684\u8d27\u5e01\uff0c\u5177\u6709\u5f88\u9ad8\u7684\u6f5c\u5728\u5229\u6da6\u3002\u8981\u5f00\u91c7\u4ee5\u592a\u574a\uff0c\u60a8\u9700\u8981\u4e00\u4e2a\u540d\u4e3a\u201cethminer\u201d\u7684\u8f6f\u4ef6\uff0c\u8fd9\u662f […]<\/p>\n","protected":false},"author":323,"featured_media":113179,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-213103","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/213103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=213103"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/213103\/revisions"}],"predecessor-version":[{"id":213312,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/213103\/revisions\/213312"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/113179"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=213103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=213103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=213103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}