Paytokens Servers are currently only supported on 64-Bit Ubuntu 14.04 LTS. As of this writing, it is recommend to have a system with at least 32 GB of disk space accompanied by 4 GB of RAM and an Intel i5 equivalent or better. A node targets 1,000 Users. The install user must be a sudoer or have the appropriate access rights. Core Paytokens installations are generally to be held by the home directory of the user. These instructions may change and only serve as a guideline.
To get started, begin with a clean install, enter home directory and update repositories:
Next, install Litecoin dependencies:
Litecoind First Run:
Start Litecoin by typing litecoind. This will provide instructions to setup litecoin.conf in the directory ~/.litecoin. Please be aware that directory paths should be the full path and exclude ~/ when entering paths later through configuration. We may omit the full path throughout this writing. A typical litecoin.conf should resemble the following for Paytokens Nodes:
Please replace PASSWORD with the password of your choosing.
Start Litecoind to Rebuild Blockchain Index:
Install Paytokens Dependencies:
Install Payblock Dependencies:
Install MongoDB Version 2.6.4:
Pin this specific version of MongoDB to prevent automatic updates:
As a note, other versions of Redis may work just fine, that are just not tested within a Paytokens Environment
Install Sqlite Utilities:
Create Paytokensd Settings in “~/paytokensd/settings.py”:
Please match the Litecoin RPC Password to litecoind-rpc-password and Paytokens RPC Password to rpc-password.
Create a shell script to start Paytokens Server in “~/paytokens.sh”:
Remember to replace PATH with the correct full path to Paytokensd installation directory. Make executable: “chmod 750 ~/paytokens.sh”
Note that the paywallet repository includes the correct release of livenet. Do not use the generated build as it will not work. Instead, use the included build directory ‘livenet’ for the prebuilt distribution.
Edit ~/paywallet/livenet/paywallet.conf.json and change api.paytokens.co to localhost or the desired host.
This will bring up an editor to modify Nginx Site Configuration. Please adjust settings in these files to match desired output. In particular comment out ‘etc var usr’.
You may now start Paytokensd and payblockd then open a browser and begin utilizing the local instance of Paytokens.