mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 01:53:57 +08:00
* Install virtualgl in a container
* Initialize virtualgl in bashrc
* Create virtual screen when starting
* Start vglclient on host
* Run Xvfb in separate tmux session to keep it running
* Add note about virtualGL in readme
* Add wget
* source vglrun
* Start xvfb only when forwarding x11
* Remove section about vglrun from readme
* HOST_DISPLAY implementation
* Add MOTD message instead of readme section
old-commit-hash: d15c2d951f
16 lines
489 B
Bash
Executable File
16 lines
489 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
source .devcontainer/.host/.env
|
|
|
|
# setup safe directories for submodules
|
|
SUBMODULE_DIRS=$(git config --file .gitmodules --get-regexp path | awk '{ print $2 }')
|
|
for DIR in $SUBMODULE_DIRS; do
|
|
git config --global --add safe.directory "$PWD/$DIR"
|
|
done
|
|
|
|
# virtual display for virtualgl
|
|
if [[ "$HOST_OS" == "darwin" ]] && [[ -n "$HOST_DISPLAY" ]]; then
|
|
echo "Starting virtual display at :99 ..."
|
|
tmux new-session -d -s fakedisplay Xvfb :99 -screen 0 1920x1080x24
|
|
fi
|