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