DEVTOME.COM HOSTING COSTS HAVE BEGUN TO EXCEED 115$ MONTHLY. THE ADMINISTRATION IS NO LONGER ABLE TO HANDLE THE COST WITHOUT ASSISTANCE DUE TO THE RISING COST. THIS HAS BEEN OCCURRING FOR ALMOST A YEAR, BUT WE HAVE BEEN HANDLING IT FROM OUR OWN POCKETS. HOWEVER, WITH LITERALLY NO DONATIONS FOR THE PAST 2+ YEARS IT HAS DEPLETED THE BUDGET IN SHORT ORDER WITH THE INCREASE IN ACTIVITY ON THE SITE IN THE PAST 6 MONTHS. OUR CPU USAGE HAS BECOME TOO HIGH TO REMAIN ON A REASONABLE COSTING PLAN THAT WE COULD MAINTAIN. IF YOU WOULD LIKE TO SUPPORT THE DEVTOME PROJECT AND KEEP THE SITE UP/ALIVE PLEASE DONATE (EVEN IF ITS A SATOSHI) TO OUR DEVCOIN 1M4PCuMXvpWX6LHPkBEf3LJ2z1boZv4EQa OR OUR BTC WALLET 16eqEcqfw4zHUh2znvMcmRzGVwCn7CJLxR TO ALLOW US TO AFFORD THE HOSTING.

THE DEVCOIN AND DEVTOME PROJECTS ARE BOTH VERY IMPORTANT TO THE COMMUNITY. PLEASE CONTRIBUTE TO ITS FURTHER SUCCESS FOR ANOTHER 5 OR MORE YEARS!

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).
https://www.digitalocean.com/?refcode=505c51221da9
You can join with this other link too (without referal):
https://www.digitalocean.com
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!
server=1
rpcuser=NoobUserOverThere
rpcpassword=ThisIsAReallyStrongPasswordFTW
# OpenSSL settings used when rpcssl=1                                          
rpcsslciphers=TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH
rpcsslcertificatechainfile=server.cert
rpcsslprivatekeyfile=server.pem
# Set gen=1 to attempt to generate coins                                    
gen=1
# Allow direct connections for the 'pay via IP address' feature.               
allowreceivebyip=1

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:

wget https://github.com/Unthinkingbit/charity/zipball/master
sudo apt-get install unzip
unzip master

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

ls

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:

./devcoind

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
Aborted

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)
 

Advertise with Anonymous Ads