-
Notifications
You must be signed in to change notification settings - Fork 267
Install RskJ Using Ubuntu Package
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.
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.
The RskJ Ubuntu Package for Wasabi 1.1.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.1.0~yourUbuntuVersionName_amd64.deb
The packages SHA256 are:
07a87a47af7094d45aa4cc27f487c32cbf2be8867a350790ce3f744c0c8ce069 rskj_1.1.0_bionic_amd64.deb
b72ee6870b6e567dfe5a14cd7fc1fa300c13d5149a841f7a81be090f0a24303f rskj_1.1.0_bionic_i386.deb
98241402a6d04578c020e55cc8a739ac9331dd983d628ba7c2f657dc9ed043be rskj_1.1.0_trusty_amd64.deb
e29d241c9e06aaf04262b831deb229eba0e57ca9ed3cd2afd9975b905e808363 rskj_1.1.0_trusty_i386.deb
5c9275a7d87fe0d9477cc30332b5b28fa7157059cdc33d24d527ede0b6c25055 rskj_1.1.0_xenial_amd64.deb
d1c93f0aaaf8a925f53f39de3354a786e4343a786e78cbdf6247bfd3ef9e7f40 rskj_1.1.0_xenial_i386.deb
The installer will perform the following actions in order to get everything setup:
-
User
rsk
will be created in order to run the service. -
Systemd service file will be created in
/lib/systemd/system/rsk.service
-
/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. -
Read+Write permissions will be granted to
rsk
user on/var/lib/rsk/database
-
Read+Write permissions will be granted to
rsk
user on/var/log/rsk
To start the node:
$ sudo service rsk start
To stop the node:
$ sudo service rsk stop
To restart the node:
$ sudo service rsk restart
We hope our Troubleshooting section can help you!