• June 19, 2018, 03:04:27 AM
• Welcome, Guest. Please login or register.
 

Author Topic: How to Compile and Run a Memorycoin Node on Your Debian/Ubuntu Server/VPS  (Read 992 times)

0 Members and 1 Guest are viewing this topic.

Offline Delinquency

  • CEO
  • Administrator
  • Epic Member
  • *********
  • Posts: 665
    • View Profile
  • Memorycoin Address:
    MVTEceoiVWsnyyWU69nNFCqcpqDjyChyEH

How to Successfully Run a Memorycoin Node
Hello Memorycoin Community! This guide will help you successfully run a Memorycoin Node on your Debian or Ubuntu Server.

Requirements
  • 200 MB of RAM/SWAP (To compile from source: Over 512MB of RAM+Swap. This may be fixed by adding or increasing your SWAP on a server.)
  • At least 1.5GB of Hard-Drive space. As the block-chain gets larger, so will the amount of space it will consume. While retrieving the Block-chain, the hard-drive should not be bottle necked by other services.
  • A stable internet connection with firewall opened up to TCP port 1968 IN+OUT.
  • Enough knowledge to ask questions when you're stuck. (This will help the tutorial as a whole).
Let's get started: (Estimated Completion Time: 10 minutes and an undeserved long coffee break)


INSTALL


Compiling From Source:


Step One - Compile
Install all the software required to compile Memorycoin from Source.
Code: [Select]
apt-get update
apt-get install -fy git make g++ build-essential libminiupnpc-dev libdb++-dev libgmp-dev libssl-dev libboost-all-dev;

(MAKE SURE YOU HAVE >512 RAM AVAILABLE TO COMPILE)
Code: [Select]
cd ~;
mkdir -p ~/src;
cd ~/src;

git clone https://github.com/memorycoin/memorycoin;
cd memorycoin/src/;
#High PERFORMANCE:
#make -j4 -f makefile.unix;
make -f makefile.unix


mkdir ~/bin/
mv ~/src/memorycoin/src/memorycoind ~/bin/memorycoind;
chmod +x ~/bin/memorycoind;

Step Two - Configure


Create the Configuration File for your Node




Please replace the rpcpassword with a unique password.
Code: [Select]
cd ~;
mkdir -p ~/.memorycoin;
echo 'rpcuser=memorycoinrpc
rpcpassword=[ENTER A UNIQUE PASSWORD HERE]
rpcport=1925
rpcallow=127.0.0.1
server=1' > ~/.memorycoin/memorycoin.conf;

Step Three - Start Up Script


Create a bash script to automatically open your Memorycoin Node


Code: [Select]
cd ~;
echo '#/bin/bash
~/bin/memorycoind --datadir=/root/.memorycoin --port=1968 --churn=0 --daemon' > ~/start_memorycoind.sh;

chmod +x ~/start_memorycoind.sh;

Step Four - Extras




Start your Memorycoin Node + Others:
Code: [Select]
~/start_memorycoind.sh;



To check on your Memorycoin Node's Status, type in this command:
Code: [Select]
~/bin/memorycoind --datadir=/root/.memorycoin getinfo;


To check your Memorycoin Nodes' Debug file, type in this command:
Code: [Select]
watch -n 5 tail -n 50 ~/.memorycoin/debug.log

To clear your block-chain if required, type in this command:
Code: [Select]
Close the Memorycoin Client:
killall -9 memorycoind;

cd ~/.memorycoin;
 rm -Rf blocks chainstate database db.log hashlookup.txt memorycoind.pid peers.dat debug.log;

Start the Memorycoin Client:
~/start_memorycoind.sh


Thanks for Reading!
« Last Edit: November 21, 2015, 02:25:34 PM by Delinquency »