###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.
Here are the commands might be usefull in this purpose:
anydesk --get-status: To get current status of anydesk, which might beofflien,onlineor nothing.anydesk --get-id: To get the ID that your system can be accessed by.anydesk --service: To start anydesk service if not already running (for Linux).anydesk --restart-service: To restart anydesk serviceanydesk --stop-service: To stop anydesk servicesudo echo qazwsxedc | anydesk --set-password: to set password on anydesk (required to access from a remote system).
echo -e "ad.security.allow_logon_token=true\nad.features.unattended=true" >> ~/.anydesk/user.confsudo echo [your-custom-password] | anydesk --set-passwordsudo sed -i '' -e 's/# AutomaticLogin/AutomaticLogin/g' -e 's/#WaylandEnable/WaylandEnable/g' /etc/gdm3/custom.confsudo reboot- Drink your coffee, and
waituntil your system becomes up and accessible via ssh or terminal. - Run
anydesk --get-status, if its notonlinethen runanydesk --service. - Run
anydesk --get-id && echoto get your desk id. - Use your desk id in your Anydesk client, to access the remote system.
Github: github.com/imami , Twitter: @e_imami