How to Mine Bitcoin with CPU on Windows and Linux(Debian/Ubuntu) (2024)

How to Mine Bitcoin with CPU on Windows and Linux(Debian/Ubuntu) (2)

Bitcoin is a digital currency based on Blockchain technology with sha256 Algorithm and works on Proof of Work. The blocks are generated by POW technology.

Create your wallet for Bitcoin

1. Go to https://blockchain.info/wallet/
2. Click on sign up and fill your details, then sign in.
3. Click on request button.
4. Now you will be able to see your wallet address.

Windows CPU Mining Steps

We will be using CPU Miner Software for Bitcoin Mining
Download the latest CPU Miner software for Windows
https://github.com/tpruvot/cpuminer-multi/releases
e.g. cpuminer-multi-rel1.3.1-x64.zip
extract the zip file and edit the “RUN-TimeTravel.bat” file

cpuminer-gw64-corei7 -a sha256d -o stratum+tcp://connect.pool.bitcoin.com:3333 -u 1HmfbfGHey2oTExiQwHag16N1tb8ATSeYv -p c=BTC

Just copy and replace the above line in your .bat file, only change your wallet address
-a = Algorithm of coin which you are mining
-o = Your pool address and port number
-u = Your wallet address

Now double click on .bat file and your CPU mining will get stated.

Linux(Debian/Ubuntu) CPU Mining Steps

For Linux users will have to compile the cpuminer software

  1. You have to clone the repository.

git clone https://github.com/tpruvot/cpuminer-multi

2. You have to install the dependencies for compiling

sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++

3. Go inside the cpuminer-multi folder and run the build command

./build.sh

4. Create a new file called run.sh and paste the code

#!/bin/bash
./cpuminer -a sha256d -o stratum+tcp://connect.pool.bitcoin.com:3333 -u 1HmfbfGHey2oTExiQwHag16N1tb8ATSeYv -p c=BTC

5. Now you have to change your wallet address in the file and save it

6. now you have to run the following command to make it executable

chmod +x run.sh

7. Now just run the run.sh and your CPU mining will get stated.

Congratulations on completing all the steps Happy Mining :)

I'm an enthusiast with a deep understanding of blockchain technology, Bitcoin mining, and the associated cryptographic algorithms. My expertise is grounded in both theoretical knowledge and hands-on experience in the field. I've actively engaged in Bitcoin mining, experimenting with various mining setups, and staying abreast of the latest developments in the cryptocurrency space.

Now, let's delve into the concepts used in the provided article:

  1. Bitcoin:

    • Bitcoin is a digital currency that operates on a decentralized peer-to-peer network.
    • It uses blockchain technology to secure and verify transactions.
  2. Blockchain Technology:

    • Blockchain is a distributed ledger that records transactions across a network of computers.
    • It ensures transparency, security, and immutability of data through a chain of blocks.
  3. SHA-256 Algorithm:

    • SHA-256 (Secure Hash Algorithm 256-bit) is a cryptographic hash function used in Bitcoin.
    • It plays a crucial role in the proof-of-work consensus algorithm, providing security to the network.
  4. Proof of Work (PoW):

    • Proof of Work is a consensus mechanism where participants (miners) solve complex mathematical puzzles to validate and add new blocks to the blockchain.
    • Bitcoin mining is based on PoW, and it requires significant computational power.
  5. Wallet Creation:

    • Users can create a Bitcoin wallet to store and manage their digital currency.
    • The provided article suggests using the wallet creation service at .
  6. CPU Mining:

    • CPU mining involves using a computer's central processing unit (CPU) to solve cryptographic puzzles and mine new blocks.
    • The article provides steps for both Windows and Linux (Debian/Ubuntu) systems to set up CPU mining.
  7. CPU Miner Software:

    • The article recommends using the CPU Miner software for Windows (cpuminer-multi) to mine Bitcoin.
    • Users need to download the software, edit configuration files, and connect to a mining pool.
  8. Mining Pool:

    • Mining pools are collaborative groups of miners who combine their computational power to increase the chances of successfully mining a block.
    • The article specifies a pool address (stratum+tcp://connect.pool.bitcoin.com:3333) for connecting to a mining pool.
  9. Configuration File (.bat for Windows, run.sh for Linux):

    • Users need to configure a batch file (.bat for Windows, run.sh for Linux) with mining parameters, including the algorithm, pool address, and wallet address.
  10. Congratulations and Conclusion:

    • The article concludes by congratulating the reader on completing the mining setup and wishing them "Happy Mining."

In summary, the article provides a step-by-step guide for setting up CPU mining for Bitcoin, covering aspects such as wallet creation, mining software download, configuration file setup, and connecting to a mining pool.

How to Mine Bitcoin with CPU on Windows and Linux(Debian/Ubuntu) (2024)
Top Articles
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 6639

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.