Recently, we had to provision a g4dn.16xlarge AWS instance and install anydesk on Ubuntu for running some AI/MLOps workloads for one of our clients. One of the requirement was to setup AnyDesk client to install custom vendor software on the instance. Here are the commands we used:

 Update and Upgrade Apt Package Manager

sudo apt update
sudo apt upgrade -y

Download and Install AnyDesk client

wget https://download.anydesk.com/linux/anydesk_6.3.2-1_amd64.deb
sudo dpkg -i anydesk_*.deb
sudo apt --fix-broken install
anydesk

 Configure and set Password AnyDesk client

echo -e "ad.security.allow_logon_token=true\nad.features.unattended=true" >> ~/.anydesk/user.conf
sudo echo CHANGE-PASSWORD | anydesk --set-password

sudo passwd ubuntu

Configure Gnome Display Manager 3

sudo apt install gnome-session gdm3

Configure Gnome Display Manager 3

vi /etc/gdm3/custom.conf

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false

# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = ubuntu

Reboot Ubuntu instance

sudo reboot

Get Anydesk ID for connection

anydesk --get-id

Enter AnyDesk ID in client and connect

 

TroubleShooting Tips

  1. Please make sure IP/Port is allowed in Firewall/AWS Security group

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *