refactor: clean VPS code, keep only host solution in main\n
- Removed all VPS-specific scripts and configs from main branch\n- VPS solution archived in archive/vps-rustdesk-server\n- Rewrote README.md to focus on Intel Alder Lake-N host setup\n- Added note about archive branch and host-only scope\n Fixes #6 (wontfix for VPS GUI, host solution restored)
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Start Xorg with dummy driver for headless VPS
|
||||
export DISPLAY=:0
|
||||
export XAUTHORITY=${XAUTHORITY:-/run/user/0/.Xauthority}
|
||||
|
||||
# Generate MIT magic cookie if needed
|
||||
if [ ! -s "$XAUTHORITY" ]; then
|
||||
mkdir -p "$(dirname "$XAUTHORITY")"
|
||||
touch "$XAUTHORITY"
|
||||
xauth -f "$XAUTHORITY" generate :0 MIT-MAGIC-COOKIE-1 2>/dev/null || \
|
||||
xauth -f "$XAUTHORITY" add :0 MIT-MAGIC-COOKIE-1 "$(xxd -l 16 -p /dev/urandom)" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# Ensure socket directory
|
||||
mkdir -p /tmp/.X11-unix
|
||||
|
||||
# Check if already running
|
||||
if pgrep -x "Xorg" >/dev/null 2>&1; then
|
||||
echo "Xorg already running"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec /usr/lib/xorg/Xorg :0 \
|
||||
-nolisten tcp \
|
||||
-nolisten local \
|
||||
-config /etc/X11/xorg.conf.d/99-dummy.conf \
|
||||
+extension GLX \
|
||||
+extension RANDR \
|
||||
+extension RENDER \
|
||||
-novtswitch \
|
||||
-keeptty
|
||||
Reference in New Issue
Block a user