- Command-Line Interface for Linux
- Installation Commands
- Client Commands
- Client Command Parameters
- Connection Commands
- Use-cases for the Command-Line Interface
- Automatic Deployment
- Removing AnyDesk
- Connecting through the Command-Line Interface
- Modifying AnyDesk shortcuts
- Install AnyDesk on Ubuntu Linux [GUI and Terminal Methods]
- Method 1: Install AnyDesk on Ubuntu using terminal
- Method 2: Install AnyDesk on Ubuntu graphically
- Troubleshooting tip
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 |
anydesk |
| anydesk —set-password
| anydesk —register-license
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). |
—admin-settings: 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 AnyDesk will request a connection to the specified client. Use-cases for the Command-Line InterfaceThe 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 DeploymentThe 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 my.anydesk.com.
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 AnyDeskIn 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 InterfaceIf 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 shortcutsParameters 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 terminalOpen 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=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-running-in-ubuntu-300×157.png» data-large-file=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-running-in-ubuntu-800×418.png» width=»800″ height=»418″ src=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-running-in-ubuntu-800×418.png» alt=»anydesk running in ubuntu» data-lazy-srcset=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-running-in-ubuntu-800×418.png 800w, https://itsfoss.com/wp-content/uploads/2021/09/anydesk-running-in-ubuntu-300×157.png 300w, https://itsfoss.com/wp-content/uploads/2021/09/anydesk-running-in-ubuntu-768×401.png 768w, https://itsfoss.com/wp-content/uploads/2021/09/anydesk-running-in-ubuntu.png 934w» data-lazy-sizes=»(max-width: 800px) 100vw, 800px» data-lazy-src=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-running-in-ubuntu-800×418.png?is-pending-load=1″ srcset=»data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7″> AnyDesk running in Ubuntu Method 2: Install AnyDesk on Ubuntu graphicallyIf 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=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-300×117.webp» data-large-file=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-800×312.webp» width=»800″ height=»312″ src=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-800×312.webp» alt=»any desk ubuntu download» data-lazy-srcset=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-800×312.webp 800w, https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-300×117.webp 300w, https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-768×300.webp 768w, https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download.webp 1128w» data-lazy-sizes=»(max-width: 800px) 100vw, 800px» data-lazy-src=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-800×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=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-1-300×160.webp» data-large-file=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-1-800×427.webp» width=»800″ height=»427″ src=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-1-800×427.webp» alt=»anydesk ubuntu download » data-lazy-srcset=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-1-800×427.webp 800w, https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-1-300×160.webp 300w, https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-1-768×410.webp 768w, https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-1.webp 961w» data-lazy-sizes=»(max-width: 800px) 100vw, 800px» data-lazy-src=»https://itsfoss.com/wp-content/uploads/2021/09/any-desk-ubuntu-download-1-800×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=»https://itsfoss.com/wp-content/uploads/2021/09/install-anaydesk-ubuntu-300×151.png» data-large-file=»https://itsfoss.com/wp-content/uploads/2021/09/install-anaydesk-ubuntu-800×403.png» width=»800″ height=»403″ src=»https://itsfoss.com/wp-content/uploads/2021/09/install-anaydesk-ubuntu-800×403.png» alt=»install anaydesk ubuntu» data-lazy-srcset=»https://itsfoss.com/wp-content/uploads/2021/09/install-anaydesk-ubuntu-800×403.png 800w, https://itsfoss.com/wp-content/uploads/2021/09/install-anaydesk-ubuntu-300×151.png 300w, https://itsfoss.com/wp-content/uploads/2021/09/install-anaydesk-ubuntu-768×387.png 768w, https://itsfoss.com/wp-content/uploads/2021/09/install-anaydesk-ubuntu.png 964w» data-lazy-sizes=»(max-width: 800px) 100vw, 800px» data-lazy-src=»https://itsfoss.com/wp-content/uploads/2021/09/install-anaydesk-ubuntu-800×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=»https://itsfoss.com/wp-content/uploads/2021/09/installing-anydesk-in-ubuntu-software-center-300×156.png» data-large-file=»https://itsfoss.com/wp-content/uploads/2021/09/installing-anydesk-in-ubuntu-software-center.png» width=»781″ height=»405″ src=»https://itsfoss.com/wp-content/uploads/2021/09/installing-anydesk-in-ubuntu-software-center.png» alt=»installing anydesk in ubuntu software center» data-lazy-srcset=»https://itsfoss.com/wp-content/uploads/2021/09/installing-anydesk-in-ubuntu-software-center.png 781w, https://itsfoss.com/wp-content/uploads/2021/09/installing-anydesk-in-ubuntu-software-center-300×156.png 300w, https://itsfoss.com/wp-content/uploads/2021/09/installing-anydesk-in-ubuntu-software-center-768×398.png 768w» data-lazy-sizes=»(max-width: 781px) 100vw, 781px» data-lazy-src=»https://itsfoss.com/wp-content/uploads/2021/09/installing-anydesk-in-ubuntu-software-center.png?is-pending-load=1″ 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=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-installed-in-ubuntu-300×77.png» data-large-file=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-installed-in-ubuntu.png» width=»759″ height=»196″ src=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-installed-in-ubuntu.png» alt=»anydesk installed in ubuntu» data-lazy-srcset=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-installed-in-ubuntu.png 759w, https://itsfoss.com/wp-content/uploads/2021/09/anydesk-installed-in-ubuntu-300×77.png 300w» data-lazy-sizes=»(max-width: 759px) 100vw, 759px» data-lazy-src=»https://itsfoss.com/wp-content/uploads/2021/09/anydesk-installed-in-ubuntu.png?is-pending-load=1″ 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 tipWhen 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. Adblockdetector |