Thursday, December 7, 2017

CentOS: Installing cpulimit

Command:

# yum install cpulimit


Result:

Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.tsukuba.wide.ad.jp
 * epel: mirror.dmmlabs.jp
 * extras: ftp.tsukuba.wide.ad.jp
 * updates: ftp.tsukuba.wide.ad.jp
Resolving Dependencies
--> Running transaction check
---> Package cpulimit.x86_64 1:0.2-1.20151118gitf4d2682.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
 Package              Arch               Version                                       Repository        Size
==============================================================================================================
Installing:
 cpulimit             x86_64             1:0.2-1.20151118gitf4d2682.el6                epel              14 k

Transaction Summary
==============================================================================================================
Install       1 Package(s)

Total download size: 14 k
Installed size: 23 k
Is this ok [y/N]: y
Downloading Packages:
cpulimit-0.2-1.20151118gitf4d2682.el6.x86_64.rpm                                       |  14 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:cpulimit-0.2-1.20151118gitf4d2682.el6.x86_64                                             1/1
  Verifying  : 1:cpulimit-0.2-1.20151118gitf4d2682.el6.x86_64                                             1/1

Installed:
  cpulimit.x86_64 1:0.2-1.20151118gitf4d2682.el6                                                            

Complete!

CentOS: Cpu Mining: BitZeny

Command:

$ cat bitzeny.json


Result:

{
"url": "stratum+tcp://mining-zeny.mdpool.info:6969",
"user": "user.worker",
"pass": "password",

"algo" : "yescrypt",
"threads" : "4",

"quiet" : true
}


Command:

./cpuminer --config bitzeny.json




CentOS: Installing Cpu Miner

Command:

$sudo yum -y groupinstall "Development Tools"
$ sudo yum -y install git libcurl-devel python-devel screen rsync
$ git clone https://github.com/bitzeny/cpuminer.git cpuminer
$ cd cpuminer/
$ ./autogen.sh
$ ./configure CFLAGS="-O3"
$ make

CentOS: CPUMiner: Fixing libjansson error

Error message:

./minerd: error while loading shared libraries: libjansson.so.4: cannot open shared object file: No such file or directory


Command:

ln -s /usr/local/lib/libjansson.so.4 /usr/lib/libjansson.so.4
ldconfig

CentOS: Finding CPU Info of VPS

# more /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
stepping : 11
microcode : 1
cpu MHz : 2593.748
cache size : 4096 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscal
l nx lm constant_tsc arch_perfmon rep_good unfair_spinlock pni ssse3 cx16 hypervisor lahf_lm
bogomips : 5187.49
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
stepping : 11
microcode : 1
cpu MHz : 2593.748
cache size : 4096 KB
physical id : 1
siblings : 1
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscal
l nx lm constant_tsc arch_perfmon rep_good unfair_spinlock pni ssse3 cx16 hypervisor lahf_lm
bogomips : 5187.49
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

Saturday, December 2, 2017