How to use the Raspberry Pi CPU to mine (test success)

Source: Internet
Author: User
Tags bz2 curl
1. Get Cgminer Source code

Currently the latest version is 2.4.1, readers can refer to Apt-get acceleration: Find the fastest apt source image link to get the latest version, or click the link below to download directly: cgminer-2.4.1.tar.bz2
You can then decompress:

$ TAR-XJF cgminer-2.4.1.tar.bz2
2. Install the dependency pack (curses, curl)

Make sure you have curses on your development computer, curl these two libraries, and if not, you need to install:

# apt-get Install build-essential Libncurses5-dev Libcurl4-openssl-dev

I Info:
The installation speed is too slow. Take a look at this article: Apt-get acceleration: Find the fastest apt source image 3. Configure Cgminer

The following two parameters must be included:

$./configure--enable-cpumining--disable-opencl
–enable-cpumining: Enable CPU mining –DISABLE-OPENCL: Disable OpenCL 4. Compiling Cgminer

Just make the build to complete:

$ make

If you are not confident, you can also check after compiling:

$ make Check

Check if it is correct.

{i} Other make directives: make clean: Clear compiled binaries (Binaries) and object files (objects) Make Distclean: Clear, clear include config file, make install: Installing the compiled executable to the system requires root permissions make uninstall: Uninstall from the system and require root privileges 5. Connection and Mining

We can connect through the CLI, which is more consistent with the requirements for running on the server

./cgminer--cpu-threads 3--url mine2.btcguild.com--userpass lesca_vm:xx--real-quiet &
–cpu-threads 3:lesca's experimental machine is quad-core, with 3 cores of the Last "ampersand" (&): Notify Bash to let Cgminer run in the background. 6.cgminer Binary Package

Lesca has made Ubuntu x86 's binary package available for everyone to try:
Click to download: cgminer-2.4.1-binary-x86.05241447.tgz
We always let Cgminer run in the background of the server:

./run.sh--real-quiet 2>/dev/null &
References:

Apt-get acceleration: Find the fastest apt source image cgminer GPU FPGA overclock monitor fanspeed GCN RPC linux/windows/osx 2.4.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.