How To Install a Popular Coin Wallet on an Ubuntu / Debian Linux Server for a Source / Seed Node / Personal Wallet Instructions

Dependency Build Instructions: Ubuntu & Debian

On a Fresh Install (of Ideally Ubuntu 16.04 or 14.04)

Get your update:

sudo apt-get update

Build requirements:

sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libdb5.3-dev libdb5.3++-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libdb++-dev
sudo apt-get install libminiupnpc-dev

************These above ^^ are the only deps you need, if you are using Ubuntu 16.04 or 14.04 you can now move to “install from Github”*************

for Ubuntu 12.04:

sudo apt-get install libboost-all-dev

db4.8 packages are available here.

for other Ubuntu 12 & Debian (Most Likely Not Needed Only for Older Linux Versions):

sudo apt-get install libdb4.8-dev
sudo apt-get install libdb4.8++-dev
sudo apt-get install libboost1.37-dev

Ubuntu precise has packages for libdb5.1-dev and libdb5.1++-dev, but using these will break binary wallet compatibility, and is not recommended.

install github:

sudo apt-get install git

install Popular Coin Source from github:

sudo git clone https://github.com/Pop-Currency-Foundation/PopularCoin.git

Enter the Popular Coin directory:

cd PopularCoin/src

*[KEY] Next we must find out how many cores we have

cat /proc/cpuinfo | grep -i "model name"

You should get output similar to this:

someguy@master:~/popcoin/src $ cat /proc/cpuinfo | grep -i “model name”
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz

If you have 4 lines of “model name:”, then this means you have 4 cores or CPU’s. If you have just 1, you only have a single core available.

Now that we know this, we can continue to Compile PopularCoin
Change -j4 to the amount of cores you have, you can find this out by following the previous instructions above ^^^^ ex: if you have 4 cores use -j4, if you have 2 cores use -j2:

make -j4 -f makefile.unix USE_UPNP=

****************************************************************

If there were no errors, we can continue to the last part, if you saw something similar to “exiting: error” or “make error”, you may need to make sure you’ve installed all of the prequisites, and that your system is up to date ( sudo apt-get upgrade )

Now that popcoind is installed, we just need to create a config file.
First, create the .popcoin directory to ensure it exists:

mkdir ~/.popcoincore

Now we need to set the configuration, we’re going to use nano, if you have a different editor in mind, feel free to use that instead.

nano ~/.popcoincore/popcoin.conf

Enter the following text into the popcoin.conf file:

server=1
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=27171
port=18181
addnode=199.217.112.53
addnode=209.239.123.203

REMEMBER TO CHANGE THE USERNAME AND PASSWORD TO SOMETHING DIFFERENT, THIS IS JUST AN EXAMPLE.

(OPTIONAL):
If you’re going to be accessing the daemon remotely, you should remove the rpcallowip= line, or add another line which says

rpcallowip=YOURIPADDRESS

For extra security we’re going to lock down the config, otherwise other users on the system could find out our username and password, then steal our litecoins ::) ( thanks 92vv15j67s for the reminder. )

chmod 600 ~/.popcoin/popcoin.conf

Now there are two ways of starting the daemon, 1 way is fast but you have you enter the src directory every time you want to start the daemon, 2 installs the daemon in your user root so that you can run the wallet from your root.

  1. Enter PopularCoin/src Directory:
    sudo cd PopularCoin/src

    start the POPCoin daemon:

    ./popcoind -daemon

    You will get a message that says:

    popcoin server starting

    Now Your New Popular Coin Wallet / Node Is up and Running, it will take time for your wallet to sync and you can go to the bottom of this page for some initial commands to give your server!

  2. Another way of running the Popcoind:
    Enter PopularCoin/src Directory:
    sudo cd PopularCoin/src

copy popcoind into /usr/bin:

sudo cp popcoind /usr/bin/popcoind

start the POPCoin daemon:

popcoind -daemon

You will get a message that says:

popcoin server starting

****************************************

Now that your New Wallet is Running type command:
For Option 1:

cd PopularCoin/src
./popcoind getinfo

For Option 2 (You Can Run this from Any dir):

popcoind getinfo

For a list of other POPCOIND Commands to run go to: https://www.popularcoin.com/popular/bitcoin/popular-coin-wallet-console-rpc-commands

For a cronjob that runs popcoind everytime your machine boots:
Open Crontab:

crontab -e

Then,
For Option 1:

@reboot sleep 30; PopularCoin/src/popcoind -daemon

For Option 2:

@reboot sleep 30; popcoind -daemon

Save the crontab and you are set!

If you would like to Support the Popular Coin Network and have your server be added to the Popular Coin Source Nodes please leave the IP address in the comments section or contact admin. Thank you.

Leave a Reply