Results 1 to 4 of 4

Thread: VNC behaves oddly when monitor unplugged

  1. #1
    Join Date
    May 2020
    Beans
    15

    VNC behaves oddly when monitor unplugged

    I have an Intel NUC with the latest version of Ubuntu installed. I have VNC server running on it to allow remote access, because I want to rackmount the NUC without direct-attached KVM and use it as a headless server. Want to VNC in when I need to.

    I can connect fine remotely, and control the NUC, until I unplug its HDMI monitor cable. As soon as I do that I can only view, and cannot remotely control.
    Can anyone help me with this please?
    Last edited by richardi99; May 25th, 2020 at 11:40 PM.

  2. #2
    Join Date
    May 2020
    Beans
    15

    Re: VNC behaves oddly when monitor unplugged

    Ok - so moved forwards one step. Discovered I need to buy an HDMI monitor emulator. to plug into the HDMI port. Done that. Now cannot seem to get VNC to start up at boot so I can VNC into this as a headless NUC. Have tried two things with no luck: https://tecadmin.net/setup-x11vnc-se...ntu-linuxmint/ and https://tecadmin.net/setup-x11vnc-se...ntu-linuxmint/. Any help appreciated

  3. #3
    Join Date
    Apr 2014
    Location
    Tucson AZ, USA
    Beans
    1,057
    Distro
    Ubuntu

    Re: VNC behaves oddly when monitor unplugged

    You don't need that. Can be done without it.

    https://askubuntu.com/questions/4531...-is-plugged-in

    I used this to run Kodi inside an LXD container on my headless server. Works great. X11VNC and away you go.

    Systemd service to restart x11vnc after you exit it. I use for above purpose, rather I did until I changed to another service + script to stream audio out of the container to a remote pulse server. Change user & group as needed.

    Code:
    [Unit]
    Description = Start and keep X11VNC server running
    
    [Service]
    User = kodi
    Group = kodi
    Type = simple
    ExecStart = /usr/bin/x11vnc -display :0
    Restart = always
    
    [Install]
    WantedBy = multi-user.target
    In regards to VNC starting on boot you need something for it to connect to. In my container I have LightDM set to autologin to my kodi user on openbox, which autostarts Kodi. Using lightdm have it autologin to your user and that is it. The above service will keep the vnc server running.
    Last edited by Tadaen_Sylvermane; May 26th, 2020 at 12:42 AM.

  4. #4
    Join Date
    May 2020
    Beans
    15

    Re: VNC behaves oddly when monitor unplugged

    Thank you for your help. I have closed this thread and started another more pertinent to where my issue is now. I will reply on that one

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •