import type { Metadata } from "next" import { Settings } from "lucide-react" 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.", 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"], }, } export default function BasicSettingsPage() { const installUtilitiesCode = ` sudo apt-get update sudo apt-get install -y axel curl dialog dnsutils dos2unix gnupg-agent grc htop btop iftop iotop \\ iperf3 ipset iptraf-ng mlocate msr-tools nano net-tools omping \\ software-properties-common sshpass tmux unzip vim vim-nox wget whois zip \\ libguestfs-tools ` const skipLanguagesCode = ` echo 'Acquire::Languages "none";' | sudo tee /etc/apt/apt.conf.d/99-disable-translations ` const timeSyncCode = ` # 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 sudo sed -i 's/^deb/#deb/g' /etc/apt/sources.list.d/pve-enterprise.list sudo sed -i 's/^deb/#deb/g' /etc/apt/sources.list.d/ceph.list # Enable free public repo 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 # 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 ` return (

Basic Settings

The Basic Settings category in the customizable_post_install.sh script covers fundamental configurations for your Proxmox VE installation. These settings lay the groundwork for a well-optimized system.

Available Optimizations

1. Install Common System Utilities

This optimization installs a set of common system utilities that are useful for system administration and troubleshooting.

Why it's beneficial: 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.

To apply this optimization manually, you would run:

          {installUtilitiesCode}
        

2. Skip Downloading Additional Languages

This optimization configures APT to skip downloading additional language packages, which can save disk space and speed up package operations.

Why it's beneficial: 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.

To apply this optimization manually, you would run:

          {skipLanguagesCode}
        

3. Synchronize Time Automatically

This optimization configures the system to automatically synchronize its time, ensuring accurate timekeeping.

Why it's beneficial: 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.

To apply this optimization manually, you would run:

          {timeSyncCode}
        

4. Update and Upgrade System

This optimization updates the system's package lists, upgrades installed packages, and configures Proxmox repositories.

Why it's beneficial: 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.

To apply this optimization manually, you would run:

          {updateUpgradeCode}
        

Automatic Application

All of these optimizations are automatically applied when selected in the Basic Settings section of the customizable_post_install.sh script. This automation ensures that these beneficial settings are applied consistently and correctly.

) }