💻Baremetal
Author: [ jLeopoldA ]
System Requirements
CPU
OS
RAM
DISK
4+Cores
Ubuntu 24.04.1 LTS
32GB
16TB
Pre-Requisites
Update and Clean System
sudo apt update -y && sudo apt upgrade -y && sudo apt auto-remove -yInstall Docker & Docker-Compose
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
# Install Docker Packages including Docker Compose
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Verify Docker Engine Installation
sudo docker run hello-worldFirewall Configuration
Set Explicit Default Firewall Rules
Allow SSH
Allow RPC Connections with Zksync
Allow P2P & Metrics
Enable Firewall
Check Status & Current Rules of UFW
PostgreSQL
Install PostgreSQL
Set Password
Download and Import Database Dump
Download Database Dump
Import Database Dump
Ensure that your database has finished importing before proceeding to the next step.
Set up Zksync
Create Directories
Extract Zksync Binaries from Docker
Perform Database Migration
Create Mainnet Consensus Configuration
Create System Service
Run Zksync Archive Node
Systemctl Commands for Zksync
Query Zksync Node
Last updated
Was this helpful?