Install the Mongo DB Community Edition by the following tutorial.
For installing the IPFS use the following commands:
sudo apt-get update
sudo apt-get install golang-go -y
wget https://dist.ipfs.io/go-ipfs/v0.4.10/go-ipfs_v0.4.10_linux-386.tar.gz
tar xvfz go-ipfs_v0.4.10_linux-386.tar.gz
sudo mv go-ipfs/ipfs /usr/local/bin/ipfsInstall the QTUM
Download and add the Qtum signing key to your Linux operation system:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BF5B197D
Add a repository to your APT sources. NOTE: Please remember to change "xenial" Ubuntu version codename for your personal Ubuntu version codename.
sudo su
echo "deb http://repo.qtum.info/apt/ubuntu/ xenial main" >> /etc/apt/sources.listRefresh APT sources and install the Qtum:
sudo apt update && sudo apt install qtumHere is the example of qtum.conf from a ~/qtum/ folder:
server=1
testnet=1
rpcbind=127.0.0.1
rpcport=8333
rpcuser=qtumuser
rpcpassword=qtum2018
rpcclienttimeout=130
rpcallowip=127.0.0.0/24
logevents=1Install a python3.6-dev:
sudo apt-get install python3.6-devgit clone https://github.com/Robin8Put/pmes.gitCreate the virtual environment and install needed libraries from a requirements.txt:
cd pmes
virtualenv --python=python3.6 venv
source venv/bin/activate
pip3 install -r requirements.txtAdd bip32keys, qtum_utils and tornado_components directories to the venv/lib/python3.6/site-packages. (Will be in the pip shortly)
Run a Mongo DB server:
sudo service mongod startInitialize an IPFS daemon:
ipfs daemonExecute a QTUM daemon:
# prefered way to run qtum daemon
qtumd -testnet
# not prefered way to run qtum daemon
qtumd -daemon
# check that qtum daemon works
qtum-cli help
qtum-cli listunspent
ps -ax | grep qtumdThe PMES works with eight modules: AMS, storage, balance, PDMS, qtum_bridge, email, coin and parser.
Therefore, for running PMES you should run the following servers:
- run AMS and PDMS servers:
source venv/bin/activate
python3 main.py- run the storage server for the AMS module:
source venv/bin/activate
python3 ams/storage/main.py- run the balance server:
source venv/bin/activate
python3 balance/main.py- run the qtum_bridge server:
source venv/bin/activate
python3 pdms/qtum_bridge/main.py- run the email server:
source venv/bin/activate
python3 mail/email_new.py start
python3 mail/index.py- run the coin server:
source venv/bin/activate
python3 coin/one_coin.py start- run the parser server:
source venv/bin/activate
python3 parser/Client_storge.py