Skip to content

Install RskJ Using Ubuntu Package

Pablo Chiavarino edited this page Oct 10, 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:

5e9bbcd5189836bd666a44c6d922a3079d5a422b9d819b73ccc1876d06f28d2c  rskj_0.5.2.0_bionic_amd64.deb
38e4fcfadb2f274cfb7662bc3794a89d00f82a5b60e79e0eae2fa2e041f2c68a  rskj_0.5.2.0_bionic_i386.deb
8dcb3c2731ebdda8f9138bee9d31141859e592453d1561cc74b99034b8f8e731  rskj_0.5.2.0_trusty_amd64.deb
0825d1a1d949993d87e2c5d8ec9e8aa77f848f1cdf5f73420e9283603f62bd00  rskj_0.5.2.0_trusty_i386.deb
3f318f37f9cd1da88a70631805f525e5b9d8bbfef29df85fad3f8df7a6d619c2  rskj_0.5.2.0_xenial_amd64.deb
89936b3fbe865f92113aab9450fe0c0374b5b0fca84dcd56452d536862d7ec2d  rskj_0.5.2.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