2025-03-01 18:54:51 +01:00
|
|
|
import type { Metadata } from "next"
|
2025-03-01 21:16:07 +01:00
|
|
|
import { Settings } from 'lucide-react'
|
2025-03-01 18:59:52 +01:00
|
|
|
import CopyableCode from "@/components/CopyableCode"
|
2025-03-01 21:16:07 +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 16:49:24 +01:00
|
|
|
const installUtilitiesCode = `
|
2025-03-01 18:46:22 +01:00
|
|
|
# Update package lists
|
2025-03-01 16:49:24 +01:00
|
|
|
sudo apt-get update
|
2025-03-01 18:46:22 +01:00
|
|
|
|
|
|
|
# Install common system utilities
|
|
|
|
sudo apt-get install -y axel curl dialog dnsutils dos2unix gnupg-agent grc htop btop iftop iotop
|
|
|
|
sudo apt-get install -y iperf3 ipset iptraf-ng mlocate msr-tools nano net-tools omping
|
|
|
|
sudo apt-get install -y software-properties-common sshpass tmux unzip vim vim-nox wget whois zip
|
|
|
|
sudo apt-get install -y libguestfs-tools
|
2025-03-01 16:49:24 +01:00
|
|
|
`
|
|
|
|
|
|
|
|
const skipLanguagesCode = `
|
2025-03-01 18:46:22 +01:00
|
|
|
# Configure APT to skip downloading additional languages
|
2025-03-01 16:49:24 +01:00
|
|
|
echo 'Acquire::Languages "none";' | sudo tee /etc/apt/apt.conf.d/99-disable-translations
|
|
|
|
`
|
|
|
|
|
|
|
|
const timeSyncCode = `
|
2025-03-01 18:46:22 +01:00
|
|
|
# Note: To set timezone automatically based on IP, you can use:
|
2025-03-01 19:29:41 +01:00
|
|
|
IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
|
|
|
|
TIMEZONE=$(curl -s "https://ipapi.co/$IP/timezone")
|
|
|
|
sudo timedatectl set-timezone "$TIMEZONE"
|
2025-03-01 18:07:08 +01:00
|
|
|
`
|
2025-03-01 16:49:24 +01:00
|
|
|
|
|
|
|
const updateUpgradeCode = `
|
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
|
|
|
|
|
|
|
|
# Disable enterprise Proxmox Ceph repository
|
|
|
|
if [ -f /etc/apt/sources.list.d/ceph.list ]; then
|
|
|
|
sudo sed -i 's/^deb/#deb/g' /etc/apt/sources.list.d/ceph.list
|
|
|
|
fi
|
2025-03-01 16:49:24 +01:00
|
|
|
|
2025-03-01 18:46:22 +01:00
|
|
|
# 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 18:46:22 +01:00
|
|
|
# Enable Proxmox testing repository
|
|
|
|
echo "deb http://download.proxmox.com/debian/pve $(lsb_release -cs) pvetest" | sudo tee /etc/apt/sources.list.d/pve-testing-repo.list
|
|
|
|
|
|
|
|
# Configure main Debian repositories
|
|
|
|
cat <<EOF | sudo tee /etc/apt/sources.list
|
|
|
|
deb http://deb.debian.org/debian $(lsb_release -cs) main contrib non-free non-free-firmware
|
|
|
|
deb http://deb.debian.org/debian $(lsb_release -cs)-updates main contrib non-free non-free-firmware
|
|
|
|
deb http://security.debian.org/debian-security $(lsb_release -cs)-security main contrib non-free non-free-firmware
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# Disable non-free firmware warnings
|
|
|
|
echo 'APT::Get::Update::SourceListWarnings::NonFreeFirmware "false";' | sudo tee /etc/apt/apt.conf.d/no-bookworm-firmware.conf
|
|
|
|
|
2025-03-01 16:49:24 +01:00
|
|
|
# Update and upgrade
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get dist-upgrade -y
|
|
|
|
|
|
|
|
# Update PVE application manager
|
|
|
|
pveam update
|
|
|
|
|
|
|
|
# Install additional packages
|
|
|
|
sudo apt-get install -y zfsutils-linux proxmox-backup-restore-image chrony
|
|
|
|
`
|
|
|
|
|
2025-02-25 20:40:47 +01:00
|
|
|
return (
|
|
|
|
<div className="container mx-auto px-4 py-8">
|
2025-02-25 20:55:48 +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>
|
2025-02-25 20:40:47 +01:00
|
|
|
<p className="mb-4">
|
2025-03-01 21:16:07 +01:00
|
|
|
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.
|
2025-02-25 20:40:47 +01:00
|
|
|
</p>
|
2025-03-01 16:49:24 +01:00
|
|
|
|
|
|
|
<h2 className="text-2xl font-semibold mt-8 mb-4">Available Optimizations</h2>
|
|
|
|
|
2025-03-01 21:16:07 +01:00
|
|
|
<Steps>
|
2025-03-01 21:20:04 +01:00
|
|
|
<Steps.Step title="Install Common System Utilities">
|
2025-03-01 21:23:06 +01:00
|
|
|
<p>This optimization installs a set of common system utilities that are useful for system administration and troubleshooting.</p>
|
|
|
|
<p className="mt-2"><strong>Why it's beneficial:</strong> Having these utilities pre-installed saves time when managing your Proxmox VE system. They provide essential tools for monitoring system performance, managing files, and troubleshooting issues, enhancing your ability to maintain and optimize your virtualization environment.</p>
|
|
|
|
<h4 className="text-lg font-semibold mt-4 mb-2">To apply this optimization manually, run these commands:</h4>
|
|
|
|
<CopyableCode code={installUtilitiesCode} />
|
2025-03-01 21:16:07 +01:00
|
|
|
</Steps.Step>
|
|
|
|
|
2025-03-01 21:20:04 +01:00
|
|
|
<Steps.Step title="Skip Downloading Additional Languages">
|
2025-03-01 21:23:06 +01:00
|
|
|
<p>This optimization configures APT to skip downloading additional language packages, which can save disk space and speed up package operations.</p>
|
|
|
|
<p className="mt-2"><strong>Why it's beneficial:</strong> By skipping unnecessary language packages, you can reduce disk usage and improve the speed of package management operations. This is particularly useful in server environments where multiple language support is often not required.</p>
|
|
|
|
<h4 className="text-lg font-semibold mt-4 mb-2">To apply this optimization manually, run this command:</h4>
|
|
|
|
<CopyableCode code={skipLanguagesCode} />
|
2025-03-01 21:16:07 +01:00
|
|
|
</Steps.Step>
|
|
|
|
|
2025-03-01 21:20:04 +01:00
|
|
|
<Steps.Step title="Synchronize Time Automatically">
|
2025-03-01 21:23:06 +01:00
|
|
|
<p>This optimization configures the system to automatically synchronize its time, ensuring accurate timekeeping.</p>
|
|
|
|
<p className="mt-2"><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 mt-4 mb-2">To apply this optimization manually, run these commands:</h4>
|
|
|
|
<CopyableCode code={timeSyncCode} />
|
2025-03-01 21:16:07 +01:00
|
|
|
</Steps.Step>
|
|
|
|
|
2025-03-01 21:20:04 +01:00
|
|
|
<Steps.Step title="Update and Upgrade System">
|
2025-03-01 21:23:06 +01:00
|
|
|
<p>This optimization updates the system's package lists, upgrades installed packages, and configures Proxmox repositories.</p>
|
|
|
|
<p className="mt-2"><strong>Why it's beneficial:</strong> Keeping your system up-to-date is essential for security, stability, and performance. This optimization ensures you have the latest patches and features, while also configuring the correct repositories for Proxmox VE, enabling access to necessary updates and tools.</p>
|
|
|
|
<p className="mt-2">The additional steps help in:</p>
|
|
|
|
<ul className="list-disc pl-6 space-y-1 mt-2">
|
|
|
|
<li>Disabling enterprise repositories to avoid conflicts</li>
|
|
|
|
<li>Enabling free and testing repositories for broader package access</li>
|
|
|
|
<li>Properly configuring Debian repositories for a stable system</li>
|
|
|
|
<li>Suppressing non-free firmware warnings for a cleaner update experience</li>
|
|
|
|
</ul>
|
|
|
|
<h4 className="text-lg font-semibold mt-4 mb-2">To apply this optimization manually, run these commands:</h4>
|
|
|
|
<CopyableCode code={updateUpgradeCode} />
|
2025-03-01 21:16:07 +01:00
|
|
|
</Steps.Step>
|
|
|
|
</Steps>
|
2025-03-01 16:49:24 +01:00
|
|
|
|
2025-03-01 18:07:08 +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 21:16:07 +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
|
2025-03-01 18:46:22 +01:00
|
|
|
consistently and correctly, saving time and reducing the potential for human error during manual
|
|
|
|
configuration.
|
2025-03-01 18:07:08 +01:00
|
|
|
</p>
|
|
|
|
</section>
|
2025-02-25 20:40:47 +01:00
|
|
|
</div>
|
|
|
|
)
|
2025-03-01 21:16:07 +01:00
|
|
|
}
|