mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-08-25 13:51:15 +00:00
update
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
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",
|
||||
@@ -31,32 +32,61 @@ export const metadata: Metadata = {
|
||||
|
||||
export default function BasicSettingsPage() {
|
||||
const installUtilitiesCode = `
|
||||
# Update package lists
|
||||
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
|
||||
|
||||
# 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 = `
|
||||
# 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"
|
||||
# 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 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
|
||||
# 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 repo
|
||||
# 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 <<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
|
||||
|
||||
# Update and upgrade
|
||||
sudo apt-get update
|
||||
sudo apt-get dist-upgrade -y
|
||||
@@ -92,10 +122,8 @@ sudo apt-get install -y zfsutils-linux proxmox-backup-restore-image chrony
|
||||
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 mb-2">To apply this optimization manually, you would run:</h4>
|
||||
<pre className="bg-gray-100 p-4 rounded-md overflow-x-auto">
|
||||
<code>{installUtilitiesCode}</code>
|
||||
</pre>
|
||||
<h4 className="text-lg font-semibold mb-2">To apply this optimization manually, run these commands:</h4>
|
||||
<CopyableCode code={installUtilitiesCode} />
|
||||
</section>
|
||||
|
||||
<section className="mb-8">
|
||||
@@ -109,10 +137,8 @@ sudo apt-get install -y zfsutils-linux proxmox-backup-restore-image chrony
|
||||
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 mb-2">To apply this optimization manually, you would run:</h4>
|
||||
<pre className="bg-gray-100 p-4 rounded-md overflow-x-auto">
|
||||
<code>{skipLanguagesCode}</code>
|
||||
</pre>
|
||||
<h4 className="text-lg font-semibold mb-2">To apply this optimization manually, run this command:</h4>
|
||||
<CopyableCode code={skipLanguagesCode} />
|
||||
</section>
|
||||
|
||||
<section className="mb-8">
|
||||
@@ -125,27 +151,31 @@ sudo apt-get install -y zfsutils-linux proxmox-backup-restore-image chrony
|
||||
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 mb-2">To apply this optimization manually, you would run:</h4>
|
||||
<pre className="bg-gray-100 p-4 rounded-md overflow-x-auto">
|
||||
<code>{timeSyncCode}</code>
|
||||
</pre>
|
||||
<h4 className="text-lg font-semibold mb-2">To apply this optimization manually, run these commands:</h4>
|
||||
<CopyableCode code={timeSyncCode} />
|
||||
</section>
|
||||
|
||||
<section className="mb-8">
|
||||
<h3 className="text-xl font-semibold mb-2">4. Update and Upgrade System</h3>
|
||||
<p className="mb-4">
|
||||
This optimization updates the system's package lists, upgrades installed packages, and configures Proxmox
|
||||
repositories.
|
||||
repositories. It also includes additional steps to properly set up Debian repositories and disable certain
|
||||
warnings.
|
||||
</p>
|
||||
<p className="mb-4">
|
||||
<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.
|
||||
correct repositories for Proxmox VE, enabling access to necessary updates and tools. The additional steps help
|
||||
in:
|
||||
</p>
|
||||
<h4 className="text-lg font-semibold mb-2">To apply this optimization manually, you would run:</h4>
|
||||
<pre className="bg-gray-100 p-4 rounded-md overflow-x-auto">
|
||||
<code>{updateUpgradeCode}</code>
|
||||
</pre>
|
||||
<ul className="list-disc pl-5 mb-4">
|
||||
<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 mb-2">To apply this optimization manually, run these commands:</h4>
|
||||
<CopyableCode code={updateUpgradeCode} />
|
||||
</section>
|
||||
|
||||
<section className="mt-12 p-4 bg-blue-100 rounded-md">
|
||||
@@ -153,7 +183,8 @@ sudo apt-get install -y zfsutils-linux proxmox-backup-restore-image chrony
|
||||
<p>
|
||||
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.
|
||||
consistently and correctly, saving time and reducing the potential for human error during manual
|
||||
configuration.
|
||||
</p>
|
||||
</section>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user