Skip to content

mrv777/NXT-installation-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NXT Installation Scripts

Repository for NXT node installation scripts for Debian based servers.

NXT

  • Download NXT software
  • Download and install Java
  • Option to install NXT mainnet and/or testnet
  • Option to download blockchain snapshot for fast syncing
  • Option to enable Open API setting on node(s)
  • Option to enable the node(s) as archive
  • Setup service to automatically start NXT after a reboot and run it in the background
  • If the server has a domain name, option to setup and enable https access
  • Option for daily automatic update check/install
  • Option for monthly database optimizations

Getting Started

If you only have a root user or are unsure, start here

  • wget https://raw.githubusercontent.com/mrv777/NXT-installation-scripts/master/create-sudo-user.sh
  • bash ./create-sudo-user.sh -u {username} -p {password} Remove the {username} with your username and the same for password

Logout and log back in as new user. Now that we have a regular user we can do the 2 commands to get and set everything up:

  • wget https://raw.githubusercontent.com/mrv777/NXT-installation-scripts/master/install-nxt.sh
  • bash ./install-nxt.sh

Files

install-nxt.sh

This is the main script. It installs, creates and configures all necessary parts to run an NXT node. You can install an NXT mainnet node, testnet node or both on one server. If you want to install https for both, make sure that the server is accessible via two seperate domains.

It also installs an update-nodes.sh script on the server, which can be used to easily update the nodes in case of a new NXT release. It downloads, stops, updates and restarts the node(s) by itself. If you selected to enable automatic updates, a cronjob is created to run this daily at 03:00. It also creates an optimize-nodes.sh script on the server, which can be used to easily optimize the database for the node(s). If you selected automatic database optimizations, a cronjob is created to run this monthly on a random day at 01:00.

To install NXT node(s), copy the script to the Debian server run bash ./install-nxt.sh. It is designed to run with a sudo user.

If you don't have a sudo user on the server yet (for example if just created a new Ubuntu Droplet from Digital Ocean), you can use the create-sudo-user.sh script to automatically create one.

create-sudo-user.sh

This script lets you create a sudo user with ease. Call it with ./create-sudo-user.sh -h for parameter description.

About

Install scripts for NXT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages