mkimage-profiles/features.in/x11-vnc/rootfs/image-scripts.d/51-x11-vnc
Nikita Ermakov d1e7fc06eb x11-vnc: Initial X11 VNC feature
Add new feature for X11 VNC support.  Please read
features.in/x11-vnc/README for more information.
2020-07-02 01:02:37 +07:00

36 lines
672 B
Bash
Executable File

#!/bin/sh
# setup X11 to use it with a VNC
CFG=/root/.vnc/
[ -d "$CFG" ] || mkdir -p "$CFG"
x11vnc -storepasswd alt "$CFG"/passwd
cat > /etc/X11/xorg.conf.d/51-dummy.conf << EOF
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
VideoRam 16384
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 5.0 - 1000.0
VertRefresh 5.0 - 200.0
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 1024 768
EndSubSection
EndSection
EOF