🐧Mining on Linux

script was made for Docker but can be used for Geth *USE sudo everytime you call docker command*

Pre-requisites

Pre-Requisites :

Ensure TCP Port 30303 is Open

Sudo ufw enable

sudo ufw allow from any to any port 30303 proto tcp

sudo ufw allow from any to any port 30303 proto udp

sudo apt-get update
sudo apt-get install -y
ca-certificates
curl
gnupg
lsb-release
sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo groupadd docker 

Variable Declaration :

Please alter this value of "xxxxxxxxxxx"

Initialize the blockchain

Create new folder as working directory

Create new genesis.json file

Create new mining wallet

Display the value of $MINING_WALLET_ADDRESS in Linux terminal

Check Mining Wallet Balance

please replace xxxxxxxxxxxxxxxx string with your mining wallet.

Last updated

Was this helpful?