MadMax-Plotter - Linux guide
- First
- A linux machine - this example uses Ubuntu Server 20.04 LTS
- Necessary access rights to install required packages, create users, set access rights ...
- About 20 minutes of time..
- A working installation of the chia client, up and synced (see https://www.chia.net/).
- Install
- If you haven't already, create a user for your plotting needs.
- I strongly recommend creating a fresh user for tools that have to do with your crypto projects.
- We will create a user identified by 'plotter'.
- If your machine is reachable by an public IP, you might want to block this user from directly logging in.
$ sudo adduser plotter $ sudo usermod -L plotter
# Optional
- Install some required tools:
$ sudo apt-get install -y libsodium-dev cmake g++ git build-essential
- Switch to the user and cwd into the correct home directory:
$ sudo su plotter $ cd $ git clone -b pool-puzzles https://github.com/madMAx43v3r/chia-plotter.git
- The output should look like this:
Cloning into 'chia-plotter'...
remote: Enumerating objects: 2092, done.
remote: Counting objects: 100% (946/946), done.
remote: Compressing objects: 100% (408/408), done.
remote: Total 2092 (delta 697), reused 612 (delta 537), pack-reused 1146
Receiving objects: 100% (2092/2092), 786.22 KiB | 4.23 MiB/s, done.
Resolving deltas: 100% (1196/1196), done.
- Enter the directory and execute some necessary commands to install requirements and compile the tool:
$ git submodule update --init
Submodule 'lib/BLAKE3' (https://github.com/BLAKE3-team/BLAKE3.git) registered for path 'lib/BLAKE3'
Submodule 'lib/bls-signatures' (https://github.com/madMAx43v3r/bls-signatures.git) registered for path 'lib/bls-signatures'
Submodule 'lib/libbech32' (https://github.com/dcdpr/libbech32.git) registered for path 'lib/libbech32'
Cloning into '/home/plotter/chia-plotter/lib/BLAKE3'...
Cloning into '/home/plotter/chia-plotter/lib/bls-signatures'...
Cloning into '/home/plotter/chia-plotter/lib/libbech32'...
Submodule path 'lib/BLAKE3': checked out '037de38bfec4e813ab6189a50cb7c4cbae47268a'
Submodule path 'lib/bls-signatures': checked out 'd9e42922e4a21fe8fc50733b93c16f582022621f'
Submodule path 'lib/libbech32': checked out '954b14fe81602dde0cf5cb6d45208403160fb76c'
$ ./make_devel.sh
- This command will produce a lot of output while compiling. In the end, you should get a message indicating the compile was successful:
[...]
[ 99%] Built target bls
[100%] Built target chia_plot
- Try to call the program and get the usage help information:
$ ./build/chia_plot --help
- If you can see the following line in the output, you have successfully built the chia-plotter version compatible with pool plots:
-c, --contract arg Pool Contract Address (64 chars)
- Getting your keys and jumping in the pool
- With the binary in place, it is time to check for the data required to create plots that fit your chia keys.
- To get those keys, execute the following commands:
$ chia plotnft create -s local
- It can take a little while until the transaction is confirmed. Once it is, execute:
$ chia plotnft show
Find the P2 singletom address (pool contract address) and save it for later - it should look something like this:
P2 singleton address (pool contract address for plotting): xch1[...]err
source: [Pool.Garden]