Installing x11vnc

Reviews and other little ventures that don't quite fit into the other forums
Daniel Wee
Site Admin
Posts: 2449
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: Installing x11vnc

Post by Daniel Wee »

To operate in headless mode:-

sudo apt install xserver-xorg-video-dummy

make sure that /usr/share/X11/xorg.conf.d/xorg.conf is present as follows:-

Code: Select all

Section "Device"
    Identifier  "Configured Video Device"
    Driver      "dummy"
    Option      "IgnoreEDID" "true"
    Option      "NoDDC" "true"
    VideoRam    16384
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync    15.0-100.0
    VertRefresh  15.0-200.0
    Modeline     "1920x1080" 60.0 1920 1952 2040 2072 1080 1106 1108 1135
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection  "Display"
        Viewport 0 0
        Depth    24
        Modes    "1920x1080"
        Virtual  1920 1080
    EndSubSection
EndSection
To disable this so that the physical HDMI port works, simply uninstall the dummy driver:-

sudo apt remove xserver-xorg-video-dummy
Daniel Wee
Site Admin
Posts: 2449
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: Installing x11vnc

Post by Daniel Wee »

Fundamentally - for Ubuntu 20.04 you need to install lightdm and use that as the default.

To solve the problem of lightdm not automatically logging in the user, follow instructions here:-
https://wiki.archlinux.org/index.php/Li ... _autologin

Mainly, sudo nano /etc/lightdm/lightdm.conf

Code: Select all

[Seat:*]
autologin-user=username
Then run:
sudo groupadd -r autologin
sudo gpasswd -a daniel autologin
Post Reply