Skip to content

Instantly share code, notes, and snippets.

@lmiphay
Last active November 19, 2016 19:06
Show Gist options
  • Save lmiphay/5ebb0d9b1e8f342f5569c389c555f7c5 to your computer and use it in GitHub Desktop.
Save lmiphay/5ebb0d9b1e8f342f5569c389c555f7c5 to your computer and use it in GitHub Desktop.
vnc server configuration for an existing X11 session
# /etc/X11/xorg.conf.d/40-vnc.conf
# requires: net-misc/tigervnc[server]
Section "Module"
Load "vnc"
EndSection
Section "Screen"
Identifier "Default Screen"
# create with: vncpasswd
Option "PasswordFile" "/home/<user>/.vnc/passwd"
Option "rfbport" "5905"
# CompareFB - Perform pixel comparison on framebuffer to reduce
# unnecessary updates (0: never, 1: always, 2: auto)
# (default=2)
Option "CompareFB" "1"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment