Skip to content

Install RskJ Using Ubuntu Package

jonathansmirnoff edited this page Jul 19, 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.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_1.0.0~yourUbuntuVersionName_amd64.deb

The packages SHA256 are:

acdf95d0aca6df7859fe7d0122f93dfa85792f976fd219b58646a7d4b33aacbf  rskj_1.0.0_bionic_amd64.deb
db8a29fc322fb8c6e85851e79583658005d108438774431a192a73215c0da9de  rskj_1.0.0_bionic_i386.deb
a5b2cc6b43de0606fa6d43f83fc91567fe04aeba91c14158b9129af1e81d986d  rskj_1.0.0_trusty_amd64.deb
ed8a822afc28dbe69c3ea7e03492e6f642a9a14c218c605f26eba76a122f9981  rskj_1.0.0_trusty_i386.deb
ea8ea10a983fb6a0d011926f507def41fd6ec18e7ff07818d7b0e94332c52205  rskj_1.0.0_xenial_amd64.deb
0fed0a1c853fe92f08116f0ba4c59ef8a533741c4ae659b3f8b425105bd53180  rskj_1.0.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