Last active
July 19, 2023 08:16
-
-
Save GamePlayer-8/b20941579d4d87e8235a3fd3b09524d7 to your computer and use it in GitHub Desktop.
Launch-X11.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export X11_RUNTIME=<PATH> | |
mkdir "$X11_RUNTIME"/{runtime,logs} 2>/dev/null 3>&2 | |
X -listen tcp >"$X11_RUNTIME"/logs/X.log 2>&1 3>&1 & | |
X_pid=$! | |
echo "$X_pid" > "$X11_RUNTIME"/runtime/X.pid | |
xhost + | |
export DISPLAY="127.0.0.1:0.0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment