Friday, 10 November 2017

How to mine Monero on Linux CPU

How to create Monero wallet's public address

1. Go to https://mymonero.com/#/create-your-account

2. Enter private login key and save this in  key somewhere safe.


3. Once you logged in you will see your wallet address.





Mining Monero on Ubuntu 14 and above

Replace WALLET_ADDRESS with your own Monero wallet's public address. The "-t 2" option determines how many of your CPU threads will be used for mining.

1. sudo apt-get install git libcurl4-openssl-dev build-essential libjansson-dev autotools-dev automake

2. git clone https://github.com/hyc/cpuminer-multi cd cpuminer-multi

3. ./autogen.sh

4. CFLAGS="-march=native" ./configure

5. make

6. sudo ./minerd -a cryptonight -o stratum+tcp://pool.minexmr.com:4444 -u WALLET_ADDRESS -p x -t 2



Mining Monero on Fedora 24 and above

Replace WALLET_ADDRESS with your own Monero wallet's public address. The "-t 2" option determines how many of your CPU threads will be used for mining.


1. yum -y install git curl-devel libcurl glib-devel libtool 

2. git clone https://github.com/hyc/cpuminer-multi 

3. cd cpuminer-multi

4.  ./autogen.sh 

5. CFLAGS="-march=native" ./configure 

6. make 

7. sudo ./minerd -a cryptonight -o stratum+tcp://pool.minexmr.com:4444 -u WALLET_ADDRESS -p x -t 3


How to check mining status 


2. Enter your wallet address

Note : The minimum withdrawal  is 0.5XMR ( you can set here http://minexmr.com/)



Estimate Mining Profits

1KH/s = 0.02XMR/day

This is only an estimate, you may receive more or less than stated


Tuesday, 14 February 2017

SCP secure copy directly between linux machines

SCP : secure copy directly between linux servers. SCP runs on port 22 by default.

server1 = 192.168.0.10
server2 = 192.168.0.11


Syntax : scp -[options] username@server1:/path  /local_path

Options :

p = Speed of connection
r = Recursive
v = Verbose details
C = Compression
l = Bandwidth Limit (l -500)
p= Port

root@server2:/tmp# scp -pr root@server1:/root/test /tmp
test1                                         100%    0     0.0KB/s   00:00
test2                                         100%    0     0.0KB/s   00:00


Friday, 2 December 2016

Password less authentication in linux

Source : host A
Destination: host B


1. Run the below command for generating public and private key( host A)

ssh-keygen -t rsa

/home/username/id_rsa (private key)
/home/username/id_rsa.pub (public key)

2. ssh-copy-id -i  /home/username/id_rsa.pub host_B_ip_address



Alternate way:

* Copy the text inside id_rsa.pub file .

* Login into host B and go to /root/username/

and create new file "authorized_keys" and paste text copied from step 2.

*  Login into Host A to Host B password less.(ssh host B)


Simple:

Put public key(host A) to authorized_keys(host B)

Now Host A can login into host B without any password.