import type { Metadata } from "next" import { Settings } from "lucide-react" import { CopyableCode } from "@/components/CopyableCode" 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 = ` # Update package lists sudo apt-get update # 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 ` const skipLanguagesCode = ` # Configure APT to skip downloading additional languages echo 'Acquire::Languages "none";' | sudo tee /etc/apt/apt.conf.d/99-disable-translations ` 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: To set timezone automatically based on IP, you can use: # 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 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 # Enable free public Proxmox repository 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 # 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 <

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, run these commands:

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, run this command:

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, run these commands:

4. Update and Upgrade System

This optimization updates the system's package lists, upgrades installed packages, and configures Proxmox repositories. It also includes additional steps to properly set up Debian repositories and disable certain warnings.

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. The additional steps help in:

To apply this optimization manually, run these commands:

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, saving time and reducing the potential for human error during manual configuration.

) }