Start Zcash (Testnet) Mining with Three Copy and Pastes

in #mining8 years ago (edited)

Here, I am providing three sets of commands to CnP(copy and paste) in order to start Zcash testnet mining. You can copy each whole code block and paste it to the command shell. Just do it!

Preparation: Clean installed Ubuntu server (16.04 LTS is recommended)

Edit: Your machine must have over 1G memory per core and 4G at least

1. First CnP: Install dependencies

Note: If you have to enter password with the first line, copy and paste this twice

sudo apt-get update
sudo apt-get -y install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python3 python3-pip zlib1g-dev wget bsdmainutils automake


2. Second CnP: Install Zcash and set up config

Note: You may want to change username and password in the last line

git clone https://github.com/zcash/zcash.git
cd zcash/
git checkout v1.0.0-beta1
~/zcash/zcutil/fetch-params.sh
~/zcash/zcutil/build.sh
mkdir ~/.zcash
echo -e "testnet=1\naddnode=betatestnet.z.cash\nrpcuser=username\nrpcpassword=password\ngen = 1\ngenproclimit = -1" > ~/.zcash/zcash.conf

(Wait for a long time)

3. Third CnP: Start mining (If you are using Amazon AWS or Google Compute Engine, go to 3-1)

~/zcash/src/zcashd -daemon

3-1. Third CnP (for Amazon or Google VPS)

  • Amazon AWS
~/zcash/src/zcashd -externalip=`wget --quiet -O- http://169.254.169.254/latest/meta-data/public-ipv4` -daemon
  • Google Compute Engine
~/zcash/src/zcashd -externalip=`curl -s "http://metadata/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip" -H "X-Google-Metadata-Request: True"` -daemon


Enjoy!



한국어 사용자를 위한 설명입니다.
각 코드 블록 전체를 복사-붙여넣기 하시면 됩니다. 세 번만 하시면 되고요, 준비물로는 클린설치된 우분투(16.04버전 추천)가 필요합니다.
아마존이나 구글 VPS를 쓰시는 분은 3번 대신 3-1번을 따라하시면 됩니다.

주의하실 점은 마이닝 머신이 4G 이상 램을 가지고 있어야 하며 코어가 4개 이상일 때에는 코어수*1G는 잡아주셔야 합니다.

타 사이트로는 링크만 퍼가실 수 있습니다

Sort:  
Loading...

thanks for good information. 중간에 aws의 169.154..가 의미하는게 무엇인지요? 그리고 정식버전나오기전에는 지금 마이닝되는 zcash은 의미가 없는것인지요?

지금은 테스트넷일 뿐입니다.
중간에 있는 부분은 외부노드 접속이 안되는 문제를 해결하기 위해 아마존이나 구글 vps의 퍼블릭 ip를 가져오는 방법입니다. 저 부분만 따로 복사해서 입력해보세요

nicely done man!

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.030
BTC 58478.70
ETH 3158.37
USDT 1.00
SBD 2.43