2021-05-12 14:32:11
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
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
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.
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
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.
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個幣。注意在你挖到幣後,時刻保持你挖礦電腦的安全,剩下的就是屯幣然後一個月後說不定你的錢包就鼓了不少呢
相關文章