Giter VIP home page Giter VIP logo

nem-installers-master's Introduction

#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

Overview

Installation

Requirements

The requirements for running nis and nem is Oracle Java 8.
For help installing Oracle Java 8 please see here

Instructions

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

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

FAQ

How can I install Oracle Java 8?

Ubuntu

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

Debian

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

How can I updated my NEM installation

Simply by using the command sudo UpgradeNem. The script will automatically check for the latest version and update your nem installation if necessary

How can I disable/enable nis/nss from starting automatically?

Disbale

nis

sudo update-rc.d nis remove

ncc

sudo update-rc.d ncc remove
Enable

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

How can I change the amount of RAM used for NIS?

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

Changelog

  • 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

Contributions

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.

Licence and Disclaimer

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.

nem-installers-master's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.