Yes you are not supposed to be able to use these commands with sudo plainly like that, they will not have the dbus session of your user available, nor the X environment of your users xorg server. In case this is actually relevant, you should not try to sledgehammer problems by prepending sudo to commands willy nilly, that will often not lead to success. Are you trying to run the standard anydesk client as root despite not needing to? Then just don't and this also would explain your issues.
I'm not familiar with anydesk, but e.g. in the case of teamviewer there is a systemd service for starting the background daemon, once that is started the actual teamspeaker client has to be launched as your normal user..
About anydesk, I run it as my user on my normal seesion, I precise that I can connect to another device from my system but I can not in the opposit way, e.g. I can connect to my android smartphone, but not the opposit.
Just got stuck with the exactly same problem: Installed anydesk on my Arch desktop and Manjaro laptop. Manjaro is preconfigured somehow, Arch starts via xinitrc somehow (at least it starts directly into the desktop without asking me for my password, also no DM is installed). My .xinitrc is rather simple
Hi! Any progress here? I have the same problem. When log system with lightdm no problem to connect using anydesk. Howerver when use startx from tty anydesk cant connect with error "Remote display server is not supported". I have cloned all diff variables in lightdm session but problem persists. I dont know what anydesk is checking when connect, but one interesting thing is that if try to connect when no user is logged and lightdm is on screen the window for confirm connection appears in login screen.
I tried everything posted here, but without success, I can't have anydesk functional; I installed and ran archlinux with enlightenment, without login manager, everything is perfect but anydesk does not work; the moment I install xfce / kde / gnome, keeping the enlightenment, under xfce / kde / gnome it works without problems, but the moment I log out and log in enlightenment, ready, anydesk no longer works it crashes.
I also tried installing the entrance, but without success.
If you have any advice on what I could try, what I could do ....
27.04.21
I noticed that if I launch anydesk with a random number, anydesk with error message is launched, recipient that does not exist, and from the keyboard I can enter a real address, it connects, but no I have no control over the computer, nothing works neither mouse nor keyboard and I am forced to restart the computer. I have no idea why it doesn't work ....
I understood your problem and I just remembered it happen the same to me once but using a W10. I had several physical machines connected to the same firewall with same W10 version installed in all of them but for some reason in one of the machines anydesk wouldn't connect to the network. I didn't manage to fix that because I didn't really need it.
When I go to enable the security settings on anydesk, It asks for my password and then does nothing after. I cannot set up unattended access, which is what I need to be able to work on that machine. Any ideas?
@JacobSoul
Looking at the doc that @schwarzenbek posted, you'll probably need to make a proxy exception for *.net.anydesk.com.
If you're just using the default outgoing packet filter all of these ports are allowed.
Since is it impossible to bypass based on application, you would probably use a Custom URL category with a wildcard (*.anydesk.com), and apply it in a bypass rule. Unfortunately, this doesn't work (I'm not sure why, I think Anydesk uses IP addresses and not URLs)
Is the concept described even on-topic for the site?
AnyDesk does have APIs, so it is possible that software development questions regarding this product could be asked, but the company has been around since 2014, and no on-topic questions have yet been asked under this tag.
The vast majority of the questions are General Computing questions which should be on SuperUser if anywhere. One, closed, programming question remains (and I removed the tag from another question) but they were both incorrectly (IMO) tagging anydesk as an example of the sort of program they didn't want to be able to access their app. They had no specific connection to AnyDesk.
in the tag Wiki, doesn't really help. If API-related questions arise, perhaps that would be a good time to create the tag again, but until then I don't think it is necessary. Even SuperUser doesn't have an anydesk tag, at present.
Considering all of the above, I suggest that the anydesk tag be burninated, and all associated questions be deleted/migrated as they are off-topic, with the possible exception of this question, which could just have the tag removed. Most of the questions have answers, some accepted, so would not Roomba.
7a63b62549