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
vncpasswd
exit

4. Install VNC As A Service

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

#!/bin/bash
PATH=”$PATH:/usr/bin/”
export USER=”vnc”
DISPLAY=”1″
DEPTH=”16″
GEOMETRY=”1024×768″
OPTIONS=”-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}”
. /lib/lsb/init-functions

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

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

restart)
$0 stop
$0 start
;;
esac
exit 0

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

#!/bin/sh
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 http://www.tightvnc.com/download.php

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 bob.nem.ninja in your browser and download the latest version of “nis-ncc-X.Y.Z.zip” (X.Y.Z represents the version number).

Open a terminal window and enter these commands:

cd Desktop/package
./nix.runMon.sh

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

Your new NEM node is now ready!

Comments

2 responses to “How to set up a NEM (XEM) node on VPS”

  1. Thanks for finally writing about > How to set up a NEM (XEM) node on VPS | Altcoins
    < Liked it!

  2. Hey there… Further useful tutorials for NEM can be found at https://blog.nem.io/nem-tutorial-list/ … particularly interesting may be the step-by-step guide on how to set up a so called “supernode” which will earn it’s operator approx. 400-500 XEM (Supernode remuneration and harvesting of network fees) … at the time of writing Jan/2017.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get ready to revolutionize your shopping experience with the incredible power of altcoins! Transform your digital assets into instant buying power at your favorite retailers. Now you can truly live the crypto lifestyle by getting gift cards for Amazon, Walmart, Doordash, Best Buy, Netflix, Apple, and many more, all with the altcoins in your digital wallet.

Buying gift cards with altcoins has become an increasingly popular way for cryptocurrency enthusiasts to bridge the gap between digital assets and everyday purchases. Platforms now exist that allow users to directly purchase gift cards for major retailers like Instacart, Kroger, Safeway, Uber Eats, Giant Eagle and many more using a variety of altcoins.

Top Altcoin Exchanges

Latest posts

Buy altcoins with a credit card

Non-KYC cryptocurrency exchange offer a way to trade digital assets without providing personal identification, preserving user privacy and financial autonomy.

These platforms are important for individuals who value their anonymity, seek protection from data breaches, or live in regions with restrictive financial policies.

By allowing users to transact without extensive verification, non-KYC exchange empower people to maintain control over their personal information and financial activities.

by CurrencyRate.Today

Cryptocurrency debit cards offer an innovative bridge between digital assets and everyday spending, providing crypto enthusiasts with a practical way to use their holdings in the real world. These cards allow users to seamlessly convert their altcoins into fiat currency at the point of sale, enabling them to make purchases anywhere traditional debit cards are accepted. This convenience eliminates the need to constantly transfer funds between crypto wallets and bank accounts, making it easier to integrate altcoins into daily financial activities.

For altcoin enthusiasts, these cards represent a significant step towards mainstream adoption, as they can now effortlessly pay for groceries, dining, travel, and more using their preferred digital currencies. By offering the familiarity of a debit card with the benefits of cryptocurrency, these cards provide a user-friendly solution that combines the best of both traditional and digital finance worlds.

Get a cryptocurrency debit card