AnyDesk is not working before login from remote PC (manually)

Solution 1:

I was able to resolve this by going into the /etc/gdm3/custom.conf file and do this change:

[daemon]
        # Enabling automatic login
        AutomaticLoginEnable=true
        AutomaticLogin=$USERNAME

and don't forget to also put the following in the /etc/gdm3/custom.conf file:

WaylandEnable=false