Uninstall old anydesk :
sudo apt-get autoremove anydesk
sudo rm -rf ./.anydesk/
cd /etc
sudo rm -rf anydesk
Install Anydesk :
sudo su
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -
echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list
sudo apt update
sudo apt install anydesk
Set Anydesk passwork:
echo P@ssw0rd | sudo anydesk --set-password
(replace my_new_password with your own password)
su pi
Install FAKE display driver
Basically install a dummy driver:
sudo apt-get install xserver-xorg-video-dummy
If you have issues with installing dummy driver then run these.
sudo apt-get install xserver-xorg-core
sudo apt-get install xserver-xorg-input-all
sudo apt-get install xrdp
Then write it in the /usr/share/X11/xorg.conf.d/xorg.conf (or possibly /etc/X11/xorg.conf) file (create one, if it does not exist):
cd /usr/share/X11/xorg.conf.d
sudo nano xorg.conf
Then paste the below text
===============================================================================
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x800"
EndSubSection
EndSection
===============================================================================
ctrl + o to save
ctrl + x to exit
Then restart the computer.
To check anydesk id :
sudo anydesk --get-id