User Tools

Site Tools


crypto:chia:install_for_cli

This is an old revision of the document!


Crypto - Chia - Install for CLI

Install Ubuntu or Debian.

Allow to log in directly as root.

Edit the /etc/ssh/sshd_config file.

/etc/ssh/sshd_config
PermitRootLogin yes

Install Apps

apt update
apt upgrade
apt -y install screen
apt -y install lsb-release
apt -y install git
apt -y install iotop

Install Chia

cd /home/
git clone https://github.com/Chia-Network/chia-blockchain.git -b latest --recurse-submodules
cd chia-blockchain
 
chmod 777 install.sh
./install.sh

Configure Chia

screen
. ./activate
chia init

Generate a new seed or add an existing seed

Generate a new seed (key) with this command:

chia keys generate
chia keys show

If you already have a seed (key), you can add it with this command:

chia keys add

NOTE: This will prompt for the seed to be entered.

The ID will be displayed, which can be checked to ensure it matches.

To display the current mnemonic keys:

chia keys show --show-mnemonic-seed

Initialize the wallet for security

chia init
chia wallet show

NOTE: This should shown the account balance in XCH.


Start the node and the farmer software

chia start farmer

returns:

chia_harvester: started
chia_farmer: started
chia_full_node: started
chia_wallet: started

Check the status of the Chia node

chia show -s

returns:

chia show -s
Current Blockchain Status: Full Node syncing to block 472503
Currently synced to block: 5337
Current Blockchain Status: Not Synced. Peak height: 5337
      Time: Sat Mar 20 2021 13:46:16 UTC                  Height:       5337
 
Estimated network space: 122.571 PiB
Current difficulty: 8
Current VDF sub_slot_iters: 112197632
Total iterations since the start of the blockchain: 16025032771
 
  Height: |   Hash:
     5337 | c43358ce63b9f5c2830e87c03d40c8a48bac25bab7ac577f67540745e579fae5
     5336 | f1c0f4bbcb271d1b851dea58f1670069789ee5cfcf433a5e4987f80bc36f59d3
     5335 | 231ce706e3c2ce88753e29b535042adc0cef54ad142de1f2cef36e67904311e6
     5334 | b5e2b6fd68f7d0e21f4173eddcc076a5b3c26899381588b1a1a2832fc6408c49
     5333 | 74fca4179c1ec817f60846f36b6459f5cdb13446bb732fa33f6f17c1ce118e99
     5332 | f14819b128ec4dff54b4be7f370540413a2cb4978789a4ccc0268fcecf0bb740
     5331 | e232461189d61d09eea5a65bb3b8d3fe216f77179560fb24513b235166b5ac5f
     5330 | 79e4cb7cda49aa3fa8139aa503289a0a14f4b2df558c9e04db8ffc7e6d85b2e1
     5329 | 7a6aa45cca747ec377dc0167cf58b0ac7d2d9307e93ea5606dda186bde9c47cc
     5328 | 11b86900b8570cf9e69ca05d4b95daf08065668794a18671f6e1c4057027edd6

Check the status of the Chia farm

chia farm summary

returns:

Exception from 'wallet' {'error': "'NoneType' object has no attribute 'tx_store'", 'success': False}
Farming status: Syncing
Total chia farmed: Unknown
User transaction fees: Unknown
Block rewards: Unknown
Last height farmed: Unknown
Plot count: 0
Total size of plots: 0.000 GiB
Estimated network space: 124.983 PiB
Expected time to win: Unknown
Note: log into your key using 'chia wallet show' to see rewards for each key

NOTE:

  • Farming status: farming: mean everything is OK and synced.
    • Farming status: Syncing: means that it is still syncing with the blockchain.

Check the Wallet

chia wallet show

returns:

Wallet height: 270265
Sync status: Not synced
Balances, fingerprint: 4130143731
Wallet ID 1 type STANDARD_WALLET
   -Total Balance: 0.0 xch (0 mojo)
   -Pending Total Balance: 0.0 xch (0 mojo)
   -Spendable: 0.0 xch (0 mojo)

To add a new directory of plots to the farm

chia plots add -d /chia

create -k 32 -b 4000 -r 4 -n 10 -t /chia-temp/ -d /chia

Validate the Plots

After creating a plot, check that everything is working correctly.

chia plots check

NOTE: This will check all directories you have listed in your config.yaml to contain plots.


crypto/chia/install_for_cli.1624521904.txt.gz ยท Last modified: 2021/06/24 08:05 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki