From 7d68767ec41d8c77a79040e349b617d3dc482df7 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 1 Mar 2025 17:51:22 +0100 Subject: [PATCH] updata --- .../docs/post-install/basic-settings/page.tsx | 18 ++++++++++++------ web/app/docs/post-install/system/page.tsx | 1 + 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/web/app/docs/post-install/basic-settings/page.tsx b/web/app/docs/post-install/basic-settings/page.tsx index 9871988..d1598f8 100644 --- a/web/app/docs/post-install/basic-settings/page.tsx +++ b/web/app/docs/post-install/basic-settings/page.tsx @@ -22,12 +22,18 @@ echo 'Acquire::Languages "none";' | sudo tee /etc/apt/apt.conf.d/99-disable-tran ` const timeSyncCode = ` -# Set system timezone automatically based on IP -IP=$(dig +short myip.opendns.com @resolver1.opendns.com) -TIMEZONE=$(curl -s "https://ipapi.co/${IP}/timezone") -timedatectl set-timezone "$TIMEZONE" -timedatectl set-ntp true - ` +# Set timezone (replace 'America/New_York' with your timezone) +sudo timedatectl set-timezone America/New_York + +# Enable automatic time synchronization +sudo timedatectl set-ntp true + +# Note: Automatic timezone setting based on IP is commented out to avoid errors +# To set timezone automatically based on IP, you would need to run: +# IP=$(dig +short myip.opendns.com @resolver1.opendns.com) +# TIMEZONE=$(curl -s "https://ipapi.co/$IP/timezone") +# sudo timedatectl set-timezone "$TIMEZONE" +` const updateUpgradeCode = ` # Disable enterprise repos diff --git a/web/app/docs/post-install/system/page.tsx b/web/app/docs/post-install/system/page.tsx index d8cc33c..fa123a1 100644 --- a/web/app/docs/post-install/system/page.tsx +++ b/web/app/docs/post-install/system/page.tsx @@ -204,6 +204,7 @@ EOF sudo sysctl -p /etc/sysctl.d/99-memory.conf ` + return (