How to Mine Doge Coins on Digital Ocean VPS

Tuesday, August 2nd 2016. | how to

#howto ,#tutorial #VPS – How to Mine Doge Coins on Digital Ocean VPS – This tutorial explains step by step guide (with pics) about How to Mine Doge Coins on Digital Ocean VPS

Just trying to share something new and something hot but not related to how can we setup a VPS to host websites but for other purpose which in this case is how to use the VPS for mining cryptocurrency.

Been quite a hot trend recently, DOGE coin, a new cryptocurrency based on Shiba Inus aka Shibe, a popular meme character, it is now a thing. Some old cryptocurrency miners say Bitcoin is so 2013 while Dogecoin is so 2014. Can’t believe in? Try Googling “dogecoin” and you’ll see hundreds news, blogs and forums talking about it. Even someone who never know how it feels to mine Bitcoin, starts to mine Dogecoin using only a PC or Netbook.

Enough talking about what it is and how popular it is, you can simply ask Google for that or visit official Dogecoin website directly. In this page I’ll explain you how to setup your VPS to use its CPU power (computing power) to mine the new but so popular digital currency, Dogecoin.

For your information, not all VPS providers are allowing to use their service to mine cryptocurrency, so please read their ToS or ask their representatives directly. In this tutorial I’m using a cloud vps from Digital Ocean (droplet). Been read through their ToS and AUP there is no explicit statement whether they allow digital coin mining or not but (*) many people say they can use it to mine Dogecoin.

* per the time this article is posted.

A. Prerequisite

What you’ll need:

1. Dogecoin wallet

You can either use local wallet (grab it here) on Windows or Mac. Online wallet is also available too using either DogeVault.

2. Dogecoin address

You can view your Dogecoin address in your wallet at “Much Receive” section.

3. Choose a mIning pool

There are several (many) Doge mining pools you can choose. You can see complete list of it at here or here. Note: If you are using online wallet like DogeVault, do not use P2Pool, use MPOS instead.

Need recommendation? If you are a part-time miner or a newbie, use doge.net2pools.com because they charge only 1% fee with no minimum payout, their server is rocksolid and has great uptime. Also, Net2Pools’ Doge pool is a PPS model not PPLNS which is very suitable for newbie miner with small kHash/s (usually those who are mining with CPu not GPU). But however you can choose any mining pool you want.

4. Register at a pool

Picked a pool already? Then now register for an account there. In this example I use doge.netcodepool.org (PPLNS – official thread) as an example – I still prefer Net2Pools but I already have an account there.

Step 1 – Visit your favorite pool website and click on “Signup”.

signup

or visit this page:

https://your.chosenpool.url/index.php?page=register

Step 2 – Now fill in all necessary fields in the signup form:

pool-register

Once done, hit the “Register” button.

Step 3 – Next, login to your pool using username and password you’ve just created.

pool login

Once logged in, you’ll be in pool dashboard page (something like this):

pool-dashboard

Step 4 – First thing, you better enter your Dogecoin address before starting to mine it. Click on the “Edit Account” link under “My Account” menu section.

my account

Step 5 – Now enter your Doge address in “Payment Address” field:

payment address

You may also have to re-enter the 4 digit PIN you chose when registering. Next simply hit the “Update Account” button.

Step 6 – Now lets create your first worker. Click on the “My Workers”.

worker

Step 7 – Initially you’ll see an error message saying “You have no workers configured” but don’t worry that’s just fine. Now add one. Give your new worker a name and password. This is not an account password so I suggest you to use simple combination. In this example I use 1 as username and x as password.

add pool worker

Now just hit the “Add New Worker” button.

B. VPS Setup for Mining

1. Build a VPS box

This step can be so vary and depending on which provider you use but make sure to use Debian 7.0 x64 as the OS. In Digital Ocean, you can build a new droplet as following:

Step 1 – Sign up / Login to Digital Ocean member area. If you have no account yet, go ahead signup to DO via this link and use SSDCHP20 as coupon to get free $20 credit. That’s the best I can find. Expired? Check RetailMeNot for more coupons.

Step 2 – Now create a droplet.

create droplet

Step 3 – In the next page, give your new droplet a hostname first. Example: host.servermom.org. Shortly saying, a hostname should be a sub-domain so put it like server.domain.tld or host.domain.tld or something your mind makes up.

create droplet

Step 4 – Now move to “Select Size” section. In this part you can choose how powerful your droplet will be. Please refer to your available credit balance because the higher specs a droplet has it, the more expensive it is. But remember, the more CPU numbers you have the more powerful your virtual mining machine is. So, select the one you wish,

select droplet

