What Do I Need?
- A Dedicated or VPS Linux Server
- Ubuntu
- Any USB ASIC
What is CGMiner?
CGMiner is an open-source ASIC/fpga Bitcoin miner developed for a massive range of platforms, including Windows, Linux, and OS/X. It comprises sophisticated algorithms that are developed with C programming language to utilize the maximum hardware performance to yield a profitable amount of Bitcoin with relative ease; dependent on machine performance, of course. CGMiner doesn’t currently support GPU as it’s no longer able to compensate for the power and the time consumed to mine Bitcoins, thus ASIC has to be used.
- Install CGMiner
- Update your operating system:
sudo apt-get upgrade && apt-get update sudo apt-get install autoconf gcc make git libcurl4-openssl-dev libncurses5-dev libtool libjansson-dev libudev-dev libusb-1.0-0-dev
cd /usr/src/ sudo git clone https://github.com/ckolivas/cgminer.git
cd cgminer ./autogen.sh
- Create a New Wallet
- There are literally, not figuratively, literally masses of different types of wallets available for storing Bitcoins. For this how-to guide, we’re going lightweight, so we’re going to be installing ‘Electrum’.
- Use the following commands to install both QT and Electrum on your server:
sudo apt-get install python3-pyqt5 libsecp256k1-0 python3-cryptography
sudo wget
https://download.electrum.org/4.0.9/Electrum-4.0.9.tar.gz
sudo apt-get install python3-setuptools python3-pip
sudo python3 -m pip install --user Electrum-4.0.9.tar.gz
- After ‘Electrum’ is installed you can run it from your ‘Applications’.
- Click ‘Next’.
- Take a copy or a photograph of your wallet generation seed. Keep it secret, keep it safe; you’re going to need this.
- Click ‘Next’ and you’ll be asked to retype your newly created seed into the text box. After having done so, click ‘Next’ again.
- Create a password for yourself and click ‘Next’.
- Click ‘Next’.
- Creation will finish and the application will close. Reopen the application and you’ll see your new wallet.
- Join a Mining Pool
- Nowadays, it’s not profitable to mine Bitcoin alone on a single machine due to the costs involved; hence the pool concept was invented for making it efficient and fast. A pool is a collection of miners who work together to mine coins, and then share the production when the block is found. The fee is paid to the miners who find the blocks. Usually, the payout is available immediately, but it largely depends on the service provider.
- Visit http://mmpool.org/register
- Create a username and paste your public bitcoin address into the bitcoin textbox.
- Return to ‘Terminal’ on your server:
cd /usr/src/cgminer
- Connect or plug in your USB ‘ASICMiner Block Erupter’ key into the server. The one pictured below was ordered from Amazon and costs between $120 and $200.
- Use the following command to get started mining:
sudo ./cgminer -o stratum+tcp://mmpool.org:3333 -u YOURUSERNAME -p PASSWORD
- And now, you’re mining Bitcoin. The speed is largely determined by the hash rate per second which is usually indicated with Mh/s, meaning ‘mega hash per second’.
- To check the progress of your new, and most probably not particularly profitable, mining operation, visit http://mmpool.org/members to confirm the presence of your wallet address.
Next Steps
Look out for the next in-coming how-to guide about how to mine using your GPU, which, given how many of us have gaming personal computers, could prove to be a super useful way of utilizing your systems when you’re not using them for anything else.
Conclusion
Personally, I recommend looking into alternatives for your money making enterprises. Unless you’re looking at this for research and development, there’s little-to-no profit to be made from single node mining operations anymore.
- Check the recommendations for the best VPS and get a suitable one.