Skip to content

Install RskJ Using Ubuntu Package

Meri Herrera edited this page Oct 3, 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.1 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.1~yourUbuntuVersionName_amd64.deb

The packages SHA256 are:

3d46cbfc616624c99816ad9920e8dd2c5c29cd63fe23c67824e1ca6892de6a94  rskj_0.5.1_trusty_amd64.deb
ee4499f9567cf5e266bc28b606cb5694b7bcf781214ef679084c9500d40c25a5  rskj_0.5.1_trusty_i386.deb
b7165cd476a7047b995618125c74dca2221c347ea6fd9f1d91437a46797716f6  rskj_0.5.1_xenial_amd64.deb
c16333fa44d51c28d81aab2cace00e54d0064b25ac46d1d50fc3219cfced8439  rskj_0.5.1_xenial_i386.deb
3f650a25dca6c945305874d045ed3e79b4bceaf118dc1e180117dd1f61c355ae  rskj_0.5.1_bionic_amd64.deb
5f2b2f964ecfa0868248d4337177bdf2cf1b5f176f60244f0d0d60fcb2f8f29d  rskj_0.5.1_bionic_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