Skip to content

Install RskJ Using Ubuntu Package

Meri Herrera edited this page Oct 16, 2018 · 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.5.2 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.5.2~yourUbuntuVersionName_amd64.deb

The packages SHA256 are:

0bdaf7939d53516ad2d29c1f00e6f39900a84ff201f3cf0ce6e58dc4b93498c5  rskj_0.5.2.1_bionic_amd64.deb
93bd62eebf30dcba61cc0f51e10aec0003f3b27aacad09bc0a3f2a66603f55c9  rskj_0.5.2.1_bionic_i386.deb
a6406d2802d22f7ca15d3cb94d3b823beb8fd68cba87c9f5927e07a32fea97c5  rskj_0.5.2.1_trusty_amd64.deb
c3c27f53d998ebc97293f6356dcdacf46f7bfa17247b247734597051f6de0d84  rskj_0.5.2.1_trusty_i386.deb
481ad77a701edc898b28e6e398f33ed679af5326e822e06b679f7f680f019acb  rskj_0.5.2.1_xenial_amd64.deb
205c890d9a4537aecbd5ccef69f146d86e858cd790366815623c88fa00f9a2d5  rskj_0.5.2.1_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