Beginners Guide to Farming CHIA XCH on Ubuntu

Chia-The encrypted project of✅Bittorrent creator and ✅Steam game distribution protocol developer Bram Cohen! Received institutional investment from ✅A16Z✅DCM✅Danhua Capital

// UPDATE //

Please read this writeup from BackBlaze regarding the profitability of Chia. After mining on 8TB for ~2 months I never saw any wins. Pools are just now starting up, but it’s becoming harder and harder to win as the storage pool rises.

Index

  1. Installed OS
  2. Configured storage (temp/plot)
  3. Installed CHIA
  4. Activated CHIA
  5. Create plot
  6. Start CHIA farmer
  7. Troubleshooting, Tips, and Links

We’re going to walk through some of the basics of how to setup CHIA farm on Ubuntu and mining for XCH.

Configure Storage

This step I completed when installing the Ubuntu LTS OS. My setup consists of:

  • 2x – 4TB Western Digital Purple
  • 1x 480GB SSD
  • 1x HP RAID controller

Install Chia

I ended up configuring my two 4TB into a RAID-0 to form 8TB storage mapped to /chia_plot. My SSD storage was mounted and mapped to /chia_temp. This will be referenced later on.

Create plot

(venv) root@chia:/home/moo/chia-blockchain# chia plots create -k 32 -b 22000 -t /chia_temp -d /chia_plot

Start Chia Farmer

(venv) root@chia:/home/moo/chia-blockchain# chia start farmer
Daemon not started yet
Starting daemon
chia_harvester: started
chia_farmer: started
chia_full_node: started
chia_wallet: started

Troubleshooting, Tips, and Links

Access Logs and Mainnet files

CD ~/.chia/

View the log file output

tail -f ~/.chia/mainnet/log/debug.log

Run command in background

nohup chia plots create -k 32 -b 22000 -t /chia_temp -d /chia_plot &
tail -f nohup.out

Alternatively, you can install and run TMUX to manage multiple instances. See TMUX Cheatsheet[1]Tmux Cheat Sheet & Quick Reference

Continuously run

When a plot finishes, it doesn’t automatically get added to the farmer. You must restart the farmer. When a plot finishes, you must also create a new plot. I’m not sure if there is a better way, but I simply added && between my commands.  

chia plots create -k 32 -b 22000 -t /chia_temp -d /chia_plot && chia plots create -k 32 -b 22000 -t /chia_temp -d /chia_plot && chia plots create -k 32 -b 22000 -t /chia_temp -d /chia_plot && chia plots create -k 32 -b 22000 -t /chia_temp -d /chia_plot

To restart your farmer/node:

chia farmer start -r

 

Notes
All in all it takes roughly 6-12 hours to complete a single plot. As I continue to make progress and win some of the blocks, I’ll update this post.

Mr-Moo
Latest posts by Mr-Moo (see all)

Notes & References

Leave a Reply

Your email address will not be published. Required fields are marked *