How to create a Devcoin node in a VPS for Noobs

First of all, I'm not an IT expert but I'm very interested in setup a Devcoin node, sadly my home computer isn't powerful enough to host a node 24/7 and I use it for many other things, a few days ago I learned about VPS (Virtual Private Server), you can find them a cheap price around the web, in this example I'm using the Digital Ocean ones (They allow this type of usage, If you use another VPS you must read the TOS very careful).

Maybe you're wondering why it's a good idea having a Devcoin node online, there's a lot of good reasons behind it, I'll list a few:

  • Helps to keep the Devcoin network fast and secure
  • You can learn a bit more about VPS, Linux, Console commands and the insides of Cryptocurrencies, not only Devcoin

Setup the VPS

First of all, we'll need to setup a new account in Digital Ocean, you can do with the following link: (It have my referal code, If you join with it, I'll be rewarded with credits to keep the virtual machine with a Devcoin node ongoing).
You can join with this other link too (without referal):
Before you join, it's recommended look on Google for a Promo Code, you can receive up to $10 for doing that, when you get a code, then you can join the page, I suggest add $10 (This will be enough to keep running the VPS for at least 2 months).

When you have enough credits, you can have your own VPS, in Digital Ocean are called “Droplets”, the first thing yo must do is press the “Create” button and then the “Create Droplet” option, you can see them in the following image:

The second thing you must do is select the basic characteristics of the Virtual Server, I suggest choose the first option because we don't need more power or space to host a node, also is the cheapest one (Only $5 per month).

You'll be asked to select a location, for the VPS setup the location don't matter.

The version of OS you must choose is “Ubuntu 12.04.3 x64”, I suggest use this one because it's the more easy to use (Almost for me) and because this post is based on this version.

For this post isn't required but is desirable you setup LAMP before you create the Droplet (It will configure alone a powerful web server)

Finally, you must press the “Create Droplet Button” and wait a few minutes.

To login to your console, you can do it using SSH or the Noob way, selecting your newly created VPS and selecting Access and pressing “console access”.

When the page makes the connection, you can see a black screen, you must click it and press any button (In the screenshot I'm mining, pretty worthless doing that, but may be a residual use of the VPS).

Now we're ready to install the node!

Installation and configuration of devcoind

First of all, you must follow this guide up to the make step, no more, no less.
Then, you must edit the config file, to do it you can use “vi” (The most crappy and complex text editor in the humanity story) or Emacs (One of the most ugly text editors in the world, but at least is intuitive), to install Emacs, you must type:

apt-get install emacs

To edit the config file, you must type:

emacs /root/.devcoin/devcoin.conf

You can add the following lines to the config file if you haven't idea what are you doing (You must change the user and password):

#Noob config file for devcoind, should be enough!
# OpenSSL settings used when rpcssl=1                                          
# Set gen=1 to attempt to generate coins                                    
# Allow direct connections for the 'pay via IP address' feature.               

Obviously you can use better examples using the Bitcoin setup, but this setup should be enough.
To save the changes and exit emacs, you must press the following sequence:
Ctrl-x Ctrl-c
You'll be asked to save the archive, you must say yes, then you'll return to the console.
Now, You must locate the console in the src directory:

cd ./devcoin/src

Now, We'll download the receiver files, but instead of doing it one by one, we'll download all of them with the following commands:

sudo apt-get install unzip
unzip master

In this step, you must see the directory was created, to do it, you must type:


The name of the directory may be similar to: Unthinkingbit-charity-e4722cb, you must use it in the following sentence:

mv Unthinkingbit-charity-e4722cb receiver

With this last step, you'll be able to run the node, to do it, you must type:


NOTE: is ok if you do the configuration using SSH, but I strongly recommend run ./devcoind in the Digital Ocean console, that's because if you don't do it this way, you must configure the node to run as service (A difficult and painful task).

Expected errors

Maybe you'll be facing the next error while you setup your node:

terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid

If it's your case, you must type the following code:

export LC_ALL="en_US.UTF-8"

Testing the node

To test the node, you must use an SSH session and type:

./devcoind getinfo

If everything is Ok, you should obtain something like this:

    "version" : 32501,
    "balance" : 0.05000000,
    "blocks" : 124444,
    "connections" : 125,
    "proxy" : "",
    "generate" : true,
    "genproclimit" : -1,
    "difficulty" : 1515230224.55391598,
    "hashespersec" : 328227,
    "testnet" : false,
    "keypoololdest" : 1391363979,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "errors" : ""

Computing | How_To | Devcoin

QR Code
QR Code how_to_create_a_devcoin_node_in_a_vps_for_noobs (generated for current page)