Add exclusive LTX-2 video studio profile
This commit is contained in:
1 parent
fce9900389
commit
a78aed8e9e
12 files changed
+233
-15
No files matched your search
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
install -d -m 0755 "$HOME" "$XDG_CONFIG_HOME" "$XDG_CACHE_HOME" /data/models /data/outputs
|
||||
|
||||
cleanup() {
|
||||
kill "${app_pid:-}" "${web_pid:-}" "${vnc_pid:-}" "${wm_pid:-}" "${x_pid:-}" 2>/dev/null || true
|
||||
}
|
||||
trap cleanup EXIT INT TERM
|
||||
|
||||
Xvfb :0 -screen 0 1600x1000x24 -nolisten tcp &
|
||||
x_pid=$!
|
||||
for _ in $(seq 1 50); do
|
||||
[ -S /tmp/.X11-unix/X0 ] && break
|
||||
sleep 0.1
|
||||
done
|
||||
openbox >/tmp/openbox.log 2>&1 &
|
||||
wm_pid=$!
|
||||
x11vnc -display :0 -forever -shared -nopw -rfbport 5900 \
|
||||
>/tmp/x11vnc.log 2>&1 &
|
||||
vnc_pid=$!
|
||||
websockify --web=/usr/share/novnc 8015 127.0.0.1:5900 \
|
||||
>/tmp/websockify.log 2>&1 &
|
||||
web_pid=$!
|
||||
|
||||
/opt/ltx-desktop/squashfs-root/AppRun --no-sandbox --disable-gpu-sandbox \
|
||||
--disable-dev-shm-usage >/data/ltx-desktop.log 2>&1 &
|
||||
app_pid=$!
|
||||
|
||||
wait "$app_pid"
|
||||
Reference in new issue
Block a user