Skip to content

Install RskJ Using Ubuntu Package

Alejandro Cavallero edited this page Jan 4, 2019 · 24 revisions

Following the instructions below you will install and run the RSK node. By default, the node connects to MainNet. If you want to change the network read this section. If you want to change some configuration, please refer to our RSK node configuration section.

PPA

You can install RskJ on Ubuntu using our PPAs for Ubuntu:

$ sudo add-apt-repository ppa:rsksmart/rskj
$ sudo apt-get update
$ sudo apt-get install rskj

The installed repo public key Fingerprint is 5EED 9995 C84A 49BC 02D4 F507 DF10 691F 518C 7BEA.

Also, the public key could be found in Ubuntu Key Server.

Direct download

The RskJ Ubuntu Package for Orchid 0.6.0 can also be downloaded.

If so, you should first install openjdk-8-jre or oracle-java8-installer.

Once Java is installed, move to the directory where you have the .deb file and run:

$ dpkg -i rskj_0.6.0~yourUbuntuVersionName_amd64.deb

The packages SHA256 are:

da67e0ce87e92abde2534cc4a053c189ac26be2fe4acd285374e4145a275fb02  rskj_0.6.0_bionic_amd64.deb
5f10a1066a27df5abdb347a744a780f81457d15ba1f9a5cb62d2c8b27c4380b1  rskj_0.6.0_bionic_i386.deb
91940e0228f3efdff1d29722feb37436b252d9dd1fe18389325a28ad0da63347  rskj_0.6.0_trusty_amd64.deb
909e5ebb44fbffe19bceeea0ae0b55e0157cba84faa8cb48e9794f48b04ae178  rskj_0.6.0_trusty_i386.deb
ce90f9ec842f1a6839d4c005f0e908ec7afee04e10064648249898252589f6f8  rskj_0.6.0_xenial_amd64.deb
3ca285328bef8b36c867e8a683161247c9f59bc6f58e9e3eb548efb54e8b3b29  rskj_0.6.0_xenial_i386.deb

The installer will configure your node in the following paths:

  • /etc/rsk: the directory where the config files will be placed.

  • /usr/share/rsk: the directory where the RskJ JAR will be placed.

  • /var/lib/rsk/database: the directory where the database will be stored.

  • /var/log/rsk: the directory where the logs will be stored.

To start the node:

$ sudo service rsk start

To stop the node:

 $ sudo service rsk stop

To restart the node:

 $ sudo service rsk restart

Any problems?

We hope our Troubleshooting section can help you!

Clone this wiki locally