From 8e42d86ce63a0d20d8e32339d85886d61b2cdb6f Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 6 Mar 2025 23:12:45 +0100 Subject: [PATCH] Update --- .../docs/post-install/customization/page.tsx | 56 +++++++++++++++---- web/components/code-block.tsx | 36 ------------ 2 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 web/components/code-block.tsx diff --git a/web/app/docs/post-install/customization/page.tsx b/web/app/docs/post-install/customization/page.tsx index 1f66dbf..bf8a4a4 100644 --- a/web/app/docs/post-install/customization/page.tsx +++ b/web/app/docs/post-install/customization/page.tsx @@ -1,5 +1,35 @@ +import type { Metadata } from "next" import { Sliders } from "lucide-react" -import CodeBlock from "./code-block" + + +export const metadata: Metadata = { + title: "ProxMenux Post-Install: Customization Settings", + description: + "Guide to Customization Settings in the ProxMenux post-install script for configuring the Proxmox VE environment.", + openGraph: { + title: "ProxMenux Post-Install: Customization Settings", + description: + "Guide to Customization Settings in the ProxMenux post-install script for configuring the 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 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 configuring the Proxmox VE environment.", + images: ["https://macrimi.github.io/ProxMenux/customization-settings-image.png"], + }, +} + function StepNumber({ number }: { number: number }) { return ( @@ -43,8 +73,9 @@ export default function CustomizationSettingsPage() {

This adjustment automates the following commands:

- +
+          {`# Modify .bashrc for root
 cp /root/.bashrc /root/.bashrc.bak
 sed -i '/HISTTIMEFORMAT/d' /root/.bashrc
 sed -i '/PS1/d' /root/.bashrc
@@ -54,7 +85,8 @@ echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> /root/.bashrc
 echo 'export PS1="\\u@\\h:\\W \\\$ "' >> /root/.bashrc
 echo "alias ll='ls -alF'" >> /root/.bashrc
 source /root/.bashrc`}
-      />
+        
+

@@ -62,12 +94,14 @@ source /root/.bashrc`}

This option customizes the MOTD to display a ProxMenux optimization message upon login.

This adjustment automates the following commands:

- +
+          {`# Backup original MOTD
 cp /etc/motd /etc/motd.bak
 
 echo "This system is optimized by: ProxMenux" | cat - /etc/motd > temp && mv temp /etc/motd`}
-      />
+        
+

@@ -85,13 +119,15 @@ echo "This system is optimized by: ProxMenux" | cat - /etc/motd > temp && mv tem
  • Configures APT to prevent nagging messages
  • This adjustment automates the following commands:

    - +
    +          {`# Remove Proxmox subscription banner
     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
     
     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`}
    -      />
    +        
    +

    Customization Application

    diff --git a/web/components/code-block.tsx b/web/components/code-block.tsx deleted file mode 100644 index 12908fc..0000000 --- a/web/components/code-block.tsx +++ /dev/null @@ -1,36 +0,0 @@ -"use client" - -interface CodeBlockProps { - code: string -} - -export default function CodeBlock({ code }: CodeBlockProps) { - return ( -
    -
    {code}
    - -
    - ) -} -