
Guide / Tutorial on how to setup a remote PIEX masternode on Linux to earn PIEX yield.
Prerequisites:
- Ubuntu VPS from VULTR (cheapest VPS is enough)
- PieX Wallet on local Computer
Definitions:
Controllers Wallet = Wallet on local Computer
Masternode Wallet = Wallet on remote VPS Server

PieX Controllers Wallet Setup
First, open piex Wallet and go to “debug window”.
In this debug window, go to “Console” and type in “masternode genkey”. Save the output to a text file called “masternode.txt”.
Now create a new address called “Masternode1”
Then, go to tab “send” and send EXACTLY 25,000 PieX to your Masternode1 address. Wait for 15 Confirmations.
Open the debug window again and type in “masternode outputs”. Save both values in the masternode.txt file.
Ubuntu VPS Setup
If you don’t have a VPS already, get the 1GB Ram VPS from Vultr: Rent VPS
Install Ubuntu 16.04 x64 OS onto it.
Connect to your Ubuntu VPS via SSH and update & upgrade the server first.
apt-get update apt-get upgrade
Now add a user and add him in the sudoers group so he has root access.
adduser piex adduser piex sudo
Now change to user “piex” and setup SSH keys for enhanced Security.
su piex sudo ssh-keygen -b 4096 cd .ssh sudo cat id_rsa.pub >> authorized_keys
Now save the private key “id_rsa” to your clients computer so you can authenticate to the server with the SSH Certificate. (You must convert id_rsa to a “.ppk file in order to use the privatekey with Putty)
Restart the SSH Server and test if the authentication with the private key works.
sudo service ssh restart
If it works, edit the SSH config file to disable password authentication & root login.
sudo nano /etc/ssh/sshd_config
Change following Values in the file.
PasswordAuthentication no UsePAM no PermitRootLogin no
PIEX Masternode Setup
First we must setup swap space, so we can compile piex even with low ram. If we don’t setup swap space and have low ram, the compiling process will probably fail.
RUN THIS AS ROOT USER!
fallocate -l 3G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile echo -e "/swapfile none swap sw 0 0 \n" >> /etc/fstab
Now we install some dependencies.
From now on as PieX User!
sudo apt-get install -y pkg-config sudo apt-get -y install build-essential autoconf automake libtool libboost-all-dev libgmp-dev libssl-dev libcurl4-openssl-dev git sudo add-apt-repository ppa:bitcoin/bitcoin sudo apt-get update sudo apt-get install libdb4.8-dev libdb4.8++-dev
Install PieX onto the ubuntu vps server.
Run following Commands to install git, compile software & more
cd sudo git clone https://github.com/PieXcoin/PieXcoin.git cd PieXcoin sudo chmod +x share/genbuild.sh sudo chmod +x autogen.sh sudo chmod 755 src/leveldb/build_detect_platform sudo ./autogen.sh sudo ./configure sudo make sudo make install
Now start the PieXd daemon for first time and save “rpcuser & rpcpassword” into a text file.
cd ~/PieXcoin/src piexd -daemon
Edit the “piex.conf” file on the masternode vps server.
sudo nano ~/.piex/piex.conf
Paste this into it and adjust the values to your values. (masternodeprivkey is the value you got from “masternode genkey” in debug window)
rpcuser=anyuser rpcpassword=anypassword rpcallowip=127.0.0.1 staking=1 server=1 listen=1 daemon=1 logtimestamps=1 maxconnections=256 masternode=1 masternodeprivkey=xxxxxxxxxxxx
Now start the PieXd daemon again
cd ~/PieXcoin/src piexd -daemon
Check info
piex-cli getinfo
If the output of the “getinfo” command seems good, go to the next Step.
Final Masternode Setup Step
Back on the local Computer, go to “%appdata%/PIEX/piex.conf” and add these 2 lines with your values. (You set rpcuser & rpcpassword on the vps)
rpcuser=YOURRPCUSERNAME rpcpassword=YOURRPCPASSWORD
Now go to “”%appdata%/PIEX/masternode.conf” and add the following lines (with your values)
MN1 123.220.42.69:53472 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0
MN1 = Masternode alias
123:220.42.69:51474= IP address & port of remote ubuntu masternode vps
93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg = output of “masternode genkey” command
2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c = 1. value of output of “masternode outputs” command
0 = 2. value of output from “masternode outputs” command in debug window
Now reopen the PieX Wallet, goto “Masternodes” and click Start alias. Your remote Masternode should now be running!
I hope i could help you on how to setup a PieX Masternode! 🙂
If questions, please comment below 🙂
PieX TIP Jar: XRJqaYZQsBo8kTWzETjyUWKcdXNeSUnxFf
Hi thanks for your guide. I get bash: cd: db-4.8.30.NC/build_unix/: Permission denied
on this command?
Not sure why.
Cheers.
Hey 🙂
I have updated the guide and now everything should work a 100%. I tested it multiple times now again 🙂
Please try again and tell me if it works 🙂
Thanks!
hello i have a problem at install piec onto vps
sudo ./autogen.sh command
I get
aclocal: warning: couldn’t open directory ‘build-aux/m4’: No such file or directory
Makefile.am:3: error: Libtool library used but ‘LIBTOOL’ is undefined
Makefile.am:3: The usual way to define ‘LIBTOOL’ is to add ‘LT_INIT’
Makefile.am:3: to ‘configure.ac’ and run ‘aclocal’ and ‘autoconf’ again.
Makefile.am:3: If ‘LT_INIT’ is in ‘configure.ac’, make sure
Makefile.am:3: its definition is in aclocal’s search path.
Makefile.am:54: warning: source file ‘src/secp256k1.c’ is in a subdirectory,
Makefile.am:54: but option ‘subdir-objects’ is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the ‘subdir-objects’
automake: automake option hasn’t been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using ‘subdir-objects’ option throughout your
automake: project, to avoid future incompatibilities.
Makefile.am:68: warning: source file ‘src/bench_inv.c’ is in a subdirectory,
Makefile.am:68: but option ‘subdir-objects’ is disabled
Makefile.am:65: warning: source file ‘src/bench_sign.c’ is in a subdirectory,
Makefile.am:65: but option ‘subdir-objects’ is disabled
Makefile.am:62: warning: source file ‘src/bench_verify.c’ is in a subdirectory,
Makefile.am:62: but option ‘subdir-objects’ is disabled
Makefile.am:76: warning: source file ‘src/tests.c’ is in a subdirectory,
Makefile.am:76: but option ‘subdir-objects’ is disabled
autoreconf: automake failed with exit status: 1
Help please
PS i set this up as piex user not root….shoulkd it be at root level?
The method bitcoin bitcoin ppa works always!
n1njawtf, did you try to set one more mn on same vps on vultr, because one vps on vultr have two
additional IP (of course some money more)?
Ok so i do not get it why in this guide there is nothing about sending 25k of piex to your vps?
Why guide from piex discord is diffrent?
There are 2 ways. You either run your wallet with the 25k piex also on Linux OR you store the 25k piex on the wallet on windows (controller wallet) and have the MN on a VPS. I prefer the 2nd Way and also think its more secure.
for the 2nd way do you need the windows wallet on 24/7?
Hi
./configure command not found
./autogen.sh = ./autogen.sh: 9: ./autogen.sh: autoreconf: not found
whats wrong ? http://joxi.ru/1A5X6nEiKQ9Pa2.jpg
pode ajudar com tutorial para windows server?
help with windows server