惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - Andy Yang

SharePoint中Event Handler的触发 - Andy Yang 扩展SharePoint链接字段 树莓派的连接 树莓派版的家用NAS服务器 修改树莓派更新源及设置代理配置 开启树莓派的硬件看门狗功能 树莓派上安装2.8寸TFT触摸屏 如何编译树莓派内核 代码导出Reporting Services报表文件 Bit-Coin收入的一分钱 如何在树莓派上运行雷神之锤III 新树莓派入手 如何通过PowerShell在Visual Studio的Post-build中预热SharePoint站点 将SharePoint 2010的快速启动改成弹出菜单样式 在SharePoint 2010的Team Site首页上显示Flash文件 SharePoint 2010搜索起步(下) - Andy Yang SharePoint 2010搜索起步(上) 2009上班第一天 软件开发与心理张力
树莓派上使用蚂蚁矿机挖矿
Andy Yang · 2014-06-06 · via 博客园 - Andy Yang

Updated@2017.02.08:

#附带日志的版本

nohup sudo ./cgminer --bmsc-options 115200:20 -o stratum+tcp://stratum.f2pool.com:25 -u yangsheng1979 -p 1111 --bmsc-freq 0A81 --api-allow W:0/0 --api-listen 2>cgminerLog.txt

Updated@2017.02.07:

需要超频的可以对照下表修改参数

Frequency Hash Rate (GH/s) –bmsc-freq Setting 200 1.6 0781 – Default 225 1.8 0881 250 2.0 0981 275 2.2 0A81

Updated@2017.02.01:

由于矿机不是很稳定,尝试每天重启一次,具体步骤如下

sudo nano /etc/crontab

在最后添加一行后保存退出(每天23:59重启一次)

59 23 * * * root reboot

然后执行

sudo /etc/init.d/cron start

具体crontab中设置定时任务语法参考如下

基本格式 :
*  *  *  *  *  command
分 时 日 月 周 命令

第1列表示分钟1~59 每分钟用*或者 */1表示
第2列表示小时1~23(0表示0点)
第3列表示日期1~31
第4列表示月份1~12
第5列标识号星期0~6(0表示星期天)
第6列要运行的命令

Updated@2017.01.31:

本篇文章适用于使用的Raspberry的版本为wheezy,如果是其他版本,请跳过。

家中以前一直使用的电脑+矿机挖矿,电脑24小时开着不说,声音还特大;

前两天折腾了一把,将矿机整体转到了树莓派上,整个都移到了书柜上。

世界一下子安静了(电表也安静了)~~~~

树莓派开机后,先安装CGMiner的关联组件,运行前需确保已经先执行过Update & Upgrade操作

(下载文件前,如果速度过慢,可以先修改下载镜像源,具体可以参考这篇文章。)

sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev screen libtool automake pkg-config libjansson-dev

下载CGMiner

git clone https://github.com/AdvancedStyle/cgminer.git

配置并安装CGMiner

cd cgminer

sudo ./autogen.sh

#(Grab a cup of coffee, this one takes a while)

sudo ./configure --enable-bmsc

#(for the Antminer)

sudo make

在外接电源式USB HUB(矿机耗电实在太大)上插上Ant Miner

测试CGMiner(国内的鱼池)

#查看USB占用情况

ls /dev/*USB*

#运行CGMiner

cd cgminer

sudo ./cgminer --bmsc-options 115200:20 -o stratum+tcp://stratum.f2pool.com:25 -u yangsheng1979.ant3 -p 123 --bmsc-freq 0781 --api-allow W:0/0 --api-listen

CGMiner设置成开机启动

#打开rc.local文件

sudo nano /etc/rc.local

#在文件的exit 0前添加以下命令(你要是原封不动的添加,我是不会介意的J

cd /home/pi/cgminer

#不带日志的版本

nohup sudo ./cgminer --bmsc-options 115200:20 -o stratum+tcp://stratum.f2pool.com:25 -u yangsheng1979.ant3 -p 123 --bmsc-freq 0781 --api-allow W:0/0 --api-listen

引用参考链接,点击这里

Andy Yang

2014.06.06