Anydesk командная строка linux

Command-Line Interface for Linux

Table of Contents

The following commands can be entered in the Linux terminal or can be used in a script in order to automate parts of AnyDesk.

Installation Commands

AnyDesk for Linux can be downloaded and updated via the command-line interface using the AnyDesk repositories. Instructions on how to set up and use the repositories can be found below:

Client Commands

These commands can be used to interact with the AnyDesk client through the terminal or scripts.

Command Description

See Client Command Parameters. echo

| anydesk —set-password Set the specified password for unattended access. (Needs to be used as root). echo
| anydesk —register-license Register the specified license key.

Client Command Parameters

Parameter Description
—get-alias Return the AnyDesk-Alias.
—get-id Return the AnyDesk-ID.
—get-status Return the client’s online status.
—version Return the current AnyDesk client version.
—settings Open the default settings page.
—admin-settings Open the specified global settings page. (Needs to be used as root).
Viable parameters:
capture, security, connection, recording.
Open the administrative settings on the specific page. (needs to be used as root)

Connection Commands

A connection can be established through the command-line interface.
When requesting a connection through the command line, several parameters can be appended.

Command Description

AnyDesk will request a connection to the specified client.


Use-cases for the Command-Line Interface

The command-line interface offers ways to help automate many processes involved with AnyDesk. Here, you can find some examples of how to use it with AnyDesk.

Automatic Deployment

The command-line features can be used in combination with software management/deployment tools to deploy and set up AnyDesk on a larger number of devices without the need for manual intervention on each device.

For this case, we would recommend providing a custom MSI installation package as well as preconfigured Customer/Service-Module versions of our .exe files that can easily be distributed this way.

These can be customized further through the custom client generator on

Standard Module Types Description
Default EXE EXE version of the standard client from that can both initiate and receive connections.
Customer Module EXE EXE version of a standard client that can only receive connections.
Service Module EXE EXE version of a standard client that can only initiate connections.

These can then be deployed automatically through a script using the commands described in the Installation Commands or through other deployment tools.

An example batch script, that will install AnyDesk, register the license key, and set a password, could look like this:

Removing AnyDesk

In case AnyDesk is no longer needed on certain machines, it can be uninstalled through the in-built operating system uninstaller or alternatively, the command-line interface.

This can be done using either the —remove or —uninstall command as mentioned in Installation Commands.

—uninstall will start the uninstallation process for the AnyDesk client. Using this command, a GUI prompt will appear which will guide the user through the uninstallation process.

In case the removal of AnyDesk is supposed to happen purely via a script or through management software, —remove is the right parameter to use.

Furthermore, if a completely silent removal is intended, appending —silent will prevent error messages that might occur during the removal process from showing up.

An example for a silent removal without additional user input would be:

—remove will only uninstall the AnyDesk application from the Windows operating system but cannot remove any remnant files. Files such as those found in the below default directories must be manually deleted or deleted through a script.

C:\Program Files (x86)\AnyDesk

Connecting through the Command-Line Interface

If AnyDesk is intended to be implemented into already existing software, connecting through the command-line interface using the commands and parameters as described in Connection Commands can be a good tool to achieve that.

Modifying AnyDesk shortcuts

Parameters found in Connection Commands can be used to modify shortcuts that have been dropped to the desktop through AnyDesk.

This is done by appending a parameter to the «Target» field in «Properties» of the desktop shortcut. For example:


Install AnyDesk on Ubuntu Linux [GUI and Terminal Methods]

Brief: This beginner’s tutorial discusses both GUI and terminal methods of installing AnyDesk on Ubuntu-based Linux distributions.

AnyDesk is a popular remote desktop software available for Linux, Windows, BSD, macOS and mobile platforms.

With this tool, you can remotely access other computer using AnyDesk or let someone else remotely access your system. Not everyone can access it just because two devices use AnyDesk. You have to accept the incoming connection and/or provide a password for secure connection.

This is helpful in providing tech support to friend, family, colleagues or even to the customers.

In this tutorial, I’ll show you both graphical and command line ways of installing AnyDesk on Ubuntu. You can use either method based on your preference. Both methods will install the same AnyDesk version on your Ubuntu system.

The same method should be applicable to Debian and other Debian and Ubuntu based distributions such as Linux Mint, Linux Lite etc.

AnyDesk is not open source software. It is covered here because it is available on Linux and the article’s focus is on Linux.

Method 1: Install AnyDesk on Ubuntu using terminal

Open the terminal application on your system. You’ll need a tool like wget to download files in the terminal. For that, use the following command:

The next step now is to download the GPG key of AnyDesk repository and add it to your system’s trusted keys. This way, your system will trust the software coming from this external repository.

You may ignore the deprecated warning about apt-key command for now. The next step is to add the AnyDesk repository to your system’s repository sources:

Update the package cache so that your system learns about the availability of new applications through the newly added repository.

And now, you can install AnyDesk:

Once that is done, you can start AnyDesk from the system menu or from the terminal itself:

You can enjoy AnyDesk now.

» data-medium-file=»×157.png» data-large-file=»×418.png» width=»800″ height=»418″ src=»×418.png» alt=»anydesk running in ubuntu» data-lazy-srcset=»×418.png 800w,×157.png 300w,×401.png 768w, 934w» data-lazy-sizes=»(max-width: 800px) 100vw, 800px» data-lazy-src=»×418.png?is-pending-load=1″ srcset=»data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7″> AnyDesk running in Ubuntu

Method 2: Install AnyDesk on Ubuntu graphically

If you are not comfortable with the command line, no worries. You can also install AnyDesk without going into the terminal.

You can download AnyDesk for Ubuntu from the official AnyDesk website:

You’ll see a Download Now button. Click on it.

» data-medium-file=»×117.webp» data-large-file=»×312.webp» width=»800″ height=»312″ src=»×312.webp» alt=»any desk ubuntu download» data-lazy-srcset=»×312.webp 800w,×117.webp 300w,×300.webp 768w, 1128w» data-lazy-sizes=»(max-width: 800px) 100vw, 800px» data-lazy-src=»×312.webp?is-pending-load=1″ srcset=»data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7″> Download AnyDesk

When you click on the download button, it gives you options for various Linux distributions. Select the one for Ubuntu:

» data-medium-file=»×160.webp» data-large-file=»×427.webp» width=»800″ height=»427″ src=»×427.webp» alt=»anydesk ubuntu download » data-lazy-srcset=»×427.webp 800w,×160.webp 300w,×410.webp 768w, 961w» data-lazy-sizes=»(max-width: 800px) 100vw, 800px» data-lazy-src=»×427.webp?is-pending-load=1″ srcset=»data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7″> Download the appropriate file

It will download the DEB file of AnyDesk application. Installing deb file is easy. Either double click on it or right click and open with Software Install.

» data-medium-file=»×151.png» data-large-file=»×403.png» width=»800″ height=»403″ src=»×403.png» alt=»install anaydesk ubuntu» data-lazy-srcset=»×403.png 800w,×151.png 300w,×387.png 768w, 964w» data-lazy-sizes=»(max-width: 800px) 100vw, 800px» data-lazy-src=»×403.png?is-pending-load=1″ srcset=»data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7″> Right click on deb file and open with software center

Software Center application will be opened and you can install it from there.

» data-medium-file=»×156.png» data-large-file=»» width=»781″ height=»405″ src=»» alt=»installing anydesk in ubuntu software center» data-lazy-srcset=» 781w,×156.png 300w,×398.png 768w» data-lazy-sizes=»(max-width: 781px) 100vw, 781px» data-lazy-src=»″ srcset=»data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7″> Installing AnyDesk in Ubuntu software center

Once installed, search for it in the system menu and start from there.

» data-medium-file=»×77.png» data-large-file=»» width=»759″ height=»196″ src=»» alt=»anydesk installed in ubuntu» data-lazy-srcset=» 759w,×77.png 300w» data-lazy-sizes=»(max-width: 759px) 100vw, 759px» data-lazy-src=»″ srcset=»data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7″> AnyDesk installed in Ubuntu

That’s it. Not too hard, is it?

I am not going to show the steps for using AnyDesk. I think you already have some idea about that. If not, refer to this article, please.

Troubleshooting tip

When I tried to run AnyDesk from the system menu, it didn’t start. So, I started it from the terminal and it showed me this error:

If you see the error while loading shared libraries message, you install the package it is complaining about. Here’s what I did in my case:

That solved the issue for me and I hope it fixes for you as well.

If you have any questions related to this topic, please let me know in the comment section.

Creator of It’s FOSS. An ardent Linux user & open source promoter. Huge fan of classic detective mysteries ranging from Agatha Christie and Sherlock Holmes to Detective Columbo & Ellery Queen. Also a movie buff with a soft corner for film noir.


Читайте также:  Default linux install directory
Поделиться с друзьями