import type { Metadata } from "next" import { Paintbrush } from "lucide-react" import CopyableCode from "@/components/CopyableCode" export const metadata: Metadata = { title: "ProxMenux Post-Install: Customization Settings", description: "Guide to Customization Settings in the ProxMenux post-install script for personalizing your Proxmox VE environment.", openGraph: { title: "ProxMenux Post-Install: Customization Settings", description: "Guide to Customization Settings in the ProxMenux post-install script for personalizing your Proxmox VE environment.", type: "article", url: "https://macrimi.github.io/ProxMenux/docs/post-install/customization", images: [ { url: "https://macrimi.github.io/ProxMenux/customization-settings-image.png", width: 1200, height: 630, alt: "ProxMenux Post-Install Customization Settings", }, ], }, twitter: { card: "summary_large_image", title: "ProxMenux Post-Install: Customization Settings", description: "Guide to Customization Settings in the ProxMenux post-install script for personalizing your Proxmox VE environment.", images: ["https://macrimi.github.io/ProxMenux/customization-settings-image.png"], }, } function StepNumber({ number }: { number: number }) { return (
{number}
) } export default function CustomizationSettingsPage() { return (

Customization Settings

The Customization Settings category allows you to personalize various aspects of your Proxmox VE installation. These settings are optional and can be adjusted according to your preferences.

Available Customizations

Customize bashrc

This customization modifies the .bashrc file for the root user, adding various aliases and configurations.

The following changes are made:

This adjustment automates the following commands:

> /root/.bashrc echo 'export PS1="\[\e[31m\][\[\e[m\]\[\e[38;5;172m\]\u\[\e[m\]@\[\e[38;5;153m\]\h\[\e[m\] \[\e[38;5;214m\]\W\[\e[m\]\[\e[31m\]]\[\e[m\]\\$ "' >> /root/.bashrc echo "alias l='ls -CF'" >> /root/.bashrc echo "alias la='ls -A'" >> /root/.bashrc echo "alias ll='ls -alF'" >> /root/.bashrc echo "alias ls='ls --color=auto'" >> /root/.bashrc echo "alias grep='grep --color=auto'" >> /root/.bashrc echo "alias fgrep='fgrep --color=auto'" >> /root/.bashrc echo "alias egrep='egrep --color=auto'" >> /root/.bashrc echo "source /etc/profile.d/bash_completion.sh" >> /root/.bashrc # Ensure .bashrc is sourced in .bash_profile echo "source /root/.bashrc" >> /root/.bash_profile `} />

Remove Subscription Banner

This customization removes the Proxmox VE subscription banner and nag messages from the web interface.

The following changes are made:

This adjustment automates the following commands:

/etc/cron.daily/xs-pve-nosub #!/bin/sh sed -i "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js sed -i "s/checked_command: function(orig_cmd) {/checked_command: function() {} || function(orig_cmd) {/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js EOF chmod 755 /etc/cron.daily/xs-pve-nosub # Create APT hook for nag removal echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/xs-pve-no-nag # Apply changes immediately apt --reinstall install proxmox-widget-toolkit `} />

Set up Custom MOTD Banner

This customization adds a custom message to the MOTD (Message of the Day) that appears when logging into the system via SSH.

The following changes are made:

  • Adds a custom message at the beginning of the MOTD file
  • Creates a backup of the original MOTD file
  • Removes any empty lines from the MOTD file

This adjustment automates the following commands:

/etc/motd sed -i '/^$/N;/^\n$/D' /etc/motd `} />

Automatic Application

All of these customizations are automatically applied when selected in the Customization section. This automation ensures that these personalized settings are applied consistently and correctly, saving time and reducing the potential for manual configuration errors.

) }