Hi everyone, thought I would share this guide with you, it will also work with near any cryptocurrency as long as you install the correct dependancies and addnodes.
Sign up to https://www.digitalocean.com/ create a droplet and select the size and give it a hostname. The $5 plan will work just fine for a node for our use, alternatively if you would like to pay for hosting using BTC then https://bithost.io is a great option as well, if choosing Bithost.io then you must also top up your account before proceeding.
When creating a droplet, I chose Ubuntu 12.04.5 x32
Download the Putty toolset to create your SSH public/private keys along with passwords to encrypt the keys.
Putty.exe lets you connect to your node remotely through SSH private keys and can download it from http://tartarus.org/~simon/putty-snapshots/x86/putty.zip or visit their main download page at http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Open PUTTYGEN.exe and create your SSH-2 RSA 2048 bit keys, create your password and save the public and private keys but keep PUTTYGEN open while we create our server. Do not lose your SSH keys, you will not be able to access your node without them.
In Control panel, now that we are topped up we can create a server with our SSH keys. Create a new server and copy the public key from PUTTYGEN to add the new key, you can close puttygen once we've added our keys.
Open PUTTY.exe and type in the IP address of the node, then in your "category window", click on "SSH" and go to "auth" and load your SSH key we previously created and saved. Next we navigate back to the main "session" window and open the SSH to our node. You'll get a message about adding keys, so we accept that.
Login as root, use the password created with the SSH key to authenticate it. This is the Linux Terminal and your friend in Linux, commands you will use on a regular basis are as follows
This is the Linux Terminal and your friend in Linux, commands you will use on a regular basis are as follows
- use "sudo" to provide admin rights to the changes
- use "apt-get" to retrieve packages from repositories
- use "install" to install packages
- use "-y" to indicate for packages not to need confimation
- use "cd" to navigate to the main directory and can follow the command when indicating a folder while is a directoy
An example of moving to directories you would type
cd
this would move you to the home directory and from here we can type
cd PayCon/
this would move you into the PayCon folder $root@Testnode:~/PayCon#
we can move into the src folder by typing
cd src/
and would now be at $root@Testnode:~/PayCon/src#
Alternatively if in the home directory, you can navigate directly to the src folder by typing
cd PayCon/src
We download all the dependancies needed
in your putty.exe terminal, type
cd
apt-get update
apt-get install -y git make g++ build-essential libminiupnpc-dev
sudo apt-get install -y libdb++-dev libssl-dev libboost1.48-all libboost-chrono1.48-dev
Now get the source code and build it
cd
git clone https://github.com/Crestington/PayCon.git
cd PayCon/src/leveldb
sh build_detect_platform build_config.mk ./
cd
cd PayCon/src
make -f makefile.unix
Then we run the daemon
./PayCond
It will crash first go asking about a config file so we create a config file
Note: Copy everything from cat << "CONFIG" >> upto and including CONFIG and paste it in your console and hit enter
cat << "CONFIG" >> ~/.PayCon/PayCon.conf
CONFIG
Note: to open the daemon and issue commands you navigate to the directory
cd PayCon/src
then type
./PayCond
To use the same commands as the qt console, all commands follow ./PayCond
we check that our node is connected to other peers by typing
./PayCond getinfo
To get a list of help commands type
./PayCond help
to send to an address, it looks like this
./PayCond sendtoaddress PaeSxvJKqpKaX63Pr6Xa5SzG73RycBRwWD 10000000