115 lines
5.4 KiB
TypeScript
Raw Normal View History

2025-03-01 18:54:51 +01:00
import type { Metadata } from "next"
2025-03-01 23:50:02 +01:00
import { Settings } from 'lucide-react'
2025-03-01 18:59:52 +01:00
import CopyableCode from "@/components/CopyableCode"
2025-03-01 23:50:02 +01:00
import { Steps } from "@/components/ui/steps"
2025-02-25 20:40:47 +01:00
export const metadata: Metadata = {
title: "ProxMenux Post-Install: Basic Settings",
description:
"Detailed guide to the Basic Settings category in the ProxMenux post-install script for Proxmox VE optimization.",
2025-03-01 18:07:08 +01:00
openGraph: {
title: "ProxMenux Post-Install: Basic Settings",
description:
"Detailed guide to the Basic Settings category in the ProxMenux post-install script for Proxmox VE optimization.",
type: "article",
url: "https://macrimi.github.io/ProxMenux/docs/post-install/basic-settings",
images: [
{
url: "https://macrimi.github.io/ProxMenux/basic-settings-image.png",
width: 1200,
height: 630,
alt: "ProxMenux Post-Install Basic Settings",
},
],
},
twitter: {
card: "summary_large_image",
title: "ProxMenux Post-Install: Basic Settings",
description:
"Detailed guide to the Basic Settings category in the ProxMenux post-install script for Proxmox VE optimization.",
images: ["https://macrimi.github.io/ProxMenux/basic-settings-image.png"],
},
2025-02-25 20:40:47 +01:00
}
export default function BasicSettingsPage() {
2025-03-01 22:07:17 +01:00
return (
2025-03-01 23:50:02 +01:00
<div className="container mx-auto px-4 py-8 max-w-screen-lg">
2025-03-01 22:07:17 +01:00
<div className="flex items-center mb-6">
<Settings className="h-8 w-8 mr-2 text-blue-500" />
<h1 className="text-3xl font-bold">Basic Settings</h1>
</div>
<p className="mb-4">
The <strong>Basic Settings</strong> category focuses on foundational configurations for your Proxmox VE
installation, including installing essential utilities, adding repositories, managing packages, and keeping the
system up to date.
</p>
<h2 className="text-2xl font-semibold mt-8 mb-4">Available Optimizations</h2>
2025-03-01 23:50:02 +01:00
<Steps>
{/* Step 1 */}
<Steps.Step title="Install Common System Utilities">
<p>This optimization installs a set of common system utilities that are useful for system administration and troubleshooting.</p>
<p><strong>Why it's beneficial:</strong> Having these utilities pre-installed saves time when managing your Proxmox VE system.</p>
2025-03-01 23:34:26 +01:00
<h4 className="text-lg font-semibold mb-2">Utilities installed:</h4>
2025-03-01 23:50:02 +01:00
<ul className="list-disc pl-5 mb-4">
<li><strong>axel</strong>: A light command-line download accelerator</li>
<li><strong>curl</strong>: A tool for transferring data using various protocols</li>
<li><strong>dnsutils</strong>: DNS utilities including dig and nslookup</li>
<li><strong>htop</strong>: An interactive process viewer</li>
<li><strong>iperf3</strong>: A tool for network performance testing</li>
2025-03-01 23:34:26 +01:00
</ul>
2025-03-01 23:50:02 +01:00
<div className="max-w-full overflow-x-auto">
<CopyableCode code={`sudo apt-get install -y axel curl dnsutils htop iperf3`} />
</div>
</Steps.Step>
{/* Step 2 */}
<Steps.Step title="Skip Downloading Additional Languages">
<p>This optimization configures APT to skip downloading additional language packages, which can save disk space.</p>
<p><strong>Why it's beneficial:</strong> Reduces disk usage and improves the speed of package management.</p>
<div className="max-w-full overflow-x-auto">
<CopyableCode code={`echo 'Acquire::Languages "none";' | sudo tee /etc/apt/apt.conf.d/99-disable-translations`} />
</div>
</Steps.Step>
{/* Step 3 */}
<Steps.Step title="Synchronize Time Automatically">
<p>This optimization configures the system to automatically synchronize its time, ensuring accurate timekeeping.</p>
<p><strong>Why it's beneficial:</strong> Ensures accurate system logs and application timestamps.</p>
<div className="max-w-full overflow-x-auto">
<CopyableCode code={`sudo timedatectl set-timezone "UTC"`} />
</div>
</Steps.Step>
{/* Step 4 */}
<Steps.Step title="Update and Upgrade System">
<p>This optimization updates the system's package lists, upgrades installed packages, and configures Proxmox repositories.</p>
<p><strong>Why it's beneficial:</strong> Ensures security patches and stability improvements.</p>
<div className="max-w-full overflow-x-auto">
<CopyableCode code={`
2025-03-01 18:46:22 +01:00
# Disable enterprise Proxmox repository
if [ -f /etc/apt/sources.list.d/pve-enterprise.list ]; then
sudo sed -i 's/^deb/#deb/g' /etc/apt/sources.list.d/pve-enterprise.list
fi
# Enable free public Proxmox repository
2025-03-01 16:49:24 +01:00
echo "deb http://download.proxmox.com/debian/pve $(lsb_release -cs) pve-no-subscription" | sudo tee /etc/apt/sources.list.d/pve-public-repo.list
2025-03-01 23:50:02 +01:00
# Update and upgrade system
sudo apt-get update && sudo apt-get dist-upgrade -y
`} />
</div>
</Steps.Step>
</Steps>
2025-03-01 22:55:23 +01:00
2025-03-01 22:07:17 +01:00
<section className="mt-12 p-4 bg-blue-100 rounded-md">
<h2 className="text-xl font-semibold mb-2">Automatic Application</h2>
<p>
2025-03-01 23:50:02 +01:00
All of these optimizations are automatically applied when selected in the Basic Settings section.
This automation ensures that these beneficial settings are applied consistently and correctly, saving time and reducing human error.
2025-03-01 21:37:43 +01:00
</p>
2025-03-01 22:07:17 +01:00
</section>
</div>
)
}