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.
- System Update and Upgrade: Updates the package list and upgrades all installed packages to their latest versions.
- Install Dependencies: Installs essential packages, including:
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.
- Install Rust: Installs the Rust programming language and its package manager, Cargo.
- Install Solana CLI: Installs the Solana command-line tools.
- Install Coal CLI: Installs the
coal-cli
mining tool from the GitHub repository. - Start Mining: Runs the
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
- RUN COAL mine
coal mine
- Use `--rpc URL `` to add the custom RPC
- Use
--keypair /path/to/keypair.json
to use own keypair - Use
--cores 93
cores command to allocate how many cores you wana allocate for Mining - Use
--priority-fee
to set the pfee - Add buffer time if needed
--buffer-time
in seconds ~
Use coal claim --keypair /path/to/keypair.json --rpc url --priority-fee 20000
Use coal rewards
Use coal balance