来源: cryptor    使用指南 |   2015年07月14日   

正在翻译中,敬请期待……

在本网站上发布了许多有关Emercoin独创技术的文章,挖矿硬件公司HashCoins开发了针对EMC挖矿的专业平台,并发布了集成Emercoin钱包的矿工控制面板,通过SSL安全认证登陆,可单独挖矿(Solo)。该控制面板适用于所有基于GoldenNonce芯片的Sha-256(比特币矿机)。

EMC Mining Kit.  Run the miner control panel with built-in wallet and other buns

安装控制面板

要安装必须的微电脑系统 -- 树莓派 (desirable model 2) 到SD卡,SD卡存储空间最低为8Gb 点击下载安装文件地址 ,解压并写入到SD存储卡中。

配置准备

要运行控制面板,必须使用SSL证书认证登陆,以保证系统安全。关于生成SSL证书,以及添加到EMC区块链中的教程,请参阅“EMCSSL使用指南:如何使用分布式无密码认证登陆方案EMCSSL”。如添加使用EMC-SSH秘钥认证登陆功能,相关EMCSSH使用和设置教程,可参阅“EMCSSH使用指南:如何使用去中心化的安全壳Shell管理”。

Setting up security

Connect to Paspberry for ssh. Here are the data for the input set by default:

the login: pi 
the password: hashcoins

and first of all change the password on your team:

passwd

Then get yourself the right root-user:

sudo su


Next, we need to change the data for access to the wallet. To do this, go to the config folder with the purse

cd /home/emc/.emercoin/

and change rpcpassword new:

nano emercoin.conf

After that, remove the file wallet.dat

rm wallet.dat

and restart the purse:

/etc/init.d/emercoind restart

Now that data to access the wallet via RPC changed, we need to specify a new password for all services that use the access to the wallet:

1. emcssh
Then edit the value emcurl, changing the password to a new one:

nano /usr/local/etc/emcssh_config

2. minigkit

nano /home/pi/miningkit/config/rpc

3. stratum-minig

nano /home/pi/stratum-mining/conf/config.py

Change the value COINDAEMON_TRUSTED_PASSWORD . In addition, in this file you must specify the local address of the purse, which will come the reward for block CENTRAL_WALLET

To get the address of the purse, you can run the following command:

curl -H "Content-Type: application/json" http://emccoinrpc:RPCPASSWORD@127.0.0.1:8775 -X POST -d '{"method":"getnewaddress"}'

In return you will get something like this result:

{ "Result": "EJ1k8zmxBhiYDuw1wjU9d4NRQGgWaEtiuT", "error": null, "id": null}

EJ1k8zmxBhiYDuw1wjU9d4NRQGgWaEtiuT which is the address of the new wallet.

Setting emcSSH

To add yourself to the list of users who can log in via ssh on a key, edit the file:

nano /home/pi/.ssh/emcssh_keys

User name is specified through @, ie entry should look likeusername. Of course you have to be generated key pair and a public key must be attached to your yuzerneym through blokcheyn emerkoina. If this encounter difficulties, read these instructions with the paragraph "Generation of the key pair."

Configuring SSL

This is a very important point, because in order to get to the control panel miner will need an SSL certificate. Generate certificate is very simple, this manual process is described in some detail.

Log on SSL-certificates implemented by emcSSH. Web server reads the certificate and emcSSH checks if the owner of the certificate is allowed entry into the panel. The check is done by the serial number. View SerialNo certificate can on this page , it usually coincides with the template name.

To add yourself to the list of authorized users, you must create an entry in blokcheyne type:

name: the ssh: username_miner
of value: The serial number of the certificate

and add a new user to the trusted list:

nano /home/sslpanel/.ssh/emcssh_keys

Just as in the case of a user emcssh indicated by @ (for exampleusername_miner).

To make sure everything works as expected, run the following command:

emcssh sslpanel

If the response system issued a certificate serial number, it's okay. You can go to the panel at emcpi.lan or simply by specifying IP Raspberry in your browser.

Working with the panel

Appearance panel

The control panel is simple and should not cause problems. You can work with both the pools (no difference Emercoin or BitCoin) and in solo mode. To switch the miner in the solo mode, you need to specify the settings on the host localhost: 3333, the user localminer(user name and password can not be changed) and password x .

solo mode

Why not change your username. The fact that the mining works through stratum-mining, which uses mysql database for storing user data, and other information (usually stratum-mining is used for multiuser pools). In order not to make a fuss with the registration of the user, the developers decided to hard-code a username and password (if you're paranoid, or just curious, you can hand edit these settings in the database). However, if you choose Main to Solo with multiple machines, you can use different a worker, for example localminer.1 etc. In the other machines, you can specify the local address of the main machine (ip_raspberry: 3333).

All acquired by back-breaking toil coins are displayed in the wallet tab. In the same transaction history is displayed. To send coins to your main wallet, enough to specify the address and the number of coins.

Built purse

If something went wrong

I tested the board during the week and all the time the system was stable, although in solo mode on one Raspberry I worked 8 miners.Here is a list of commands that can help:

Problem with Apache. Do not read SSL data:

service apache2 restart

Problems with the purse. (Does not work authorization through emcSSH or SSL):

/etc/init.d/emercoind restart

Mining does not work in solo mode:

/etc/init.d/stratumd restart

I hope that you have no problem. On any questions happy to answer in the comments.


 

除特别注明外,本站所有文章均为Emercoin崛起币信息网原创,转载请注明出处来自  http://emercoin.info/zh-Hans/guides/EMC挖矿工具包:内置网页钱包的挖矿控制面板.html

扫一扫二维码分享