import { useState } from 'react' import { useOverlayDismiss } from '../hooks/useOverlayDismiss' import Tabs from './Tabs' /** * Wie hänge ich diese Cloud als Laufwerk ein? * * Die Adresse steht bisher nirgends. Sie ist zwar ableitbar – Cloud-Adresse * plus `/dav/` –, aber „ableitbar" heißt: Man muss wissen, dass es sie gibt. * Und die drei Wege dorthin (Windows, Konsole, Dateimanager) haben je eine * Eigenheit, an der es sonst scheitert: * * * Windows verlangt HTTPS und lädt ohne Registry-Eingriff nichts über 50 MB. * * Die Konsole braucht ein zusätzliches Paket (davfs2). * * Dateimanager wollen ein eigenes Schema: `davs://` statt `https://`. * * Die Adressen entstehen aus `window.location`, nicht aus einer Einstellung: * Was im Browser funktioniert, funktioniert auch im Dateimanager – eine * falsch gesetzte PUBLIC_URL würde hier sonst eine Adresse anbieten, die * nachweislich nicht die ist, über die der Betrachter gerade hereinkam. */ interface Props { username: string onClose: () => void } type Tab = 'windows' | 'terminal' | 'files' /** Eine Zeile zum Abschreiben – mit Knopf, weil genau das sonst schiefgeht. */ function CopyRow({ label, value, hint }: { label: string; value: string; hint?: string }) { const [copied, setCopied] = useState(false) function copy() { navigator.clipboard?.writeText(value).then(() => { setCopied(true) setTimeout(() => setCopied(false), 1500) }) } return (
{value}
{children}
Your files over WebDAV — same folders, in your file manager. Sign in with your username and an app password; your account password is refused here on purpose.
{davURL} HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
→ FileSizeLimitInBytes (decimal
4294967295 = 4 GB), then restart the WebClient service.
services.msc → WebClient → start,
set to Automatic.
Mount it with davfs2. It asks for username and password on the first mount.
{`sudo apt install davfs2 # Debian/Ubuntu
# sudo dnf install davfs2 # Fedora
# sudo pacman -S davfs2 # Arch
sudo mkdir -p /mnt/aether
sudo mount -t davfs ${davURL} /mnt/aether`}
Without typing the password every time
Put the credentials in ~/.davfs2/secrets — the
file must be readable by you alone, davfs2 refuses it otherwise:
{`mkdir -p ~/.davfs2
echo '${davURL} ${username} YOUR-APP-PASSWORD' >> ~/.davfs2/secrets
chmod 600 ~/.davfs2/secrets`}
Mount it at boot
One line in /etc/fstab:
{`${davURL} /mnt/aether davfs user,noauto,_netdev 0 0`}
_netdev matters: without it the
system tries to mount before the network is up and the boot stalls.
~/.davfs2/cache.
A large file is written there first and only then uploaded — so a copy
can look finished while it is still on its way.
rclone config →
type webdav → vendor{' '}
other → URL as above. It handles
interrupted transfers better.
GNOME Files, Dolphin, Nemo and Thunar all speak WebDAV natively — but they
want their own scheme, not https://:
{kioURL}.
/run/user/$(id -u)/gvfs/{' '}
or mount with davfs2 instead (the terminal tab).