Show a root install command without sudo for Proxmox VE hosts
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+11
-2
@@ -206,6 +206,9 @@ function DeviceEnrollment({ tenantId, auth, customerName }: { tenantId: string;
|
||||
] as const;
|
||||
const availableLinuxArchitectures = linuxArchitectures.filter(([target]) => enrollment?.platforms.includes(target)).map(([, label]) => label);
|
||||
const linuxInstaller = origin && availableLinuxArchitectures.length > 0 ? `${origin}/install/linux.sh` : null;
|
||||
/** Proxmox VE is Debian on x86-64 and ships without sudo; the installer then runs from a root shell. */
|
||||
const proxmoxInstaller = linuxInstaller && enrollment?.platforms.includes('x86_64-unknown-linux-gnu') ? linuxInstaller : null;
|
||||
const adminFlag = adminScripts ? ' --enable-admin-scripts' : '';
|
||||
const windowsPlatforms = ['x86_64-pc-windows-gnu', 'x86_64-pc-windows-msvc'].filter(platform => enrollment?.platforms.includes(platform));
|
||||
const windowsInstaller = origin && windowsPlatforms.length > 0 ? `${origin}/install/windows.ps1` : null;
|
||||
return <section aria-label="Gerät aufnehmen"><h2>Gerät aufnehmen</h2>
|
||||
@@ -232,7 +235,7 @@ function DeviceEnrollment({ tenantId, auth, customerName }: { tenantId: string;
|
||||
<article>
|
||||
<h3>Installation auf dem neuen Gerät</h3>
|
||||
<ol>
|
||||
<li>Öffnen Sie auf dem neuen Linux-Gerät ein Terminal mit <code>sudo</code>-Rechten oder auf dem neuen Windows-Gerät Windows PowerShell 5.1 (64 Bit) als Administrator.</li>
|
||||
<li>Öffnen Sie auf dem neuen Linux-Gerät ein Terminal mit <code>sudo</code>-Rechten, auf einem Proxmox-VE-Host eine Shell als <code>root</code> oder auf dem neuen Windows-Gerät Windows PowerShell 5.1 (64 Bit) als Administrator.</li>
|
||||
<li>Führen Sie den passenden Befehlsblock unten aus. Er lädt das Installationsskript per HTTPS vom Server und startet es.</li>
|
||||
<li>Fügen Sie den oben angezeigten Einmalcode ein, sobald das Skript nach <strong>Einmalcode</strong> (Linux) oder <strong>One-time enrollment token</strong> (Windows) fragt. Bestätigen Sie mit Enter. Eine vorherige Passwortabfrage von <code>sudo</code> gehört zur Anmeldung mit Administratorrechten.</li>
|
||||
<li>Prüfen Sie nach der Installation, ob das neue Gerät unter <a href="#geraete">Geräte</a> beim gewählten Kunden erscheint.</li>
|
||||
@@ -248,7 +251,13 @@ function DeviceEnrollment({ tenantId, auth, customerName }: { tenantId: string;
|
||||
{linuxInstaller && <>
|
||||
<h4>Linux ({availableLinuxArchitectures.join(' und ')})</h4>
|
||||
<p>Installationsskript <a href={linuxInstaller} target="_blank" rel="noopener noreferrer">linux.sh</a></p>
|
||||
<pre>{`curl --fail --show-error --silent '${linuxInstaller}' -o linux.sh && sudo sh linux.sh '${origin}'${adminScripts ? ' --enable-admin-scripts' : ''}`}</pre>
|
||||
<pre>{`curl --fail --show-error --silent '${linuxInstaller}' -o linux.sh && sudo sh linux.sh '${origin}'${adminFlag}`}</pre>
|
||||
</>}
|
||||
{proxmoxInstaller && <>
|
||||
<h4>Proxmox VE</h4>
|
||||
<p>Proxmox VE enthält kein <code>sudo</code>. Führen Sie den Befehl in einer Shell als <code>root</code> aus, zum Beispiel über SSH oder die Shell des Nodes in der Proxmox-Oberfläche.
|
||||
{' '}Der Installer richtet zusätzlich einen nur lesenden Proxmox-Zugang für Gäste und Backups ein.</p>
|
||||
<pre>{`curl --fail --show-error --silent '${proxmoxInstaller}' -o linux.sh && sh linux.sh '${origin}'${adminFlag}`}</pre>
|
||||
</>}
|
||||
{windowsInstaller && <>
|
||||
<h4>Windows (x64)</h4>
|
||||
|
||||
Reference in New Issue
Block a user