Difference between revisions of "MadMax-Plotter - Linux guide"
From Chia-Wiki
Line 24: | Line 24: | ||
Install some required tools: | :Install some required tools: | ||
''<code>$ sudo apt-get install -y libsodium-dev cmake g++ git build-essential</code>'' | :''<code>$ sudo apt-get install -y libsodium-dev cmake g++ git build-essential</code>'' | ||
Switch to the user and cwd into the correct home directory: | :Switch to the user and cwd into the correct home directory: | ||
''<code>$ sudo su plotter $ cd $ git clone -b pool-puzzles https://github.com/madMAx43v3r/chia-plotter.git</code>'' | :''<code>$ sudo su plotter $ cd $ git clone -b pool-puzzles https://github.com/madMAx43v3r/chia-plotter.git</code>'' | ||
The output should look like this: | :The output should look like this: | ||
''<code>Cloning into 'chia-plotter'''...<br> | :''<code>Cloning into 'chia-plotter'''...<br> | ||
''remote: Enumerating objects: 2092, done.''<br> | :''remote: Enumerating objects: 2092, done.''<br> | ||
''remote: Counting objects: 100% (946/946), done.''<br> | :''remote: Counting objects: 100% (946/946), done.''<br> | ||
''remote: Compressing objects: 100% (408/408), done.''<br> | :''remote: Compressing objects: 100% (408/408), done.''<br> | ||
''remote: Total 2092 (delta 697), reused 612 (delta 537), pack-reused 1146''<br> | :''remote: Total 2092 (delta 697), reused 612 (delta 537), pack-reused 1146''<br> | ||
''Receiving objects: 100% (2092/2092), 786.22 KiB | 4.23 MiB/s, done.''<br> | :''Receiving objects: 100% (2092/2092), 786.22 KiB | 4.23 MiB/s, done.''<br> | ||
''Resolving deltas: 100% (1196/1196), done.''</code> | :''Resolving deltas: 100% (1196/1196), done.''</code> | ||
Enter the directory and execute some necessary commands to install requirements and compile the tool: | :Enter the directory and execute some necessary commands to install requirements and compile the tool: | ||
''<code>$ git submodule update --init''<br> | :''<code>$ git submodule update --init''<br> | ||
''Submodule 'lib/BLAKE3' (https://github.com/BLAKE3-team/BLAKE3.git) registered for path 'lib/BLAKE3'''<br> | :''Submodule 'lib/BLAKE3' (https://github.com/BLAKE3-team/BLAKE3.git) registered for path 'lib/BLAKE3'''<br> | ||
''Submodule 'lib/bls-signatures' (https://github.com/madMAx43v3r/bls-signatures.git) registered for path 'lib/bls-signatures'''<br> | :''Submodule 'lib/bls-signatures' (https://github.com/madMAx43v3r/bls-signatures.git) registered for path 'lib/bls-signatures'''<br> | ||
''Submodule 'lib/libbech32' (https://github.com/dcdpr/libbech32.git) registered for path 'lib/libbech32'''<br> | :''Submodule 'lib/libbech32' (https://github.com/dcdpr/libbech32.git) registered for path 'lib/libbech32'''<br> | ||
''Cloning into '/home/plotter/chia-plotter/lib/BLAKE3'...''<br> | :''Cloning into '/home/plotter/chia-plotter/lib/BLAKE3'...''<br> | ||
''Cloning into '/home/plotter/chia-plotter/lib/bls-signatures'...''<br> | :''Cloning into '/home/plotter/chia-plotter/lib/bls-signatures'...''<br> | ||
''Cloning into '/home/plotter/chia-plotter/lib/libbech32'...''<br> | :''Cloning into '/home/plotter/chia-plotter/lib/libbech32'...''<br> | ||
''Submodule path 'lib/BLAKE3': checked out '037de38bfec4e813ab6189a50cb7c4cbae47268a'''<br> | :''Submodule path 'lib/BLAKE3': checked out '037de38bfec4e813ab6189a50cb7c4cbae47268a'''<br> | ||
''Submodule path 'lib/bls-signatures': checked out 'd9e42922e4a21fe8fc50733b93c16f582022621f'''<br> | :''Submodule path 'lib/bls-signatures': checked out 'd9e42922e4a21fe8fc50733b93c16f582022621f'''<br> | ||
''Submodule path 'lib/libbech32': checked out '954b14fe81602dde0cf5cb6d45208403160fb76c'''<br> | :''Submodule path 'lib/libbech32': checked out '954b14fe81602dde0cf5cb6d45208403160fb76c'''<br> | ||
''$ ./make_devel.sh</code>'' | :''$ ./make_devel.sh</code>'' | ||
This command will produce a lot of output while compiling. In the end, you should get a message indicating the compile was successful: | :This command will produce a lot of output while compiling. In the end, you should get a message indicating the compile was successful: | ||
''<code>[...]''<br> | :''<code>[...]''<br> | ||
''[ 99%] Built target bls''<br> | :''[ 99%] Built target bls''<br> | ||
''[100%] Built target chia_plot''</code>'' | :''[100%] Built target chia_plot''</code>'' | ||
Try to call the program and get the usage help information: | :Try to call the program and get the usage help information: | ||
''<code>$ ./build/chia_plot --help</code>'' | :''<code>$ ./build/chia_plot --help</code>'' | ||
If you can see the following line in the output, you have successfully built the chia-plotter version compatible with pool plots: | :If you can see the following line in the output, you have successfully built the chia-plotter version compatible with pool plots: | ||
''<code>-c, --contract arg Pool Contract Address (64 chars)</code>'' | :''<code>-c, --contract arg Pool Contract Address (64 chars)</code>'' | ||
*<big><big>'''Getting your keys and jumping in the pool'''</big></big> | *<big><big>'''Getting your keys and jumping in the pool'''</big></big> | ||
With the binary in place, it is time to check for the data required to create plots that fit your chia keys. | :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: | :To get those keys, execute the following commands: | ||
<code>''$ chia plotnft create -s local''</code> | :<code>''$ chia plotnft create -s local''</code> | ||
It can take a little while until the transaction is confirmed. Once it is, execute: | :It can take a little while until the transaction is confirmed. Once it is, execute: | ||
''<code>$ chia plotnft show</code>'' | :''<code>$ chia plotnft show</code>'' | ||
Revision as of 15:52, 14 July 2021
- 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
source: [Pool.Garden]