Step 5 – Next, select the datacenter location of where your droplet (vps) will be provisioned to.

select region

Step 6 – Next, you have to select OS Image. Now click on the Debian logo to reveal available image versions.

select debian

Step 7 – Now select Debian 7.0 x64 OS.

select debian 7

Step 8 – You can simply leave the “Settings” section as it is. Finally click the “Create Droplet” button.

create droplet

Wait till the droplet is created which is in no time..

do creating droplet

Once done, you’ll be redirected to your droplet control panel:

droplet control panel

Step 9 – Now check your mailbox to grab the root password so you can login via SSH.

2. Configuring VPS for Dogecoin Mining

So your VPS is built and now you are going to install CPU miner app on that VPS. Follow these steps:

Step 1 – Open your favorite SSH client. In Linux and Mac you can simply use Terminal and issue following command:

ssh root@123.123.123.123

While in Windows PC you can use Putty. Don’t know Putty and never used it before, read my previous guide on how to use Putty.

Step 2 – Now login to your server via SSH as root using given password in your email.

ssh login

Step 3 – Next, issue these command syntax below one by one. Hit Enter per line:

sudo apt-get update
sudo apt-get install yasm -y git make g++ build-essential libminiupnpc-dev
sudo apt-get install -y libboost-all-dev libdb++-dev libgmp-dev libssl-dev dos2unix
sudo apt-get install build-essential libcurl4-openssl-dev

Pic 1:

aptget update

Pic 2:

sudo install

Pic 3 (this a quite bit long, so wait for it):

sudo install

Pic 4:

install

Step 4 – Now the vps is really ready to run the miner tool. Next, download the miner tool to your server. It is CPUMiner. In this example I use CPU Miner v2.3.2. The command is:

wget http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.3.2.tar.gz

pic:

download cpuminer

Step 5 – Once the download process is done, now extract the package using this command:

tar xzf pooler-cpuminer-2.3.2.tar.gz

pic:

extract cpuminer

Step 6 – Now go to the CPU Miner directory using cd command:

cd cpuminer-2.3.2

Step 7 – Now issue this command to configure the tool before using it

./configure CFLAGS="-O3"

pic:

configure cpuminer

Step 8 – Finally, issue the make command to build it.

make

pic:

cpu miner

That’s it. So now you built your VPS and installed CPU Miner. What’s next?

3. The Dogecoin Mining Task

Step 1 – Go back to your browser and to the pool website. Find out a link to “Getting Started” section.

pool

Step 2 – In that page, find out the Stratum URL and port.

pool url

p.s: If you can’t find that page and information, ask directly to the pool owner or you can find out in their official thread in most of cryptocurrency forum.

Step 3 – Finally, issue this command to run the CPU Miner:

./minerd --url=stratum+tcp://doge.poolurl.com:port --userpass=WebLogin.YourWorker:Password

Replace:

  1. doge.poolurl:port (ie: doge.netcodepool.org:4093)
  2. WebLogin : it is your username to login to pool
  3. YourWorker : It is your worker Name / ID
  4. Password: it is your worker password

Example of my command:

./minerd --url=stratum+tcp://doge.netcodepool.org:4093 --userpass=servermom.1:x

Step 4 – That’s it. Now your VPS starts to mine Dogecoin. You can also add –background/-B option in the command above so your CPU Miner can run in the background. Close putty and leave it mining Doge coins for you.

mining doge

In the mean time, you can do anything else or view your Pool dashboard to see your mining statistic including your hash rates and the coins you’ve got.

The screenshot pic above only shows “thread 0” with about 2 – 3 khash/second because I picked a 512MB droplet with 1 CPU. Of course you can get more Kilo Hash power by choosing higher droplet specs. Digital Ocean provides up to 24 CPUs. Just click the arrow button in the “Select Size” section when creating your droplet.

droplet size

To gain more hash rate, you can simply repeat steps above to create more mining machines (droplet). You can create 2 x 20 CPUs to gain about 500khash/s which is more Doges coming in your wallet.

Verdict

Using virtual private server is probably another method to build a mining rig. In this tutorial I explained step by step already. Please remember, discussing about “is it really profitable or not” is not the scope of this tutorial as for me, mining a cryptocurrency is fun whether it is profitable or not that depends on the time you are doing it. It is a currency after all that has dynamic exchange rates.

So, have some Doge coins already? Why don’t you try to send it to the address below. Considering a little donation for me 😉 even a couple of coins is fine.

## my doge wallet address is below ##
DGKTWTcawbSrEHcKtTduV9CPybdbgyjHW6

Enjoy..

This post How to Mine Doge Coins on Digital Ocean VPS is part of ServerMom.

Source link