You can use cheap VPS services (EC2 or DigitalOcean) to mine CPU only altcoins. Here is a quick step-by-step guide how to mine those coins. This example is for DarkCoin [DRK] and DigitalOcean VPS servers.
- Create a DigitalOcean account. You can google for latest DigitalOcean promo codes to get rabates for first month.
- Create a “droplet” – this will be your VPS server. Recommended for CPU altcoins mining: 1 GB memory, 64-bit Debian 7.0
- Log in to your VPS “droplet” using putty (or any other ssh connection tool). Your server’s IP and root password will be included in an email from DigitalOcean.
- Download all needed libraries and build CPU coin miner from github source:sudo apt-get update
sudo apt-get install automake autoconf build-essential bc curl dos2unix fail2ban git havegedsudo apt-get install libboost-all-dev libcurl4-openssl-dev libdb++-dev libleveldb-dev libminiupnpc-dev libssl-dev m4 nano unzip vim -ygit clone https://github.com/ig0tik3d/xcoin-cpuminer
cd xcoin-cpuminer./autogen.sh
./configure CFLAGS=”-O2″
make
- Now your miner is ready. Type ./minerd -help for detailed list of available options.
- Start mining CPU altcoin (DarkCoin in this example):
screen
./minerd -a X11 -o pool_addres:pool_port -u your_user.worker -p x - Press CTRL-A and D to detach this screen. You will get back to previous console view. To check the current status of your miner type screen -r.
Find out more about Digital Ocean cheap VPS service. Use latest promo codes to get the best offer.
By NIkkus February 20, 2014 - 12:45
For me, in Digital Ocean, I get a lot of errors…
I was installed:
apt-get install build-essential gawk make automake
BUT after this I get a error in
“./configure CFLAGS=”-O2″”
This error:
root@DRK01:~/xcoin-cpuminer# ./configure CFLAGS=”-O2″
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether to enable maintainer-specific portions of Makefiles… no
checking for style of include used by make… GNU
checking for gcc… gcc
checking whether the C compiler works… no
configure: error: in `/root/xcoin-cpuminer’:
configure: error: C compiler cannot create executables
See `config.log’ for more details
the config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cpuminer configure 2.3.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure CFLAGS=”-O2″
## ——— ##
## Platform. ##
## ——— ##
hostname = DRK01
uname -m = x86_64
uname -r = 3.2.0-4-amd64
uname -s = Linux
uname -v = #1 SMP Debian 3.2.41-2+deb7u2
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
## ———– ##
## Core tests. ##
## ———– ##
configure:2318: checking build system type
configure:2332: result: x86_64-unknown-linux-gnu
configure:2352: checking host system type
configure:2365: result: x86_64-unknown-linux-gnu
configure:2385: checking target system type
configure:2398: result: x86_64-unknown-linux-gnu
configure:2442: checking for a BSD-compatible install
configure:2510: result: /usr/bin/install -c
configure:2521: checking whether build environment is sane
configure:2571: result: yes
configure:2712: checking for a thread-safe mkdir -p
configure:2751: result: /bin/mkdir -p
configure:2764: checking for gawk
configure:2780: found /usr/bin/gawk
configure:2791: result: gawk
configure:2802: checking whether make sets $(MAKE)
configure:2824: result: yes
configure:2908: checking whether to enable maintainer-specific portions of Make$
configure:2917: result: no
configure:2943: checking for style of include used by make
configure:2971: result: GNU
configure:3042: checking for gcc
configure:3058: found /usr/bin/gcc
configure:3069: result: gcc
configure:3298: checking for C compiler version
configure:3307: gcc –version >&5
gcc (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3318: $? = 0
configure:3307: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v –with-pkgversion=’Debian 4.7.2-5′ –with-$
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)
configure:3318: $? = 0
configure:3307: gcc -V >&5
gcc: error: unrecognized command line option ‘-V’
gcc: fatal error: no input files
compilation terminated.
configure:3318: $? = 4
configure:3307: gcc -qversion >&5
gcc: error: unrecognized command line option ‘-qversion’
gcc: fatal error: no input files
compilation terminated.
configure:3318: $? = 4
configure:3338: checking whether the C compiler works
configure:3360: gcc ”-O2″ conftest.c >&5
gcc: error: ”-O2″: No such file or directory
configure:3364: $? = 1
configure:3402: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME “cpuminer”
| #define PACKAGE_TARNAME “cpuminer”
| #define PACKAGE_VERSION “2.3.2”
| #define PACKAGE_STRING “cpuminer 2.3.2”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| #define PACKAGE “cpuminer”
| #define VERSION “2.3.2”
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3407: error: in `/root/xcoin-cpuminer’:
configure:3409: error: C compiler cannot create executables
See `config.log’ for more details
## —————- ##
## Cache variables. ##
## —————- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=”-O2″
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_path_install=’/usr/bin/install -c’
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=x86_64-unknown-linux-gnu
## —————– ##
## Output variables. ##
## —————– ##
ACLOCAL=’${SHELL} /root/xcoin-cpuminer/missing –run aclocal-1.11′
ALLOCA=”
AMDEPBACKSLASH=’\’
AMDEP_FALSE=’#’
AMDEP_TRUE=”
AMTAR=’$${TAR-tar}’
ARCH_x86_64_FALSE=”
ARCH_x86_64_TRUE=”
ARCH_x86_FALSE=”
ARCH_x86_TRUE=”
AUTOCONF=’${SHELL} /root/xcoin-cpuminer/missing –run autoconf’
AUTOHEADER=’${SHELL} /root/xcoin-cpuminer/missing –run autoheader’
AUTOMAKE=’${SHELL} /root/xcoin-cpuminer/missing –run automake-1.11′
AWK=’gawk’
CC=’gcc’
CCAS=”
CCASDEPMODE=”
CCASFLAGS=”
CCDEPMODE=”
CFLAGS=’”-O2″’
CPP=”
CPPFLAGS=”
CYGPATH_W=’echo’
DEFS=”
DEPDIR=’.deps’
ECHO_C=”
ECHO_N=’-n’
ECHO_T=”
EGREP=”
EXEEXT=”
GREP=”
HAVE_WINDOWS_FALSE=”
HAVE_WINDOWS_TRUE=”
INSTALL_DATA=’${INSTALL} -m 644′
INSTALL_PROGRAM=’${INSTALL}’
INSTALL_SCRIPT=’${INSTALL}’
INSTALL_STRIP_PROGRAM=’$(install_sh) -c -s’
JANSSON_LIBS=”
LDFLAGS=”
LIBCURL=”
LIBCURL_CPPFLAGS=”
LIBOBJS=”
LIBS=”
LTLIBOBJS=”
MAINT=’#’
MAINTAINER_MODE_FALSE=”
MAINTAINER_MODE_TRUE=’#’
MAKEINFO=’${SHELL} /root/xcoin-cpuminer/missing –run makeinfo’
MKDIR_P=’/bin/mkdir -p’
OBJEXT=”
PACKAGE=’cpuminer’
PACKAGE_BUGREPORT=”
PACKAGE_NAME=’cpuminer’
PACKAGE_STRING=’cpuminer 2.3.2′
PACKAGE_TARNAME=’cpuminer’
PACKAGE_URL=”
PACKAGE_VERSION=’2.3.2′
PATH_SEPARATOR=’:’
PTHREAD_FLAGS=”
PTHREAD_LIBS=”
RANLIB=”
SET_MAKE=”
SHELL=’/bin/bash’
STRIP=”
VERSION=’2.3.2′
WANT_JANSSON_FALSE=”
WANT_JANSSON_TRUE=”
WS2_LIBS=”
_libcurl_config=”
ac_ct_CC=’gcc’
am__EXEEXT_FALSE=”
am__EXEEXT_TRUE=”
am__fastdepCCAS_FALSE=”
am__fastdepCCAS_TRUE=”
am__fastdepCC_FALSE=”
am__fastdepCC_TRUE=”
am__include=’include’
am__isrc=”
am__leading_dot=’.’
am__nodep=’_no’
am__quote=”
am__tar=’$${TAR-tar} chof – “$$tardir”‘
am__untar=’$${TAR-tar} xf -‘
bindir=’${exec_prefix}/bin’
build=’x86_64-unknown-linux-gnu’
build_alias=”
build_cpu=’x86_64′
build_os=’linux-gnu’
build_vendor=’unknown’
datadir=’${datarootdir}’
datarootdir=’${prefix}/share’
docdir=’${datarootdir}/doc/${PACKAGE_TARNAME}’
dvidir=’${docdir}’
exec_prefix=’NONE’
host=’x86_64-unknown-linux-gnu’
host_alias=”
host_cpu=’x86_64′
host_os=’linux-gnu’
host_vendor=’unknown’
htmldir=’${docdir}’
includedir=’${prefix}/include’
infodir=’${datarootdir}/info’
install_sh=’${SHELL} /root/xcoin-cpuminer/install-sh’
libdir=’${exec_prefix}/lib’
libexecdir=’${exec_prefix}/libexec’
localedir=’${datarootdir}/locale’
localstatedir=’${prefix}/var’
mandir=’${datarootdir}/man’
mkdir_p=’/bin/mkdir -p’
oldincludedir=’/usr/include’
pdfdir=’${docdir}’
prefix=’NONE’
program_transform_name=’s,x,x,’
psdir=’${docdir}’
sbindir=’${exec_prefix}/sbin’
sharedstatedir=’${prefix}/com’
sysconfdir=’${prefix}/etc’
target=’x86_64-unknown-linux-gnu’
target_alias=”
target_cpu=’x86_64′
target_os=’linux-gnu’
target_vendor=’unknown’
## ———– ##
## confdefs.h. ##
## ———– ##
/* confdefs.h */
#define PACKAGE_NAME “cpuminer”
#define PACKAGE_TARNAME “cpuminer”
#define PACKAGE_VERSION “2.3.2”
#define PACKAGE_STRING “cpuminer 2.3.2”
#define PACKAGE_BUGREPORT “”
#define PACKAGE_URL “”
#define PACKAGE “cpuminer”
#define VERSION “2.3.2”
configure: exit 77
Any idea??
By NIkkus February 20, 2014 - 12:54
Ah! And.. We need do it:
cd xcoin-cpuminer
chomd +x autogen.sh
By Jeff February 21, 2014 - 11:58
Anyone else having this problem could also try changing “./configure CFLAGS=”-O2″” to “./configure”
By Benjamin May 2, 2014 - 17:59
I’m getting stuck at this
cd xcoin-cpuminer./autogen.sh
When I go to the directory /xcoin-cpuminer, I can’t activate autogen.sh — am I missing a command?