Fix that cannot remote login AnyDesk.
1. Install AnyDesk on Ubuntu 22.04.
2. Configure login password. This password is “P@ssw0rd”.
echo "P@ssw0rd" | sudo anydesk --set-password
3. Configure GDM config. Please unmask:
- WaylandEnable=false
- AutomaticLoginEnable = true
- AutomaticLogin = $USERNAME
sudo vim /etc/gdm3/custom.conf
# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.
[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false
# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = $USERNAME
# Enabling timed login
# TimedLoginEnable = true
# TimedLogin = user1
# TimedLoginDelay = 10
[security]
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true
4. Reboot your Ubuntu 22.04.