π§Mining on Linux
script was made for Docker but can be used for Geth *USE sudo everytime you call docker command*
Pre-requisites
sudo apt-get updatesudo apt-get install -y
ca-certificates
curl
gnupg
lsb-releasesudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgecho
"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/nullsudo apt-get update sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-pluginsudo 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?