Skip to content

Install RskJ Using Ubuntu Package

Alejandro Cavallero edited this page Aug 6, 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 Wasabi 1.0.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_1.0.2~yourUbuntuVersionName_amd64.deb

The packages SHA256 are:

3dbf45d245157fc106ef97a46468fe653d9b722d7a92703c8e058d4a264a9800  rskj_1.0.2_bionic_amd64.deb
f4367f63dafeea3ce6bbfa90e8a7ea1557dc5a011ad72ead85b6d28d13c5d6a2  rskj_1.0.2_bionic_i386.deb
63649f07134f4a32bc411271984a63def05873603b08ce065ee5923170d69279  rskj_1.0.2_trusty_amd64.deb
1bd3f9e0107e65a54279bb3fbdd85d98cff5b18096e13f04d1ce0528701428d4  rskj_1.0.2_trusty_i386.deb
69f7968aff8a98eddf94c379bca2c55a18b78ad1f1cbac0f3bd85402787f0176  rskj_1.0.2_xenial_amd64.deb
e56f3694159de37d0971867921d9dcab9e2ba8724794f010ca9c91105468d7c3  rskj_1.0.2_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