13 lines
400 B
Bash
13 lines
400 B
Bash
#!/bin/bash
|
|
|
|
# Ensure X11 socket directory exists
|
|
mkdir -p /tmp/.X11-unix
|
|
chmod 1777 /tmp/.X11-unix
|
|
|
|
echo "Starting Xorg server..."
|
|
# Run Xorg on DISPLAY :0.
|
|
# We disable DPMS (screen blanking) and screen saver (-s 0).
|
|
# We also avoid requiring a virtual terminal using vt7 and -sharevts if needed,
|
|
# though running as root with devices mapped usually succeeds.
|
|
exec Xorg :0 -nocursor -s 0 -dpms vt7
|