6

I want to run Ubuntu 18 headless and connect with AnyDesk. Everything works fine as long as there is a display connected, even when not powered on. If I don't have a display attached, then when it starts up, AnyDesk connects but with a black screen. When I then attach a monitor to look at it, it's started, but looks like it's on the activity screen.

Even unplugging it after boot and being connected with AnyDesk causes things to screw up. But if I plug the display back in, everything works again.

I tried changed the resolution, but that didn't seem to help.

I'm a Linux newbie, so I'm not sure where to look for log files or something that would tell me what's going on.

Any help would be appreciated.

Dan
  • 61

2 Answers2

4

I use NoMachine with a headless server without a monitor on Ubuntu 16.04.6 LTS 64 bit an it runs fine. I have also tested NoMachine on Ubuntu 18.04.2 LTS 64 bit, but it was not a headless machine. I am not familiar with AnyDesk, but NoMachine should work fine with a headless Ubuntu 18.04 machine. VNC also works great for a headless environment but NoMachine is easier to use. For NoMachine to work, it needs to be installed on the server and the client. It is cross-platform and also provides a mobile app. Here is a link to download NoMahine: https://www.nomachine.com/

Edit: As of now, NoMachine does not work on headless machines anymore, but I found a solution when I installed a video dummy driver that emulates a fake monitor and works great. Here is the link to the solution: Add Fake Display when No Monitor is Plugged In.

0

After a little investigation, this seems to be a common issue for desktop PCs that need an attached monitor to work. There are system hacks, but they are dangerous.

I solved this with an HDMI Ghost Display Emulator. It is a dongle that plugs in the place of an HDMI cable and makes the PC think that there is an attached monitor.

Dan
  • 14,180