mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-06 15:36:53 +00:00
Update
This commit is contained in:
parent
b34390343f
commit
b008b7a7dc
@ -203,20 +203,6 @@ EOF
|
|||||||
|
|
||||||
# Apply sysctl changes
|
# Apply sysctl changes
|
||||||
sudo sysctl -p /etc/sysctl.d/99-memory.conf
|
sudo sysctl -p /etc/sysctl.d/99-memory.conf
|
||||||
`
|
|
||||||
|
|
||||||
const timeSyncCode = `
|
|
||||||
# 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"
|
|
||||||
`
|
`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -340,20 +326,6 @@ sudo timedatectl set-ntp true
|
|||||||
</p>
|
</p>
|
||||||
<h4 className="text-lg font-semibold mb-2">To apply this optimization manually, run these commands:</h4>
|
<h4 className="text-lg font-semibold mb-2">To apply this optimization manually, run these commands:</h4>
|
||||||
<CopyableCode code={memorySettingsCode} />
|
<CopyableCode code={memorySettingsCode} />
|
||||||
</section>
|
|
||||||
<section className="mb-8">
|
|
||||||
<h3 className="text-xl font-semibold mb-2">9. Synchronize Time Automatically</h3>
|
|
||||||
<p className="mb-4">
|
|
||||||
This optimization configures the system to automatically synchronize its time, ensuring accurate timekeeping.
|
|
||||||
</p>
|
|
||||||
<p className="mb-4">
|
|
||||||
<strong>Why it's beneficial:</strong> Accurate timekeeping is crucial for many system operations, log
|
|
||||||
consistency, and proper functioning of time-sensitive applications. Automatic synchronization ensures your
|
|
||||||
Proxmox VE system maintains the correct time without manual intervention.
|
|
||||||
</p>
|
|
||||||
<h4 className="text-lg font-semibold mb-2">To apply this optimization manually, run these commands:</h4>
|
|
||||||
<CopyableCode code={timeSyncCode} />
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section className="mt-12 p-4 bg-blue-100 rounded-md">
|
<section className="mt-12 p-4 bg-blue-100 rounded-md">
|
||||||
<h2 className="text-xl font-semibold mb-2">Automatic Application</h2>
|
<h2 className="text-xl font-semibold mb-2">Automatic Application</h2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user