How to set up a NEM (XEM) node on VPS

NEM (New Economy Movement) is a new altcoin with 100% original codebase. XEM is the currency of the NEM platform. Here is a guide how to set up a NEM node on DigitalOcean VPS server.

First you need to create a new droplet on DigitalOcean VPS service. I recommend Ubuntu 14.04 and at least 1 GB of RAM, but you can also try with 512 MB.

You can start when your node is up and running. Follow the steps to run your own NEM (XEM) node on Ubuntu VPS.

1. Create a Swap File

Run the following command as root on your Ubuntu droplet:

sudo apt-get update

sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

Check the new amount of total memory:

free -m

2. Make the Swap File permanent

Edit the file with root privileges in your text editor:

sudo nano /etc/fstab

At the bottom of the file, you need to add a line that will tell the operating system to automatically use the file you created:

/swapfile none swap sw 0 0

3. How to access to desktop on your digital ocean Ubuntu droplet?

Install VNC server and XFCE 4 desktop:

apt-get -y install ubuntu-desktop tightvncserver xfce4 xfce4-goodies

Add a VNC user and set its password.

adduser vnc
passwd vnc

then add root privileges to this newly created account:

echo “vnc ALL=(ALL) ALL” >> /etc/sudoers

Set user vnc’s VNC Server password:

su – vnc

4. Install VNC As A Service

Login as root and edit /etc/init.d/vncserver and add the following lines:

export USER=”vnc”
OPTIONS=”-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}”
. /lib/lsb/init-functions

case “$1” in
log_action_begin_msg “Starting vncserver for user ‘${USER}’ on localhost:${DISPLAY}”
su ${USER} -c “/usr/bin/vncserver ${OPTIONS}”

log_action_begin_msg “Stoping vncserver for user ‘${USER}’ on localhost:${DISPLAY}”
su ${USER} -c “/usr/bin/vncserver -kill :${DISPLAY}”

$0 stop
$0 start
exit 0

Edit /home/vnc/.vnc/xstartup and replace with:

xrdb $HOME/.Xresources
xsetroot -solid grey
startxfce4 &

Update file permissions and allow any user to start X Server:

chown -R vnc. /home/vnc/.vnc && chmod +x /home/vnc/.vnc/xstartup
sed -i ‘s/allowed_users.*/allowed_users=anybody/g’ /etc/X11/Xwrapper.config

Make /etc/init.d/vncserver executable and start VNC server:

chmod +x /etc/init.d/vncserver && service vncserver start

Add your VNC server to automatically start on reboot:

update-rc.d vncserver defaults

5. Connect to your droplet with TightVNC

TightVNC is a great VNC client that allows SSH tunnel. It can be downloaded from

Make sure to use IP::port as your remote host, where IP is your droplet’s IP and port is 5901.

6. Install NEM node

To run the NEM software you will need Java 8 (64-bit is recommended). Please open a terminal window and follow these steps:

sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer -y

Visit in your browser and download the latest version of “” (X.Y.Z represents the version number).

Open a terminal window and enter these commands:

cd Desktop/package

Now open your browser and visit http://localhost:8989

Your new NEM node is now ready!

This entry was posted in Alternate cryptocurrencies, NEM - New Economy Movement. Bookmark the permalink.

One Response to "How to set up a NEM (XEM) node on VPS"

Leave a reply