This guide will assume you are using Ubuntu 18.04 LTS as your VPS Operating System.
Connect to your VPS using an SSH connection. Putty is a popular choice for Windows users to do this with. Your VPS host will provide you with a username and ip address to make this connection.
Once you have logged in, you'll need to download NIX wallet.
Next, unpack the download.
tar zxvf nix-3.0.9-x86_64-linux-gnu.tar.gz
Copy the binary files to /usr/bin/
sudo cp nix-3.0.9/bin/* /usr/bin/
Before we start the wallet, lets go ahead and create the configuration file.
mkdir .nixnano .nix/nix.conf
Add the following lines to the nix.conf:
~/.nix/nix.confrpcallowip=127.0.0.1daemon=1maxconnections=64ghostnode=1externalip=your_ghostnode_ip_address_here(same IP you used to ssh to)ghostnodeprivkey=your_ghostnode_key_here
Use Ctrl+X to exit nano, and Y followed by <Enter> to save changes.
You can now start the nix wallet with:
The wallet will now sync with the blockchain. If for some reason it's having trouble, you can manually add some official peers and/or install a bootstrap by following the instructions for the CLI wallet in the following guides:
To check the status of the sync:
nix-cli getblockchaininfo | grep blocks
Compare the result with a block explorer to verify your wallet is fully sync'd. Once finished, your Ghostnode VPS is ready to use.
It is recommended that you install some basic firewall security. While the options are plentiful and configurations endless, this is by no means the only way to do it.
You can run the following commands to setup a basic firewall:
sudo apt-get install ufwsudo ufw allow ssh/tcpsudo ufw limit ssh/tcpsudo ufw allow 6214/tcpsudo ufw logging onsudo ufw enable
This installation is also automated but needs a bit more technical understanding of ssh connections. You can find all required information on his GitHub Repository.