VPS Install
VPS Ghostnode installation instructions
Manual Installation
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.
wget https://github.com/NixPlatform/NixCore/releases/download/v3.0.9/nix-3.0.9-x86_64-linux-gnu.tar.gz
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 .nix
nano .nix/nix.conf
Add the following lines to the nix.conf:
rpcallowip=127.0.0.1
daemon=1
maxconnections=64
ghostnode=1
externalip=your_ghostnode_ip_address_here(same IP you used to ssh to)
ghostnodeprivkey=your_ghostnode_key_here
Don't forget to add the connection port (6217) to your IP address. Example: 192.168.0.1:6214
Use Ctrl+X to exit nano, and Y followed by <Enter> to save changes.
You can now start the nix wallet with:
nixd
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:
Manually Adding PeersBootstrap InstallationTo 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.
Security
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 ufw
sudo ufw allow ssh/tcp
sudo ufw limit ssh/tcp
sudo ufw allow 6214/tcp
sudo ufw logging on
sudo ufw enable
Bash Script from CryptoSharks
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.
Last updated
Was this helpful?