Added headless configuration to Xorg
This commit is contained in:
@@ -418,7 +418,7 @@ ENV UNPRIVILEGED_USER_SHELL=/bin/bash
|
||||
ENV XRDP_TLS_KEY_PATH=/etc/xrdp/key.pem
|
||||
ENV XRDP_TLS_CRT_PATH=/etc/xrdp/cert.pem
|
||||
ENV ENABLE_XDUMMY=false
|
||||
ENV VGL_DISPLAY=:0
|
||||
ENV VGL_DISPLAY=:0.0
|
||||
## Use Adwaita theme in QT applications
|
||||
ENV QT_STYLE_OVERRIDE=Adwaita
|
||||
|
||||
@@ -469,6 +469,7 @@ COPY --chown=root:root ./scripts/bin/ /usr/local/bin/
|
||||
|
||||
# Copy config
|
||||
COPY --chown=root:root ./config/ssh/ /etc/ssh/
|
||||
COPY --chown=root:root ./config/X11/ /etc/X11/
|
||||
COPY --chown=root:root ./config/xrdp/ /etc/xrdp/
|
||||
COPY --chown=root:root ./config/skel/ /etc/skel/
|
||||
COPY --chown=root:root ./config/pulse/ /etc/pulse/
|
||||
|
||||
17
config/X11/xorg.conf.d/10-headless.conf
Normal file
17
config/X11/xorg.conf.d/10-headless.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
Section "Monitor"
|
||||
Identifier "Monitor0"
|
||||
HorizSync 28.0-80.0
|
||||
VertRefresh 48.0-75.0
|
||||
Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
|
||||
EndSection
|
||||
|
||||
#Section "Device"
|
||||
# Identifier "Device0"
|
||||
# Driver "dummy"
|
||||
#EndSection
|
||||
|
||||
#Section "Screen"
|
||||
# Identifier "Screen0"
|
||||
# Device "Device0"
|
||||
# Monitor "Monitor0"
|
||||
#EndSection
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec 2>&1
|
||||
exec /usr/bin/Xorg -noreset -nolisten tcp +extension GLX +extension RANDR +extension RENDER -logfile /var/log/xdummy.log :0
|
||||
exec /usr/bin/Xorg -noreset -nolisten tcp +extension GLX +extension RANDR +extension RENDER -logfile /var/log/xdummy.log :0.0
|
||||
|
||||
Reference in New Issue
Block a user