85 lines
4.5 KiB
TypeScript
Raw Normal View History

2025-02-14 11:29:22 +01:00
"use client"
2025-02-14 10:55:39 +01:00
import CopyableCode from "@/components/CopyableCode"
2025-03-03 18:24:59 +01:00
import Image from "next/image"
2025-03-04 20:56:25 +01:00
import Link from "next/link"
2025-03-09 11:21:38 +01:00
import { AlertTriangle, FileCode, Shield } from "lucide-react"
2025-02-14 10:55:39 +01:00
2025-02-13 17:28:49 +01:00
export default function InstallationPage() {
2025-03-03 18:24:59 +01:00
const installationCode = `bash -c \"$(wget -qLO - https://raw.githubusercontent.com/MacRimi/ProxMenux/main/install_proxmenux.sh)\"`
2025-02-14 10:55:39 +01:00
2025-02-13 17:28:49 +01:00
return (
2025-02-18 11:16:10 +01:00
<div className="w-full max-w-4xl mx-auto px-4 py-8 text-gray-900">
2025-02-18 11:08:04 +01:00
<h1 className="text-3xl font-bold mb-6">Installing ProxMenux</h1>
2025-02-13 17:28:49 +01:00
2025-02-18 11:08:04 +01:00
<h2 className="text-xl font-semibold mt-6 mb-2">Installation</h2>
<p className="mb-2">To install ProxMenux, simply run the following command in your Proxmox server terminal:</p>
2025-02-18 11:16:10 +01:00
<div className="w-full mb-4">
<CopyableCode code={installationCode} />
2025-02-18 11:08:04 +01:00
</div>
2025-02-13 17:28:49 +01:00
2025-03-09 11:16:05 +01:00
{/* Security Notice */}
2025-03-09 11:42:42 +01:00
<div className="bg-white border rounded-lg shadow-sm p-4 my-4">
<div className="bg-gray-100 px-4 py-2 border-b flex">
<div className="my-4 text-sm">
<p className="flex items-center mb-2">
<AlertTriangle className="h-4 w-4 text-yellow-500 mr-2 flex-shrink-0" />
<span>Be careful when copying scripts from the internet. Always remember to check the source!</span>
</p>
<p className="flex items-center mb-2">
<FileCode className="h-4 w-4 text-blue-500 mr-2 flex-shrink-0" />
<span>You can <a href="https://github.com/MacRimi/ProxMenux/blob/main/install_proxmenux.sh" className="text-blue-600 hover:underline" target="_blank" rel="noopener noreferrer">review the source code</a> before execution.</span>
</p>
<p className="flex items-center">
<Shield className="h-4 w-4 text-green-500 mr-2 flex-shrink-0" />
<span>All executable links follow our <a href="https://github.com/MacRimi/ProxMenux?tab=coc-ov-file#-2-security--code-responsibility" className="text-blue-600 hover:underline" target="_blank" rel="noopener noreferrer">Code of Conduct</a>.</span>
</p>
</div>
2025-03-09 11:33:48 +01:00
</div>
2025-03-09 11:16:05 +01:00
</div>
2025-03-03 18:24:59 +01:00
<p className="mb-4">During installation, ProxMenux will automatically install and configure the following dependencies:</p>
<ul className="list-disc list-inside mb-4">
<li>whiptail - for interactive menus</li>
<li>curl - for downloading remote files</li>
<li>jq - for handling JSON data</li>
<li>Python 3 and virtual environment - required for translations</li>
<li>Google Translate (googletrans) - for multi-language support</li>
</ul>
<h2 className="text-xl font-semibold mt-6 mb-2">Installation Progress</h2>
<p className="mb-2">The installation process will look like this:</p>
<div className="w-full mb-4">
<Image src="https://macrimi.github.io/ProxMenux/install/install.png" alt="ProxMenux Installation" width={800} height={400} className="rounded shadow-lg" />
</div>
2025-02-18 11:08:04 +01:00
<h2 className="text-xl font-semibold mt-6 mb-2">How to Use</h2>
2025-03-03 18:24:59 +01:00
<p className="mb-2">Once installed, launch <strong>ProxMenux</strong> by running:</p>
2025-02-18 11:16:10 +01:00
<div className="w-full mb-4">
<CopyableCode code="menu" />
2025-02-18 11:08:04 +01:00
</div>
2025-03-04 20:56:25 +01:00
<h2 className="text-xl font-semibold mt-6 mb-2">First Execution and Language Selection</h2>
<p className="mb-4">
On the first execution, you will be prompted to define the language for ProxMenux. The recommended language is English. Translations are generated automatically using a predefined translation package and Google Translate. Automatic translations may contain errors, so English is the preferred language for accuracy.
</p>
<h2 className="text-xl font-semibold mt-6 mb-2">Uninstalling ProxMenux</h2>
<p className="mb-4">
If you ever need to uninstall ProxMenux, there is a function in the Settings section designed for this purpose. For detailed instructions on how to uninstall, please refer to the{" "}
<Link href="/docs/settings/uninstall-proxmenux" className="text-blue-600 hover:underline">
uninstall documentation
</Link>.
</p>
2025-02-18 11:08:04 +01:00
<h2 className="text-xl font-semibold mt-8 mb-4">Troubleshooting</h2>
2025-02-18 00:31:53 +01:00
<p className="mb-4">
2025-03-03 18:24:59 +01:00
If you encounter any issues during installation or usage, please check the {" "}
2025-02-13 17:28:49 +01:00
<a href="https://github.com/MacRimi/ProxMenux/issues" className="text-blue-600 hover:underline">
GitHub Issues
</a>{" "}
page or open a new issue if your problem isn't already addressed.
</p>
</div>
)
2025-03-04 20:56:25 +01:00
}