sudo ufw allow from ${REMOTE.HOST.IP} to any port 8545
Not advised to allow all or unknown IP address to RPC port
Enable Firewall
sudo ufw enable
#Download the Go programming language distribution archive
wget https://golang.org/dl/go1.21.6.linux-amd64.tar.gz
#Extract it to the /usr/local directory and install Go v1.21.6 on the system
sudo tar -C /usr/local -xzf go1.21.6.linux-amd64.tar.gz
#add the Go executable path to your system's PATH environment variable,
echo 'export PATH=/usr/local/go/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
#test to ensure that Go is working correctly
go version
Setup the Geth client to run Linea
git clone https://github.com/ethereum/go-ethereum.git
cd go-ethereum
#Reportedly most stable version to run Linea node 1.13.4-stable-3f907d6a
git checkout v1.13.15
make geth
cd
#Create directory for database
mkdir linea-datadir
cd linea-datadir
#Download Genesis file
wget https://docs.linea.build/files/geth/mainnet/genesis.json
#Bootstrap the node:
cd /root/go-ethereum
./build/bin/geth --datadir /root/linea-datadir/ init /root/linea-datadir/genesis.json