From 8d472eb20a5120eaedb87275984ecf9cc6c21b2d Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 6 Mar 2025 23:05:11 +0100 Subject: [PATCH] Update --- .../docs/post-install/customization/page.tsx | 54 ++++--------------- web/components/code-block.tsx | 36 +++++++++++++ 2 files changed, 46 insertions(+), 44 deletions(-) create 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 b9d8a6a..1f66dbf 100644 --- a/web/app/docs/post-install/customization/page.tsx +++ b/web/app/docs/post-install/customization/page.tsx @@ -1,33 +1,5 @@ -import type { Metadata } from "next" import { Sliders } from "lucide-react" - -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"], - }, -} +import CodeBlock from "./code-block" function StepNumber({ number }: { number: number }) { return ( @@ -71,9 +43,8 @@ export default function CustomizationSettingsPage() {

This adjustment automates the following commands:

-
-
-          {`# Modify .bashrc for root
+      > /root/.bashrc
 echo 'export PS1="\\u@\\h:\\W \\\$ "' >> /root/.bashrc
 echo "alias ll='ls -alF'" >> /root/.bashrc
 source /root/.bashrc`}
-        
-
+ />

@@ -92,14 +62,12 @@ 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
+       temp && mv temp /etc/motd`}
-        
-
+ />

@@ -117,15 +85,13 @@ 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
    +       /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 new file mode 100644 index 0000000..12908fc --- /dev/null +++ b/web/components/code-block.tsx @@ -0,0 +1,36 @@ +"use client" + +interface CodeBlockProps { + code: string +} + +export default function CodeBlock({ code }: CodeBlockProps) { + return ( +
    +
    {code}
    + +
    + ) +} +