
Setup Lisk Node
In this post I will review how to setup a Lisk node and a Delegate. I will be using Digital Ocean VPS running Ubuntu 16.04.1.Lisk is currently supported on the following operating systems:
- Linux (x86_64)
- Linux (i686)
- Linux (armv6l)
- Linux (armv7l)
- Darwin (x86_64)
- FreeBSD (amd64)
To check your operating system run the following command:
uname -sm
Install curl, wget, tar, sudo, unzip, zip
Run the following code block: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 lisk user and set a password
useradd -d /home/lisk -m lisk
usermod -a -G sudo lisk
passwd lisk
Setup the sudoers file
visudo
Paste the following at the bottom of the file:
%sudo ALL=(ALL:ALL) ALL
Hit: Ctrl+ X Then: Y to exit and save
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
reboot
After the restart su to lisk user created earlier:
su - lisk
Download and Install Lisk
wget https://downloads.lisk.io/scripts/installLisk.sh
bash installLisk.sh install -r main
cd lisk-main
source env.sh
echo "source $(pwd)/env.sh" >> ~/.bash_profile
Create new account
To access the Lisk web client open a browser and go to:http://[ipaddress or domain]:8000/
Click on "NEW ACCOUNT" button and follow the steps.
Save the passphrase at multiple secure locations!
After confirming the passphrase by entering it again you will be logged in into your account.Register as a Delegate
Click on "DELEGATE REGISTRATION" at the top right corner. Choose a delegate name. There is a fee of 25 LSK. Only the top 101 delegates will get rewards for forging. All fees are shared equally between the top 101 delegates. In the future delegates that are outside of the top 101 can secure side chains for different applications on the platform.Enable Forging
Stop the running Lisk node and edit the config file:bash lisk.sh stop
nano config.json
Find the following section and enter your passphrase:
"forging": {
"secret" : ["YourDelegatePassphrase"]
}
Start Lisk:
bash lisk.sh start
Some helpful commands:
bash lisk.sh stop
bash lisk.sh start
bash lisk.sh restart
bash lisk.sh reload
bash lisk.sh status
bash lisk.sh logs
bash lisk.sh rebuild
thank you very much