How to start development

Published 17 May 2019

How to install node for Linux operating system

Installin Java

Installing Java

Java 8

Due to the Oracle changing terms of use for Java 8, we offer the following solution:

Use Java 11 (installation guide is below)

This solution suggests that the user has Java 8 archive

unzip archive

then use script

sudo update-alternatives --install "/usr/bin/java" "java" "/srv/jdk1.8.0_211/bin/java" 1

sudo update-alternatives --install "/usr/bin/javac" "javac" "/srv/jdk1.8.0_211/bin/javac" 1

sudo update-alternatives --install "/usr/bin/javaws" "javac" "/srv/jdk1.8.0_211/bin/javaws" 1

sudo update-alternatives --config java

/srv -  folder containing unzipped Java archive.

Java 11

Scripts for Java 11 installation

sudo add-apt-repository ppa:linuxuprising/java

sudo apt-get update

sudo apt-get install oracle-java11-installer

sudo apt-get install oracle-java11-set-default

Uninstall:

sudo apt-get remove oracle-java11-installer

Installation of the Credits software

Installation of the Credits software.

Download tar file for OS Linux 64:

TestNet for Linux

MainNet for Linux

After downloading the archive (e.g. Credits_Network_for_Linux_x64_4_2_410.tar.gz), you should unzip it to a user specified folder (e.g. ~/temp”). Results are displayed on the figure below:

Then we move to “client” folder and check its contents:

Node launching parameters “./client” are in the configuration file “config.ini” where user specifies signal server, input and output ports and whether or not IPv6 protocol is used.

To launch the node in the folder where you unzipped the archive you should type “./client” in the terminal:

Upon the first launch of the node (client.exe), users will be offered to create a new node public key (press button “g”), or quit (press button “q”) as displayed on the figure below:

When selecting option 1 (Private key encryption)

Then input password to generate keys and press “Enter”

When selecting option 2 (without private key encryption)

Keys are generated without entering the password.

After that, the node will try to connect to the network.

Successful connection is displayed on the figure below

Launching Credits Software Components

Node

./client

Executor

java -jar contract-executor.jar

Wallet

java -jar wallet-desktop.jar

 

Votes 3, average rating 4

Contents