#Nem-Installers#
This repository provides scripts for easy install of Nem Infrastructure Server (nis) and Nem Community Client (ncc) for running a Node.
install_nem.sh
Downloads the latest ncc-nis package from the offical repository, verifies the authenticity and installs ncc and nis.
ubuntu_install_nem_tools.sh
Will install Oracle-Java-8 if needed, as well as other software. It also will help to create a swap partition and setup a basic firewall for the server. This script is optional. You may install Oracle-Java-8 manually. Instructions are below.
These scripts are currently tested against debian and ubuntu linux distributions. It might work on other distributions as well, but there is no guarantee. Feel free to help create scripts for other distributions
The requirements for running nis and nem is Oracle Java 8.
For help installing Oracle Java 8 please see here
Fetch the latest version of the scripts from the github repository and uncompress
git clone https://github.com/Stoner19/Nem-Installers-master.git
Make the scripts executable
chmod +x ./install_nem.sh
chmod +x ./ubuntu_install_nem_tools.sh
To install Java 8, tools, and setting up a basic firewall just run
./ubuntu_install_nem_tools.sh
Install ncc/nis with this command and follow the instructions
./install_nem.sh
You can start nis or ncc by typing
sudo /etc/init.d/nis start
sudo /etc/init.d/ncc start
Stopping nis or ncc is done via
sudo /etc/init.d/nis stop
sudo /etc/init.d/ncc stop
Configuration files are located at /etc/nem
and the subfolders /etc/nem/nis
, /etc/nem/ncc
, /etc/nem/mon
Default configuration values are stored in config.properties
file and are overwritten by config-user.properties
For more information on NIS/NCC configuration options visit the official nem documentation
For ubuntu you need to add the webupd8team/java ppa repository and then run apt-get for installation
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer -y
For more Information visit wepup8 Java 8 Ubuntu instructions
For debian you need add the webupd8team/java ppa repository and then run apt-get for installation
su -
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
exit
For more Information visit wepup8 Java 8 Debian instructions
Simply by using the command sudo UpgradeNem
. The script will automatically check for the latest version and update your nem installation if necessary
nis
sudo update-rc.d nis remove
ncc
sudo update-rc.d ncc remove
nis
sudo update-rc.d nis defaults
sudo update-rc.d nis enable
ncc
sudo update-rc.d ncc defaults
sudo update-rc.d ncc enable
To change the RAM size that is allocated, edit /etc/init.d/nis
Change the line export MAXRAM=1G
to your desired value (i.e 768M)
For more information or discussion please visit this thread on the OurNem Forum
- 2014.04.15
- version bump to 0.1.1
- fixed permission for /etc/nem/keys
- updated README file
- 2014.04.14
- automatically fetch latest Version
- config files are now at /etc/nem
- nem default installation directory is now /opt/nem
- the directory for data is now located at /var/lib/nem
- sanity checks for required installation dependencies
We would to thank the following people for creating (parts) of this script
- Jadejack (initial version)
- patrickjahns (further updates)
The upstart scripts have been written by riegel and modified for this release
Please feel free to contribute to this repository.
The scripts are Licensed under 3-clause BSD.
Disclaimer
This script has been reuploaded against the owners wishes, as it was originally removed due to a disagreement in the direction of NEM. Ownership belongs to JadedJack, and has only been reuploaded because the script is specific to, and only to, NEM as well as the original repo being open source.
This script is community maintained and any upgrade/update of the nem Software might brake the scripts
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.