How to use Linux server as Bitcoin miner

This post shows Linux system administrator one way of how bitcoin miner works on a Linux box, and intends to help sysadmin to detect abnormal processes that running on your servers.

The common bitcoin miner is cgminer, and the latest verion can be found from its official webpage:

The installation procedures on an Ubuntu/Debian system is like this,

apt-get install bzip2
apt-get install libcurl3 libcurl3-dev
apt-get install libncurses5-dev
apt-get install opencl #### Video card driver is needed
cd /tmp
tar jxvf cgminer-4.4.0.tar.bz2
cd cgminer-4.4.0
./configure --prefix=/usr/local/cgminer --enable-opencl --enable-maintainer-mode --enable-scrypt --enable-cpumining
make && make check && make install
ln -s /usr/local/cgminer/bin/cgminer /usr/bin
mkdir /usr/local/cgminer/etc
cp example.conf /usr/local/cgminer/etc/cgminer.conf

Then you need to edit the config file /usr/local/cgminer/etc/cgminer.conf, refer to for details.

To start the miner instance, run

cgminer -o -u test123_0 -p test123456

the is pool name, and followed by user account details in that pool. There are many other Bitcoin miners available in Linux, and work in similar ways.

Share this post

Post Comment