···7# 1. Create a new sudo user.
8# 2. Move the root SSH key to the new user.
9# 3. Harden the SSH server configuration.
10-# 4. Install bat, eza, and Docker.
1112# --- Configuration ---
13readonly USERNAME="finxol"
···161chmod o+r /etc/apt/sources.list.d/caddy-stable.list
162sudo apt update
163sudo apt install caddy
0000000164165# --- Finalization ---
166log "Server setup complete!"
···7# 1. Create a new sudo user.
8# 2. Move the root SSH key to the new user.
9# 3. Harden the SSH server configuration.
10+# 4. Install bat, eza, Docker, Caddy, and chrony for time synchronization.
1112# --- Configuration ---
13readonly USERNAME="finxol"
···161chmod o+r /etc/apt/sources.list.d/caddy-stable.list
162sudo apt update
163sudo apt install caddy
164+165+# --- Time Synchronization ---
166+log "Installing and configuring chrony for time synchronization"
167+apt-get install -y chrony
168+# Start and enable chrony service
169+systemctl enable --now chronyd || true
170+echo "chrony installed and configured for automatic time synchronization."
171172# --- Finalization ---
173log "Server setup complete!"