# Linux readiness [Complete Ubuntu setup commands](../README.md#linux-ubuntu-2404-lts-intelamd-64-bit) ยท [Developer guide](development.md) Linux support is experimental. Limited native validation is recorded below; the complete desktop and installer acceptance checks remain outstanding. Voice typing is outside the Linux acceptance criteria. The initial target is Ubuntu 24.04 LTS, x86_64, with a local workspace and Bash. This is a validation target, not a claim of tested support. Record the actual host below; results on another distribution do not establish Ubuntu compatibility. ## 1. Record the target Run these commands on the Linux box: ```sh cat /etc/os-release uname -m printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP" "$XDG_SESSION_TYPE" ``` Record the distribution, version, processor architecture, desktop, and session type with the test results. Test the session you use first. Test both Wayland and X11 before claiming support for both. An Intel/AMD build does not establish ARM support. ## 2. Prepare the Linux build environment Use the [complete README setup](../README.md#linux-ubuntu-2404-lts-intelamd-64-bit) for a first Ubuntu 24.04 trial. It includes every tool installation command, source download, Browser preparation, and native launch. Close the app and press Ctrl+C before the checks below. Do not copy Windows `node_modules` or `src-tauri/target` folders into Linux. The commands use the project's configured private clone address. Source access is required. No public source-download location is configured. The first build needs internet access for tools and dependencies. ### Command sources The setup instructions were checked against these primary sources on October 15, 2026: - [Tauri Linux prerequisites](https://v2.tauri.app/start/prerequisites/#linux): native development libraries and Rust installation. - [Node.js downloads](https://nodejs.org/en/download) and [nvm installation](https://github.com/nvm-sh/nvm#install--update-script): Node.js 24 and its per-user installer. - [pnpm 10 installation](https://pnpm.io/10.x/installation#using-npm): the npm installation method. - [Rust installation](https://rust-lang.github.io/rustup/installation/index.html): the Rust toolchain and account environment. - [Ubuntu 24.04 packages](https://packages.ubuntu.com/noble/): distribution package names, including the `t64` runtime libraries. Browser commands come from `browser-runtime/package.json` and its packaging and staging scripts in this repository. The README commands were reviewed on Windows. They were not executed on a clean Ubuntu 24.04 system. ## 3. Check the source and open the app Load the account tools and enter the source folder before these checks: ```sh . "$HOME/.nvm/nvm.sh" . "$HOME/.cargo/env" cd "$HOME/RuneStone" ``` From the Linux checkout, install the project dependencies: ```sh pnpm install --frozen-lockfile npm ci --prefix browser-runtime ``` The built-in Browser is a separate Electron executable. A fresh checkout does not contain `src-tauri/browser-engine`; prepare it on the same Linux architecture before building or launching the native host: ```sh pnpm browser:check pnpm browser:test npm --prefix browser-runtime run package pnpm browser:stage ``` Use the native `package` command on ARM64 too; `package:linux` explicitly selects x86_64. Staging verifies the executable permission and replaces the whole runtime tree, so files from an older Windows or Linux package cannot leak into the new one. An existing staged runtime is retained under `output/browser-stage-backups/` for recovery. Do not copy Windows `browser-engine` output into a Linux build. Electron must run as an ordinary desktop user with its sandbox enabled. Do not work around sandbox failures with `--no-sandbox` or by running RuneStone as root. Test the Browser on the intended distro, including its user-namespace policy. The native host uses WebKitGTK and the Browser uses Electron; both need testing. The full test suite needs the Table Formulas package. Clone `RuneStone_Table_Formulas` beside RuneStone and install its dependencies, as described in the [plugin guide](plugins.md). Then run these checks from RuneStone: ```sh pnpm build:plugins pnpm check pnpm test pnpm build cargo test --manifest-path src-tauri/Cargo.toml --lib --locked ``` Run the desktop app in your graphical Linux session: ```sh pnpm tauri dev ``` A successful build does not establish desktop compatibility. Browser tests use mocked desktop calls and Chromium. They do not test Linux file access or WebKitGTK behavior. ## 4. Complete the desktop checks Use a disposable workspace outside the installation folder. Record each result, the source commit, and any error message. The complete acceptance checks below remain unverified on Linux. The validation record distinguishes the limited smoke checks already completed. | Area | Pass criteria | | --- | --- | | Launch and windows | Open from the desktop, move, resize, minimize, maximize, and close. Unsaved edits trigger the close guard. | | Files and paths | Create, save, reopen, rename, copy, and delete files. Check spaces, Unicode, and distinct `Note.md` and `note.md` files. | | External edits | Edit a file in another editor. RuneStone detects the change and prevents silent replacement of conflicting edits. | | Built-in Browser | Open a web page, type and scroll, open/close tabs, download a file, and restart the app. Check the packaged runtime too. | | Editors | Edit Markdown, source code, tables, images, and diagrams. Check undo, keyboard shortcuts, and both themes. | | Clipboard and dialogs | Copy and paste text, tables, and images. Check folder selection, external links, and file reveal. | | Plugins | Install plugin ZIPs through Settings, enable them, restart, disable them, and remove them. Check plugin data persistence. | | Terminal plugin | Install the Terminal ZIP. Bash starts in the workspace, accepts Unicode, resizes, and exits when its session closes. | | Settings | Change preferences, restart, and confirm persistence. Check separate workspace windows. | Install the Terminal package separately as described in the [plugin guide](plugins.md). Check terminal profiles after a desktop launch too. A desktop launcher can have a different `PATH` from an interactive shell. Current filename rules reject some names that Linux permits, including colons and backslashes. Use ordinary portable filenames for the first trial. Record unsupported names as a limitation. Mounted network shares need separate tests because Linux mount paths do not reliably select the current polling fallback. Do not claim network workspace support from a local-disk test. ## 5. Build and test a package After the desktop checks pass, build on Linux for the target processor architecture. Choose the package format that matches the trial: ```sh # Ubuntu or Debian pnpm tauri build --bundles deb -- --locked # AppImage trial pnpm tauri build --bundles appimage -- --locked ``` Do not use `pnpm build:installer` on Linux. That command selects the Windows installer. These direct Tauri commands do not manage the project release version or archive a release. Before making a distributable, select the next version using the [version policy](../AGENTS.md#versioning), keep all four version fields consistent, and restore them if packaging fails. Move completed packages into `releases//` together with checksums and the recorded source/test results; do not leave duplicate completed packages in the toolchain bundle directory. Packages appear under `src-tauri/target/release/bundle/deb/` or `src-tauri/target/release/bundle/appimage/`. Install the Debian package with the distribution package manager, or make the AppImage executable and open it. Test launch without development tools, same-version reinstall, upgrade, and removal on a separate test account. Reinstall and upgrade must preserve settings and workspace files. Removal must preserve workspaces outside the installation folder. For shared packages, build on the oldest distribution you intend to support that supplies WebKitGTK 4.1. A package built on a newer system can require libraries unavailable on an older system. An AppImage does not remove this compatibility limit. See [Tauri's AppImage guidance](https://v2.tauri.app/distribute/appimage/) and [Debian packaging guidance](https://v2.tauri.app/distribute/debian/). Call a distribution supported only after its native tests and package checks pass. Repeat the automated checks on a Linux runner before each Linux release. No Linux automation is configured yet. Add it when the build host and target distribution are known. ## Setup help | Problem | Action | | --- | --- | | `sudo` asks for a password | Type your Ubuntu account password, then press Enter. The terminal does not show the characters. | | Git cannot reach `10.0.0.5` | Connect to the maintainer's network, or request a reachable clone address. | | Git requests a username or password | Use repository credentials from the maintainer. Source access is separate from your Ubuntu account. | | `destination path 'RuneStone' already exists` | Keep that folder. For an existing checkout, use the later-launch commands in the README. | | `node`, `pnpm`, or `cargo` is not found | Use the later-launch block to load the account environment. Check that the earlier tool installation completed. | | A system package cannot be found | Check your Ubuntu version with `cat /etc/os-release`. This command list targets Ubuntu 24.04. | | The Browser runtime is missing | From the source folder, repeat `npm ci --prefix browser-runtime`, then its `package` command and `pnpm browser:stage`. | | Electron reports a sandbox or user-namespace error | Keep the sandbox enabled. Report the error and Ubuntu version to the maintainer. Do not run RuneStone as root. | | The first build stops | Keep the first error text and failed command. Report them with your Ubuntu version and available memory/disk space. | Use the [validation checks](#4-complete-the-desktop-checks) after the first launch. ## Validation record: 2026-10-14 Validated on `desk`: Ubuntu 26.04.1 LTS, x86_64, four CPUs, 7.2 GiB reported RAM, XFCE/X11, Linux 7.0.0-38-generic. The execution environment reports a container boundary and underlying KVM virtualization. This does not validate Ubuntu 24.04, Wayland, ARM, or another distribution. Source: base commit `edef2520afc92f7896454bf94a8ea15bbf4e1684` plus the Linux readiness patch and the Browser window portability fix. The original transferred source archive had SHA-256 `b16643bfc7a634e5a5d17a7c246e87d95a458c06fb8afb45899a28a460e03047`. The first native compile found a Windows-only `drag_and_drop(false)` call in `src-tauri/src/browser.rs`; it now uses the cross-platform `disable_drag_drop_handler()` API already used by the settings window. Toolchain: Node.js 24.22.0, pnpm 10.34.7, Rust/Cargo 1.93.1, GLib 2.88.0, GTK 3.24.52, and WebKitGTK 4.1 version 2.52.6. Native builds used one job and `CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0` to conserve RAM and disk. | Check | Recorded result | | --- | --- | | `pnpm install --frozen-lockfile` and `npm ci --prefix browser-runtime` | Passed | | `pnpm check` | Passed; zero errors and warnings | | `pnpm build` | Passed; bundle-size warnings remain | | `pnpm browser:check` and `pnpm browser:test` | Passed; 44 Browser unit tests | | Browser Linux packaging and `pnpm browser:stage` | Passed; x86_64 runtime staged | | `npm --prefix browser-runtime run test:packaged` | Passed; all 12 engine smoke checks, sandbox enabled | | `pnpm test` | 238 passed, one skipped, two test files failed because the Table Formulas package was absent | | `cargo test --manifest-path src-tauri/Cargo.toml --lib --locked --offline -j 1` | Passed after the portability fix; 92 passed, three ignored | | `pnpm tauri build --debug --no-bundle -- --locked --offline -j 1` | Passed; native debug executable, version 0.1.34 | | Tauri X11 launch | Visible 1400 by 900 window; rendered frontend verified with an internal capture | | Host Browser integration | Open Browser opened a Browser tab with address and profile controls; no webpage-navigation claim | GUI checks used isolated task-local XDG settings/data directories, and the test processes were closed afterward. Virtual-GPU EGL/VAAPI warnings occurred; they did not prevent these smoke checks. No sandbox, security, swap, or permission workaround was used. Existing user settings and workspaces were not used. No installer or release package was produced, versions were unchanged, and nothing was published. Remaining work includes supplying/building `RuneStone_Table_Formulas` and rerunning the full source suite, completing the desktop checks above, and validating Debian/AppImage installation and lifecycle behavior on the intended target distribution. These results do not establish full Linux support. ### Initial bounded release attempt The normal release profile (`opt-level = 3`, full LTO, one codegen unit) was attempted with one Cargo job, locked/offline dependencies, and the already-tested frontend output. Before starting, desk had about 2.0 GiB available RAM, effectively full 4.0 GiB swap, and 4.1 GiB free disk. A temporary user service bounded the entire build to 1,677,721,600 bytes of RAM and no additional swap. The release build reached the GTK Rust crate but exceeded that hard cap. The service recorded `Result=oom-kill`, `MemoryPeak=1677721600`, and zero swap use after 14 minutes 47 seconds. Soft memory throttling was tried first; it caused repeated reclaim, so the soft threshold was removed while retaining the hard cap. No larger memory allowance was attempted. The temporary service was cleaned up; dependency and build caches were preserved. About 3.3 GiB disk remained afterward. No optimized executable, Debian package, or AppImage was produced. AppImage bundling was not attempted because it needs the release executable. Package contents, generated dependency metadata, and installation lifecycle therefore remain unvalidated. `ldd` found no missing libraries for the previously tested debug host and staged Browser on desk. In addition to host libraries, the Browser needs NSPR/NSS, CUPS, and ALSA libraries; their Ubuntu 26.04 providers include `libnspr4`, `libnss3`, `libcups2t64`, and `libasound2t64`. Check the eventual package declares the appropriate runtime dependencies; the current machine having them installed does not prove that package metadata is complete. The smallest next step is to free more RAM on desk, or use a host with more available memory, then retry the cached release build with a larger bounded allowance. Starting with at least 3 GiB available RAM provides more headroom but does not establish the required peak; measure it during the retry. Recheck disk before bundling. Existing debug-build and smoke-test results above still stand. ### Release package validation: 2026-10-15 After desk returned with more headroom, a fresh resource check found 4,956,172 KiB available RAM (about 4.73 GiB), nearly all 4 GiB swap free, and 47 GiB free disk. No finite inherited user-cgroup memory limit was found. The cached release build was retried with one job, a temporary 3.5 GiB memory cap, and no build-group swap. It completed successfully in 12 minutes 32 seconds, with 3.5 GiB peak group memory and no OOM event. The earlier failure establishes only that the chosen 1,600 MiB cap was insufficient; it does not establish that the 8 GB VM cannot build. The initial Debian bundle declared only GTK and WebKitGTK. Added `src-tauri/tauri.linux.conf.json` to declare OpenSSL plus the Browser's NSS/NSPR and ALSA dependencies. The release executable requires GLIBC 2.39, so the Debian metadata also declares `libc6 (>= 2.39)`. Tauri retains its default GTK/WebKitGTK dependencies. Recheck symbol requirements when changing the compiler or build host; this floor is evidence from this build, not a permanent portability guarantee. The Debian package was regenerated and its final dependency metadata verified. | Release check | Recorded result | | --- | --- | | Normal optimized release profile and Debian bundling | Passed, using locked/offline Cargo dependencies and the previously validated frontend | | Debian package | `RuneStone_0.1.34_amd64.deb`, package name `rune-stone`, version `0.1.34`, architecture `amd64` | | Debian package checksums, desktop entry, resources and permissions | Passed; host and Browser executables are executable, Browser resource directory is traversable, packaged checksums match | | Debian shared libraries on desk | All host and Browser libraries resolve | | Extracted Debian GUI smoke | Host rendered a visible window, launched its own packaged Browser executable, and rendered an HTTPS page | | AppImage bundling | Passed from the same optimized release executable; 2 minutes 18 seconds, about 1.6 GiB peak memory, no build-group swap | | Extracted AppImage GUI smoke | AppRun launched, bundled WebKitGTK child processes were used, its packaged Browser launched, and an HTTPS page rendered | Both package tests used isolated task-local settings/data and closed their test processes afterward. AppImage's supported extraction route was used because the VM does not expose `/dev/fuse`; FUSE-mounted execution was not tested. Virtual-GPU acceleration warnings did not prevent rendering. Versions remain 0.1.34 under the explicit validation-build instruction. These are unsigned experimental artifacts, not published releases. Completed package files, metadata, test limits, and checksums are archived under `releases/0.1.34/` outside Git. No app was installed system-wide and no existing user workspace/settings were used. Installation, same-version reinstall, upgrade, removal, the full desktop acceptance matrix, Ubuntu 24.04, Wayland, and other architectures remain untested. The Table Formulas external dependency remains absent. Native library resolution on desk and successful extraction smoke checks do not prove clean-machine package installation or compatibility with other distributions. The AppImage's bundled WebKitGTK and JavaScriptCoreGTK libraries require GLIBC 2.43. The Debian executable's GLIBC 2.39 floor therefore does not describe the AppImage's minimum runtime. Treat this AppImage as an Ubuntu 26.04 validation artifact rather than a portable Ubuntu 24.04 build.