LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.
C cdebiandesktop-environmentebpffirewalllandlocklinuxlinux-distributionopen-sourceprivacyquickjsraspberry-pi-5reactsecuritywaylandwayland-compositor
Root over SSH as an advanced option (Settings → Sharing → Advanced): keys only or key/password, root's keys validated in C and listed by fingerprint, root password via chpasswd, every change re-authorized with the admin's password; ssh-root-test 17/17, end-to-end on VM 116. pkg-source-add/remove: a vendor APT repository from LordOS's catalog with its pinned key
Federico Pereiracdd29e0a8b6b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4b0e326..80c0bd1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,6 +12,11 @@ of the matching [GitHub release](https://github.com/lordbasex/LordOS/releases),### Added+- **Root over SSH, as an advanced option.** Settings → Sharing → Advanced lets an administrator allow+ root to log in over SSH with a public key only, or with a key or a password, for tests and+ administration: the keys are pasted or imported from a `.pub` file and listed with their+ fingerprints, root's password can be set, every change asks for your password again, and a warning+ stays visible while it is on. Off by default, and off again with one click.- **The Store downloads over HTTPS.** LordOS's package engine now speaks HTTPS as well as HTTP: a smallsandboxed helper (`lord-tls`) checks the server's certificate and name and encrypts the download, sorepositories that only accept HTTPS work, and what you install is private on the network. Everydiff --git a/apps/settings/Sharing.jsx b/apps/settings/Sharing.jsxindex 0d37b3c..bd790a5 100644--- a/apps/settings/Sharing.jsx+++ b/apps/settings/Sharing.jsx@@ -4,7 +4,7 @@// server is installed, the first time, with the package engine's own pkg-install action.import {View, Text, Button, Toggle, Segmented, TextInput, useTheme, useLocale, useStore, admin, remote, remoteViewers, sshLogin, remoteCidr,- remoteMinutesLeft, remoteVideo, remoteIceServer, remoteFingerprint, statusText, useSystemInfo, spacing, typeScale,+ remoteMinutesLeft, remoteVideo, remoteIceServer, remoteFingerprint, statusText, useSystemInfo, spacing, typeScale, FilePicker, fs, Layer, useAppWindow, wm,} from '@lordos/sdk';import { useEffect, useState } from 'react';import { Stack, Section, SettingRow, Note, Message, StatusDot, tint } from './ui.jsx';@@ -249,6 +249,127 @@ function SshSection({ isAdmin, ips, user, hostname }) {);}+// Advanced: root over SSH (0.8.5, ssh-root* admin actions, server/src/remote/ssh_root.c; docs/REMOTE.md).+// Off by default. Keys only (PermitRootLogin prohibit-password) or keys and password; every change asks+// for the administrator's own password again, checked as root.+function RootSshSection({ ips, hostname }) {+ const t = useTheme();+ const { t: tr } = useLocale();+ const [st, setSt] = useState(null); // { mode, password, keys: [{ type, fp, comment }] }+ const [busy, setBusy] = useState(false);+ const [msg, setMsg] = useState(null);+ const [ask, setAsk] = useState(null); // { label, run: (pw) => Promise } waiting for the admin password+ const [pw, setPw] = useState('');+ const [keyText, setKeyText] = useState('');+ const [rootPw, setRootPw] = useState(['', '']);+ const [picking, setPicking] = useState(false);+ const win = useAppWindow();+ const load = () => {+ const s = { mode: 'off', password: false, keys: [] };+ admin.run('ssh-root-status', '', (line) => {+ const w = String(line).split(' ');+ if (w[0] === 'mode') s.mode = w[1];+ else if (w[0] === 'password') s.password = w[1] === 'set';+ else if (w[0] === 'key') s.keys.push({ type: w[1], fp: w[2], comment: w.slice(3).join(' ') === '-' ? '' : w.slice(3).join(' ') });+ }, { quiet: true }).then(() => setSt(s), () => setSt(s));+ };+ useEffect(load, []);+ const confirm = (label, run) => { setMsg(null); setPw(''); setAsk({ label, run }); };+ const go = () => {+ const a = ask;+ const p = pw;+ setAsk(null);+ setPw('');+ setBusy(true);+ a.run(p).then((ok) => setMsg({ ok: true, text: statusText(ok) }), (e) => setMsg({ ok: false, text: e.message })).finally(() => { setBusy(false); load(); });+ };+ if (!st) return null;+ const setMode = (m) => {+ if (m === st.mode) return;+ confirm(tr(`settings.sharing.root.confirm.${m}`), (p) => admin.run('ssh-root', `${m}\n${p}`, null, { quiet: true }));+ };+ const addKey = () => {+ const line = keyText.trim();+ if (!line) return;+ confirm(tr('settings.sharing.root.confirm.addKey'), (p) => admin.run('ssh-root-key', `add\n${p}\n${line}`, null, { quiet: true }).then((r) => { setKeyText(''); return r; }));+ };+ const setRootPassword = () => {+ if (!rootPw[0] || rootPw[0] !== rootPw[1]) { setMsg({ ok: false, text: tr('settings.sharing.root.mismatch') }); return; }+ const np = rootPw[0];+ confirm(tr('settings.sharing.root.confirm.password'), (p) => admin.run('ssh-root-password', `${p}\n${np}`, null, { quiet: true }).then((r) => { setRootPw(['', '']); return r; }));+ };+ const on = st.mode !== 'off';+ const target = ips[0] || hostname || '';+ return (+ <>+ <Section title={tr('settings.sharing.root.title')} footer={tr('settings.sharing.root.footer')}>+ <SettingRow label={tr('settings.sharing.root.mode')} hint={tr(`settings.sharing.root.modeHint.${st.mode}`)}>+ <Segmented small value={st.mode} onChange={(m) => { if (!busy) setMode(m); }}+ options={[['off', tr('settings.sharing.root.off')], ['key', tr('settings.sharing.root.keys')], ['password', tr('settings.sharing.root.keysAndPassword')]]} />+ </SettingRow>+ {on && target ? (+ <Text style={{ paddingVertical: spacing.s, fontSize: typeScale.headline, fontWeight: 600, color: t.accent, fontFamily: 'monospace', direction: 'ltr', textAlign: 'start' }}>{`ssh root@${target}`}</Text>+ ) : null}+ <View style={{ paddingVertical: spacing.s, gap: 6 }}>+ <Text style={{ fontSize: typeScale.callout, fontWeight: 600, color: t.text, textAlign: 'start' }}>{tr('settings.sharing.root.keysTitle')}</Text>+ {st.keys.length ? st.keys.map((k) => (+ <View key={k.fp} style={{ flexDirection: 'row', alignItems: 'center', gap: spacing.s }}>+ <View style={{ flex: 1, gap: 1 }}>+ <Text style={{ fontSize: typeScale.callout, color: t.text, textAlign: 'start' }}>{k.comment || k.type}</Text>+ <Text style={{ fontSize: 11, color: t.textDim, fontFamily: 'monospace', direction: 'ltr', textAlign: 'start' }}>{`${k.type} ${k.fp}`}</Text>+ </View>+ <Button small destructive label={tr('settings.sharing.root.remove')} disabled={busy}+ onClick={() => confirm(tr('settings.sharing.root.confirm.removeKey'), (p) => admin.run('ssh-root-key', `remove\n${p}\n${k.fp}`, null, { quiet: true }))} />+ </View>+ )) : <Text style={{ fontSize: typeScale.caption, color: t.textDim, textAlign: 'start' }}>{tr('settings.sharing.root.noKeys')}</Text>}+ <View style={{ flexDirection: 'row', gap: spacing.s, alignItems: 'center' }}>+ <View style={{ flex: 1 }}><TextInput value={keyText} onChange={setKeyText} placeholder={tr('settings.sharing.root.keyPlaceholder')} /></View>+ <Button small label={tr('settings.sharing.root.importFile')} disabled={busy} onClick={() => setPicking(true)} />+ <Button small label={tr('settings.sharing.root.addKey')} disabled={busy || !keyText.trim()} onClick={addKey} />+ </View>+ <Text style={{ fontSize: typeScale.caption, color: t.textDim, textAlign: 'start', lineHeight: 1.4 }}>{tr('settings.sharing.root.createHint')}</Text>+ </View>+ {st.mode === 'password' ? (+ <View style={{ paddingVertical: spacing.s, gap: 6 }}>+ <Text style={{ fontSize: typeScale.callout, fontWeight: 600, color: t.text, textAlign: 'start' }}>{tr(st.password ? 'settings.sharing.root.passwordSet' : 'settings.sharing.root.passwordUnset')}</Text>+ <View style={{ flexDirection: 'row', gap: spacing.s, alignItems: 'center' }}>+ <View style={{ flex: 1 }}><TextInput secure value={rootPw[0]} onChange={(v) => setRootPw([v, rootPw[1]])} placeholder={tr('settings.sharing.root.newPassword')} /></View>+ <View style={{ flex: 1 }}><TextInput secure value={rootPw[1]} onChange={(v) => setRootPw([rootPw[0], v])} placeholder={tr('settings.sharing.root.repeatPassword')} /></View>+ <Button small label={tr('settings.sharing.root.setPassword')} disabled={busy || !rootPw[0]} onClick={setRootPassword} />+ </View>+ </View>+ ) : null}+ {ask ? (+ <View style={{ marginVertical: spacing.s, padding: spacing.m, gap: spacing.s, borderRadius: 8, backgroundColor: 'rgba(255,159,10,0.14)' }}>+ <Text style={{ fontSize: typeScale.callout, color: t.text, textAlign: 'start', lineHeight: 1.4 }}>{ask.label}</Text>+ <View style={{ flexDirection: 'row', gap: spacing.s, alignItems: 'center' }}>+ <View style={{ flex: 1 }}><TextInput secure autoFocus value={pw} onChange={setPw} onSubmit={() => { if (pw) go(); }} placeholder={tr('settings.sharing.root.adminPassword')} /></View>+ <Button small label={tr('settings.sharing.root.cancel')} onClick={() => { setAsk(null); setPw(''); }} />+ <Button small primary label={tr('settings.sharing.root.authorize')} disabled={!pw} onClick={go} />+ </View>+ </View>+ ) : null}+ </Section>+ {on ? <Note tone="warn">{tr('settings.sharing.root.activeWarning')}</Note> : null}+ <Message msg={msg} />+ {picking ? (() => {+ // over this Settings window, in the modal layer (the page itself scrolls); starts in ~/.ssh+ const g = wm.frame(wm.get(win.id) || {});+ let start = fs.home();+ try { if (fs.stat(`${start}/.ssh`)?.dir) start = `${start}/.ssh`; } catch (e) { /* no ~/.ssh */ }+ return (+ <Layer name="modal">+ <View style={{ position: 'absolute', left: g.x || 0, top: g.y || 0, width: g.w || 640, height: g.h || 480 }}>+ <FilePicker title={tr('settings.sharing.root.importFile')} filter={/\.pub$/} start={start} onClose={() => setPicking(false)}+ onPick={(paths) => { setPicking(false); const p = [].concat(paths)[0]; try { setKeyText(String(fs.read(p)).split('\n')[0].trim()); } catch (e) { setMsg({ ok: false, text: e.message }); } }} />+ </View>+ </Layer>+ );+ })() : null}+ </>+ );+}+export function SharingSettings() {const t = useTheme();const { t: tr } = useLocale();@@ -314,6 +435,7 @@ export function SharingSettings() {))}</Section><SshSection isAdmin={isAdmin} ips={ips} user={info.user} hostname={info.hostname} />+ {isAdmin && sshLogin.status().installed ? <RootSshSection ips={ips} hostname={info.hostname} /> : null}</Stack>);}diff --git a/assets/locales/en/errors.json b/assets/locales/en/errors.jsonindex 2af6e72..d321ca8 100644--- a/assets/locales/en/errors.json+++ b/assets/locales/en/errors.json@@ -398,6 +398,8 @@"perm.cameraDenied": "This app does not have permission to use the camera","perm.usbDenied": "This app does not have permission to use USB devices","pkg.busy": "Another package operation is in progress",+ "pkg.catalogBad": "LordOS's app catalog has an invalid entry",+ "pkg.catalogMissing": "LordOS's app catalog isn't installed","pkg.conflict": "{name} and {other} cannot be installed together","pkg.conflictInstalled": "{name} conflicts with {other}, which is installed","pkg.deb.badControl": "The .deb's control file is invalid",@@ -446,6 +448,7 @@"pkg.indexFailed": "Could not build the package index: {reason}","pkg.installAndRemove": "{name} is marked to be installed and removed at the same time","pkg.invalidName": "Invalid package name: {name}",+ "pkg.keyMismatch": "{id}'s signing key doesn't match the fingerprint LordOS pins: not added","pkg.missingName": "The package name is missing","pkg.neededButRemoved": "{name} is needed, but you asked to remove it","pkg.noIndex": "There is no package list yet: update it first",@@ -453,6 +456,7 @@"pkg.noSources": "There are no package sources (/etc/apt/sources.list.d)","pkg.noVerifiedSource": "No package source could be verified","pkg.notFound": "There is no package called {name}",+ "pkg.notInCatalog": "{id} isn't an app from a vendor repository in LordOS's catalog","pkg.notInstalled": "{name} is not installed","pkg.pgp.badEncoding": "badly encoded signature","pkg.pgp.badSignature": "invalid signature by key {key}",diff --git a/assets/locales/en/settings.json b/assets/locales/en/settings.jsonindex 615da89..3a95fd5 100644--- a/assets/locales/en/settings.json+++ b/assets/locales/en/settings.json@@ -5,15 +5,16 @@"admin.system-locale": "System region","admin.timezone": "Time zone","admin.unavailable": "The admin helper is not running: lord-server must start with sudo and the user must be in the sudo group.",- "browserTabs.label": "Browsers: tabs in the title bar",- "browserTabs.hint": "On: Chromium and Firefox draw a single bar with their tabs and LordOS's window buttons. Off: they use the LordOS frame. It changes your browser profiles and applies the next time each browser opens.",+ "browserTabs.applyAll": "Change them","browserTabs.chromiumOpen": "Chromium is open: its profiles change as soon as you quit it.",+ "browserTabs.done": "Done. The browsers use it the next time they open.","browserTabs.failed": {"one": "{count} browser profile could not be changed and was left as it was.","other": "{count} browser profiles could not be changed and were left as they were."},"browserTabs.firefoxKept": "A Firefox profile sets this in its own user.js file, so it was left alone.",- "browserTabs.done": "Done. The browsers use it the next time they open.",+ "browserTabs.hint": "On: Chromium and Firefox draw a single bar with their tabs and LordOS's window buttons. Off: they use the LordOS frame. It changes your browser profiles and applies the next time each browser opens.",+ "browserTabs.label": "Browsers: tabs in the title bar","browserTabs.othersOff": {"one": "{count} Chromium profile still uses the LordOS frame","other": "{count} Chromium profiles still use the LordOS frame"@@ -22,7 +23,6 @@"one": "{count} Chromium profile still draws its own bar","other": "{count} Chromium profiles still draw their own bar"},- "browserTabs.applyAll": "Change them","change": "Change…","clipboard.add": "Add","clipboard.appId": "app id",@@ -50,8 +50,63 @@"clipboard.save": "Save the history","clipboard.saveHint": "What you copy (text and images) is saved in your home folder and survives a restart. Off: memory only.","dark": "Dark",+ "dock.alignCenter": "Center",+ "dock.alignStart": "Start",+ "dock.autohide": "Automatically hide and show the Dock",+ "dock.autohideHint": "It appears when the pointer reaches the edge of the screen; windows use all the space.",+ "dock.bottom": "Bottom",+ "dock.large": "Large",+ "dock.left": "Left",+ "dock.magnify": "Magnification",+ "dock.magnifyHint": "Icons grow when the pointer passes over them.",+ "dock.magnifySize": "Magnification amount",+ "dock.position": "Position on screen",+ "dock.recents": "Show recent apps in Dock",+ "dock.recentsHint": "The last three apps used that aren't pinned, after a divider.",+ "dock.reset": "Reset Dock to defaults",+ "dock.resetAsk": "Reset the Dock to its defaults?",+ "dock.resetButton": "Reset…",+ "dock.resetCancel": "Cancel",+ "dock.resetConfirm": "Reset",+ "dock.resetDetail": "The apps you added and the order you chose will be replaced by the theme’s. Open apps stay open.",+ "dock.resetDone": "The defaults are back.",+ "dock.resetHint": "Puts the theme’s apps back in their original order. Files stays first and the Trash last; Files, Settings and Apps can’t be removed.",+ "dock.resetHintTaskbar": "Puts the theme’s apps back on the taskbar in their original order. Files stays first and the Trash last; Files and Settings can’t be unpinned.",+ "dock.resetTaskbar": "Reset taskbar to defaults",+ "dock.right": "Right",+ "dock.sidesHint": "Left and right are sides of the screen: they don't swap in a right-to-left language.",+ "dock.size": "Size",+ "dock.small": "Small",+ "dock.taskbar": "Taskbar position",+ "dock.taskbarAlign": "Taskbar alignment",+ "dock.taskbarHint": "Lord Classic theme. Maximized windows don't go under the taskbar.",+ "dock.top": "Top","effects": "Transparency effects","effectsHint": "Turning off blur speeds up the desktop on slow computers.",+ "firmware.bootloader": "Bootloader",+ "firmware.check": "Check Again",+ "firmware.checking": "Checking…",+ "firmware.current": "Installed",+ "firmware.hint": "The bootloader lives in a chip on the board and starts it before the system. New versions come with system updates (the rpi-eeprom package); installing one takes effect at the next restart. Don't unplug the power while the board restarts.",+ "firmware.install": "Install",+ "firmware.installing": "Installing…",+ "firmware.latest": "Latest available",+ "firmware.missing": "The bootloader tools are not installed",+ "firmware.missingHint": "LordOS updates the bootloader with the rpi-eeprom package, from the LordOS repository.",+ "firmware.needAdmin": "Only an administrator can update the bootloader.",+ "firmware.pendingHint": "The new bootloader is installed when the board restarts. Keep the power connected until the desktop is back.",+ "firmware.pendingHow": "The new bootloader is installed when the board restarts: log out and choose Restart on the login screen. Keep the power connected until it is back.",+ "firmware.release.default": "Default (recommended)",+ "firmware.release.latest": "Latest (newer features)",+ "firmware.releaseLabel": "Release",+ "firmware.restart": "Restart…",+ "firmware.state.available": "Update available",+ "firmware.state.pending": "Update ready: restart to finish",+ "firmware.state.uptodate": "Up to date",+ "firmware.unknown": "Unknown",+ "firmware.update": "Update",+ "firmware.updating": "Updating…",+ "firmware.updatingHint": "Preparing the new bootloader. This can take up to a minute.","general.machine": "About this computer","general.name": "Name","general.software": "Software",@@ -74,16 +129,27 @@"kb.testHint": "Type here: ñ, accents (´ + vowel), ç, AltGr…","kb.use": "Use","keywords.appearance": "dark light mode accent transparency browser tabs title bar frame",+ "keywords.bluetooth": "bluetooth pair pairing headphones headset speaker keyboard mouse wireless","keywords.clipboard": "copy paste history copied",+ "keywords.cooling": "fan fans temperature cooling heat noise curve case full speed",+ "keywords.datetime": "date time clock ntp time zone 24-hour 12-hour menu bar seconds",+ "keywords.defaultapps": "default apps browser mail music video images pdf text editor terminal open with mimeapps",+ "keywords.displays": "display monitor screen resolution refresh rate hz rotation brightness night shift color temperature edid video browser codec h264 vp9 av1 stutter",+ "keywords.dock": "dock taskbar position left right bottom top size magnification hide recent",+ "keywords.firmware": "firmware bootloader eeprom raspberry pi update boot","keywords.general": "about computer system version processor memory disk","keywords.keyboard": "layout input method japanese chinese korean","keywords.language": "language region date time zone","keywords.network": "wifi ethernet vpn wireguard openvpn ip dns internet",+ "keywords.notifications": "notifications alerts banners do not disturb focus sound",+ "keywords.power": "battery energy power profile low power performance sleep suspend lid power button screen off",+ "keywords.printers": "printer print scanner scan cups queue airprint",+ "keywords.privacy": "privacy permissions camera microphone security tcc","keywords.session": "log out quit","keywords.sharing": "remote desktop remote access network lan browser share screen ssh remote login terminal","keywords.sound": "volume speakers microphone audio",- "keywords.printers": "printer print scanner scan cups queue airprint","keywords.themes": "theme desktop classic lord flow",+ "keywords.trackpad": "touchpad gestures pinch tap click natural scrolling tracking speed pointer","keywords.updates": "packages debian store software","keywords.users": "users accounts password avatar administrator automatic login","keywords.wallpaper": "background picture desktop",@@ -101,48 +167,162 @@"pack.invalid": "invalid pack","pack.lordos": "LordOS language packs","pack.title": "Debian language packages",+ "reduceMotion": "Reduce motion",+ "reduceMotionHint": "Stops decorative animations, like the spinning fan in Cooling.","region.generated": "Region {name} generated","region.hint": "Dates, times and numbers, and the language of Linux programs (LANG) in new terminals.","region.preview": "Preview","region.search": "Search region (es_AR, pt_BR, en_US…)","region.title": "Region (formats and programs)",+ "scrollBars": "Show scroll bars",+ "scrollBarsAlways": "Always",+ "scrollBarsAuto": "Automatically",+ "scrollBarsHint": "Automatically: a thin bar appears at the edge while you scroll or point near it. When scrolling: only while you scroll. Always: it stays visible.",+ "scrollBarsScrolling": "When scrolling","search": "Search","section.appearance": "Appearance",+ "section.bluetooth": "Bluetooth","section.clipboard": "Clipboard",+ "section.cooling": "Cooling",+ "section.datetime": "Date & Time",+ "section.defaultapps": "Default Apps",+ "section.displays": "Displays",+ "section.dock": "Desktop & Dock",+ "section.firmware": "Board firmware","section.general": "General","section.keyboard": "Keyboard","section.language": "Language & Region","section.network": "Network",+ "section.notifications": "Notifications",+ "section.power": "Energy",+ "section.printers": "Printers & Scanners",+ "section.privacy": "Privacy","section.session": "Session","section.sharing": "Sharing","section.sound": "Sound",- "section.printers": "Printers & Scanners","section.themes": "Themes",+ "section.trackpad": "Trackpad","section.updates": "Updates","section.users": "Users","section.wallpaper": "Wallpaper","session.hint": "Leaves LordOS and returns to the console.","session.hintManaged": "Ends your session and returns to the login screen. Open apps are closed.",+ "sharing.access": "Who can connect","sharing.allUsers": "All users",+ "sharing.allowAdd": "Add",+ "sharing.allowEmpty": "The list is empty: nobody can connect.",+ "sharing.allowPlaceholder": "Address or network, e.g. 192.168.1.0/24",+ "sharing.allowlist": "Allowlist",+ "sharing.allowlistFooter": "Addresses and networks that may connect when \"Only these addresses\" is chosen. They still get blocked after 3 failed sign-ins.",+ "sharing.badAddress": "Write an IPv4 or IPv6 address, or a network such as 192.168.1.0/24 (at least /8; IPv6 at least /16).",+ "sharing.block": "Block",+ "sharing.blockForever": "Block permanently",+ "sharing.blockPlaceholder": "Address or network to block",+ "sharing.blocked": "Temporarily blocked",+ "sharing.blockedAuto": "Failed sign-ins · {minutes} min left",+ "sharing.blockedFooter": "An address is blocked after 3 failed sign-ins: for 15 minutes, then 1 hour, then 24 hours if it happens again within a day. You get a notification when it happens.",+ "sharing.blockedManual": "Blocked by an administrator",+ "sharing.blockedNone": "No address is blocked.",+ "sharing.blocklist": "Blocklist",+ "sharing.blocklistFooter": "Always refused, before anything else, until you remove them.","sharing.connected": "Connected now","sharing.disconnect": "Disconnect","sharing.fingerprint": "Certificate fingerprint (compare it with the one your browser shows):","sharing.justNow": "just now",+ "sharing.listEmpty": "The list is empty.","sharing.minutes": {"one": "{count} minute ago","other": "{count} minutes ago"},+ "sharing.netAny": "Any address",+ "sharing.netAnyHint": "Any address that can reach this computer, including the internet if a port is forwarded to it.",+ "sharing.netAnyWarn": "Connections from any address are allowed. Failed sign-ins still block the address, but a VPN is the safer way to reach this computer from the internet.",+ "sharing.netFrom": "Allow connections from",+ "sharing.netLan": "Local network",+ "sharing.netLanHint": "Private and link-local addresses of your network, and connections that arrive over a VPN of this computer. Public internet addresses are refused.",+ "sharing.netList": "Only these addresses",+ "sharing.netListHint": "Only the addresses and networks in this list can open the sign-in page.","sharing.noLan": "This computer has no IPv4 address on the local network.","sharing.nobody": "Nobody is connected.",+ "sharing.noneSet": "None","sharing.notInstalled": "LordOS sessions are not managed by lord-sessiond (see docs/SESSIONS.md): remote desktop is not available.",+ "sharing.onlyAdmins": "Only administrators","sharing.onlyGroup": "Only the group","sharing.openFrom": "From another computer on the network, open in a browser:","sharing.ownSession": "on their own desktop","sharing.remote": "Remote desktop","sharing.remoteHint": "Other computers on your local network sign in from a web browser with a username and password of this computer. With your own user they see and use this same screen; with another user, a desktop of their own.","sharing.remoteToggle": "Allow access from the network",+ "sharing.remove": "Remove",+ "sharing.root.activeWarning": "Root can log in over SSH on this computer. Turn it off when you no longer need it.",+ "sharing.root.addKey": "Add",+ "sharing.root.adminPassword": "Your password",+ "sharing.root.authorize": "Authorize",+ "sharing.root.cancel": "Cancel",+ "sharing.root.confirm.addKey": "Allow this key to log in as root? Type your password to confirm.",+ "sharing.root.confirm.key": "Let root log in over SSH with a public key? Whoever holds a matching private key gets full control of this computer. Type your password to confirm.",+ "sharing.root.confirm.off": "Turn root over SSH off? Type your password to confirm.",+ "sharing.root.confirm.password": "Let root log in over SSH with a password too? Anyone on the network who learns or guesses it gets full control of this computer. Type your password to confirm.",+ "sharing.root.confirm.removeKey": "Remove this key from root's allowed keys? Type your password to confirm.",+ "sharing.root.createHint": "To create a key pair, run ssh-keygen -t ed25519 on the computer you'll connect from, and paste or import its .pub file here. The private key never leaves that computer.",+ "sharing.root.footer": "Off by default. Root over SSH gives whoever has the key or the password full control of this computer: use it for tests and administration on a network you trust, and turn it off afterwards. Every change asks for your password again.",+ "sharing.root.importFile": "Import…",+ "sharing.root.keyPlaceholder": "Paste a public key (ssh-ed25519 AAAA… name@computer)",+ "sharing.root.keys": "Keys only",+ "sharing.root.keysAndPassword": "Key or password",+ "sharing.root.keysTitle": "Public keys allowed for root",+ "sharing.root.mismatch": "The two passwords are different",+ "sharing.root.mode": "Root can log in",+ "sharing.root.modeHint.key": "Only with one of the public keys below.",+ "sharing.root.modeHint.off": "Root never logs in over the network (the default).",+ "sharing.root.modeHint.password": "With a key below or root's password: the riskiest choice.",+ "sharing.root.newPassword": "New root password",+ "sharing.root.noKeys": "No key yet.",+ "sharing.root.off": "Off",+ "sharing.root.passwordSet": "Root has a password",+ "sharing.root.passwordUnset": "Root has no password yet: set one to log in with it",+ "sharing.root.remove": "Remove",+ "sharing.root.repeatPassword": "Repeat it",+ "sharing.root.setPassword": "Set",+ "sharing.root.title": "Advanced: root over SSH",+ "sharing.save": "Save","sharing.security": "The connection is encrypted (TLS) with a certificate of this computer. 3 failed sign-ins block the address; the root account can never sign in. To use it from the internet, use a VPN.",+ "sharing.ssh": "Remote login (SSH)",+ "sharing.sshFingerprint": "Host key fingerprint (compare it with the one ssh shows the first time you connect):",+ "sharing.sshFrom": "From another computer, run in a terminal:",+ "sharing.sshHint": "Other computers open a terminal on this one with an SSH client, using a username and password of this computer. Once on, it stays on after restarting.",+ "sharing.sshHintInstall": "Other computers open a terminal on this one with an SSH client, using a username and password of this computer. The SSH server is installed the first time you turn this on (it needs the internet).",+ "sharing.sshInstalling": "Installing the SSH server…",+ "sharing.sshNotRunning": "Remote login is turned on but the SSH server is not running. Turn it off and on again, or see Logs.",+ "sharing.sshSecurity": "Port 22. Passwords travel encrypted. Logging in with a key is safer: copy yours with ssh-copy-id. To use it from the internet, use a VPN.",+ "sharing.sshToggle": "Allow logins from the network",+ "sharing.sshUserPlaceholder": "user",+ "sharing.sshWhoAdminsHint": "Only administrators (the sudo group). Root can never log in.",+ "sharing.sshWhoAllHint": "Any user of this computer with a password. Root can never log in.",+ "sharing.stun": "STUN servers",+ "sharing.stunHint": "This computer answers STUN itself, which is enough on the local network. Add a public server only to connect across networks (up to 4, separated by commas).",+ "sharing.stunPlaceholder": "stun.example.org:3478","sharing.thisSession": "viewing this screen",+ "sharing.turn": "Relay (TURN)",+ "sharing.turnFooter": "Only when neither side can reach the other directly. The relay only sees encrypted video and input; its password stays on this computer, readable only by the system.",+ "sharing.turnFp": "Certificate fingerprint (optional)",+ "sharing.turnFpHint": "Empty: the relay’s certificate must be valid for its name. For a relay with its own certificate, paste its SHA-256 fingerprint here.",+ "sharing.turnFpPlaceholder": "SHA-256, like 3A:7F:…",+ "sharing.turnPass": "Password",+ "sharing.turnPassSaved": "Saved (it is never shown)",+ "sharing.turnRemove": "Remove relay",+ "sharing.turnServer": "Server",+ "sharing.turnServerPlaceholder": "turn.example.org:3478",+ "sharing.turnTcp": "TCP",+ "sharing.turnTls": "TLS",+ "sharing.turnTransport": "Reach the relay over",+ "sharing.turnUdp": "UDP",+ "sharing.turnUser": "User name",+ "sharing.unblock": "Unblock",+ "sharing.video": "Connection",+ "sharing.videoFooter": "Works across the local network and VPNs over UDP, or over TCP port {port} where UDP is blocked. To connect across networks, add a STUN server or a relay below.",+ "sharing.videoHint": "The screen, its sound and your input travel encrypted over WebRTC: the only way the remote desktop works.",+ "sharing.videoRow": "Video over WebRTC","sharing.who": "Who can sign in","sharing.whoAllHint": "Any user of this computer with a password.","sharing.whoGroupHint": "Only users in the lordos-remote group.",@@ -159,6 +339,8 @@"sound.test": "Test sound","sound.unavailable": "No connection to the sound server (PipeWire). See docs/SOUND.md.","sound.volume": "Volume",+ "style.hint": "Both styles have the same apps. The change is applied right away, without logging out; open windows come back.",+ "style.title": "Desktop style","system.apply": "Use {name}","system.hint": "For all users and services (/etc/default/locale). Now: {name}","system.title": "System default region",@@ -220,160 +402,9 @@"users.userName": "Username","users.working": "Applying…","users.you": "you",- "section.privacy": "Privacy",- "keywords.privacy": "privacy permissions camera microphone security tcc",- "section.trackpad": "Trackpad",- "keywords.trackpad": "touchpad gestures pinch tap click natural scrolling tracking speed pointer",- "section.dock": "Desktop & Dock",- "keywords.dock": "dock taskbar position left right bottom top size magnification hide recent",- "dock.position": "Position on screen",- "dock.bottom": "Bottom",- "dock.left": "Left",- "dock.right": "Right",- "dock.top": "Top",- "dock.size": "Size",- "dock.small": "Small",- "dock.large": "Large",- "dock.magnify": "Magnification",- "dock.magnifyHint": "Icons grow when the pointer passes over them.",- "dock.magnifySize": "Magnification amount",- "dock.autohide": "Automatically hide and show the Dock",- "dock.autohideHint": "It appears when the pointer reaches the edge of the screen; windows use all the space.",- "dock.recents": "Show recent apps in Dock",- "dock.recentsHint": "The last three apps used that aren't pinned, after a divider.",- "dock.taskbar": "Taskbar position",- "dock.taskbarHint": "Lord Classic theme. Maximized windows don't go under the taskbar.",- "dock.sidesHint": "Left and right are sides of the screen: they don't swap in a right-to-left language.",- "dock.reset": "Reset Dock to defaults",- "dock.resetTaskbar": "Reset taskbar to defaults",- "dock.resetButton": "Reset…",- "dock.resetHint": "Puts the theme’s apps back in their original order. Files stays first and the Trash last; Files, Settings and Apps can’t be removed.",- "dock.resetHintTaskbar": "Puts the theme’s apps back on the taskbar in their original order. Files stays first and the Trash last; Files and Settings can’t be unpinned.",- "dock.resetAsk": "Reset the Dock to its defaults?",- "dock.resetDetail": "The apps you added and the order you chose will be replaced by the theme’s. Open apps stay open.",- "dock.resetCancel": "Cancel",- "dock.resetConfirm": "Reset",- "dock.resetDone": "The defaults are back.",- "section.displays": "Displays",- "section.bluetooth": "Bluetooth",- "section.power": "Energy",- "section.notifications": "Notifications",- "section.datetime": "Date & Time",- "section.defaultapps": "Default Apps",- "keywords.displays": "display monitor screen resolution refresh rate hz rotation brightness night shift color temperature edid video browser codec h264 vp9 av1 stutter",- "keywords.bluetooth": "bluetooth pair pairing headphones headset speaker keyboard mouse wireless",- "keywords.power": "battery energy power profile low power performance sleep suspend lid power button screen off",- "keywords.notifications": "notifications alerts banners do not disturb focus sound",- "keywords.datetime": "date time clock ntp time zone 24-hour 12-hour menu bar seconds",- "keywords.defaultapps": "default apps browser mail music video images pdf text editor terminal open with mimeapps",- "section.cooling": "Cooling",- "keywords.cooling": "fan fans temperature cooling heat noise curve case full speed",- "section.firmware": "Board firmware",- "keywords.firmware": "firmware bootloader eeprom raspberry pi update boot",- "firmware.bootloader": "Bootloader",- "firmware.hint": "The bootloader lives in a chip on the board and starts it before the system. New versions come with system updates (the rpi-eeprom package); installing one takes effect at the next restart. Don't unplug the power while the board restarts.",- "firmware.state.uptodate": "Up to date",- "firmware.state.available": "Update available",- "firmware.state.pending": "Update ready: restart to finish",- "firmware.checking": "Checking…",- "firmware.unknown": "Unknown",- "firmware.current": "Installed",- "firmware.latest": "Latest available",- "firmware.releaseLabel": "Release",- "firmware.release.default": "Default (recommended)",- "firmware.release.latest": "Latest (newer features)",- "firmware.check": "Check Again",- "firmware.update": "Update",- "firmware.updating": "Updating…",- "firmware.updatingHint": "Preparing the new bootloader. This can take up to a minute.",- "firmware.restart": "Restart…",- "firmware.pendingHint": "The new bootloader is installed when the board restarts. Keep the power connected until the desktop is back.",- "firmware.pendingHow": "The new bootloader is installed when the board restarts: log out and choose Restart on the login screen. Keep the power connected until it is back.",- "firmware.needAdmin": "Only an administrator can update the bootloader.",- "firmware.missing": "The bootloader tools are not installed",- "firmware.missingHint": "LordOS updates the bootloader with the rpi-eeprom package, from the LordOS repository.",- "firmware.install": "Install",- "firmware.installing": "Installing…",- "reduceMotion": "Reduce motion",- "reduceMotionHint": "Stops decorative animations, like the spinning fan in Cooling.",- "scrollBars": "Show scroll bars",- "scrollBarsAuto": "Automatically",- "scrollBarsScrolling": "When scrolling",- "scrollBarsAlways": "Always",- "scrollBarsHint": "Automatically: a thin bar appears at the edge while you scroll or point near it. When scrolling: only while you scroll. Always: it stays visible.",- "sharing.onlyAdmins": "Only administrators",- "sharing.ssh": "Remote login (SSH)",- "sharing.sshFingerprint": "Host key fingerprint (compare it with the one ssh shows the first time you connect):",- "sharing.sshFrom": "From another computer, run in a terminal:",- "sharing.sshHint": "Other computers open a terminal on this one with an SSH client, using a username and password of this computer. Once on, it stays on after restarting.",- "sharing.sshHintInstall": "Other computers open a terminal on this one with an SSH client, using a username and password of this computer. The SSH server is installed the first time you turn this on (it needs the internet).",- "sharing.sshInstalling": "Installing the SSH server…",- "sharing.sshNotRunning": "Remote login is turned on but the SSH server is not running. Turn it off and on again, or see Logs.",- "sharing.sshSecurity": "Port 22. Passwords travel encrypted. Logging in with a key is safer: copy yours with ssh-copy-id. To use it from the internet, use a VPN.",- "sharing.sshToggle": "Allow logins from the network",- "sharing.sshUserPlaceholder": "user",- "sharing.sshWhoAdminsHint": "Only administrators (the sudo group). Root can never log in.",- "sharing.sshWhoAllHint": "Any user of this computer with a password. Root can never log in.",- "wallpaperCategory.signature": "Signature",- "wallpaperCategory.lumo": "Lumo","wallpaperCategory.cosmos": "Cosmos","wallpaperCategory.gradients": "Gradients",+ "wallpaperCategory.lumo": "Lumo","wallpaperCategory.other": "Other",- "style.title": "Desktop style",- "style.hint": "Both styles have the same apps. The change is applied right away, without logging out; open windows come back.",- "dock.taskbarAlign": "Taskbar alignment",- "dock.alignCenter": "Center",- "dock.alignStart": "Start",- "sharing.access": "Who can connect",- "sharing.netFrom": "Allow connections from",- "sharing.netLan": "Local network",- "sharing.netList": "Only these addresses",- "sharing.netAny": "Any address",- "sharing.netLanHint": "Private and link-local addresses of your network, and connections that arrive over a VPN of this computer. Public internet addresses are refused.",- "sharing.netListHint": "Only the addresses and networks in this list can open the sign-in page.",- "sharing.netAnyHint": "Any address that can reach this computer, including the internet if a port is forwarded to it.",- "sharing.netAnyWarn": "Connections from any address are allowed. Failed sign-ins still block the address, but a VPN is the safer way to reach this computer from the internet.",- "sharing.allowEmpty": "The list is empty: nobody can connect.",- "sharing.allowPlaceholder": "Address or network, e.g. 192.168.1.0/24",- "sharing.allowAdd": "Add",- "sharing.remove": "Remove",- "sharing.blocked": "Temporarily blocked",- "sharing.blockedFooter": "An address is blocked after 3 failed sign-ins: for 15 minutes, then 1 hour, then 24 hours if it happens again within a day. You get a notification when it happens.",- "sharing.blockedNone": "No address is blocked.",- "sharing.blockedManual": "Blocked by an administrator",- "sharing.blockedAuto": "Failed sign-ins · {minutes} min left",- "sharing.unblock": "Unblock",- "sharing.block": "Block",- "sharing.blockPlaceholder": "Address or network to block",- "sharing.badAddress": "Write an IPv4 or IPv6 address, or a network such as 192.168.1.0/24 (at least /8; IPv6 at least /16).",- "sharing.allowlist": "Allowlist",- "sharing.allowlistFooter": "Addresses and networks that may connect when \"Only these addresses\" is chosen. They still get blocked after 3 failed sign-ins.",- "sharing.blocklist": "Blocklist",- "sharing.blocklistFooter": "Always refused, before anything else, until you remove them.",- "sharing.listEmpty": "The list is empty.",- "sharing.blockForever": "Block permanently",- "sharing.video": "Connection",- "sharing.videoHint": "The screen, its sound and your input travel encrypted over WebRTC: the only way the remote desktop works.",- "sharing.stun": "STUN servers",- "sharing.stunPlaceholder": "stun.example.org:3478",- "sharing.stunHint": "This computer answers STUN itself, which is enough on the local network. Add a public server only to connect across networks (up to 4, separated by commas).",- "sharing.turn": "Relay (TURN)",- "sharing.turnServer": "Server",- "sharing.turnServerPlaceholder": "turn.example.org:3478",- "sharing.turnUser": "User name",- "sharing.turnPass": "Password",- "sharing.turnPassSaved": "Saved (it is never shown)",- "sharing.turnRemove": "Remove relay",- "sharing.turnFooter": "Only when neither side can reach the other directly. The relay only sees encrypted video and input; its password stays on this computer, readable only by the system.",- "sharing.save": "Save",- "sharing.noneSet": "None",- "sharing.videoRow": "Video over WebRTC",- "sharing.videoFooter": "Works across the local network and VPNs over UDP, or over TCP port {port} where UDP is blocked. To connect across networks, add a STUN server or a relay below.",- "sharing.turnTransport": "Reach the relay over",- "sharing.turnUdp": "UDP",- "sharing.turnTcp": "TCP",- "sharing.turnTls": "TLS",- "sharing.turnFp": "Certificate fingerprint (optional)",- "sharing.turnFpPlaceholder": "SHA-256, like 3A:7F:…",- "sharing.turnFpHint": "Empty: the relay’s certificate must be valid for its name. For a relay with its own certificate, paste its SHA-256 fingerprint here."+ "wallpaperCategory.signature": "Signature"}diff --git a/assets/locales/en/status.json b/assets/locales/en/status.jsonindex 3659c00..e1495b8 100644--- a/assets/locales/en/status.json+++ b/assets/locales/en/status.json@@ -6,9 +6,19 @@"disk.unmounted": "Unmounted","disk.unmountedPath": "Unmounted {path}","disk.verified": "Verified (SHA-256 {sha256})",+ "hw.caseSet": "Case: {case}",+ "hw.firmwareChecked": "Firmware checked",+ "hw.memoryNoTables": "The firmware lists no memory modules",+ "hw.memoryRead": "Memory modules read","hw.profileSet": "Power mode: {profile}","hw.suspended": "Suspending","hw.unblocked": "Unblocked",+ "imager.cacheCleared": "Downloads cleared",+ "imager.cached": "Already downloaded",+ "imager.cancelling": "Cancelling…",+ "imager.fetched": "Downloaded",+ "imager.verifiedImage": "The image matches its signed SHA-256",+ "imager.written": "Written and verified","install.chownWarning": "Warning: could not change the owner of a file","install.done": "LordOS was installed on {dev}","install.homedirsWarning": "Warning: could not create the user's folders",@@ -59,8 +69,10 @@"pkg.nothingToDo": "Nothing to do: everything is already installed","pkg.nothingToRemove": "There is nothing to remove","pkg.source": "Source: {uri} {suite} {component}",+ "pkg.sourceAdded": "The maker's repository for {id} was added","pkg.sourceFailed": "{uri} {suite}: {reason}","pkg.sourceMissingFile": "{uri} {suite}: no {file}",+ "pkg.sourceRemoved": "The maker's repository for {id} was removed","pkg.sourceSkipped": "Source skipped (only http/https): {uri}","pkg.sourceVerified": "{uri} {suite}: signature verified ({label})","pkg.unresolvedDep": "Unresolved dependency: {name}",@@ -83,12 +95,20 @@"pkg.why.requested": "Requested","pkg.why.upgrade": "Upgrade","pkg.why.upgradedFor": "Upgraded for {name}",+ "remote.blocked": "{address} blocked","remote.disconnected": "Connection closed",+ "remote.failure": "Failed sign-in for {user} from {key} ({count})",+ "remote.failures": "{count} failed sign-ins","remote.off": "Remote desktop turned off","remote.on": "Remote desktop turned on","remote.saved": "Settings saved",+ "remote.unblocked": "{address} unblocked","remote.userAdded": "{name} can connect remotely","remote.userRemoved": "{name} can no longer connect remotely",+ "ssh.off": "Remote login turned off",+ "ssh.on": "Remote login turned on",+ "ssh.saved": "Settings saved",+ "ssh.status": "Root over SSH: status read","tz.set": "Time zone: {zone}","users.autologinOff": "Automatic login turned off","users.autologinOn": "Automatic login turned on",@@ -115,22 +135,5 @@},"wifi.connecting": "Connecting to {ssid}…","wifi.disconnected": "Disconnected",- "wifi.forgotten": "Network forgotten",- "hw.caseSet": "Case: {case}",- "ssh.off": "Remote login turned off",- "ssh.on": "Remote login turned on",- "ssh.saved": "Settings saved",- "hw.firmwareChecked": "Firmware checked",- "remote.blocked": "{address} blocked",- "remote.unblocked": "{address} unblocked",- "remote.failures": "{count} failed sign-ins",- "remote.failure": "Failed sign-in for {user} from {key} ({count})",- "imager.cached": "Already downloaded",- "imager.fetched": "Downloaded",- "imager.cancelling": "Cancelling…",- "imager.cacheCleared": "Downloads cleared",- "imager.verifiedImage": "The image matches its signed SHA-256",- "imager.written": "Written and verified",- "hw.memoryRead": "Memory modules read",- "hw.memoryNoTables": "The firmware lists no memory modules"+ "wifi.forgotten": "Network forgotten"}diff --git a/assets/locales/es/errors.json b/assets/locales/es/errors.jsonindex ade9b0e..9bcce5c 100644--- a/assets/locales/es/errors.json+++ b/assets/locales/es/errors.json@@ -398,6 +398,8 @@"perm.cameraDenied": "Esta app no tiene permiso para usar la cámara","perm.usbDenied": "Esta app no tiene permiso para usar dispositivos USB","pkg.busy": "Hay otra operación de paquetes en curso",+ "pkg.catalogBad": "El catálogo de apps de LordOS tiene una entrada inválida",+ "pkg.catalogMissing": "El catálogo de apps de LordOS no está instalado","pkg.conflict": "{name} y {other} no se pueden instalar juntos","pkg.conflictInstalled": "{name} choca con {other}, que está instalado","pkg.deb.badControl": "El archivo control del .deb es inválido",@@ -446,6 +448,7 @@"pkg.indexFailed": "No se pudo armar el índice de paquetes: {reason}","pkg.installAndRemove": "{name} está para instalar y para quitar a la vez","pkg.invalidName": "Nombre de paquete inválido: {name}",+ "pkg.keyMismatch": "La clave de firma de {id} no coincide con la huella que fija LordOS: no se agregó","pkg.missingName": "Falta el nombre del paquete","pkg.neededButRemoved": "{name} hace falta, pero pediste quitarlo","pkg.noIndex": "Todavía no hay lista de paquetes: primero actualizala",@@ -453,6 +456,7 @@"pkg.noSources": "No hay fuentes de paquetes (/etc/apt/sources.list.d)","pkg.noVerifiedSource": "No se pudo verificar ninguna fuente de paquetes","pkg.notFound": "No hay ningún paquete llamado {name}",+ "pkg.notInCatalog": "{id} no es una app de un repositorio de fabricante del catálogo de LordOS","pkg.notInstalled": "{name} no está instalado","pkg.pgp.badEncoding": "firma mal codificada","pkg.pgp.badSignature": "firma inválida de la clave {key}",diff --git a/assets/locales/es/settings.json b/assets/locales/es/settings.jsonindex aa08078..629470b 100644--- a/assets/locales/es/settings.json+++ b/assets/locales/es/settings.json@@ -5,15 +5,16 @@"admin.system-locale": "Región del sistema","admin.timezone": "Zona horaria","admin.unavailable": "El ayudante de administración no está activo: lord-server tiene que arrancar con sudo y el usuario estar en el grupo sudo.",- "browserTabs.label": "Navegadores: pestañas en la barra de título",- "browserTabs.hint": "Activado: Chromium y Firefox dibujan una sola barra con sus pestañas y los botones de ventana de LordOS. Desactivado: usan el marco de LordOS. Cambia tus perfiles de navegador y se aplica la próxima vez que se abre cada navegador.",+ "browserTabs.applyAll": "Cambiarlos","browserTabs.chromiumOpen": "Chromium está abierto: sus perfiles cambian en cuanto lo cierres.",+ "browserTabs.done": "Listo. Los navegadores lo usan la próxima vez que se abren.","browserTabs.failed": {"one": "No se pudo cambiar {count} perfil de navegador y quedó como estaba.","other": "No se pudieron cambiar {count} perfiles de navegador y quedaron como estaban."},"browserTabs.firefoxKept": "Un perfil de Firefox lo define en su propio archivo user.js, así que no se tocó.",- "browserTabs.done": "Listo. Los navegadores lo usan la próxima vez que se abren.",+ "browserTabs.hint": "Activado: Chromium y Firefox dibujan una sola barra con sus pestañas y los botones de ventana de LordOS. Desactivado: usan el marco de LordOS. Cambia tus perfiles de navegador y se aplica la próxima vez que se abre cada navegador.",+ "browserTabs.label": "Navegadores: pestañas en la barra de título","browserTabs.othersOff": {"one": "{count} perfil de Chromium todavía usa el marco de LordOS","other": "{count} perfiles de Chromium todavía usan el marco de LordOS"@@ -22,7 +23,6 @@"one": "{count} perfil de Chromium todavía dibuja su propia barra","other": "{count} perfiles de Chromium todavía dibujan su propia barra"},- "browserTabs.applyAll": "Cambiarlos","change": "Cambiar…","clipboard.add": "Agregar","clipboard.appId": "id de la app",@@ -50,8 +50,63 @@"clipboard.save": "Guardar el historial","clipboard.saveHint": "Lo que copiás (textos e imágenes) se guarda en tu carpeta personal y sigue ahí después de reiniciar. Apagado, queda solo en memoria.","dark": "Oscuro",+ "dock.alignCenter": "Centro",+ "dock.alignStart": "Inicio",+ "dock.autohide": "Ocultar y mostrar el Dock automáticamente",+ "dock.autohideHint": "Aparece al llevar el puntero al borde de la pantalla; las ventanas usan todo el espacio.",+ "dock.bottom": "Abajo",+ "dock.large": "Grande",+ "dock.left": "Izquierda",+ "dock.magnify": "Ampliación",+ "dock.magnifyHint": "Los íconos crecen al pasar el puntero por encima.",+ "dock.magnifySize": "Cuánto se amplían",+ "dock.position": "Posición en la pantalla",+ "dock.recents": "Mostrar apps recientes en el Dock",+ "dock.recentsHint": "Las últimas tres apps usadas que no están fijadas, después de una línea.",+ "dock.reset": "Restablecer el Dock",+ "dock.resetAsk": "¿Restablecer el Dock?",+ "dock.resetButton": "Restablecer…",+ "dock.resetCancel": "Cancelar",+ "dock.resetConfirm": "Restablecer",+ "dock.resetDetail": "Las apps que agregaste y el orden que elegiste se reemplazan por los del tema. Las apps abiertas siguen abiertas.",+ "dock.resetDone": "Se restableció lo predeterminado.",+ "dock.resetHint": "Vuelve a poner las apps del tema en su orden original. Archivos queda primero y la Papelera última; Archivos, Ajustes y Apps no se pueden quitar.",+ "dock.resetHintTaskbar": "Vuelve a poner las apps del tema en la barra de tareas, en su orden original. Archivos queda primero y la Papelera última; Archivos y Ajustes no se pueden desanclar.",+ "dock.resetTaskbar": "Restablecer la barra de tareas",+ "dock.right": "Derecha",+ "dock.sidesHint": "Izquierda y derecha son lados de la pantalla: no cambian con un idioma de derecha a izquierda.",+ "dock.size": "Tamaño",+ "dock.small": "Chico",+ "dock.taskbar": "Posición de la barra de tareas",+ "dock.taskbarAlign": "Alineación de la barra de tareas",+ "dock.taskbarHint": "Tema Lord Classic. Las ventanas maximizadas no quedan debajo de la barra.",+ "dock.top": "Arriba","effects": "Efectos de transparencia","effectsHint": "Desactivar el blur acelera el escritorio en equipos lentos.",+ "firmware.bootloader": "Cargador de arranque",+ "firmware.check": "Comprobar de nuevo",+ "firmware.checking": "Comprobando…",+ "firmware.current": "Instalado",+ "firmware.hint": "El cargador de arranque vive en un chip de la placa y la enciende antes que el sistema. Las versiones nuevas llegan con las actualizaciones del sistema (el paquete rpi-eeprom); instalar una tiene efecto en el próximo reinicio. No desconectes la alimentación mientras la placa se reinicia.",+ "firmware.install": "Instalar",+ "firmware.installing": "Instalando…",+ "firmware.latest": "Último disponible",+ "firmware.missing": "Las herramientas del cargador de arranque no están instaladas",+ "firmware.missingHint": "LordOS actualiza el cargador de arranque con el paquete rpi-eeprom, del repositorio de LordOS.",+ "firmware.needAdmin": "Solo un administrador puede actualizar el cargador de arranque.",+ "firmware.pendingHint": "El cargador de arranque nuevo se instala cuando la placa se reinicia. Mantené la alimentación conectada hasta que vuelva el escritorio.",+ "firmware.pendingHow": "El cargador de arranque nuevo se instala cuando la placa se reinicia: cerrá la sesión y elegí Reiniciar en la pantalla de inicio. Mantené la alimentación conectada hasta que vuelva.",+ "firmware.release.default": "Predeterminada (recomendada)",+ "firmware.release.latest": "Última (funciones nuevas)",+ "firmware.releaseLabel": "Versión",+ "firmware.restart": "Reiniciar…",+ "firmware.state.available": "Hay una actualización",+ "firmware.state.pending": "Actualización lista: reiniciá para terminar",+ "firmware.state.uptodate": "Al día",+ "firmware.unknown": "Desconocida",+ "firmware.update": "Actualizar",+ "firmware.updating": "Actualizando…",+ "firmware.updatingHint": "Preparando el cargador de arranque nuevo. Puede tardar hasta un minuto.","general.machine": "Acerca de este equipo","general.name": "Nombre","general.software": "Software",@@ -74,16 +129,27 @@"kb.testHint": "Escribí acá: ñ, tildes (´ + vocal), ç, AltGr…","kb.use": "Usar","keywords.appearance": "modo oscuro claro acento transparencia navegador pestañas barra de título marco",+ "keywords.bluetooth": "bluetooth vincular emparejar auriculares parlante teclado mouse inalámbrico","keywords.clipboard": "copiar pegar historial copiado",+ "keywords.cooling": "ventilador ventiladores temperatura refrigeración calor ruido curva caja a tope fan cooling",+ "keywords.datetime": "fecha hora reloj ntp zona horaria 24 horas 12 horas barra de menú segundos",+ "keywords.defaultapps": "apps por defecto predeterminadas navegador correo música video imágenes pdf editor de texto terminal abrir con",+ "keywords.displays": "pantalla monitor resolución frecuencia hz rotación girar brillo night shift noche temperatura color edid video navegador códec h264 vp9 av1 trabado",+ "keywords.dock": "dock barra de tareas posición izquierda derecha abajo arriba tamaño lupa ampliación ocultar esconder recientes",+ "keywords.firmware": "firmware bootloader cargador de arranque eeprom raspberry pi actualizar arranque","keywords.general": "acerca equipo sistema versión procesador memoria disco","keywords.keyboard": "distribución método de entrada japonés chino coreano","keywords.language": "idioma región fecha hora zona horaria","keywords.network": "wifi ethernet vpn wireguard openvpn ip dns internet",+ "keywords.notifications": "notificaciones avisos alertas carteles no molestar concentración sonido",+ "keywords.power": "batería energía perfil ahorro rendimiento suspender reposo tapa botón de encendido apagar pantalla",+ "keywords.printers": "impresora imprimir escáner escanear cups cola airprint",+ "keywords.privacy": "privacidad permisos cámara micrófono seguridad","keywords.session": "cerrar sesión salir","keywords.sharing": "escritorio remoto acceso remoto red lan navegador compartir pantalla ssh inicio de sesión remoto terminal","keywords.sound": "volumen parlantes micrófono audio",- "keywords.printers": "impresora imprimir escáner escanear cups cola airprint","keywords.themes": "tema escritorio clásico lord classic flow",+ "keywords.trackpad": "touchpad gestos pellizcar tocar clic desplazamiento natural velocidad puntero","keywords.updates": "paquetes debian tienda software","keywords.users": "usuarios cuentas contraseña avatar administrador inicio automático login","keywords.wallpaper": "fondo imagen escritorio",@@ -101,48 +167,162 @@"pack.invalid": "paquete inválido","pack.lordos": "Paquetes de idioma de LordOS","pack.title": "Paquetes de Debian del idioma",+ "reduceMotion": "Reducir movimiento",+ "reduceMotionHint": "Detiene las animaciones decorativas, como el ventilador que gira en Refrigeración.","region.generated": "Región {name} generada","region.hint": "Fechas, horas y números, y el idioma de los programas de Linux (LANG) en terminales nuevas.","region.preview": "Vista previa","region.search": "Buscar región (es_AR, pt_BR, en_US…)","region.title": "Región (formatos y programas)",+ "scrollBars": "Mostrar barras de desplazamiento",+ "scrollBarsAlways": "Siempre",+ "scrollBarsAuto": "Automáticamente",+ "scrollBarsHint": "Automáticamente: aparece una barra fina en el borde mientras te desplazas o acercas el puntero. Al desplazarse: solo mientras te desplazas. Siempre: queda visible.",+ "scrollBarsScrolling": "Al desplazarse","search": "Buscar","section.appearance": "Apariencia",+ "section.bluetooth": "Bluetooth","section.clipboard": "Portapapeles",+ "section.cooling": "Refrigeración",+ "section.datetime": "Fecha y hora",+ "section.defaultapps": "Apps por defecto",+ "section.displays": "Pantallas",+ "section.dock": "Escritorio y Dock",+ "section.firmware": "Firmware de la placa","section.general": "General","section.keyboard": "Teclado","section.language": "Idioma y región","section.network": "Red",+ "section.notifications": "Notificaciones",+ "section.power": "Energía",+ "section.printers": "Impresoras y escáneres",+ "section.privacy": "Privacidad","section.session": "Sesión","section.sharing": "Compartir","section.sound": "Sonido",- "section.printers": "Impresoras y escáneres","section.themes": "Temas",+ "section.trackpad": "Trackpad","section.updates": "Actualizaciones","section.users": "Usuarios","section.wallpaper": "Fondo de pantalla","session.hint": "Sale de LordOS y vuelve a la consola.","session.hintManaged": "Cierra tu sesión y vuelve a la pantalla de ingreso. Las apps abiertas se cierran.",+ "sharing.access": "Quién puede conectarse","sharing.allUsers": "Todos los usuarios",+ "sharing.allowAdd": "Agregar",+ "sharing.allowEmpty": "La lista está vacía: nadie puede conectarse.",+ "sharing.allowPlaceholder": "Dirección o red, p. ej. 192.168.1.0/24",+ "sharing.allowlist": "Lista de permitidas",+ "sharing.allowlistFooter": "Direcciones y redes que pueden conectarse cuando se elige «Solo estas direcciones». Igual se bloquean tras 3 ingresos fallidos.",+ "sharing.badAddress": "Escribí una dirección IPv4 o IPv6, o una red como 192.168.1.0/24 (al menos /8; IPv6 al menos /16).",+ "sharing.block": "Bloquear",+ "sharing.blockForever": "Bloquear siempre",+ "sharing.blockPlaceholder": "Dirección o red para bloquear",+ "sharing.blocked": "Bloqueadas temporalmente",+ "sharing.blockedAuto": "Ingresos fallidos · faltan {minutes} min",+ "sharing.blockedFooter": "Una dirección queda bloqueada tras 3 ingresos fallidos: 15 minutos, luego 1 hora y luego 24 horas si se repite en el mismo día. Te llega una notificación cuando pasa.",+ "sharing.blockedManual": "Bloqueada por un administrador",+ "sharing.blockedNone": "No hay direcciones bloqueadas.",+ "sharing.blocklist": "Lista de bloqueadas",+ "sharing.blocklistFooter": "Siempre rechazadas, antes que cualquier otra regla, hasta que las quites.","sharing.connected": "Conectados ahora","sharing.disconnect": "Desconectar","sharing.fingerprint": "Huella del certificado (comparala con la que muestra el navegador):","sharing.justNow": "recién",+ "sharing.listEmpty": "La lista está vacía.","sharing.minutes": {"one": "hace {count} minuto","other": "hace {count} minutos"},+ "sharing.netAny": "Cualquier dirección",+ "sharing.netAnyHint": "Cualquier dirección que llegue a este equipo, también internet si se le redirige un puerto.",+ "sharing.netAnyWarn": "Se aceptan conexiones desde cualquier dirección. Los ingresos fallidos igual bloquean la dirección, pero una VPN es la forma más segura de llegar a este equipo desde internet.",+ "sharing.netFrom": "Permitir conexiones desde",+ "sharing.netLan": "Red local",+ "sharing.netLanHint": "Direcciones privadas y de enlace local de tu red, y conexiones que llegan por una VPN de este equipo. Las direcciones públicas de internet se rechazan.",+ "sharing.netList": "Solo estas direcciones",+ "sharing.netListHint": "Solo las direcciones y redes de esta lista pueden abrir la página de ingreso.","sharing.noLan": "Este equipo no tiene una dirección IPv4 en la red local.","sharing.nobody": "Nadie está conectado.",+ "sharing.noneSet": "Ninguno","sharing.notInstalled": "Las sesiones de LordOS no las maneja lord-sessiond (ver docs/SESSIONS.md): el escritorio remoto no está disponible.",+ "sharing.onlyAdmins": "Solo administradores","sharing.onlyGroup": "Solo el grupo","sharing.openFrom": "Desde otra computadora de la red, abrí en el navegador:","sharing.ownSession": "en su propio escritorio","sharing.remote": "Escritorio remoto","sharing.remoteHint": "Otras computadoras de tu red local entran desde un navegador, con un usuario y contraseña de este equipo. Con tu mismo usuario ven y usan esta misma pantalla; con otro usuario, un escritorio propio.","sharing.remoteToggle": "Permitir el acceso desde la red",+ "sharing.remove": "Quitar",+ "sharing.root.activeWarning": "Root puede entrar por SSH en este equipo. Apagalo cuando ya no lo necesites.",+ "sharing.root.addKey": "Agregar",+ "sharing.root.adminPassword": "Tu contraseña",+ "sharing.root.authorize": "Autorizar",+ "sharing.root.cancel": "Cancelar",+ "sharing.root.confirm.addKey": "¿Permitir que esta clave entre como root? Escribí tu contraseña para confirmar.",+ "sharing.root.confirm.key": "¿Permitir que root entre por SSH con una clave pública? Quien tenga la clave privada correspondiente tiene el control total de este equipo. Escribí tu contraseña para confirmar.",+ "sharing.root.confirm.off": "¿Apagar el acceso de root por SSH? Escribí tu contraseña para confirmar.",+ "sharing.root.confirm.password": "¿Permitir que root entre por SSH también con contraseña? Cualquiera en la red que la sepa o la adivine tiene el control total de este equipo. Escribí tu contraseña para confirmar.",+ "sharing.root.confirm.removeKey": "¿Quitar esta clave de las permitidas para root? Escribí tu contraseña para confirmar.",+ "sharing.root.createHint": "Para crear un par de claves, ejecutá ssh-keygen -t ed25519 en el equipo desde el que te vas a conectar, y pegá o importá acá su archivo .pub. La clave privada nunca sale de ese equipo.",+ "sharing.root.footer": "Apagado por defecto. El acceso de root por SSH le da a quien tenga la clave o la contraseña el control total de este equipo: usalo para pruebas y administración en una red de confianza, y apagalo después. Cada cambio vuelve a pedir tu contraseña.",+ "sharing.root.importFile": "Importar…",+ "sharing.root.keyPlaceholder": "Pegá una clave pública (ssh-ed25519 AAAA… nombre@equipo)",+ "sharing.root.keys": "Solo con clave",+ "sharing.root.keysAndPassword": "Clave o contraseña",+ "sharing.root.keysTitle": "Claves públicas permitidas para root",+ "sharing.root.mismatch": "Las dos contraseñas no coinciden",+ "sharing.root.mode": "Root puede entrar",+ "sharing.root.modeHint.key": "Solo con una de las claves públicas de abajo.",+ "sharing.root.modeHint.off": "Root nunca entra por la red (lo predeterminado).",+ "sharing.root.modeHint.password": "Con una clave de abajo o con la contraseña de root: la opción más riesgosa.",+ "sharing.root.newPassword": "Nueva contraseña de root",+ "sharing.root.noKeys": "Todavía no hay ninguna clave.",+ "sharing.root.off": "Apagado",+ "sharing.root.passwordSet": "Root tiene contraseña",+ "sharing.root.passwordUnset": "Root todavía no tiene contraseña: poné una para entrar con ella",+ "sharing.root.remove": "Quitar",+ "sharing.root.repeatPassword": "Repetila",+ "sharing.root.setPassword": "Guardar",+ "sharing.root.title": "Avanzado: acceso de root por SSH",+ "sharing.save": "Guardar","sharing.security": "La conexión va cifrada (TLS) con un certificado propio de este equipo. 3 ingresos fallidos bloquean la dirección; la cuenta root nunca puede entrar. Para usarlo desde internet hace falta una VPN.",+ "sharing.ssh": "Inicio de sesión remoto (SSH)",+ "sharing.sshFingerprint": "Huella de la clave del equipo (comparala con la que muestra ssh la primera vez que te conectás):",+ "sharing.sshFrom": "Desde otra computadora, ejecutá en una terminal:",+ "sharing.sshHint": "Otras computadoras abren una terminal en esta con un cliente SSH, con un usuario y contraseña de esta computadora. Una vez activado, sigue activo después de reiniciar.",+ "sharing.sshHintInstall": "Otras computadoras abren una terminal en esta con un cliente SSH, con un usuario y contraseña de esta computadora. El servidor SSH se instala la primera vez que lo activás (necesita internet).",+ "sharing.sshInstalling": "Instalando el servidor SSH…",+ "sharing.sshNotRunning": "El inicio de sesión remoto está activado pero el servidor SSH no está funcionando. Apagalo y volvé a encenderlo, o mirá Registros.",+ "sharing.sshSecurity": "Puerto 22. Las contraseñas viajan cifradas. Entrar con una clave es más seguro: copiá la tuya con ssh-copy-id. Para usarlo desde internet, usá una VPN.",+ "sharing.sshToggle": "Permitir el inicio de sesión desde la red",+ "sharing.sshUserPlaceholder": "usuario",+ "sharing.sshWhoAdminsHint": "Solo administradores (el grupo sudo). Root nunca puede entrar.",+ "sharing.sshWhoAllHint": "Cualquier usuario de esta computadora con contraseña. Root nunca puede entrar.",+ "sharing.stun": "Servidores STUN",+ "sharing.stunHint": "Esta computadora responde STUN por sí misma, y en la red local alcanza. Agregá un servidor público solo para conectarte entre redes (hasta 4, separados por comas).",+ "sharing.stunPlaceholder": "stun.ejemplo.org:3478","sharing.thisSession": "mirando esta pantalla",+ "sharing.turn": "Relé (TURN)",+ "sharing.turnFooter": "Solo cuando ninguno de los dos lados puede llegar al otro directamente. El relé solo ve video y entrada cifrados; su contraseña queda en esta computadora y solo el sistema puede leerla.",+ "sharing.turnFp": "Huella del certificado (opcional)",+ "sharing.turnFpHint": "Vacío: el certificado del relé tiene que ser válido para su nombre. Para un relé con certificado propio, pegá acá su huella SHA-256.",+ "sharing.turnFpPlaceholder": "SHA-256, como 3A:7F:…",+ "sharing.turnPass": "Contraseña",+ "sharing.turnPassSaved": "Guardada (nunca se muestra)",+ "sharing.turnRemove": "Quitar el relé",+ "sharing.turnServer": "Servidor",+ "sharing.turnServerPlaceholder": "turn.ejemplo.org:3478",+ "sharing.turnTcp": "TCP",+ "sharing.turnTls": "TLS",+ "sharing.turnTransport": "Llegar al relé por",+ "sharing.turnUdp": "UDP",+ "sharing.turnUser": "Usuario",+ "sharing.unblock": "Desbloquear",+ "sharing.video": "Conexión",+ "sharing.videoFooter": "Funciona en la red local y por VPN con UDP, o por el puerto TCP {port} donde UDP está bloqueado. Para conectarse entre redes distintas, agregá un servidor STUN o un relé abajo.",+ "sharing.videoHint": "La pantalla, su sonido y lo que escribís viajan cifrados por WebRTC: es la única forma en que funciona el escritorio remoto.",+ "sharing.videoRow": "Video por WebRTC","sharing.who": "Pueden entrar","sharing.whoAllHint": "Cualquier usuario de este equipo con contraseña.","sharing.whoGroupHint": "Solo los usuarios del grupo lordos-remote.",@@ -159,6 +339,8 @@"sound.test": "Probar el sonido","sound.unavailable": "No hay conexión con el servidor de sonido (PipeWire). Ver docs/SOUND.md.","sound.volume": "Volumen",+ "style.hint": "Los dos estilos tienen las mismas apps. El cambio se aplica al instante, sin cerrar sesión; las ventanas abiertas vuelven.",+ "style.title": "Estilo de escritorio","system.apply": "Usar {name}","system.hint": "Para todos los usuarios y servicios (/etc/default/locale). Hoy: {name}","system.title": "Región por defecto del sistema",@@ -220,160 +402,9 @@"users.userName": "Nombre de usuario","users.working": "Aplicando…","users.you": "vos",- "section.privacy": "Privacidad",- "keywords.privacy": "privacidad permisos cámara micrófono seguridad",- "section.trackpad": "Trackpad",- "keywords.trackpad": "touchpad gestos pellizcar tocar clic desplazamiento natural velocidad puntero",- "section.dock": "Escritorio y Dock",- "keywords.dock": "dock barra de tareas posición izquierda derecha abajo arriba tamaño lupa ampliación ocultar esconder recientes",- "dock.position": "Posición en la pantalla",- "dock.bottom": "Abajo",- "dock.left": "Izquierda",- "dock.right": "Derecha",- "dock.top": "Arriba",- "dock.size": "Tamaño",- "dock.small": "Chico",- "dock.large": "Grande",- "dock.magnify": "Ampliación",- "dock.magnifyHint": "Los íconos crecen al pasar el puntero por encima.",- "dock.magnifySize": "Cuánto se amplían",- "dock.autohide": "Ocultar y mostrar el Dock automáticamente",- "dock.autohideHint": "Aparece al llevar el puntero al borde de la pantalla; las ventanas usan todo el espacio.",- "dock.recents": "Mostrar apps recientes en el Dock",- "dock.recentsHint": "Las últimas tres apps usadas que no están fijadas, después de una línea.",- "dock.taskbar": "Posición de la barra de tareas",- "dock.taskbarHint": "Tema Lord Classic. Las ventanas maximizadas no quedan debajo de la barra.",- "dock.sidesHint": "Izquierda y derecha son lados de la pantalla: no cambian con un idioma de derecha a izquierda.",- "dock.reset": "Restablecer el Dock",- "dock.resetTaskbar": "Restablecer la barra de tareas",- "dock.resetButton": "Restablecer…",- "dock.resetHint": "Vuelve a poner las apps del tema en su orden original. Archivos queda primero y la Papelera última; Archivos, Ajustes y Apps no se pueden quitar.",- "dock.resetHintTaskbar": "Vuelve a poner las apps del tema en la barra de tareas, en su orden original. Archivos queda primero y la Papelera última; Archivos y Ajustes no se pueden desanclar.",- "dock.resetAsk": "¿Restablecer el Dock?",- "dock.resetDetail": "Las apps que agregaste y el orden que elegiste se reemplazan por los del tema. Las apps abiertas siguen abiertas.",- "dock.resetCancel": "Cancelar",- "dock.resetConfirm": "Restablecer",- "dock.resetDone": "Se restableció lo predeterminado.",- "section.displays": "Pantallas",- "section.bluetooth": "Bluetooth",- "section.power": "Energía",- "section.notifications": "Notificaciones",- "section.datetime": "Fecha y hora",- "section.defaultapps": "Apps por defecto",- "keywords.displays": "pantalla monitor resolución frecuencia hz rotación girar brillo night shift noche temperatura color edid video navegador códec h264 vp9 av1 trabado",- "keywords.bluetooth": "bluetooth vincular emparejar auriculares parlante teclado mouse inalámbrico",- "keywords.power": "batería energía perfil ahorro rendimiento suspender reposo tapa botón de encendido apagar pantalla",- "keywords.notifications": "notificaciones avisos alertas carteles no molestar concentración sonido",- "keywords.datetime": "fecha hora reloj ntp zona horaria 24 horas 12 horas barra de menú segundos",- "keywords.defaultapps": "apps por defecto predeterminadas navegador correo música video imágenes pdf editor de texto terminal abrir con",- "section.cooling": "Refrigeración",- "keywords.cooling": "ventilador ventiladores temperatura refrigeración calor ruido curva caja a tope fan cooling",- "section.firmware": "Firmware de la placa",- "keywords.firmware": "firmware bootloader cargador de arranque eeprom raspberry pi actualizar arranque",- "firmware.bootloader": "Cargador de arranque",- "firmware.hint": "El cargador de arranque vive en un chip de la placa y la enciende antes que el sistema. Las versiones nuevas llegan con las actualizaciones del sistema (el paquete rpi-eeprom); instalar una tiene efecto en el próximo reinicio. No desconectes la alimentación mientras la placa se reinicia.",- "firmware.state.uptodate": "Al día",- "firmware.state.available": "Hay una actualización",- "firmware.state.pending": "Actualización lista: reiniciá para terminar",- "firmware.checking": "Comprobando…",- "firmware.unknown": "Desconocida",- "firmware.current": "Instalado",- "firmware.latest": "Último disponible",- "firmware.releaseLabel": "Versión",- "firmware.release.default": "Predeterminada (recomendada)",- "firmware.release.latest": "Última (funciones nuevas)",- "firmware.check": "Comprobar de nuevo",- "firmware.update": "Actualizar",- "firmware.updating": "Actualizando…",- "firmware.updatingHint": "Preparando el cargador de arranque nuevo. Puede tardar hasta un minuto.",- "firmware.restart": "Reiniciar…",- "firmware.pendingHint": "El cargador de arranque nuevo se instala cuando la placa se reinicia. Mantené la alimentación conectada hasta que vuelva el escritorio.",- "firmware.pendingHow": "El cargador de arranque nuevo se instala cuando la placa se reinicia: cerrá la sesión y elegí Reiniciar en la pantalla de inicio. Mantené la alimentación conectada hasta que vuelva.",- "firmware.needAdmin": "Solo un administrador puede actualizar el cargador de arranque.",- "firmware.missing": "Las herramientas del cargador de arranque no están instaladas",- "firmware.missingHint": "LordOS actualiza el cargador de arranque con el paquete rpi-eeprom, del repositorio de LordOS.",- "firmware.install": "Instalar",- "firmware.installing": "Instalando…",- "reduceMotion": "Reducir movimiento",- "reduceMotionHint": "Detiene las animaciones decorativas, como el ventilador que gira en Refrigeración.",- "scrollBars": "Mostrar barras de desplazamiento",- "scrollBarsAuto": "Automáticamente",- "scrollBarsScrolling": "Al desplazarse",- "scrollBarsAlways": "Siempre",- "scrollBarsHint": "Automáticamente: aparece una barra fina en el borde mientras te desplazas o acercas el puntero. Al desplazarse: solo mientras te desplazas. Siempre: queda visible.",- "sharing.onlyAdmins": "Solo administradores",- "sharing.ssh": "Inicio de sesión remoto (SSH)",- "sharing.sshFingerprint": "Huella de la clave del equipo (comparala con la que muestra ssh la primera vez que te conectás):",- "sharing.sshFrom": "Desde otra computadora, ejecutá en una terminal:",- "sharing.sshHint": "Otras computadoras abren una terminal en esta con un cliente SSH, con un usuario y contraseña de esta computadora. Una vez activado, sigue activo después de reiniciar.",- "sharing.sshHintInstall": "Otras computadoras abren una terminal en esta con un cliente SSH, con un usuario y contraseña de esta computadora. El servidor SSH se instala la primera vez que lo activás (necesita internet).",- "sharing.sshInstalling": "Instalando el servidor SSH…",- "sharing.sshNotRunning": "El inicio de sesión remoto está activado pero el servidor SSH no está funcionando. Apagalo y volvé a encenderlo, o mirá Registros.",- "sharing.sshSecurity": "Puerto 22. Las contraseñas viajan cifradas. Entrar con una clave es más seguro: copiá la tuya con ssh-copy-id. Para usarlo desde internet, usá una VPN.",- "sharing.sshToggle": "Permitir el inicio de sesión desde la red",- "sharing.sshUserPlaceholder": "usuario",- "sharing.sshWhoAdminsHint": "Solo administradores (el grupo sudo). Root nunca puede entrar.",- "sharing.sshWhoAllHint": "Cualquier usuario de esta computadora con contraseña. Root nunca puede entrar.",- "wallpaperCategory.signature": "Signature",- "wallpaperCategory.lumo": "Lumo","wallpaperCategory.cosmos": "Cosmos","wallpaperCategory.gradients": "Degradados",+ "wallpaperCategory.lumo": "Lumo","wallpaperCategory.other": "Otros",- "style.title": "Estilo de escritorio",- "style.hint": "Los dos estilos tienen las mismas apps. El cambio se aplica al instante, sin cerrar sesión; las ventanas abiertas vuelven.",- "dock.taskbarAlign": "Alineación de la barra de tareas",- "dock.alignCenter": "Centro",- "dock.alignStart": "Inicio",- "sharing.access": "Quién puede conectarse",- "sharing.netFrom": "Permitir conexiones desde",- "sharing.netLan": "Red local",- "sharing.netList": "Solo estas direcciones",- "sharing.netAny": "Cualquier dirección",- "sharing.netLanHint": "Direcciones privadas y de enlace local de tu red, y conexiones que llegan por una VPN de este equipo. Las direcciones públicas de internet se rechazan.",- "sharing.netListHint": "Solo las direcciones y redes de esta lista pueden abrir la página de ingreso.",- "sharing.netAnyHint": "Cualquier dirección que llegue a este equipo, también internet si se le redirige un puerto.",- "sharing.netAnyWarn": "Se aceptan conexiones desde cualquier dirección. Los ingresos fallidos igual bloquean la dirección, pero una VPN es la forma más segura de llegar a este equipo desde internet.",- "sharing.allowEmpty": "La lista está vacía: nadie puede conectarse.",- "sharing.allowPlaceholder": "Dirección o red, p. ej. 192.168.1.0/24",- "sharing.allowAdd": "Agregar",- "sharing.remove": "Quitar",- "sharing.blocked": "Bloqueadas temporalmente",- "sharing.blockedFooter": "Una dirección queda bloqueada tras 3 ingresos fallidos: 15 minutos, luego 1 hora y luego 24 horas si se repite en el mismo día. Te llega una notificación cuando pasa.",- "sharing.blockedNone": "No hay direcciones bloqueadas.",- "sharing.blockedManual": "Bloqueada por un administrador",- "sharing.blockedAuto": "Ingresos fallidos · faltan {minutes} min",- "sharing.unblock": "Desbloquear",- "sharing.block": "Bloquear",- "sharing.blockPlaceholder": "Dirección o red para bloquear",- "sharing.badAddress": "Escribí una dirección IPv4 o IPv6, o una red como 192.168.1.0/24 (al menos /8; IPv6 al menos /16).",- "sharing.allowlist": "Lista de permitidas",- "sharing.allowlistFooter": "Direcciones y redes que pueden conectarse cuando se elige «Solo estas direcciones». Igual se bloquean tras 3 ingresos fallidos.",- "sharing.blocklist": "Lista de bloqueadas",- "sharing.blocklistFooter": "Siempre rechazadas, antes que cualquier otra regla, hasta que las quites.",- "sharing.listEmpty": "La lista está vacía.",- "sharing.blockForever": "Bloquear siempre",- "sharing.video": "Conexión",- "sharing.videoHint": "La pantalla, su sonido y lo que escribís viajan cifrados por WebRTC: es la única forma en que funciona el escritorio remoto.",- "sharing.stun": "Servidores STUN",- "sharing.stunPlaceholder": "stun.ejemplo.org:3478",- "sharing.stunHint": "Esta computadora responde STUN por sí misma, y en la red local alcanza. Agregá un servidor público solo para conectarte entre redes (hasta 4, separados por comas).",- "sharing.turn": "Relé (TURN)",- "sharing.turnServer": "Servidor",- "sharing.turnServerPlaceholder": "turn.ejemplo.org:3478",- "sharing.turnUser": "Usuario",- "sharing.turnPass": "Contraseña",- "sharing.turnPassSaved": "Guardada (nunca se muestra)",- "sharing.turnRemove": "Quitar el relé",- "sharing.turnFooter": "Solo cuando ninguno de los dos lados puede llegar al otro directamente. El relé solo ve video y entrada cifrados; su contraseña queda en esta computadora y solo el sistema puede leerla.",- "sharing.save": "Guardar",- "sharing.noneSet": "Ninguno",- "sharing.videoRow": "Video por WebRTC",- "sharing.videoFooter": "Funciona en la red local y por VPN con UDP, o por el puerto TCP {port} donde UDP está bloqueado. Para conectarse entre redes distintas, agregá un servidor STUN o un relé abajo.",- "sharing.turnTransport": "Llegar al relé por",- "sharing.turnUdp": "UDP",- "sharing.turnTcp": "TCP",- "sharing.turnTls": "TLS",- "sharing.turnFp": "Huella del certificado (opcional)",- "sharing.turnFpPlaceholder": "SHA-256, como 3A:7F:…",- "sharing.turnFpHint": "Vacío: el certificado del relé tiene que ser válido para su nombre. Para un relé con certificado propio, pegá acá su huella SHA-256."+ "wallpaperCategory.signature": "Signature"}diff --git a/assets/locales/es/status.json b/assets/locales/es/status.jsonindex b82c65c..abd2392 100644--- a/assets/locales/es/status.json+++ b/assets/locales/es/status.json@@ -6,9 +6,19 @@"disk.unmounted": "Desmontado","disk.unmountedPath": "Desmontado {path}","disk.verified": "Verificado (SHA-256 {sha256})",+ "hw.caseSet": "Caja: {case}",+ "hw.firmwareChecked": "Firmware revisado",+ "hw.memoryNoTables": "El firmware no informa módulos de memoria",+ "hw.memoryRead": "Módulos de memoria leídos","hw.profileSet": "Modo de energía: {profile}","hw.suspended": "Suspendiendo","hw.unblocked": "Desbloqueado",+ "imager.cacheCleared": "Descargas borradas",+ "imager.cached": "Ya estaba descargado",+ "imager.cancelling": "Cancelando…",+ "imager.fetched": "Descargado",+ "imager.verifiedImage": "La imagen coincide con su SHA-256 firmado",+ "imager.written": "Grabada y verificada","install.chownWarning": "Aviso: no se pudo cambiar el dueño de un archivo","install.done": "LordOS quedó instalado en {dev}","install.homedirsWarning": "Aviso: no se pudieron crear las carpetas del usuario",@@ -59,8 +69,10 @@"pkg.nothingToDo": "Nada para hacer: ya está todo instalado","pkg.nothingToRemove": "No hay nada para quitar","pkg.source": "Fuente: {uri} {suite} {component}",+ "pkg.sourceAdded": "Se agregó el repositorio del fabricante de {id}","pkg.sourceFailed": "{uri} {suite}: {reason}","pkg.sourceMissingFile": "{uri} {suite}: no hay {file}",+ "pkg.sourceRemoved": "Se quitó el repositorio del fabricante de {id}","pkg.sourceSkipped": "Fuente salteada (solo http/https): {uri}","pkg.sourceVerified": "{uri} {suite}: firma verificada ({label})","pkg.unresolvedDep": "Dependencia sin resolver: {name}",@@ -83,12 +95,20 @@"pkg.why.requested": "Pedido","pkg.why.upgrade": "Actualización","pkg.why.upgradedFor": "Se actualiza para {name}",+ "remote.blocked": "{address} bloqueada","remote.disconnected": "Conexión cortada",+ "remote.failure": "Ingreso fallido de {user} desde {key} ({count})",+ "remote.failures": "{count} ingresos fallidos","remote.off": "Escritorio remoto apagado","remote.on": "Escritorio remoto prendido","remote.saved": "Configuración guardada",+ "remote.unblocked": "{address} desbloqueada","remote.userAdded": "{name} puede conectarse de forma remota","remote.userRemoved": "{name} ya no puede conectarse de forma remota",+ "ssh.off": "Inicio de sesión remoto desactivado",+ "ssh.on": "Inicio de sesión remoto activado",+ "ssh.saved": "Ajustes guardados",+ "ssh.status": "Acceso de root por SSH: estado leído","tz.set": "Zona horaria: {zone}","users.autologinOff": "Inicio automático apagado","users.autologinOn": "Inicio automático prendido",@@ -115,22 +135,5 @@},"wifi.connecting": "Conectando a {ssid}…","wifi.disconnected": "Desconectado",- "wifi.forgotten": "Red olvidada",- "hw.caseSet": "Caja: {case}",- "ssh.off": "Inicio de sesión remoto desactivado",- "ssh.on": "Inicio de sesión remoto activado",- "ssh.saved": "Ajustes guardados",- "hw.firmwareChecked": "Firmware revisado",- "remote.blocked": "{address} bloqueada",- "remote.unblocked": "{address} desbloqueada",- "remote.failures": "{count} ingresos fallidos",- "remote.failure": "Ingreso fallido de {user} desde {key} ({count})",- "imager.cached": "Ya estaba descargado",- "imager.fetched": "Descargado",- "imager.cancelling": "Cancelando…",- "imager.cacheCleared": "Descargas borradas",- "imager.verifiedImage": "La imagen coincide con su SHA-256 firmado",- "imager.written": "Grabada y verificada",- "hw.memoryRead": "Módulos de memoria leídos",- "hw.memoryNoTables": "El firmware no informa módulos de memoria"+ "wifi.forgotten": "Red olvidada"}diff --git a/assets/locales/pt/errors.json b/assets/locales/pt/errors.jsonindex 20fc575..6ffd3c7 100644--- a/assets/locales/pt/errors.json+++ b/assets/locales/pt/errors.json@@ -398,6 +398,8 @@"perm.cameraDenied": "Este app não tem permissão para usar a câmera","perm.usbDenied": "Este app não tem permissão para usar dispositivos USB","pkg.busy": "Outra operação de pacotes está em andamento",+ "pkg.catalogBad": "O catálogo de apps do LordOS tem uma entrada inválida",+ "pkg.catalogMissing": "O catálogo de apps do LordOS não está instalado","pkg.conflict": "{name} e {other} não podem ser instalados juntos","pkg.conflictInstalled": "{name} conflita com {other}, que está instalado","pkg.deb.badControl": "O arquivo control do .deb é inválido",@@ -446,6 +448,7 @@"pkg.indexFailed": "Não foi possível montar o índice de pacotes: {reason}","pkg.installAndRemove": "{name} está marcado para instalar e remover ao mesmo tempo","pkg.invalidName": "Nome de pacote inválido: {name}",+ "pkg.keyMismatch": "A chave de assinatura de {id} não corresponde à impressão digital fixada pelo LordOS: não foi adicionada","pkg.missingName": "Falta o nome do pacote","pkg.neededButRemoved": "{name} é necessário, mas você pediu para removê-lo","pkg.noIndex": "Ainda não há lista de pacotes: atualize-a primeiro",@@ -453,6 +456,7 @@"pkg.noSources": "Não há fontes de pacotes (/etc/apt/sources.list.d)","pkg.noVerifiedSource": "Nenhuma fonte de pacotes pôde ser verificada","pkg.notFound": "Não há nenhum pacote chamado {name}",+ "pkg.notInCatalog": "{id} não é um app de um repositório de fabricante do catálogo do LordOS","pkg.notInstalled": "{name} não está instalado","pkg.pgp.badEncoding": "assinatura mal codificada","pkg.pgp.badSignature": "assinatura inválida da chave {key}",diff --git a/assets/locales/pt/settings.json b/assets/locales/pt/settings.jsonindex 930d99f..4c482cd 100644--- a/assets/locales/pt/settings.json+++ b/assets/locales/pt/settings.json@@ -5,15 +5,16 @@"admin.system-locale": "Região do sistema","admin.timezone": "Fuso horário","admin.unavailable": "O assistente de administração não está ativo: o lord-server deve iniciar com sudo e o usuário estar no grupo sudo.",- "browserTabs.label": "Navegadores: abas na barra de título",- "browserTabs.hint": "Ativado: o Chromium e o Firefox desenham uma única barra com suas abas e os botões de janela do LordOS. Desativado: usam a moldura do LordOS. Altera seus perfis de navegador e vale na próxima vez que cada navegador abrir.",+ "browserTabs.applyAll": "Alterá-los","browserTabs.chromiumOpen": "O Chromium está aberto: seus perfis mudam assim que você o fechar.",+ "browserTabs.done": "Pronto. Os navegadores usam isso na próxima vez que abrirem.","browserTabs.failed": {"one": "Não foi possível alterar {count} perfil de navegador, que ficou como estava.","other": "Não foi possível alterar {count} perfis de navegador, que ficaram como estavam."},"browserTabs.firefoxKept": "Um perfil do Firefox define isso no seu próprio arquivo user.js, então não foi alterado.",- "browserTabs.done": "Pronto. Os navegadores usam isso na próxima vez que abrirem.",+ "browserTabs.hint": "Ativado: o Chromium e o Firefox desenham uma única barra com suas abas e os botões de janela do LordOS. Desativado: usam a moldura do LordOS. Altera seus perfis de navegador e vale na próxima vez que cada navegador abrir.",+ "browserTabs.label": "Navegadores: abas na barra de título","browserTabs.othersOff": {"one": "{count} perfil do Chromium ainda usa a moldura do LordOS","other": "{count} perfis do Chromium ainda usam a moldura do LordOS"@@ -22,7 +23,6 @@"one": "{count} perfil do Chromium ainda desenha sua própria barra","other": "{count} perfis do Chromium ainda desenham sua própria barra"},- "browserTabs.applyAll": "Alterá-los","change": "Alterar…","clipboard.add": "Adicionar","clipboard.appId": "id do app",@@ -50,8 +50,63 @@"clipboard.save": "Salvar o histórico","clipboard.saveHint": "O que você copia (textos e imagens) fica salvo na sua pasta pessoal e continua lá depois de reiniciar. Desligado: só na memória.","dark": "Escuro",+ "dock.alignCenter": "Centro",+ "dock.alignStart": "Início",+ "dock.autohide": "Ocultar e mostrar o Dock automaticamente",+ "dock.autohideHint": "Aparece ao levar o ponteiro até a borda da tela; as janelas usam todo o espaço.",+ "dock.bottom": "Embaixo",+ "dock.large": "Grande",+ "dock.left": "Esquerda",+ "dock.magnify": "Ampliação",+ "dock.magnifyHint": "Os ícones crescem quando o ponteiro passa por cima.",+ "dock.magnifySize": "Quanto ampliam",+ "dock.position": "Posição na tela",+ "dock.recents": "Mostrar apps recentes no Dock",+ "dock.recentsHint": "Os três últimos apps usados que não estão fixados, depois de uma linha.",+ "dock.reset": "Redefinir o Dock",+ "dock.resetAsk": "Redefinir o Dock?",+ "dock.resetButton": "Redefinir…",+ "dock.resetCancel": "Cancelar",+ "dock.resetConfirm": "Redefinir",+ "dock.resetDetail": "Os apps que você adicionou e a ordem que escolheu serão substituídos pelos do tema. Os apps abertos continuam abertos.",+ "dock.resetDone": "Os padrões foram restaurados.",+ "dock.resetHint": "Volta a colocar os apps do tema na ordem original. Arquivos fica em primeiro e o Lixo por último; Arquivos, Ajustes e Apps não podem ser removidos.",+ "dock.resetHintTaskbar": "Volta a colocar os apps do tema na barra de tarefas, na ordem original. Arquivos fica em primeiro e o Lixo por último; Arquivos e Ajustes não podem ser desafixados.",+ "dock.resetTaskbar": "Redefinir a barra de tarefas",+ "dock.right": "Direita",+ "dock.sidesHint": "Esquerda e direita são lados da tela: não mudam com um idioma da direita para a esquerda.",+ "dock.size": "Tamanho",+ "dock.small": "Pequeno",+ "dock.taskbar": "Posição da barra de tarefas",+ "dock.taskbarAlign": "Alinhamento da barra de tarefas",+ "dock.taskbarHint": "Tema Lord Classic. As janelas maximizadas não ficam embaixo da barra.",+ "dock.top": "Em cima","effects": "Efeitos de transparência","effectsHint": "Desativar o desfoque acelera a área de trabalho em computadores lentos.",+ "firmware.bootloader": "Carregador de inicialização",+ "firmware.check": "Verificar de novo",+ "firmware.checking": "Verificando…",+ "firmware.current": "Instalado",+ "firmware.hint": "O carregador de inicialização fica num chip da placa e a liga antes do sistema. As versões novas chegam com as atualizações do sistema (o pacote rpi-eeprom); instalar uma tem efeito na próxima reinicialização. Não desconecte a alimentação enquanto a placa reinicia.",+ "firmware.install": "Instalar",+ "firmware.installing": "Instalando…",+ "firmware.latest": "Mais recente disponível",+ "firmware.missing": "As ferramentas do carregador de inicialização não estão instaladas",+ "firmware.missingHint": "O LordOS atualiza o carregador de inicialização com o pacote rpi-eeprom, do repositório do LordOS.",+ "firmware.needAdmin": "Só um administrador pode atualizar o carregador de inicialização.",+ "firmware.pendingHint": "O novo carregador de inicialização é instalado quando a placa reinicia. Mantenha a alimentação conectada até a área de trabalho voltar.",+ "firmware.pendingHow": "O novo carregador de inicialização é instalado quando a placa reinicia: encerre a sessão e escolha Reiniciar na tela de login. Mantenha a alimentação conectada até ela voltar.",+ "firmware.release.default": "Padrão (recomendada)",+ "firmware.release.latest": "Mais recente (recursos novos)",+ "firmware.releaseLabel": "Versão",+ "firmware.restart": "Reiniciar…",+ "firmware.state.available": "Atualização disponível",+ "firmware.state.pending": "Atualização pronta: reinicie para concluir",+ "firmware.state.uptodate": "Atualizado",+ "firmware.unknown": "Desconhecida",+ "firmware.update": "Atualizar",+ "firmware.updating": "Atualizando…",+ "firmware.updatingHint": "Preparando o novo carregador de inicialização. Pode levar até um minuto.","general.machine": "Sobre este computador","general.name": "Nome","general.software": "Software",@@ -74,16 +129,27 @@"kb.testHint": "Digite aqui: ñ, acentos (´ + vogal), ç, AltGr…","kb.use": "Usar","keywords.appearance": "modo escuro claro destaque transparência navegador abas barra de título moldura",+ "keywords.bluetooth": "bluetooth parear fones alto-falante teclado mouse sem fio","keywords.clipboard": "copiar colar histórico copiado",+ "keywords.cooling": "ventoinha ventoinhas temperatura resfriamento calor ruído curva gabinete máxima fan cooling",+ "keywords.datetime": "data hora relógio ntp fuso horário 24 horas 12 horas barra de menus segundos",+ "keywords.defaultapps": "apps padrão navegador e-mail música vídeo imagens pdf editor de texto terminal abrir com",+ "keywords.displays": "tela monitor resolução taxa hz rotação brilho night shift noite temperatura cor edid vídeo navegador codec h264 vp9 av1 travando",+ "keywords.dock": "dock barra de tarefas posição esquerda direita embaixo em cima tamanho lupa ampliação ocultar recentes",+ "keywords.firmware": "firmware bootloader carregador de inicialização eeprom raspberry pi atualizar inicialização","keywords.general": "sobre computador sistema versão processador memória disco","keywords.keyboard": "layout método de entrada japonês chinês coreano","keywords.language": "idioma região data hora fuso","keywords.network": "wifi ethernet vpn wireguard openvpn ip dns internet",+ "keywords.notifications": "notificações avisos alertas faixas não perturbe foco som",+ "keywords.power": "bateria energia perfil economia desempenho repouso suspender tampa botão liga desliga tela",+ "keywords.printers": "impressora imprimir scanner digitalizar cups fila airprint",+ "keywords.privacy": "privacidade permissões câmera microfone segurança","keywords.session": "sair encerrar sessão","keywords.sharing": "área de trabalho remota acesso remoto rede lan navegador compartilhar tela ssh login remoto terminal","keywords.sound": "volume alto-falantes microfone áudio",- "keywords.printers": "impressora imprimir scanner digitalizar cups fila airprint","keywords.themes": "tema área de trabalho clássico lord classic flow",+ "keywords.trackpad": "touchpad gestos pinçar tocar clique rolagem natural velocidade ponteiro","keywords.updates": "pacotes debian loja software","keywords.users": "usuários contas senha avatar administrador login automático","keywords.wallpaper": "fundo imagem área de trabalho",@@ -101,48 +167,162 @@"pack.invalid": "pacote inválido","pack.lordos": "Pacotes de idioma do LordOS","pack.title": "Pacotes Debian do idioma",+ "reduceMotion": "Reduzir movimento",+ "reduceMotionHint": "Para as animações decorativas, como a ventoinha girando em Resfriamento.","region.generated": "Região {name} gerada","region.hint": "Datas, horas e números, e o idioma dos programas Linux (LANG) em terminais novos.","region.preview": "Pré-visualização","region.search": "Pesquisar região (es_AR, pt_BR, en_US…)","region.title": "Região (formatos e programas)",+ "scrollBars": "Mostrar barras de rolagem",+ "scrollBarsAlways": "Sempre",+ "scrollBarsAuto": "Automaticamente",+ "scrollBarsHint": "Automaticamente: uma barra fina aparece na borda enquanto você rola ou aproxima o ponteiro. Ao rolar: só enquanto você rola. Sempre: fica visível.",+ "scrollBarsScrolling": "Ao rolar","search": "Buscar","section.appearance": "Aparência",+ "section.bluetooth": "Bluetooth","section.clipboard": "Área de transferência",+ "section.cooling": "Resfriamento",+ "section.datetime": "Data e hora",+ "section.defaultapps": "Apps padrão",+ "section.displays": "Telas",+ "section.dock": "Mesa e Dock",+ "section.firmware": "Firmware da placa","section.general": "Geral","section.keyboard": "Teclado","section.language": "Idioma e região","section.network": "Rede",+ "section.notifications": "Notificações",+ "section.power": "Energia",+ "section.printers": "Impressoras e scanners",+ "section.privacy": "Privacidade","section.session": "Sessão","section.sharing": "Compartilhar","section.sound": "Som",- "section.printers": "Impressoras e scanners","section.themes": "Temas",+ "section.trackpad": "Trackpad","section.updates": "Atualizações","section.users": "Usuários","section.wallpaper": "Papel de parede","session.hint": "Sai do LordOS e volta ao console.","session.hintManaged": "Encerra a sua sessão e volta à tela de login. Os apps abertos são fechados.",+ "sharing.access": "Quem pode se conectar","sharing.allUsers": "Todos os usuários",+ "sharing.allowAdd": "Adicionar",+ "sharing.allowEmpty": "A lista está vazia: ninguém pode se conectar.",+ "sharing.allowPlaceholder": "Endereço ou rede, ex.: 192.168.1.0/24",+ "sharing.allowlist": "Lista de permitidos",+ "sharing.allowlistFooter": "Endereços e redes que podem se conectar quando \"Só estes endereços\" está escolhido. Ainda são bloqueados após 3 entradas com erro.",+ "sharing.badAddress": "Digite um endereço IPv4 ou IPv6, ou uma rede como 192.168.1.0/24 (pelo menos /8; IPv6 pelo menos /16).",+ "sharing.block": "Bloquear",+ "sharing.blockForever": "Bloquear sempre",+ "sharing.blockPlaceholder": "Endereço ou rede para bloquear",+ "sharing.blocked": "Bloqueados temporariamente",+ "sharing.blockedAuto": "Entradas com erro · faltam {minutes} min",+ "sharing.blockedFooter": "Um endereço é bloqueado após 3 entradas com erro: 15 minutos, depois 1 hora e depois 24 horas se acontecer de novo no mesmo dia. Você recebe uma notificação quando isso acontece.",+ "sharing.blockedManual": "Bloqueado por um administrador",+ "sharing.blockedNone": "Nenhum endereço está bloqueado.",+ "sharing.blocklist": "Lista de bloqueados",+ "sharing.blocklistFooter": "Sempre recusados, antes de qualquer outra regra, até você removê-los.","sharing.connected": "Conectados agora","sharing.disconnect": "Desconectar","sharing.fingerprint": "Impressão digital do certificado (compare com a que o navegador mostra):","sharing.justNow": "agora mesmo",+ "sharing.listEmpty": "A lista está vazia.","sharing.minutes": {"one": "há {count} minuto","other": "há {count} minutos"},+ "sharing.netAny": "Qualquer endereço",+ "sharing.netAnyHint": "Qualquer endereço que alcance este computador, inclusive a internet se uma porta for redirecionada para ele.",+ "sharing.netAnyWarn": "Conexões de qualquer endereço são aceitas. Entradas com erro continuam bloqueando o endereço, mas uma VPN é o jeito mais seguro de chegar a este computador pela internet.",+ "sharing.netFrom": "Permitir conexões de",+ "sharing.netLan": "Rede local",+ "sharing.netLanHint": "Endereços privados e de link local da sua rede, e conexões que chegam por uma VPN deste computador. Endereços públicos da internet são recusados.",+ "sharing.netList": "Só estes endereços",+ "sharing.netListHint": "Só os endereços e redes desta lista podem abrir a página de entrada.","sharing.noLan": "Este computador não tem um endereço IPv4 na rede local.","sharing.nobody": "Ninguém está conectado.",+ "sharing.noneSet": "Nenhum","sharing.notInstalled": "As sessões do LordOS não são gerenciadas pelo lord-sessiond (veja docs/SESSIONS.md): a área de trabalho remota não está disponível.",+ "sharing.onlyAdmins": "Somente administradores","sharing.onlyGroup": "Só o grupo","sharing.openFrom": "De outro computador da rede, abra no navegador:","sharing.ownSession": "na sua própria área de trabalho","sharing.remote": "Área de trabalho remota","sharing.remoteHint": "Outros computadores da sua rede local entram por um navegador, com usuário e senha deste computador. Com o seu mesmo usuário veem e usam esta mesma tela; com outro usuário, uma área de trabalho própria.","sharing.remoteToggle": "Permitir o acesso pela rede",+ "sharing.remove": "Remover",+ "sharing.root.activeWarning": "O root pode entrar por SSH neste computador. Desligue quando não precisar mais.",+ "sharing.root.addKey": "Adicionar",+ "sharing.root.adminPassword": "Sua senha",+ "sharing.root.authorize": "Autorizar",+ "sharing.root.cancel": "Cancelar",+ "sharing.root.confirm.addKey": "Permitir que esta chave entre como root? Digite sua senha para confirmar.",+ "sharing.root.confirm.key": "Permitir que o root entre por SSH com uma chave pública? Quem tiver a chave privada correspondente tem o controle total deste computador. Digite sua senha para confirmar.",+ "sharing.root.confirm.off": "Desligar o acesso de root por SSH? Digite sua senha para confirmar.",+ "sharing.root.confirm.password": "Permitir que o root entre por SSH também com senha? Qualquer pessoa na rede que saiba ou adivinhe a senha tem o controle total deste computador. Digite sua senha para confirmar.",+ "sharing.root.confirm.removeKey": "Remover esta chave das permitidas para o root? Digite sua senha para confirmar.",+ "sharing.root.createHint": "Para criar um par de chaves, execute ssh-keygen -t ed25519 no computador de onde vai se conectar e cole ou importe aqui o arquivo .pub. A chave privada nunca sai desse computador.",+ "sharing.root.footer": "Desligado por padrão. O acesso de root por SSH dá a quem tiver a chave ou a senha o controle total deste computador: use para testes e administração numa rede confiável e desligue depois. Cada mudança pede sua senha de novo.",+ "sharing.root.importFile": "Importar…",+ "sharing.root.keyPlaceholder": "Cole uma chave pública (ssh-ed25519 AAAA… nome@computador)",+ "sharing.root.keys": "Só com chave",+ "sharing.root.keysAndPassword": "Chave ou senha",+ "sharing.root.keysTitle": "Chaves públicas permitidas para o root",+ "sharing.root.mismatch": "As duas senhas são diferentes",+ "sharing.root.mode": "Root pode entrar",+ "sharing.root.modeHint.key": "Só com uma das chaves públicas abaixo.",+ "sharing.root.modeHint.off": "O root nunca entra pela rede (o padrão).",+ "sharing.root.modeHint.password": "Com uma chave abaixo ou com a senha do root: a opção mais arriscada.",+ "sharing.root.newPassword": "Nova senha do root",+ "sharing.root.noKeys": "Ainda não há nenhuma chave.",+ "sharing.root.off": "Desligado",+ "sharing.root.passwordSet": "O root tem senha",+ "sharing.root.passwordUnset": "O root ainda não tem senha: defina uma para entrar com ela",+ "sharing.root.remove": "Remover",+ "sharing.root.repeatPassword": "Repita",+ "sharing.root.setPassword": "Definir",+ "sharing.root.title": "Avançado: acesso de root por SSH",+ "sharing.save": "Salvar","sharing.security": "A conexão é criptografada (TLS) com um certificado deste computador. 3 entradas com erro bloqueiam o endereço; a conta root nunca pode entrar. Para usar pela internet, use uma VPN.",+ "sharing.ssh": "Login remoto (SSH)",+ "sharing.sshFingerprint": "Impressão digital da chave do computador (compare com a que o ssh mostra na primeira conexão):",+ "sharing.sshFrom": "De outro computador, execute em um terminal:",+ "sharing.sshHint": "Outros computadores abrem um terminal neste com um cliente SSH, usando um usuário e senha deste computador. Depois de ativado, continua ativo após reiniciar.",+ "sharing.sshHintInstall": "Outros computadores abrem um terminal neste com um cliente SSH, usando um usuário e senha deste computador. O servidor SSH é instalado na primeira vez que você o ativa (precisa de internet).",+ "sharing.sshInstalling": "Instalando o servidor SSH…",+ "sharing.sshNotRunning": "O login remoto está ativado, mas o servidor SSH não está em execução. Desative e ative de novo, ou veja Registros.",+ "sharing.sshSecurity": "Porta 22. As senhas viajam criptografadas. Entrar com uma chave é mais seguro: copie a sua com ssh-copy-id. Para usar pela internet, use uma VPN.",+ "sharing.sshToggle": "Permitir login pela rede",+ "sharing.sshUserPlaceholder": "usuário",+ "sharing.sshWhoAdminsHint": "Somente administradores (o grupo sudo). O root nunca pode entrar.",+ "sharing.sshWhoAllHint": "Qualquer usuário deste computador com senha. O root nunca pode entrar.",+ "sharing.stun": "Servidores STUN",+ "sharing.stunHint": "Este computador responde STUN sozinho, o que basta na rede local. Adicione um servidor público só para conectar entre redes (até 4, separados por vírgulas).",+ "sharing.stunPlaceholder": "stun.exemplo.org:3478","sharing.thisSession": "vendo esta tela",+ "sharing.turn": "Retransmissor (TURN)",+ "sharing.turnFooter": "Só quando nenhum dos lados consegue chegar ao outro diretamente. O retransmissor só vê vídeo e entrada criptografados; a senha fica neste computador e só o sistema pode lê-la.",+ "sharing.turnFp": "Impressão digital do certificado (opcional)",+ "sharing.turnFpHint": "Vazio: o certificado do retransmissor precisa ser válido para o nome dele. Para um retransmissor com certificado próprio, cole aqui a impressão digital SHA-256.",+ "sharing.turnFpPlaceholder": "SHA-256, como 3A:7F:…",+ "sharing.turnPass": "Senha",+ "sharing.turnPassSaved": "Salva (nunca é exibida)",+ "sharing.turnRemove": "Remover retransmissor",+ "sharing.turnServer": "Servidor",+ "sharing.turnServerPlaceholder": "turn.exemplo.org:3478",+ "sharing.turnTcp": "TCP",+ "sharing.turnTls": "TLS",+ "sharing.turnTransport": "Chegar ao retransmissor por",+ "sharing.turnUdp": "UDP",+ "sharing.turnUser": "Usuário",+ "sharing.unblock": "Desbloquear",+ "sharing.video": "Conexão",+ "sharing.videoFooter": "Funciona na rede local e por VPN com UDP, ou pela porta TCP {port} onde o UDP está bloqueado. Para conectar entre redes diferentes, adicione um servidor STUN ou um retransmissor abaixo.",+ "sharing.videoHint": "A tela, o som e o que você digita viajam criptografados por WebRTC: é a única forma de funcionamento da área de trabalho remota.",+ "sharing.videoRow": "Vídeo por WebRTC","sharing.who": "Quem pode entrar","sharing.whoAllHint": "Qualquer usuário deste computador com senha.","sharing.whoGroupHint": "Só os usuários do grupo lordos-remote.",@@ -159,6 +339,8 @@"sound.test": "Testar o som","sound.unavailable": "Sem conexão com o servidor de som (PipeWire). Veja docs/SOUND.md.","sound.volume": "Volume",+ "style.hint": "Os dois estilos têm os mesmos apps. A mudança é aplicada na hora, sem sair da sessão; as janelas abertas voltam.",+ "style.title": "Estilo da área de trabalho","system.apply": "Usar {name}","system.hint": "Para todos os usuários e serviços (/etc/default/locale). Atual: {name}","system.title": "Região padrão do sistema",@@ -220,160 +402,9 @@"users.userName": "Nome de usuário","users.working": "Aplicando…","users.you": "você",- "section.privacy": "Privacidade",- "keywords.privacy": "privacidade permissões câmera microfone segurança",- "section.trackpad": "Trackpad",- "keywords.trackpad": "touchpad gestos pinçar tocar clique rolagem natural velocidade ponteiro",- "section.dock": "Mesa e Dock",- "keywords.dock": "dock barra de tarefas posição esquerda direita embaixo em cima tamanho lupa ampliação ocultar recentes",- "dock.position": "Posição na tela",- "dock.bottom": "Embaixo",- "dock.left": "Esquerda",- "dock.right": "Direita",- "dock.top": "Em cima",- "dock.size": "Tamanho",- "dock.small": "Pequeno",- "dock.large": "Grande",- "dock.magnify": "Ampliação",- "dock.magnifyHint": "Os ícones crescem quando o ponteiro passa por cima.",- "dock.magnifySize": "Quanto ampliam",- "dock.autohide": "Ocultar e mostrar o Dock automaticamente",- "dock.autohideHint": "Aparece ao levar o ponteiro até a borda da tela; as janelas usam todo o espaço.",- "dock.recents": "Mostrar apps recentes no Dock",- "dock.recentsHint": "Os três últimos apps usados que não estão fixados, depois de uma linha.",- "dock.taskbar": "Posição da barra de tarefas",- "dock.taskbarHint": "Tema Lord Classic. As janelas maximizadas não ficam embaixo da barra.",- "dock.sidesHint": "Esquerda e direita são lados da tela: não mudam com um idioma da direita para a esquerda.",- "dock.reset": "Redefinir o Dock",- "dock.resetTaskbar": "Redefinir a barra de tarefas",- "dock.resetButton": "Redefinir…",- "dock.resetHint": "Volta a colocar os apps do tema na ordem original. Arquivos fica em primeiro e o Lixo por último; Arquivos, Ajustes e Apps não podem ser removidos.",- "dock.resetHintTaskbar": "Volta a colocar os apps do tema na barra de tarefas, na ordem original. Arquivos fica em primeiro e o Lixo por último; Arquivos e Ajustes não podem ser desafixados.",- "dock.resetAsk": "Redefinir o Dock?",- "dock.resetDetail": "Os apps que você adicionou e a ordem que escolheu serão substituídos pelos do tema. Os apps abertos continuam abertos.",- "dock.resetCancel": "Cancelar",- "dock.resetConfirm": "Redefinir",- "dock.resetDone": "Os padrões foram restaurados.",- "section.displays": "Telas",- "section.bluetooth": "Bluetooth",- "section.power": "Energia",- "section.notifications": "Notificações",- "section.datetime": "Data e hora",- "section.defaultapps": "Apps padrão",- "keywords.displays": "tela monitor resolução taxa hz rotação brilho night shift noite temperatura cor edid vídeo navegador codec h264 vp9 av1 travando",- "keywords.bluetooth": "bluetooth parear fones alto-falante teclado mouse sem fio",- "keywords.power": "bateria energia perfil economia desempenho repouso suspender tampa botão liga desliga tela",- "keywords.notifications": "notificações avisos alertas faixas não perturbe foco som",- "keywords.datetime": "data hora relógio ntp fuso horário 24 horas 12 horas barra de menus segundos",- "keywords.defaultapps": "apps padrão navegador e-mail música vídeo imagens pdf editor de texto terminal abrir com",- "section.cooling": "Resfriamento",- "keywords.cooling": "ventoinha ventoinhas temperatura resfriamento calor ruído curva gabinete máxima fan cooling",- "section.firmware": "Firmware da placa",- "keywords.firmware": "firmware bootloader carregador de inicialização eeprom raspberry pi atualizar inicialização",- "firmware.bootloader": "Carregador de inicialização",- "firmware.hint": "O carregador de inicialização fica num chip da placa e a liga antes do sistema. As versões novas chegam com as atualizações do sistema (o pacote rpi-eeprom); instalar uma tem efeito na próxima reinicialização. Não desconecte a alimentação enquanto a placa reinicia.",- "firmware.state.uptodate": "Atualizado",- "firmware.state.available": "Atualização disponível",- "firmware.state.pending": "Atualização pronta: reinicie para concluir",- "firmware.checking": "Verificando…",- "firmware.unknown": "Desconhecida",- "firmware.current": "Instalado",- "firmware.latest": "Mais recente disponível",- "firmware.releaseLabel": "Versão",- "firmware.release.default": "Padrão (recomendada)",- "firmware.release.latest": "Mais recente (recursos novos)",- "firmware.check": "Verificar de novo",- "firmware.update": "Atualizar",- "firmware.updating": "Atualizando…",- "firmware.updatingHint": "Preparando o novo carregador de inicialização. Pode levar até um minuto.",- "firmware.restart": "Reiniciar…",- "firmware.pendingHint": "O novo carregador de inicialização é instalado quando a placa reinicia. Mantenha a alimentação conectada até a área de trabalho voltar.",- "firmware.pendingHow": "O novo carregador de inicialização é instalado quando a placa reinicia: encerre a sessão e escolha Reiniciar na tela de login. Mantenha a alimentação conectada até ela voltar.",- "firmware.needAdmin": "Só um administrador pode atualizar o carregador de inicialização.",- "firmware.missing": "As ferramentas do carregador de inicialização não estão instaladas",- "firmware.missingHint": "O LordOS atualiza o carregador de inicialização com o pacote rpi-eeprom, do repositório do LordOS.",- "firmware.install": "Instalar",- "firmware.installing": "Instalando…",- "reduceMotion": "Reduzir movimento",- "reduceMotionHint": "Para as animações decorativas, como a ventoinha girando em Resfriamento.",- "scrollBars": "Mostrar barras de rolagem",- "scrollBarsAuto": "Automaticamente",- "scrollBarsScrolling": "Ao rolar",- "scrollBarsAlways": "Sempre",- "scrollBarsHint": "Automaticamente: uma barra fina aparece na borda enquanto você rola ou aproxima o ponteiro. Ao rolar: só enquanto você rola. Sempre: fica visível.",- "sharing.onlyAdmins": "Somente administradores",- "sharing.ssh": "Login remoto (SSH)",- "sharing.sshFingerprint": "Impressão digital da chave do computador (compare com a que o ssh mostra na primeira conexão):",- "sharing.sshFrom": "De outro computador, execute em um terminal:",- "sharing.sshHint": "Outros computadores abrem um terminal neste com um cliente SSH, usando um usuário e senha deste computador. Depois de ativado, continua ativo após reiniciar.",- "sharing.sshHintInstall": "Outros computadores abrem um terminal neste com um cliente SSH, usando um usuário e senha deste computador. O servidor SSH é instalado na primeira vez que você o ativa (precisa de internet).",- "sharing.sshInstalling": "Instalando o servidor SSH…",- "sharing.sshNotRunning": "O login remoto está ativado, mas o servidor SSH não está em execução. Desative e ative de novo, ou veja Registros.",- "sharing.sshSecurity": "Porta 22. As senhas viajam criptografadas. Entrar com uma chave é mais seguro: copie a sua com ssh-copy-id. Para usar pela internet, use uma VPN.",- "sharing.sshToggle": "Permitir login pela rede",- "sharing.sshUserPlaceholder": "usuário",- "sharing.sshWhoAdminsHint": "Somente administradores (o grupo sudo). O root nunca pode entrar.",- "sharing.sshWhoAllHint": "Qualquer usuário deste computador com senha. O root nunca pode entrar.",- "wallpaperCategory.signature": "Signature",- "wallpaperCategory.lumo": "Lumo","wallpaperCategory.cosmos": "Cosmos","wallpaperCategory.gradients": "Degradês",+ "wallpaperCategory.lumo": "Lumo","wallpaperCategory.other": "Outros",- "style.title": "Estilo da área de trabalho",- "style.hint": "Os dois estilos têm os mesmos apps. A mudança é aplicada na hora, sem sair da sessão; as janelas abertas voltam.",- "dock.taskbarAlign": "Alinhamento da barra de tarefas",- "dock.alignCenter": "Centro",- "dock.alignStart": "Início",- "sharing.access": "Quem pode se conectar",- "sharing.netFrom": "Permitir conexões de",- "sharing.netLan": "Rede local",- "sharing.netList": "Só estes endereços",- "sharing.netAny": "Qualquer endereço",- "sharing.netLanHint": "Endereços privados e de link local da sua rede, e conexões que chegam por uma VPN deste computador. Endereços públicos da internet são recusados.",- "sharing.netListHint": "Só os endereços e redes desta lista podem abrir a página de entrada.",- "sharing.netAnyHint": "Qualquer endereço que alcance este computador, inclusive a internet se uma porta for redirecionada para ele.",- "sharing.netAnyWarn": "Conexões de qualquer endereço são aceitas. Entradas com erro continuam bloqueando o endereço, mas uma VPN é o jeito mais seguro de chegar a este computador pela internet.",- "sharing.allowEmpty": "A lista está vazia: ninguém pode se conectar.",- "sharing.allowPlaceholder": "Endereço ou rede, ex.: 192.168.1.0/24",- "sharing.allowAdd": "Adicionar",- "sharing.remove": "Remover",- "sharing.blocked": "Bloqueados temporariamente",- "sharing.blockedFooter": "Um endereço é bloqueado após 3 entradas com erro: 15 minutos, depois 1 hora e depois 24 horas se acontecer de novo no mesmo dia. Você recebe uma notificação quando isso acontece.",- "sharing.blockedNone": "Nenhum endereço está bloqueado.",- "sharing.blockedManual": "Bloqueado por um administrador",- "sharing.blockedAuto": "Entradas com erro · faltam {minutes} min",- "sharing.unblock": "Desbloquear",- "sharing.block": "Bloquear",- "sharing.blockPlaceholder": "Endereço ou rede para bloquear",- "sharing.badAddress": "Digite um endereço IPv4 ou IPv6, ou uma rede como 192.168.1.0/24 (pelo menos /8; IPv6 pelo menos /16).",- "sharing.allowlist": "Lista de permitidos",- "sharing.allowlistFooter": "Endereços e redes que podem se conectar quando \"Só estes endereços\" está escolhido. Ainda são bloqueados após 3 entradas com erro.",- "sharing.blocklist": "Lista de bloqueados",- "sharing.blocklistFooter": "Sempre recusados, antes de qualquer outra regra, até você removê-los.",- "sharing.listEmpty": "A lista está vazia.",- "sharing.blockForever": "Bloquear sempre",- "sharing.video": "Conexão",- "sharing.videoHint": "A tela, o som e o que você digita viajam criptografados por WebRTC: é a única forma de funcionamento da área de trabalho remota.",- "sharing.stun": "Servidores STUN",- "sharing.stunPlaceholder": "stun.exemplo.org:3478",- "sharing.stunHint": "Este computador responde STUN sozinho, o que basta na rede local. Adicione um servidor público só para conectar entre redes (até 4, separados por vírgulas).",- "sharing.turn": "Retransmissor (TURN)",- "sharing.turnServer": "Servidor",- "sharing.turnServerPlaceholder": "turn.exemplo.org:3478",- "sharing.turnUser": "Usuário",- "sharing.turnPass": "Senha",- "sharing.turnPassSaved": "Salva (nunca é exibida)",- "sharing.turnRemove": "Remover retransmissor",- "sharing.turnFooter": "Só quando nenhum dos lados consegue chegar ao outro diretamente. O retransmissor só vê vídeo e entrada criptografados; a senha fica neste computador e só o sistema pode lê-la.",- "sharing.save": "Salvar",- "sharing.noneSet": "Nenhum",- "sharing.videoRow": "Vídeo por WebRTC",- "sharing.videoFooter": "Funciona na rede local e por VPN com UDP, ou pela porta TCP {port} onde o UDP está bloqueado. Para conectar entre redes diferentes, adicione um servidor STUN ou um retransmissor abaixo.",- "sharing.turnTransport": "Chegar ao retransmissor por",- "sharing.turnUdp": "UDP",- "sharing.turnTcp": "TCP",- "sharing.turnTls": "TLS",- "sharing.turnFp": "Impressão digital do certificado (opcional)",- "sharing.turnFpPlaceholder": "SHA-256, como 3A:7F:…",- "sharing.turnFpHint": "Vazio: o certificado do retransmissor precisa ser válido para o nome dele. Para um retransmissor com certificado próprio, cole aqui a impressão digital SHA-256."+ "wallpaperCategory.signature": "Signature"}diff --git a/assets/locales/pt/status.json b/assets/locales/pt/status.jsonindex 2bd6977..aff4ba1 100644--- a/assets/locales/pt/status.json+++ b/assets/locales/pt/status.json@@ -6,9 +6,19 @@"disk.unmounted": "Desmontado","disk.unmountedPath": "Desmontado {path}","disk.verified": "Verificado (SHA-256 {sha256})",+ "hw.caseSet": "Gabinete: {case}",+ "hw.firmwareChecked": "Firmware verificado",+ "hw.memoryNoTables": "O firmware não informa módulos de memória",+ "hw.memoryRead": "Módulos de memória lidos","hw.profileSet": "Modo de energia: {profile}","hw.suspended": "Suspendendo","hw.unblocked": "Desbloqueado",+ "imager.cacheCleared": "Downloads apagados",+ "imager.cached": "Já estava baixado",+ "imager.cancelling": "Cancelando…",+ "imager.fetched": "Baixado",+ "imager.verifiedImage": "A imagem confere com o seu SHA-256 assinado",+ "imager.written": "Gravada e verificada","install.chownWarning": "Aviso: não foi possível alterar o dono de um arquivo","install.done": "O LordOS foi instalado em {dev}","install.homedirsWarning": "Aviso: não foi possível criar as pastas do usuário",@@ -59,8 +69,10 @@"pkg.nothingToDo": "Nada a fazer: já está tudo instalado","pkg.nothingToRemove": "Não há nada para remover","pkg.source": "Fonte: {uri} {suite} {component}",+ "pkg.sourceAdded": "O repositório do fabricante de {id} foi adicionado","pkg.sourceFailed": "{uri} {suite}: {reason}","pkg.sourceMissingFile": "{uri} {suite}: não há {file}",+ "pkg.sourceRemoved": "O repositório do fabricante de {id} foi removido","pkg.sourceSkipped": "Fonte ignorada (só http/https): {uri}","pkg.sourceVerified": "{uri} {suite}: assinatura verificada ({label})","pkg.unresolvedDep": "Dependência não resolvida: {name}",@@ -83,12 +95,20 @@"pkg.why.requested": "Pedido","pkg.why.upgrade": "Atualização","pkg.why.upgradedFor": "Atualizado para {name}",+ "remote.blocked": "{address} bloqueado","remote.disconnected": "Conexão encerrada",+ "remote.failure": "Entrada com erro de {user} de {key} ({count})",+ "remote.failures": "{count} entradas com erro","remote.off": "Área de trabalho remota desativada","remote.on": "Área de trabalho remota ativada","remote.saved": "Configuração salva",+ "remote.unblocked": "{address} desbloqueado","remote.userAdded": "{name} pode se conectar remotamente","remote.userRemoved": "{name} não pode mais se conectar remotamente",+ "ssh.off": "Login remoto desativado",+ "ssh.on": "Login remoto ativado",+ "ssh.saved": "Configurações salvas",+ "ssh.status": "Acesso de root por SSH: estado lido","tz.set": "Fuso horário: {zone}","users.autologinOff": "Login automático desativado","users.autologinOn": "Login automático ativado",@@ -115,22 +135,5 @@},"wifi.connecting": "Conectando a {ssid}…","wifi.disconnected": "Desconectado",- "wifi.forgotten": "Rede esquecida",- "hw.caseSet": "Gabinete: {case}",- "ssh.off": "Login remoto desativado",- "ssh.on": "Login remoto ativado",- "ssh.saved": "Configurações salvas",- "hw.firmwareChecked": "Firmware verificado",- "remote.blocked": "{address} bloqueado",- "remote.unblocked": "{address} desbloqueado",- "remote.failures": "{count} entradas com erro",- "remote.failure": "Entrada com erro de {user} de {key} ({count})",- "imager.cached": "Já estava baixado",- "imager.fetched": "Baixado",- "imager.cancelling": "Cancelando…",- "imager.cacheCleared": "Downloads apagados",- "imager.verifiedImage": "A imagem confere com o seu SHA-256 assinado",- "imager.written": "Gravada e verificada",- "hw.memoryRead": "Módulos de memória lidos",- "hw.memoryNoTables": "O firmware não informa módulos de memória"+ "wifi.forgotten": "Rede esquecida"}diff --git a/docs/REMOTE.md b/docs/REMOTE.mdindex fde9c8c..55cfdea 100644--- a/docs/REMOTE.md+++ b/docs/REMOTE.md@@ -753,3 +753,23 @@ the internet, use a VPN instead of opening the port.- - - ++## Root over SSH (advanced, 0.8.5)++Off by default. Settings → Sharing → **Advanced: root over SSH** offers three modes: **Off** (the shipped+`10-lordos.conf` keeps `PermitRootLogin no`), **Keys only** (`PermitRootLogin prohibit-password`) and+**Key or password** (`PermitRootLogin yes`), written as `/etc/ssh/sshd_config.d/05-lordos-root.conf`+(sshd keeps the first value it reads, and 05 comes first), checked with `sshd -t` and reloaded. Root's+allowed public keys are listed with their SHA-256 fingerprints; a key is pasted or imported from a `.pub`+file and validated in C before it reaches `/root/.ssh/authorized_keys` (no options, a known key type, a+blob that matches it); key pairs are made with `ssh-keygen -t ed25519` on the computer that connects, so+the private key never leaves it. In the password mode root's password can be set (chpasswd, standard+input). Every change asks for the administrator's own password again, checked as root. "Only+administrators" (AllowGroups) includes root, which only matters with this on. A warning stays on the page+while it is on. Actions: `ssh-root`, `ssh-root-key`, `ssh-root-password`, `ssh-root-status`+(`server/src/remote/ssh_root.c`); tests: `build/ssh-root-test` (key lines and fingerprints, 17 checks,+the same fingerprints as `ssh-keygen -l` for Ed25519 and RSA keys) and `tests/ssh_root_e2e.c` (run as+root on a test machine: a wrong password refused, keys-only mode, a key added and a duplicate refused,+`ssh root@` from another computer accepted with it, the key removed and the mode off, `ssh root@`+refused; done on VM 116 on 2026-10-26).+diff --git a/server/Makefile b/server/Makefileindex 28b9215..fce3a99 100644--- a/server/Makefile+++ b/server/Makefile@@ -55,13 +55,13 @@ MEDIA_SRC := src/media/media.c src/media/hwdec.c src/media/mview.c src/media/capSEC_SRC := src/sec/json.c src/sec/sign.c src/sec/pkgstate.c src/sec/perms.c src/sec/cgroup.c src/sec/sandbox.c src/sec/brokersrv.c src/sec/brokercam.c src/sec/brokerkr.c src/sec/brokermail.c src/sec/restrict.c src/sec/appid.c src/sec/pwguard.c src/sec/codesig.c# App mode: lord-server --app <id> runs an .lpk app as an isolated Wayland client (src/app)APP_SRC := src/app/appclient.c src/app/appspawn.c src/app/probe.c src/ui/js_broker.c src/ui/js_brokercam.c src/ui/js_brokermail.c src/app/apphost_bc.c-SRC := src/main.c src/kms.c src/gpu/gpu.c src/input.c src/canvas.c src/par.c src/admin.c src/install/install.c src/apps.c src/lpk.c src/fsops.c src/remote/mirror.c src/remote/remote_admin.c src/remote/ipnet.c src/remote/rtcwire.c src/remote/ssh_admin.c src/users/users_admin.c src/users/homedirs.c src/keyboard.c src/keylag.c src/ime.c src/wl/wl.c src/wl/x11wire.c src/wl/xwm.c src/wl/xwayland.c \+SRC := src/main.c src/kms.c src/gpu/gpu.c src/input.c src/canvas.c src/par.c src/admin.c src/install/install.c src/apps.c src/lpk.c src/fsops.c src/remote/mirror.c src/remote/remote_admin.c src/remote/ipnet.c src/remote/rtcwire.c src/remote/ssh_admin.c src/remote/ssh_root.c src/users/users_admin.c src/users/homedirs.c src/keyboard.c src/keylag.c src/ime.c src/wl/wl.c src/wl/x11wire.c src/wl/xwm.c src/wl/xwayland.c \src/ui/node.c src/ui/style.c src/ui/layout.c src/ui/transform.c src/ui/text.c src/ui/image.c \src/ui/paint.c src/ui/js.c src/ui/js_sys.c src/ui/js_term.c src/ui/js_wasm.c src/wasm/wasm.c src/wasm/wasm_run.c src/ui/js_sound.c src/ui/js_net.c src/sound/snd.c src/sound/pulse.c src/ui/otf.c src/ui/fonts.c \src/ui/unicode.c src/ui/bidi.c src/ui/shape.c src/ui/shape_indic.c src/ui/shape_syl.c src/ui/shape_khmer.c src/ui/shape_myanmar.c src/ui/shape_use.c src/ui/thbrk.c src/ui/textlayout.c \src/term/vt.c src/term/pty.c src/term/term.c src/term/term_paint.c src/term/hold.c \src/net/nl.c src/net/crypto.c src/net/state.c src/net/sys.c src/net/dhcp.c src/net/wifi.c src/net/wg.c src/net/ovpn.c src/net/vpn.c src/net/vici.c src/net/ipsec.c src/net/vpnproc.c src/net/actions.c \- src/pkg/crypto.c src/pkg/pgp.c src/pkg/xz.c src/pkg/deb.c src/pkg/idx.c src/pkg/pin.c src/pkg/status.c src/pkg/resolve.c src/pkg/http.c src/pkg/pkg.c src/ui/js_pkg.c src/ui/js_sec.c \+ src/pkg/crypto.c src/pkg/pgp.c src/pkg/xz.c src/pkg/deb.c src/pkg/idx.c src/pkg/pin.c src/pkg/status.c src/pkg/resolve.c src/pkg/http.c src/pkg/pkg.c src/pkg/sources_admin.c src/ui/js_pkg.c src/ui/js_sec.c \$(SEC_SRC) $(APP_SRC) $(MON_SRC) $(MEDIA_SRC)# Documents and printing (M9): lord-doc helper sessions and our own IPP/mDNS/eSCL client# (src/doc, src/print; see docs/DOCUMENTS.md and docs/PRINTING.md). No Poppler or libarchive here.@@ -513,6 +513,12 @@ endifbuild/obj/remote/pages.o: src/remote/login.html src/remote/client.html@mkdir -p $(dir $@)$(LD) -r -b binary -z noexecstack -o $@ src/remote/login.html src/remote/client.html+# Root over SSH (advanced, src/remote/ssh_root.c): public key lines and fingerprints.+test: build/ssh-root-test+build/ssh-root-test: tests/ssh_root_test.c src/remote/ssh_root.c src/remote/ssh_root.h src/pkg/crypto.c+ @mkdir -p build+ $(CC) $(CPPFLAGS) $(CFLAGS) $(WARN) -std=c11 -o $@ tests/ssh_root_test.c src/remote/ssh_root.c src/pkg/crypto.c+ ./$@ || { rm -f $@; exit 1; }build/lord-sessiond: $(SESSIOND_OBJ)$(CC) $(LDFLAGS) -o $@ $^ $(shell pkg-config --libs openssl) $(SESSIOND_LIBS) -lcrypt -lpthreaddiff --git a/server/src/admin.c b/server/src/admin.cindex 6d964d0..d0324ea 100644--- a/server/src/admin.c+++ b/server/src/admin.c@@ -33,6 +33,7 @@#include "install/install.h"#include "remote/remote_admin.h"#include "remote/ssh_admin.h"+#include "remote/ssh_root.h"#include "users/users_admin.h"#include "disk/disk.h"#include "imager/imager_admin.h"@@ -393,6 +394,7 @@ static const struct { const char *name; ActionFn fn; int flags; } actions[] = {INSTALL_ADMIN_ACTIONSREMOTE_ADMIN_ACTIONSSSH_ADMIN_ACTIONS+ SSH_ROOT_ACTIONSUSERS_ADMIN_ACTIONSDISK_ADMIN_ACTIONSIMAGER_ADMIN_ACTIONSdiff --git a/server/src/pkg/pkg.h b/server/src/pkg/pkg.hindex eea237f..98bd1b4 100644--- a/server/src/pkg/pkg.h+++ b/server/src/pkg/pkg.h@@ -13,6 +13,9 @@ void pkg_act_remove(const AdminReq *r, const char *arg, size_t len);void pkg_act_autoremove(const AdminReq *r, const char *arg, size_t len);void pkg_act_upgrade(const AdminReq *r, const char *arg, size_t len);void pkg_act_install_file(const AdminReq *r, const char *arg, size_t len);+/* (0.8.5) a vendor repository from LordOS's catalog: sources_admin.c */+void pkg_act_source_add(const AdminReq *r, const char *arg, size_t len);+void pkg_act_source_remove(const AdminReq *r, const char *arg, size_t len);/* Privileged helper (admin.c) actions this module adds. */#define PKG_ADMIN_ACTIONS \@@ -21,6 +24,8 @@ void pkg_act_install_file(const AdminReq *r, const char *arg, size_t len);{ "pkg-remove", pkg_act_remove, A_FORK }, \{ "pkg-upgrade", pkg_act_upgrade, A_FORK }, \{ "pkg-autoremove", pkg_act_autoremove, A_FORK }, \- { "pkg-install-file", pkg_act_install_file, A_FORK },+ { "pkg-install-file", pkg_act_install_file, A_FORK }, \+ { "pkg-source-add", pkg_act_source_add, A_FORK }, \+ { "pkg-source-remove", pkg_act_source_remove, A_FORK },#endifdiff --git a/server/src/pkg/sources_admin.c b/server/src/pkg/sources_admin.cnew file mode 100644index 0000000..8ab5806--- /dev/null+++ b/server/src/pkg/sources_admin.c@@ -0,0 +1,213 @@+/* sources_admin.c — vendor repositories from LordOS's catalog (0.8.5; Store → Artificial Intelligence,+ * docs/UPDATES.md "Mirrored apps (catalog)"). Administrators only:+ *+ * pkg-source-add <id> the catalog entry <id> (source type "apt", delivery "direct") becomes+ * /etc/apt/sources.list.d/lordos-<id>.sources and its vendor key+ * /usr/share/keyrings/lordos-<id>.asc+ * pkg-source-remove <id> removes both+ *+ * Nothing comes from the caller but the id: the repository, suite, components, architectures and key+ * come from the catalog the lordos package ships (<LordOS dir>/apt/catalog.json and apt/keys/, root's,+ * not writable by others), every field is checked against a strict character set, the key file must+ * hold a primary key with exactly the catalog's fingerprint, and the files are fixed text written+ * whole and renamed. The engine then verifies that repository's InRelease with that key only (its+ * Signed-By), over HTTPS (lord-tls). */+#include "pkg.h"+#include "pgp.h"+#include "../sec/json.h"++#include <ctype.h>+#include <errno.h>+#include <fcntl.h>+#include <limits.h>+#include <stdio.h>+#include <stdlib.h>+#include <string.h>+#include <sys/stat.h>+#include <unistd.h>++#define SOURCES_DIR "/etc/apt/sources.list.d"+#define KEYRINGS "/usr/share/keyrings"+#define CATALOG_MAX (512 * 1024)++/* <LordOS dir> (the folder that holds bin/lord-server) */+static int lordos_dir(char *out, size_t cap) {+ char exe[PATH_MAX];+ ssize_t k = readlink("/proc/self/exe", exe, sizeof exe - 1);+ if (k <= 0) return -1;+ exe[k] = 0;+ for (int i = 0; i < 2; i++) { char *s = strrchr(exe, '/'); if (!s) return -1; *s = 0; }+ return (size_t)snprintf(out, cap, "%s", exe) < cap ? 0 : -1;+}++/* a root-owned regular file not writable by others, read whole */+static char *read_root_file(const char *path, size_t max, size_t *len) {+ int fd = open(path, O_RDONLY | O_NOFOLLOW | O_CLOEXEC);+ if (fd < 0) return NULL;+ struct stat st;+ if (fstat(fd, &st) || !S_ISREG(st.st_mode) || st.st_uid != 0 || (st.st_mode & 022) || (size_t)st.st_size > max) { close(fd); return NULL; }+ char *b = malloc((size_t)st.st_size + 1);+ ssize_t r = b ? read(fd, b, (size_t)st.st_size) : -1;+ close(fd);+ if (r != st.st_size) { free(b); return NULL; }+ b[r] = 0;+ *len = (size_t)r;+ return b;+}++static int good_id(const char *s) {+ size_t n = s ? strlen(s) : 0;+ if (!n || n > 40) return 0;+ for (size_t i = 0; i < n; i++) if (!islower((unsigned char)s[i]) && !isdigit((unsigned char)s[i]) && s[i] != '-') return 0;+ return s[0] != '-';+}+/* a word of a deb822 field: letters, digits and ._-+~ */+static int good_word(const char *s) {+ size_t n = s ? strlen(s) : 0;+ if (!n || n > 64) return 0;+ for (size_t i = 0; i < n; i++) if (!isalnum((unsigned char)s[i]) && !strchr("._-+~", s[i])) return 0;+ return 1;+}+/* https://host[/path], host and path in a strict set, no "..", no spaces */+static int good_url(const char *s) {+ if (!s || strncmp(s, "https://", 8) || strlen(s) > 200 || strstr(s, "..")) return 0;+ for (const char *p = s + 8; *p; p++) if (!isalnum((unsigned char)*p) && !strchr("-./_", *p)) return 0;+ return s[8] && s[8] != '/';+}++/* the field as one line of space-separated words (a string or an array of strings) */+static int words(const JVal *v, char *out, size_t cap) {+ out[0] = 0;+ if (!v) return -1;+ size_t o = 0;+ if (v->type == J_STR) {+ char tmp[256];+ snprintf(tmp, sizeof tmp, "%s", v->str);+ for (char *t = strtok(tmp, " "); t; t = strtok(NULL, " ")) {+ if (!good_word(t) || o + strlen(t) + 2 > cap) return -1;+ o += (size_t)snprintf(out + o, cap - o, "%s%s", o ? " " : "", t);+ }+ } else if (v->type == J_ARR) {+ for (const JVal *k = v->kid; k; k = k->next) {+ if (k->type != J_STR || !good_word(k->str) || o + strlen(k->str) + 2 > cap) return -1;+ o += (size_t)snprintf(out + o, cap - o, "%s%s", o ? " " : "", k->str);+ }+ } else return -1;+ return o ? 0 : -1;+}++static int hexval(int c) { return isdigit(c) ? c - '0' : (c >= 'a' && c <= 'f') ? c - 'a' + 10 : (c >= 'A' && c <= 'F') ? c - 'A' + 10 : -1; }+/* "31DD DE24…" or "31DDDE24…" → 20 bytes */+static int parse_fpr(const char *s, uint8_t out[20]) {+ int n = 0, hi = -1;+ for (; s && *s; s++) {+ if (*s == ' ') continue;+ int v = hexval((unsigned char)*s);+ if (v < 0 || n >= 20) return -1;+ if (hi < 0) hi = v; else { out[n++] = (uint8_t)(hi << 4 | v); hi = -1; }+ }+ return n == 20 && hi < 0 ? 0 : -1;+}++static int write_atomic(const char *path, const char *data, size_t n) {+ char tmp[PATH_MAX];+ snprintf(tmp, sizeof tmp, "%s.lordos", path);+ int fd = open(tmp, O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, 0644);+ if (fd < 0) return -1;+ int ok = write(fd, data, n) == (ssize_t)n && !fchmod(fd, 0644);+ if (fsync(fd)) ok = 0;+ if (close(fd)) ok = 0;+ if (!ok || rename(tmp, path)) { unlink(tmp); return -1; }+ return 0;+}++/* the catalog entry for id, as the fields of its .sources and its key; 0 or an error already sent */+typedef struct { char name[80], url[201], suites[128], comps[128], arches[64], keypath[PATH_MAX]; uint8_t fpr[20]; } Repo;+static int find_repo(const char *id, Repo *r) {+ char dir[PATH_MAX], path[PATH_MAX];+ if (lordos_dir(dir, sizeof dir)) { admin_err("pkg.catalogMissing", NULL); return -1; }+ size_t len;+ char *text = (size_t)snprintf(path, sizeof path, "%s/apt/catalog.json", dir) < sizeof path ? read_root_file(path, CATALOG_MAX, &len) : NULL;+ if (!text) { admin_err("pkg.catalogMissing", NULL); return -1; }+ JDoc doc;+ int rc = -1;+ if (json_parse(text, len, &doc, NULL, 0)) { free(text); admin_err("pkg.catalogBad", NULL); return -1; }+ const JVal *apps = json_get(doc.root, "apps");+ const JVal *a = NULL;+ for (const JVal *k = apps && apps->type == J_ARR ? apps->kid : NULL; k; k = k->next) {+ const char *kid = json_str(k, "id");+ if (kid && !strcmp(kid, id)) { a = k; break; }+ }+ const JVal *src = a ? json_get(a, "source") : NULL;+ const char *type = src ? json_str(src, "type") : NULL, *deliv = src ? json_str(src, "delivery") : NULL;+ if (!a || !src || !type || strcmp(type, "apt") || !deliv || strcmp(deliv, "direct")) { admin_err("pkg.notInCatalog", "id", id, NULL); goto out; }+ const char *url = json_str(src, "url"), *key = json_str(src, "key"), *fpr = json_str(src, "fingerprint"), *name = json_str(a, "name");+ const JVal *suite = json_get(src, "suite") ? json_get(src, "suite") : json_get(src, "codename");+ const JVal *comps = json_get(src, "components") ? json_get(src, "components") : json_get(src, "component");+ const JVal *arches = json_get(a, "arches") ? json_get(a, "arches") : json_get(src, "arches");+ const char *kb = key ? strrchr(key, '/') : NULL;+ kb = kb ? kb + 1 : key;+ int kok = kb && strlen(kb) < 64 && strlen(kb) > 4 && !strcmp(kb + strlen(kb) - 4, ".asc");+ for (const char *p = kb; kok && *p; p++) if (!islower((unsigned char)*p) && !isdigit((unsigned char)*p) && !strchr(".-_", *p)) kok = 0;+ if (!good_url(url) || !kok || parse_fpr(fpr, r->fpr) || words(suite, r->suites, sizeof r->suites) ||+ words(comps, r->comps, sizeof r->comps) || words(arches, r->arches, sizeof r->arches)) { admin_err("pkg.catalogBad", NULL); goto out; }+ snprintf(r->url, sizeof r->url, "%s", url);+ snprintf(r->name, sizeof r->name, "%s", name ? name : id);+ for (char *p = r->name; *p; p++) if ((unsigned char)*p < 0x20 || *p == '#') *p = ' ';+ if ((size_t)snprintf(r->keypath, sizeof r->keypath, "%s/apt/keys/%s", dir, kb) >= sizeof r->keypath) { admin_err("pkg.catalogBad", NULL); goto out; }+ rc = 0;+out:+ json_free(&doc);+ free(text);+ return rc;+}++void pkg_act_source_add(const AdminReq *req, const char *arg, size_t len) {+ (void)req;+ char id[48];+ while (len && (arg[len - 1] == '\n' || arg[len - 1] == ' ')) len--;+ if (!len || len >= sizeof id) { admin_err("admin.invalidArgument", NULL); return; }+ memcpy(id, arg, len);+ id[len] = 0;+ if (!good_id(id)) { admin_err("admin.invalidArgument", NULL); return; }+ Repo r;+ if (find_repo(id, &r)) return;+ /* the key: a primary key with exactly the catalog's fingerprint */+ size_t klen;+ char *key = read_root_file(r.keypath, 64 * 1024, &klen);+ PgpKeyring kr = { 0 };+ int match = 0;+ if (key && !pgp_keyring_add_mem(&kr, key, klen))+ for (int i = 0; i < kr.n; i++) if (kr.keys[i].primary && !memcmp(kr.keys[i].fpr, r.fpr, 20)) match = 1;+ pgp_keyring_free(&kr);+ if (!match) { free(key); admin_err("pkg.keyMismatch", "id", id, NULL); return; }+ char kpath[PATH_MAX], spath[PATH_MAX], text[1200];+ snprintf(kpath, sizeof kpath, KEYRINGS "/lordos-%s.asc", id);+ snprintf(spath, sizeof spath, SOURCES_DIR "/lordos-%s.sources", id);+ mkdir(KEYRINGS, 0755);+ mkdir(SOURCES_DIR, 0755);+ int bad = write_atomic(kpath, key, klen);+ free(key);+ if (bad) { admin_err("sys.writeFailed", "path", kpath, NULL); return; }+ int n = snprintf(text, sizeof text,+ "# Added by LordOS (Store → Artificial Intelligence): %s. Removing it in the Store removes this file.\n"+ "Types: deb\nURIs: %s\nSuites: %s\nComponents: %s\nArchitectures: %s\nSigned-By: %s\n",+ r.name, r.url, r.suites, r.comps, r.arches, kpath);+ if (n <= 0 || n >= (int)sizeof text || write_atomic(spath, text, (size_t)n)) { unlink(kpath); admin_err("sys.writeFailed", "path", spath, NULL); return; }+ admin_ok("pkg.sourceAdded", "id", id, NULL);+}++void pkg_act_source_remove(const AdminReq *req, const char *arg, size_t len) {+ (void)req;+ char id[48];+ while (len && (arg[len - 1] == '\n' || arg[len - 1] == ' ')) len--;+ if (!len || len >= sizeof id) { admin_err("admin.invalidArgument", NULL); return; }+ memcpy(id, arg, len);+ id[len] = 0;+ if (!good_id(id)) { admin_err("admin.invalidArgument", NULL); return; }+ char kpath[PATH_MAX], spath[PATH_MAX];+ snprintf(kpath, sizeof kpath, KEYRINGS "/lordos-%s.asc", id);+ snprintf(spath, sizeof spath, SOURCES_DIR "/lordos-%s.sources", id);+ if ((unlink(spath) && errno != ENOENT) || (unlink(kpath) && errno != ENOENT)) { admin_err("sys.writeFailed", "path", spath, NULL); return; }+ admin_ok("pkg.sourceRemoved", "id", id, NULL);+}diff --git a/server/src/remote/ssh_admin.c b/server/src/remote/ssh_admin.cindex 015d49d..5ab36ac 100644--- a/server/src/remote/ssh_admin.c+++ b/server/src/remote/ssh_admin.c@@ -33,7 +33,7 @@static const char allow_admins_text[] ="# LordOS · remote login (Settings → Sharing): only administrators. See docs/REMOTE.md.\n""# Written by Settings; choose \"All users\" there to remove it.\n"- "AllowGroups sudo admin wheel\n";+ "AllowGroups sudo admin wheel root\n"; /* root: only matters with root over SSH on (ssh_root.c) */int ssh_allow_text(const char *value, const char **text) {if (!strcmp(value, "all")) { *text = NULL; return 0; }diff --git a/server/src/remote/ssh_root.c b/server/src/remote/ssh_root.cnew file mode 100644index 0000000..f43c885--- /dev/null+++ b/server/src/remote/ssh_root.c@@ -0,0 +1,349 @@+/* ssh_root.c — remote login as root over SSH: an advanced option, off by default (0.8.5; Settings →+ * Sharing → Remote login → Advanced; docs/REMOTE.md, "Root over SSH (advanced)"). Administrators only,+ * and every change asks again for the administrator's own password (checked here against+ * /etc/shadow, users_check_password):+ *+ * ssh-root <off|key|password>\n<admin password>+ * off: no file (the shipped 10-lordos.conf keeps PermitRootLogin no); key: PermitRootLogin+ * prohibit-password (public keys only); password: PermitRootLogin yes. Written as+ * /etc/ssh/sshd_config.d/05-lordos-root.conf: sshd keeps the first value it reads, and 05 comes+ * before LordOS's 10. Checked with sshd -t, then the running server reloads.+ * ssh-root-key add\n<admin password>\n<public key line>+ * ssh-root-key remove\n<admin password>\n<SHA256:fingerprint>+ * one OpenSSH public key (sshkey_parse: a known type, its base64 blob starting with that type,+ * a printable comment, no options) appended to /root/.ssh/authorized_keys or removed from it;+ * lines it can't read are kept as they are+ * ssh-root-password\n<admin password>\n<new root password>+ * chpasswd on standard input, never in argv+ * ssh-root-status+ * read-only: "mode <off|key|password>", "password set|unset", "key <type> <fingerprint> <comment>"+ *+ * Fixed programs at fixed paths, fixed configuration text, nothing from the user reaches a shell or+ * sshd's configuration: the only user text written anywhere is a validated public key line. */+#include "ssh_root.h"+#include "../users/users_admin.h"+#include "../pkg/crypto.h"++#include <ctype.h>+#include <errno.h>+#include <fcntl.h>+#include <limits.h>+#include <shadow.h>+#include <stdio.h>+#include <stdlib.h>+#include <string.h>+#include <sys/stat.h>+#include <unistd.h>++#define SSHD "/usr/sbin/sshd"+#define SYSTEMCTL "/usr/bin/systemctl"+#define SSH_UNIT "/usr/lib/systemd/system/ssh.service"+#define DROPIN_DIR "/etc/ssh/sshd_config.d"+#define ROOT_DROPIN DROPIN_DIR "/05-lordos-root.conf"+#define ROOT_SSH "/root/.ssh"+#define ROOT_KEYS ROOT_SSH "/authorized_keys"+#define KEYS_MAX (256 * 1024)++static const char text_key[] =+ "# LordOS · root over SSH (Settings → Sharing → Remote login → Advanced): public keys only.\n"+ "# Written by Settings; turn it off there to remove it. See docs/REMOTE.md.\n"+ "PermitRootLogin prohibit-password\n";+static const char text_password[] =+ "# LordOS · root over SSH (Settings → Sharing → Remote login → Advanced): public keys or password.\n"+ "# Written by Settings; turn it off there to remove it. See docs/REMOTE.md.\n"+ "PermitRootLogin yes\n";++int ssh_root_text(const char *mode, const char **text) {+ if (!strcmp(mode, "off")) { *text = NULL; return 0; }+ if (!strcmp(mode, "key")) { *text = text_key; return 0; }+ if (!strcmp(mode, "password")) { *text = text_password; return 0; }+ return -1;+}++/* ---- public keys ---- */++static const char *const TYPES[] = {+ "ssh-ed25519", "ecdsa-sha2-nistp256", "ecdsa-sha2-nistp384", "ecdsa-sha2-nistp521", "ssh-rsa",+ "[email protected]", "[email protected]", NULL };++static int b64val(int c) {+ if (c >= 'A' && c <= 'Z') return c - 'A';+ if (c >= 'a' && c <= 'z') return c - 'a' + 26;+ if (c >= '0' && c <= '9') return c - '0' + 52;+ if (c == '+') return 62;+ if (c == '/') return 63;+ return -1;+}++/* strict base64 (padding only at the end, length a multiple of 4) */+static int b64decode(const char *s, size_t n, uint8_t *out, size_t cap, size_t *olen) {+ if (!n || n % 4) return -1;+ size_t o = 0;+ for (size_t i = 0; i < n; i += 4) {+ int v[4];+ for (int j = 0; j < 4; j++) {+ char c = s[i + j];+ if (c == '=') { if (i + 4 != n || j < 2 || (j == 2 && s[i + 3] != '=')) return -1; v[j] = 0; }+ else if ((v[j] = b64val((unsigned char)c)) < 0) return -1;+ }+ uint32_t w = (uint32_t)v[0] << 18 | (uint32_t)v[1] << 12 | (uint32_t)v[2] << 6 | (uint32_t)v[3];+ int bytes = s[i + 2] == '=' ? 1 : s[i + 3] == '=' ? 2 : 3;+ if (o + (size_t)bytes > cap) return -1;+ out[o++] = (uint8_t)(w >> 16);+ if (bytes > 1) out[o++] = (uint8_t)(w >> 8);+ if (bytes > 2) out[o++] = (uint8_t)w;+ }+ *olen = o;+ return 0;+}++int sshkey_parse(const char *line, SshKey *k) {+ memset(k, 0, sizeof *k);+ if (!line) return -1;+ while (*line == ' ' || *line == '\t') line++;+ size_t n = strcspn(line, "\r\n");+ if (line[n] && line[n + strspn(line + n, "\r\n")]) return -1; /* one line only */+ const char *sp = memchr(line, ' ', n);+ if (!sp) return -1;+ size_t tl = (size_t)(sp - line);+ if (tl >= sizeof k->type) return -1;+ memcpy(k->type, line, tl);+ int known = 0;+ for (int i = 0; TYPES[i]; i++) if (!strcmp(k->type, TYPES[i])) known = 1;+ if (!known) return -1; /* also refuses options */+ const char *b = sp + 1;+ while (b < line + n && *b == ' ') b++;+ size_t bl = strcspn(b, " \r\n");+ if (!bl || bl >= sizeof k->b64) return -1;+ memcpy(k->b64, b, bl);+ if (b64decode(k->b64, bl, k->blob, sizeof k->blob, &k->bloblen)) return -1;+ /* the blob starts with the same type: uint32 length + name */+ if (k->bloblen < 4 + tl) return -1;+ uint32_t nl = (uint32_t)k->blob[0] << 24 | (uint32_t)k->blob[1] << 16 | (uint32_t)k->blob[2] << 8 | k->blob[3];+ if (nl != tl || memcmp(k->blob + 4, k->type, tl)) return -1;+ if (k->bloblen < 4 + tl + 16) return -1; /* a real key follows */+ const char *c = b + bl;+ while (c < line + n && *c == ' ') c++;+ size_t cl = (size_t)(line + n - c);+ while (cl && c[cl - 1] == ' ') cl--;+ if (cl >= sizeof k->comment) return -1;+ for (size_t i = 0; i < cl; i++) if ((unsigned char)c[i] < 0x20 || (unsigned char)c[i] > 0x7e) return -1;+ memcpy(k->comment, c, cl);+ return 0;+}++void sshkey_fingerprint(const SshKey *k, char out[60]) {+ uint8_t d[32];+ Sha256 s;+ sha256_init(&s);+ sha256_update(&s, k->blob, k->bloblen);+ sha256_final(&s, d);+ static const char A[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";+ char *o = out + sprintf(out, "SHA256:");+ for (int i = 0; i < 32; i += 3) {+ uint32_t w = (uint32_t)d[i] << 16 | (uint32_t)(i + 1 < 32 ? d[i + 1] : 0) << 8 | (uint32_t)(i + 2 < 32 ? d[i + 2] : 0);+ *o++ = A[(w >> 18) & 63];+ *o++ = A[(w >> 12) & 63];+ if (i + 1 < 32) *o++ = A[(w >> 6) & 63];+ if (i + 2 < 32) *o++ = A[w & 63];+ }+ *o = 0;+}++/* ---- helpers ---- */++static int installed(void) {+ struct stat st;+ return !access(SSHD, X_OK) && !stat(SSH_UNIT, &st) && S_ISREG(st.st_mode);+}+static int config_ok(void) { const char *const t[] = { SSHD, "-t", NULL }; return admin_run(t) == 0; }+static void reload(void) {+ if (!installed()) return;+ const char *const a[] = { SYSTEMCTL, "try-reload-or-restart", "ssh.service", NULL };+ admin_run(a);+}++/* Splits "a\nb\nc" in place into up to max fields (the last one keeps the rest of its line). */+static int fields(char *s, char **f, int max) {+ int n = 0;+ while (n < max) {+ f[n++] = s;+ char *nl = strchr(s, '\n');+ if (!nl) break;+ *nl = 0;+ s = nl + 1;+ }+ return n;+}++static int write_atomic(const char *path, const char *data, size_t n, mode_t mode) {+ char tmp[PATH_MAX];+ snprintf(tmp, sizeof tmp, "%s.lordos", path);+ int fd = open(tmp, O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, mode);+ if (fd < 0) return -1;+ int ok = (!n || write(fd, data, n) == (ssize_t)n) && !fchmod(fd, mode) && !fchown(fd, 0, 0);+ if (fsync(fd)) ok = 0;+ if (close(fd)) ok = 0;+ if (!ok || rename(tmp, path)) { unlink(tmp); return -1; }+ return 0;+}++/* root's authorized_keys, read whole (a regular file of root's, not a link); "" when there is none */+static char *read_keys(size_t *len) {+ *len = 0;+ int fd = open(ROOT_KEYS, O_RDONLY | O_NOFOLLOW | O_CLOEXEC);+ if (fd < 0) return errno == ENOENT ? calloc(1, 1) : NULL;+ struct stat st;+ if (fstat(fd, &st) || !S_ISREG(st.st_mode) || st.st_uid != 0 || st.st_size > KEYS_MAX) { close(fd); return NULL; }+ char *b = malloc((size_t)st.st_size + 1);+ ssize_t r = b ? read(fd, b, (size_t)st.st_size) : -1;+ close(fd);+ if (r < 0) { free(b); return NULL; }+ b[r] = 0;+ *len = (size_t)r;+ return b;+}++static int root_ssh_dir(void) {+ struct stat st;+ if (lstat(ROOT_SSH, &st)) {+ if (errno != ENOENT || mkdir(ROOT_SSH, 0700)) return -1;+ return chown(ROOT_SSH, 0, 0);+ }+ return S_ISDIR(st.st_mode) && st.st_uid == 0 ? chmod(ROOT_SSH, 0700) : -1;+}++/* the administrator types their own password again for every change */+static int reauth(const AdminReq *r, const char *pass) {+ if (users_check_password(r->user, pass)) return 0;+ sleep(1);+ admin_err("users.wrongPassword", NULL);+ return -1;+}++/* ---- actions ---- */++void ssh_act_root(const AdminReq *r, const char *arg, size_t len) {+ char buf[600], *f[2];+ if (len >= sizeof buf) { admin_err("admin.invalidArgument", NULL); return; }+ memcpy(buf, arg, len);+ buf[len] = 0;+ const char *text;+ if (fields(buf, f, 2) != 2 || ssh_root_text(f[0], &text)) { admin_err("admin.invalidArgument", NULL); explicit_bzero(buf, sizeof buf); return; }+ int bad = reauth(r, f[1]);+ explicit_bzero(buf, sizeof buf);+ if (bad) return;+ if (text) {+ if (mkdir(DROPIN_DIR, 0755) && errno != EEXIST) { admin_err("sys.writeFailed", "path", DROPIN_DIR, NULL); return; }+ if (write_atomic(ROOT_DROPIN, text, strlen(text), 0644)) { admin_err("sys.writeFailed", "path", ROOT_DROPIN, NULL); return; }+ if (installed() && !config_ok()) { unlink(ROOT_DROPIN); admin_err("ssh.badConfig", NULL); return; }+ } else if (unlink(ROOT_DROPIN) && errno != ENOENT) { admin_err("sys.writeFailed", "path", ROOT_DROPIN, NULL); return; }+ reload();+ admin_ok("ssh.saved", NULL);+}++void ssh_act_root_key(const AdminReq *r, const char *arg, size_t len) {+ char *buf = len < 16384 ? malloc(len + 1) : NULL, *f[3];+ if (!buf) { admin_err("admin.invalidArgument", NULL); return; }+ memcpy(buf, arg, len);+ buf[len] = 0;+ if (fields(buf, f, 3) != 3 || (strcmp(f[0], "add") && strcmp(f[0], "remove"))) { admin_err("admin.invalidArgument", NULL); explicit_bzero(buf, len); free(buf); return; }+ int add = !strcmp(f[0], "add");+ SshKey k;+ char want[60] = "";+ int parsed = add ? sshkey_parse(f[2], &k) : 0;+ if (!add) snprintf(want, sizeof want, "%.59s", f[2]);+ int bad = reauth(r, f[1]);+ explicit_bzero(f[1], strlen(f[1]));+ free(buf);+ if (bad) return;+ if (add && parsed) { admin_err("ssh.badKey", NULL); return; }+ if (!add && (strncmp(want, "SHA256:", 7) || strspn(want + 7, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/") != strlen(want + 7))) {+ admin_err("admin.invalidArgument", NULL);+ return;+ }+ if (root_ssh_dir()) { admin_err("sys.writeFailed", "path", ROOT_SSH, NULL); return; }+ size_t n;+ char *cur = read_keys(&n);+ if (!cur) { admin_err("sys.readFailed", "path", ROOT_KEYS, NULL); return; }+ char *out = malloc(n + 4096);+ if (!out) { free(cur); admin_err("sys.writeFailed", "path", ROOT_KEYS, NULL); return; }+ size_t o = 0;+ int found = 0;+ char fp[60];+ if (add) sshkey_fingerprint(&k, fp);+ for (char *line = cur; *line;) {+ char *nl = strchr(line, '\n');+ size_t ll = nl ? (size_t)(nl - line) : strlen(line);+ char save = line[ll];+ line[ll] = 0;+ SshKey e;+ char efp[60] = "";+ if (!sshkey_parse(line, &e)) sshkey_fingerprint(&e, efp);+ int match = efp[0] && !strcmp(efp, add ? fp : want);+ if (match) found = 1;+ if (!(match && !add) && ll) { memcpy(out + o, line, ll); o += ll; out[o++] = '\n'; }+ line[ll] = save;+ line += ll + (nl ? 1 : 0);+ }+ free(cur);+ if (add && found) { free(out); admin_err("ssh.duplicateKey", NULL); return; }+ if (!add && !found) { free(out); admin_err("ssh.keyNotFound", NULL); return; }+ if (add) o += (size_t)snprintf(out + o, 4096, "%s %s%s%s\n", k.type, k.b64, k.comment[0] ? " " : "", k.comment);+ int rc = write_atomic(ROOT_KEYS, out, o, 0600);+ free(out);+ if (rc) { admin_err("sys.writeFailed", "path", ROOT_KEYS, NULL); return; }+ admin_ok("ssh.saved", NULL);+}++void ssh_act_root_password(const AdminReq *r, const char *arg, size_t len) {+ char buf[700], *f[2];+ if (len >= sizeof buf) { admin_err("admin.invalidArgument", NULL); return; }+ memcpy(buf, arg, len);+ buf[len] = 0;+ if (fields(buf, f, 2) != 2) { explicit_bzero(buf, sizeof buf); admin_err("admin.invalidArgument", NULL); return; }+ size_t pl = strlen(f[1]);+ int weak = pl < 8 || pl > 256 || strchr(f[1], ':');+ for (size_t i = 0; i < pl; i++) if ((unsigned char)f[1][i] < 0x20) weak = 1;+ if (reauth(r, f[0])) { explicit_bzero(buf, sizeof buf); return; }+ if (weak) { explicit_bzero(buf, sizeof buf); admin_err("ssh.weakRootPassword", NULL); return; }+ char line[300];+ snprintf(line, sizeof line, "root:%s\n", f[1]);+ explicit_bzero(buf, sizeof buf);+ const char *const a[] = { "/usr/sbin/chpasswd", NULL };+ int rc = admin_run_input(a, line);+ explicit_bzero(line, sizeof line);+ if (rc) { admin_err("sys.programFailed", "program", "chpasswd", "code", lerr_int(rc), NULL); return; }+ admin_ok("ssh.saved", NULL);+}++void ssh_act_root_status(const AdminReq *r, const char *arg, size_t len) {+ (void)r; (void)arg; (void)len;+ char m[64] = "off";+ FILE *f = fopen(ROOT_DROPIN, "re");+ if (f) {+ char l[160];+ while (fgets(l, sizeof l, f))+ if (!strncmp(l, "PermitRootLogin ", 16)) snprintf(m, sizeof m, "%s", strstr(l, "prohibit-password") ? "key" : strstr(l, " yes") ? "password" : "off");+ fclose(f);+ }+ admin_say("LOG", "mode %s", m); /* i18n-ok: protocol line parsed by sdk/sshroot.js */+ struct spwd *sp = getspnam("root");+ int set = sp && sp->sp_pwdp && sp->sp_pwdp[0] && sp->sp_pwdp[0] != '!' && sp->sp_pwdp[0] != '*';+ admin_say("LOG", "password %s", set ? "set" : "unset"); /* i18n-ok: protocol line */+ size_t n;+ char *cur = read_keys(&n);+ for (char *line = cur; line && *line;) {+ char *nl = strchr(line, '\n');+ if (nl) *nl = 0;+ SshKey k;+ if (!sshkey_parse(line, &k)) {+ char fp[60];+ sshkey_fingerprint(&k, fp);+ admin_say("LOG", "key %s %s %s", k.type, fp, k.comment[0] ? k.comment : "-"); /* i18n-ok: protocol line */+ }+ line = nl ? nl + 1 : line + strlen(line);+ }+ free(cur);+ admin_ok("ssh.status", NULL);+}diff --git a/server/src/remote/ssh_root.h b/server/src/remote/ssh_root.hnew file mode 100644index 0000000..5b73e0d--- /dev/null+++ b/server/src/remote/ssh_root.h@@ -0,0 +1,37 @@+/* ssh_root.h — remote login as root over SSH, an advanced option off by default (see ssh_root.c and+ * docs/REMOTE.md, "Root over SSH (advanced)"). */+#ifndef LORD_SSH_ROOT_H+#define LORD_SSH_ROOT_H++#include "../admin.h"+#include <stddef.h>+#include <stdint.h>++void ssh_act_root(const AdminReq *r, const char *arg, size_t len);+void ssh_act_root_key(const AdminReq *r, const char *arg, size_t len);+void ssh_act_root_password(const AdminReq *r, const char *arg, size_t len);+void ssh_act_root_status(const AdminReq *r, const char *arg, size_t len);++/* An OpenSSH public key line "<type> <base64> [comment]" (no options, one line): 0 and its parts, the+ * decoded blob (which must start with the same type), or -1. Exposed for tests. */+#define SSHKEY_BLOB_MAX 2048+typedef struct {+ char type[48];+ uint8_t blob[SSHKEY_BLOB_MAX];+ size_t bloblen;+ char b64[(SSHKEY_BLOB_MAX + 2) / 3 * 4 + 1];+ char comment[101];+} SshKey;+int sshkey_parse(const char *line, SshKey *k);+/* "SHA256:<base64 without padding>" of the blob, as ssh-keygen -l prints it */+void sshkey_fingerprint(const SshKey *k, char out[60]);+/* The drop-in text for a mode: "off" → NULL (no file), "key", "password"; -1 for anything else. */+int ssh_root_text(const char *mode, const char **text);++#define SSH_ROOT_ACTIONS \+ { "ssh-root", ssh_act_root, A_FORK }, \+ { "ssh-root-key", ssh_act_root_key, A_FORK }, \+ { "ssh-root-password", ssh_act_root_password, A_FORK }, \+ { "ssh-root-status", ssh_act_root_status, A_FORK },++#endifdiff --git a/server/src/users/users_admin.c b/server/src/users/users_admin.cindex 273f5ff..5a3c7bb 100644--- a/server/src/users/users_admin.c+++ b/server/src/users/users_admin.c@@ -125,7 +125,7 @@ static int set_password(const char *user, const char *pass) {return rc;}-static int check_password(const char *user, const char *pass) {+int users_check_password(const char *user, const char *pass) {struct spwd *sp = getspnam(user);if (!sp || !sp->sp_pwdp || !sp->sp_pwdp[0] || sp->sp_pwdp[0] == '!' || sp->sp_pwdp[0] == '*') return 0;struct crypt_data cd;@@ -266,7 +266,7 @@ void users_act_passwd(const AdminReq *r, const char *arg, size_t len) {int self = !strcmp(name, r->user);if (!person(name) || !valid_pass(pass)) admin_err("users.badNameOrPassword", NULL);else if (!self && !r->admin) admin_err("users.passwordNotAllowed", NULL);- else if (self && !check_password(name, old)) { sleep(1); admin_err("users.wrongPassword", NULL); }+ else if (self && !users_check_password(name, old)) { sleep(1); admin_err("users.wrongPassword", NULL); }else if (set_password(name, pass)) admin_err("users.setPasswordFailed", NULL);else admin_ok("users.passwordChanged", NULL);explicit_bzero(buf, len);diff --git a/server/src/users/users_admin.h b/server/src/users/users_admin.hindex 43408aa..a9c1d6a 100644--- a/server/src/users/users_admin.h+++ b/server/src/users/users_admin.h@@ -11,6 +11,9 @@ void users_act_admin(const AdminReq *r, const char *arg, size_t len);void users_act_avatar(const AdminReq *r, const char *arg, size_t len);void users_act_autologin(const AdminReq *r, const char *arg, size_t len);+/* The user's own password against /etc/shadow, as root (also ssh_root.c: re-authorization). 1 if it matches. */+int users_check_password(const char *user, const char *pass);+/* user-passwd and user-avatar: everyone can change their own (validated inside). */#define USERS_ADMIN_ACTIONS \{ "user-add", users_act_add, A_FORK }, \diff --git a/server/tests/ssh_root_e2e.c b/server/tests/ssh_root_e2e.cnew file mode 100644index 0000000..8eefeb4--- /dev/null+++ b/server/tests/ssh_root_e2e.c@@ -0,0 +1,61 @@+/* ssh_root_e2e.c — root over SSH end to end (src/remote/ssh_root.c with the real password check,+ * src/users/users_admin.c): runs the same admin actions Settings → Sharing uses, as root, on a test+ * machine with openssh-server. Not part of make test (it changes sshd's configuration):+ *+ * sudo build/ssh-root-e2e <admin user> <their password> <action> [args…]+ * actions: status | mode <off|key|password> | add <pubkey file> | remove <SHA256:…> */+#include "../src/remote/ssh_root.h"++#include <stdarg.h>+#include <stdio.h>+#include <stdlib.h>+#include <string.h>+#include <sys/wait.h>+#include <unistd.h>++void admin_say(const char *kind, const char *fmt, ...) {+ va_list ap;+ va_start(ap, fmt);+ printf("%s ", kind);+ vprintf(fmt, ap);+ printf("\n");+ va_end(ap);+}+static int run(const char *const argv[], const char *input) {+ int p[2];+ if (input && pipe(p)) return -1;+ pid_t pid = fork();+ if (pid == 0) {+ if (input) { dup2(p[0], 0); close(p[0]); close(p[1]); }+ char *const env[] = { "PATH=/usr/sbin:/usr/bin:/sbin:/bin", NULL };+ execve(argv[0], (char *const *)argv, env);+ _exit(127);+ }+ if (input) { close(p[0]); if (write(p[1], input, strlen(input)) < 0) {} close(p[1]); }+ int st = 0;+ waitpid(pid, &st, 0);+ return WIFEXITED(st) ? WEXITSTATUS(st) : -1;+}+int admin_run(const char *const argv[]) { return run(argv, NULL); }+int admin_run_input(const char *const argv[], const char *input) { return run(argv, input); }++int main(int argc, char **argv) {+ if (argc < 4) { fprintf(stderr, "usage: %s user password action [args]\n", argv[0]); return 2; }+ AdminReq r = { .id = 1, .user = argv[1], .home = "/", .uid = 0, .gid = 0, .admin = 1 };+ char arg[8192];+ const char *act = argv[3];+ if (!strcmp(act, "status")) { ssh_act_root_status(&r, "", 0); return 0; }+ if (!strcmp(act, "mode") && argc == 5) { int n = snprintf(arg, sizeof arg, "%s\n%s", argv[4], argv[2]); ssh_act_root(&r, arg, (size_t)n); return 0; }+ if (!strcmp(act, "add") && argc == 5) {+ FILE *f = fopen(argv[4], "r");+ char line[4096] = "";+ if (!f || !fgets(line, sizeof line, f)) return 2;+ fclose(f);+ line[strcspn(line, "\n")] = 0;+ int n = snprintf(arg, sizeof arg, "add\n%s\n%s", argv[2], line);+ ssh_act_root_key(&r, arg, (size_t)n);+ return 0;+ }+ if (!strcmp(act, "remove") && argc == 5) { int n = snprintf(arg, sizeof arg, "remove\n%s\n%s", argv[2], argv[4]); ssh_act_root_key(&r, arg, (size_t)n); return 0; }+ return 2;+}diff --git a/server/tests/ssh_root_test.c b/server/tests/ssh_root_test.cnew file mode 100644index 0000000..2830ca3--- /dev/null+++ b/server/tests/ssh_root_test.c@@ -0,0 +1,54 @@+/* ssh_root_test.c — root over SSH (src/remote/ssh_root.c): public key lines LordOS accepts or refuses,+ * fingerprints as ssh-keygen -l prints them, and the fixed drop-in text per mode.+ *+ * build/ssh-root-test [keyfile.pub fingerprint] (make -C server test runs it) */+#include "../src/remote/ssh_root.h"++#include <stdio.h>+#include <string.h>++/* stubs: the actions aren't run here, only the parsers */+void admin_say(const char *kind, const char *fmt, ...) { (void)kind; (void)fmt; }+int admin_run(const char *const argv[]) { (void)argv; return 0; }+int admin_run_input(const char *const argv[], const char *input) { (void)argv; (void)input; return 0; }+int users_check_password(const char *user, const char *pass) { (void)user; (void)pass; return 0; }++static int n, bad;+#define CHECK(name, cond) do { n++; if (!(cond)) { bad++; printf("✗ %s\n", name); } } while (0)++/* a well-formed ed25519 key line (the key bytes are 1..32); real keys are checked against ssh-keygen below */+#define ED "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8g"++int main(int argc, char **argv) {+ SshKey k;+ CHECK("ed25519 with comment", sshkey_parse(ED " test@lordos", &k) == 0 && !strcmp(k.type, "ssh-ed25519") && !strcmp(k.comment, "test@lordos"));+ CHECK("ed25519 without comment, trailing newline", sshkey_parse(ED "\n", &k) == 0 && !k.comment[0]);+ CHECK("options are refused", sshkey_parse("command=\"/bin/sh\" " ED, &k) != 0);+ CHECK("two lines are refused", sshkey_parse(ED "\n" ED, &k) != 0);+ CHECK("unknown type", sshkey_parse("ssh-dss AAAAB3NzaC1kc3MAAACBAP", &k) != 0);+ CHECK("type mismatch with the blob", sshkey_parse("ssh-rsa AAAAC3NzaC1lZDI1NTE5AAAAIAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8g", &k) != 0);+ CHECK("bad base64", sshkey_parse("ssh-ed25519 AAAA$$$$", &k) != 0);+ CHECK("truncated blob", sshkey_parse("ssh-ed25519 AAAAC3NzaC1lZDI1NTE5", &k) != 0);+ CHECK("control character in the comment", sshkey_parse(ED " bad\x01", &k) != 0);+ CHECK("comment too long", sshkey_parse(ED " xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", &k) != 0);+ CHECK("empty", sshkey_parse("", &k) != 0 && sshkey_parse(NULL, &k) != 0);+ const char *t;+ CHECK("off: no file", ssh_root_text("off", &t) == 0 && t == NULL);+ CHECK("key: prohibit-password", ssh_root_text("key", &t) == 0 && strstr(t, "PermitRootLogin prohibit-password\n"));+ CHECK("password: yes", ssh_root_text("password", &t) == 0 && strstr(t, "PermitRootLogin yes\n"));+ CHECK("anything else refused", ssh_root_text("yes", &t) != 0 && ssh_root_text("", &t) != 0);+ /* with a real key file and ssh-keygen's fingerprint (the VM run passes them) */+ if (argc == 3) {+ FILE *f = fopen(argv[1], "r");+ char line[4096] = "";+ if (f) { if (!fgets(line, sizeof line, f)) line[0] = 0; fclose(f); }+ char fp[60] = "";+ int ok = sshkey_parse(line, &k) == 0;+ if (ok) sshkey_fingerprint(&k, fp);+ CHECK("generated key parses", ok);+ CHECK("fingerprint matches ssh-keygen", !strcmp(fp, argv[2]));+ if (strcmp(fp, argv[2])) printf(" got %s want %s\n", fp, argv[2]);+ }+ printf("ssh-root-test: %d/%d ok\n", n - bad, n);+ return bad ? 1 : 0;+}