From 9e58c8b42f04fb27736d411a53451f01e982b95e Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 1 Mar 2025 16:49:24 +0100 Subject: [PATCH] update --- .../docs/post-install/basic-settings/page.tsx | 153 +++++++++++++----- 1 file changed, 115 insertions(+), 38 deletions(-) diff --git a/web/app/docs/post-install/basic-settings/page.tsx b/web/app/docs/post-install/basic-settings/page.tsx index c626d39..9c49ab6 100644 --- a/web/app/docs/post-install/basic-settings/page.tsx +++ b/web/app/docs/post-install/basic-settings/page.tsx @@ -5,31 +5,49 @@ 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"], - }, + // ... (rest of the metadata remains the same) } 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 = ` +# 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 + ` + + 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 (
@@ -40,22 +58,81 @@ export default function BasicSettingsPage() { 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

-
    -
  • - Timezone Configuration: Set the system timezone to ensure accurate time-based operations. -
  • -
  • - Hostname Setup: Configure a custom hostname for easier identification of your Proxmox VE - server. -
  • -
  • - Repository Management: Optimize package repositories for faster updates and access to - necessary software. -
  • - {/* Add more list items for each optimization in this category */} -
-

Usage

+ +

Available Optimizations

+ +
+

1. Install Common System Utilities

+

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

+

What it does:

+
    +
  • Installs packages like curl, htop, iftop, nano, vim, and more
  • +
  • Checks which packages are already installed to avoid unnecessary installations
  • +
  • Provides a progress bar during the installation process
  • +
+

Manual commands:

+
+          {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. +

+

What it does:

+
    +
  • Creates or modifies the APT configuration file to skip language downloads
  • +
+

Manual commands:

+
+          {skipLanguagesCode}
+        
+
+ +
+

3. Synchronize Time Automatically

+

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

+

What it does:

+
    +
  • Attempts to set the timezone automatically based on the system's IP address
  • +
  • Enables automatic time synchronization using systemd's timesyncd
  • +
+

Manual commands:

+
+          {timeSyncCode}
+        
+
+ +
+

4. Update and Upgrade System

+

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

+

What it does:

+
    +
  • Disables enterprise Proxmox repositories
  • +
  • Enables free public Proxmox repository
  • +
  • Configures main Debian repositories
  • +
  • Updates package lists and performs a system upgrade
  • +
  • Updates PVE application manager
  • +
  • Installs additional Proxmox packages
  • +
+

Manual commands:

+
+          {updateUpgradeCode}
+        
+
+ +

Usage

When running the customizable_post_install.sh script, you'll be prompted to choose which Basic Settings optimizations to apply. You can select all or pick specific ones based on your needs.