Today @howo published How to participate in the tesntets this week (full guide) which made me want to try his guide to prepare for the next HF24 Eclipse.
It's perfect, I just have a VPS server on standby that I can play with. A 4 vCores with 8Gb of RAM and 160Gb in NVMe, I think it will be efficient, since the hardware requirements are not huge.
Here we go!
You can't install Hard fork 23 on Ubuntu 20.04 LTS (Focal Fossa). it not have package
Signals (v1) is now removed. Its removal was announced in 1.68 and its deprecation was announced in 1.54. Boost 1.68 is the last release that provides this library.
My first try of
HF24 Eclipse with an Ubuntu 18.04 LTS (Bionic Beaver)
In order to be able to compile, I still had to add a swap file of 8Gb
How to add a Swap File
cd / sudo dd if=/dev/zero of=swapfile bs=1M count=8000 sudo mkswap swapfile sudo swapon swapfile sudo nano etc/fstab
Add the line given below, save and close.
/swapfile none swap sw 0 0
A better Time Synchronization with NTP
For a better time synchronization, I will use the NTP packet.
Before installing ntpd, we should turn off timesyncd (the default manager for time synchronization):
witness@vps-cb013bf5:~$ sudo timedatectl set-ntp no
To install the NTP packet run the command
witness@vps-cb013bf5:~$ sudo apt install ntp
ntpd will be started automatically after install. You can check the version with the command
witness@vps-cb013bf5:~$ sntp --version sntp email@example.com (1)
We need to edit the
ntp.conf file to replace the default ubuntu.pool with something closer. To do this, you first need to check here https://www.ntppool.org/zone/@ which are the closest pool servers.
witness@vps-cb013bf5:~$ sudo vim /etc/ntp.conf
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for # more information. pool 0.ubuntu.pool.ntp.org iburst pool 1.ubuntu.pool.ntp.org iburst pool 2.ubuntu.pool.ntp.org iburst pool 3.ubuntu.pool.ntp.org iburst
By your nearest NTP pool servers (fr in my case)
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for # more information. pool 0.fr.pool.ntp.org iburst pool 1.fr.pool.ntp.org iburst pool 2.fr.pool.ntp.org iburst pool 3.fr.pool.ntp.org iburst
Restart the service
witness@vps-cb013bf5:~$ sudo service ntp restart
Check if everything OK
witness@vps-cb013bf5:~$ ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== 0.fr.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.000 1.fr.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.000 2.fr.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.000 3.fr.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.000
Increase the max open files limit
To avoid the problem of Too many open files we need to make a few changes to the ulimit
witness@vps-cb013bf5:~$ sudo vim /etc/security/limits.conf
Add the following lines
root soft nproc 999999 root hard nproc 999999 root soft nofile 999999 root hard nofile 999999 witness soft nproc 999999 witness hard nproc 999999 witness soft nofile 999999 witness hard nofile 999999
witness@vps-cb013bf5:~$ sudo vim /etc/pam.d/common-session
Add the following line
session required pam_limits.so
Reboot the server for the change to take effect.
Check the open files limit (need to be connected with the right user!)
witness@vps-cb013bf5:~$ ulimit -n 999999
Check of the version
Send the transaction from wallet
And finally my server makes blocks
On the Testnet it's not like in Production where I validate 1 block every 3 and a half days, here it's a lot of work 😁🤣😋
My second try of
HF24 Eclipse with an Ubuntu 20.04 LTS (Focal Fossa)
I used more time than expected for the first try and this post so for the second try it will be later 😉
HaPpY 100 days on Hive!
[MTW Toolbox] SEO & some changes 👨💻
My 1st HIVE block engraved in the rock 🏆
[MTW Toolbox] A new view of witnesses 👨💻
If you like my work, consider voting for my witness
it will only cost you 30 seconds of your time 😉
My witness presentation: @mintrawa a Gen X - Geek 🤓 Gamer 🎮 Traveler ⛩️ Witness
Upvote for my witness: https://toolbox.mintrawa.com/witnesses/@mintrawa or click here via HiveSigner