This document details how to prepare a Linux operating system for the installation of Lisk Node. It will guide you through installation of important dependencies and user creation.
Determine if your platform can run Lisk Node
- Linux (x86_64, i686)
- Darwin (x86_64)
To complete the installation there are prerequisites that need to be completed. If you have already performed these, please proceed to the installation document for your desired network. Follow these instructions to load required software to your system.
Linux Installation Pre-Requisites
Ensure you are logged in as root.
if [[ -f "/etc/redhat-release" ]]; then yum update yum install curl wget tar sudo unzip zip elif [[ -f "/etc/debian_version" ]]; then apt-get update apt-get install curl wget tar sudo unzip zip fi
Create a user to run lisk, create sudo group and give the lisk user sudo permissions.
useradd -d /home/lisk -m lisk groupadd sudo usermod -a -G sudo lisk
Set a password for the lisk user
Setup the sudoers file
After you've opened the file, paste the following line at the bottom of the file:
%sudo ALL=(ALL:ALL) ALL
On Ubuntu: Click
Ctrl+ X then:
Y to exit the document and save it.
On RHEL: type
Update the systems Locale.
if [[ -f "/etc/redhat-release" ]]; then localedef -v -c -i en_US -f UTF-8 en_US.UTF-8 localectl set-locale LANG=en_US.UTF-8 elif [[ -f "/etc/debian_version" ]]; then locale-gen en_US.UTF-8 update-locale LANG=en_US.UTF-8 fi Set the systems operating language to en_US.UTF-8
Reboot your system to apply changes.