This script automates the setup of a development environment on a Debian-based Linux system, installs the necessary dependencies, and runs a Solana-based COAL mining CLI.
pkg-config
: Helps compile and link packages.libssl-dev
: Contains development libraries, header files, and manpages for SSL.build-essential
: A meta-package that installs the GNU compiler, Make, and other essential tools.curl
: Command-line tool for transferring data with URLs.nano
: A simple command-line text editor.screen
: Terminal multiplexer that allows you to manage multiple terminal sessions.htop
: An interactive process viewer for Unix systems.coal-cli
mining tool from the GitHub repository.coal mine
command to start the mining process.Clone or download this repository.
Make the script executable (if it’s not already):
chmod +x setup-and-mine.sh
Run the script:
./install.sh
The script will perform all the tasks mentioned above. After completion, mining will start automatically.
coal mine --rpc url --keypair /path/to/keypair.json --cores 93 --priority-fee 20000 --buffer-time 1
coal mine
--keypair /path/to/keypair.json
to use own keypair--cores 93
cores command to allocate how many cores you wana allocate for Mining--priority-fee
to set the pfee--buffer-time
in seconds ~Use coal claim --keypair /path/to/keypair.json --rpc url --priority-fee 20000
Use coal rewards
Use coal balance