Skip to content

Cross-platform ComfyUI start/restart hook + Linux (NVIDIA GB10) setup guide - #27

Open
ondrejZach wants to merge 1 commit into
BlackMixture:mainfrom
ondrejZach:feat/linux-gb10-support
Open

ondrejZach wants to merge 1 commit into
BlackMixture:mainfrom
ondrejZach:feat/linux-gb10-support

Conversation

@ondrejZach

Copy link
Copy Markdown

Mix Studio's server is already portable — zero-dependency Node, no build step — but the UI's Start / Restart ComfyUI actions are Windows-only (Comfy Desktop / run_nvidia_gpu.bat / taskkill). On Linux DGX-class devices (NVIDIA GB10 — DGX Spark, ASUS Ascent GX10; sm_121, aarch64) none of those exist, so the buttons stay disabled.

This adds an env-driven command hook so those actions work on any platform, a Linux launcher, and a setup guide for the path the Windows bootstrapper doesn't cover.

Changes

  • lib/comfy-restart.js — when MIXBOX_COMFY_RESTART_CMD / MIXBOX_COMFY_START_CMD are set, restartStatus/startStatus report a command kind and restartComfy/startComfy run it via /bin/sh -c (e.g. a systemctl --user unit). No behavior change unless the env vars are set — the Windows detection/paths are untouched.
  • start-mixstudio.sh — Linux launcher (counterpart to start.bat): puts node on PATH, exports the config, enables the restart hooks, execs node server.js. Every setting has a ${VAR:-default} fallback.
  • test/comfy-restart-command-hook.test.js — covers the hook and asserts it never falls back to taskkill.
  • docs/linux-dgx-gb10.md — prerequisites, the launcher, systemd --user units, and a brief ComfyUI-backend appendix (version needed for Krea 2, commonly-missing custom-node deps, shared model root).

Testing

node --check server.js, node --check public/app.js, and node --test all pass (893 tests). The launcher was verified to boot Mix Studio and connect to a local ComfyUI.

Notes

  • Scope is Mix Studio + the wiring; building a working sm_121 ComfyUI/PyTorch stack for GB10 is left to NVIDIA's DGX Spark resources (the guide links there and gives a verify command).
  • Keeps the zero-dependency server / build-free frontend constraint.

…rt/restart hook + launcher + guide

Mix Studio's server is portable (zero-dependency Node, no build step), but the UI's
Start/Restart ComfyUI actions were Windows-only (Comfy Desktop / run_nvidia_gpu.bat /
taskkill). On Linux DGX-class devices (NVIDIA GB10 — DGX Spark, ASUS Ascent GX10;
aarch64, sm_121) none of those exist.

- lib/comfy-restart.js: when MIXBOX_COMFY_RESTART_CMD / MIXBOX_COMFY_START_CMD are set,
  restartStatus/startStatus report a 'command' kind and restart/startComfy run it via
  /bin/sh -c. No behavior change unless the env vars are set; Windows paths untouched.
- start-mixstudio.sh: Linux launcher (counterpart to start.bat), env-overridable.
- test/comfy-restart-command-hook.test.js: covers the hook, incl. never invoking taskkill.
- docs/linux-dgx-gb10.md: prerequisites, launcher, systemd --user units, ComfyUI notes.
@faiezyacob

Copy link
Copy Markdown

Will this work on another nvidia gpu on linux?

@ondrejZach

Copy link
Copy Markdown
Author

Will this work on another nvidia gpu on linux?

It shouldn’t be GB10 machine specific but I’m not sure 100%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants