Make sure your system meets the minimum requirements before installing RSK nodes on it.
The easiest way to install and run a RSK node on Ubuntu is to do it through Ubuntu Package Manager.
Type the commands below to install RSKj on Ubuntu using our PPAs for Ubuntu.
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 document Ubuntu Key Server.
$ sudo add-apt-repository ppa:rsksmart/rskj $ sudo apt-get update $ sudo apt-get install rskj
During the installation, you will be asked to accept the terms and confirm the network.
Choose Yes and Enter to accept the license to continue
mainnet and press
Enter to continue
You can also download the RSKj Ubuntu Package for Papyrus 2.0.1 and install it with the
dpkg command. Follow this download link to download the matching package for your ubuntu system.
# first install openjdk-8-jre or oracle-java8-installer sudo apt-get install openjdk-8-jre # download the RSKj pacakge and find the file rskj_2.0.1~yourUbuntuVersionName_amd64.deb # run this command in the same directory as the deb file above dpkg -i rskj_2.0.1~yourUbuntuVersionName_amd64.deb
We recommend that you check that the SHA256 hash of the downloaded package file matches, prior to installation:
By default, the node connects to Mainnet. To change the network choice (Mainnet/ Testnet/ Regtest), refer to the instructions in switching networks. To change configurations for the node, refer to the instructions in RSK Node Configuration.
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.
After installation, you can use the following commands to manage your node.
To start the node:
sudo service rsk start
To stop the node:
sudo service rsk stop
To restart the node:
sudo service rsk restart
To check the status of the node service:
sudo service rsk status
Go to top