Linux下安装Zcash开始挖矿教程

新一代虚拟币的浪潮,基于匿名网络的Zcash,下面分享在Linux下安装Zcash开始挖矿教程。

This early morning,I find a new blockchain project,Z cash. The name feels so futuristic and it makes to dig more into it by exploiting it on my old linux pc. There are still about a month until the final release and going into the trading plantform. If you have a old pc or you have a mutiple sytstem pc running linux,don't waste the this opportunity may double or even more to expand your pocket.The more powerful your cpu or gpu are getting,the more potential you will make. Without a further or do,let's see it in action how I exactly do it.

偶然的机会让我发现这个超前概念的区块链项目,Zcash.仅仅是看到这个名字,就有一种未来的即视感,我毫不犹豫的开始在我那台有些年头的Linx电脑上开始部署。距离此币正式发布上线交易所尚有1个多月时间之久,具体目前官网定在了10月18号。如果你有一台现成的linux系统的电脑,千万不要错过这次机会。这是一款可以用cpu和gpu挖矿的币,使用的机器配置越强,自然产出也更高。从团队的社交宣传力度上来看,这可能又是一个10倍潜力币,挖矿就要争分夺秒。现在挖矿难度还不高哦,感兴趣的朋友快和我一起开始部署吧。

Step 1 . Update your linux stystem version to the latest one to ensure the MAX working efficiency

第一步 更新你的Linux系统至最新版本来确保最大的效能产出
$ sudo apt-get update

Step 2. Install the Build Essential Environment

第二步 安装必要的支持环境
$ sudo apt-get install build-essential pkg-config libgtest-dev libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils

Step 3. Download Zcash code and run the command below,download size total 1.5G,takes about 1

hour,depends on your bandwidth and hardware,please be patience.
第三步 下载zcash代码并执行下面的命令,文件大小大约1.5gb,这个过程大概会持续1小时左右,具体情况取决于你的带宽和硬件配置
$ git clone https://github.com/zcash/zcash.git
$ cd zcash/
$ git checkout v0.11.2.z9
$ ./zcutil/fetch-params.sh
Linux下安装Zcash开始挖矿教程
Linux下安装Zcash开始挖矿教程

Step 4. Compile the code,run the command below,this may take a while,get a cup of coffee and play video games will help you get through it.

第四步 编译代码,执行下面的命令。这会持续一段时间,最好的办法就是喝杯咖啡,来几把主机游戏,你会发现时间会过的很快
$ ./zcutil/build.sh -j4
Linux下安装Zcash开始挖矿教程

Step 5. Configire the mining file

create a new configuration file,run the command

第五步 部署挖矿文件
创建新的部署文件,用下面的命令
$ mkdir ~/.zcash
$ nano ~/.zcash.zcash.conf

enter this info inside your configuration file

在部署文件中输入下方信息
testnet=1
addnode=alphatestnet.z.cash
rpcuser=rpcusername
rpcpassword=rpcpassword
gen=1

save this file,hit CTRL+X,then click Y.
Linux下安装Zcash开始挖矿教程

Step 6. Start Mining

start mining and run the command below
第6步 开始挖矿
用以下命令开始挖矿
$ ~/zcash/./src/zcashd -daemon

wait for a little while,run this command to check your node info.

让挖矿持续一会儿后,用这个命令来检查你的节点信息
$ ~/zcash/./src/zcash-cli getinfo
Linux下安装Zcash开始挖矿教程

Step 7. Stop Mining

if you want to stop mining,enter

第7步 停止挖矿
如果你想停止挖矿,输入
$ ~/zcash/./src/zcash-cli setgenerate false

to start mining again,enter

停止挖矿后再继续挖矿,输入
$ ~/zcash/./src/zcash-cli setgenerate true

Step 8. Check the number coins you mined

$ ~/zcash/./src/zcash-cli listtransactions

If generated:true ,it means you already have the block.This pic below shows I just got one block,I am getting 2.9955 coins. After you mined your own coins,secure your linux pc and wait for your luck to get you some extra bucks.
Linux下安装Zcash开始挖矿教程

Feel free to follow me and get more update about my journey and all the interesting things in my life.
第8步,查看挖矿所得的币的数量

如果generated:true,就说明你已经挖到了块。这张图显示了我刚挖到了一个块儿,块中包含2.9955个币。注意在你挖到币后,时刻保持你挖矿电脑的安全,剩下的就是屯币然后一个月后说不定你的钱包就鼓了不少呢