Software & AppsOperating SystemLinux

How To Run AnyDesk Before Login on Ubuntu 18.04

Ubuntu 21

In this article, we’ll guide you through the process of running AnyDesk before login on Ubuntu 18.04. AnyDesk is a remote desktop software that allows you to connect to a computer remotely, either from another system or from your own. This can be particularly useful in a variety of scenarios, such as remote troubleshooting, remote work, or even just accessing your personal computer from a different location.

Quick Answer

Yes, it is possible to run AnyDesk before login on Ubuntu 18.04. There are two methods you can use: using the network info option or setting up auto-login and automatic lock.


Before we begin, make sure you have the following:

  • An Ubuntu 18.04 system
  • AnyDesk installed on your system. If you haven’t installed it yet, you can download it from the official AnyDesk website.

Method 1: Using Network Info

The first method involves using the network info option in Ubuntu. Here’s how to do it:

  1. Click on the network symbol at the top of the page and select “Show network info”.
  2. Close the window that appears.
  3. The AnyDesk window should now disappear, allowing you to log in remotely.

Method 2: Using Auto-login and Automatic Lock

The second method involves setting your account to auto-login and then using an automatic lock. Here’s how to do it:

  1. Set your account to auto-login. You can do this by going to “System Settings” > “User Accounts” and toggling the “Automatic Login” switch.
  2. Use an automatic lock after login. You can use tools like xtrlock or other options. Here’s how to install and use xtrlock:
    • Install xtrlock by running the following command in the terminal:
      sudo apt-get install xtrlock
      This command uses the apt-get package manager to install the xtrlock package. The sudo command is used to run the command with root privileges.
    • After installation, you can lock your screen by running the following command:
      This command runs the xtrlock program, which locks your screen.

For more information on setting up auto-login and automatic lock, you can refer to this Ubuntu forum thread or this Super User post.

Alternative Options

If you’re not satisfied with the above methods or if they don’t work for your specific situation, you can consider the following alternative options:

  • XRDP: XRDP is a remote desktop protocol that allows you to connect to a remote system. You can refer to this guide for instructions on setting up XRDP.
  • Other screen sharing options: There are several other screen sharing options available for Ubuntu, such as TeamViewer, VNC (Virtual Network Computing), and Remmina. You can explore these options and choose the one that best suits your needs.


Running AnyDesk before login on Ubuntu 18.04 can be achieved in a few different ways. Depending on your specific needs and system configuration, you can choose the method that works best for you. Whether you’re using the network info option, setting up auto-login and automatic lock, or exploring alternative options like XRDP or other screen sharing tools, you have plenty of options to choose from.

Can I use AnyDesk to connect to a computer running a different operating system?

Yes, AnyDesk is compatible with multiple operating systems, including Windows, macOS, Linux, Android, and iOS.

Can I use AnyDesk for commercial purposes?

Yes, AnyDesk offers both free and commercial licenses. The free license is for personal use, while the commercial license allows you to use AnyDesk for business purposes.

Is AnyDesk secure?

Yes, AnyDesk uses encryption technology to ensure secure connections. It also offers features like two-factor authentication and access control to enhance security.

How do I install AnyDesk on Ubuntu 18.04?

You can download the AnyDesk installation package from the official AnyDesk website ( Once downloaded, you can install it using the package manager or by running the installation command provided on the website.

Can I connect to a remote computer without knowing its IP address?

Yes, AnyDesk provides a feature called "AnyDesk Address" that allows you to connect to a remote computer using a unique ID instead of an IP address. This ID is generated by AnyDesk and can be shared with the remote user to establish a connection.

Can I transfer files between the local and remote computer using AnyDesk?

Yes, AnyDesk supports file transfer between the local and remote computer. You can simply drag and drop files between the two systems during a remote session.

Can I use AnyDesk to access a computer behind a firewall or router?

Yes, AnyDesk supports NAT traversal, which allows you to connect to a computer behind a firewall or router. However, you may need to configure port forwarding on the router for optimal connectivity.

Can I customize the settings of AnyDesk according to my preferences?

Yes, AnyDesk provides various customization options. You can adjust display settings, audio settings, keyboard shortcuts, and more through the AnyDesk settings menu.

Is it possible to use AnyDesk for remote printing?

Yes, AnyDesk supports remote printing. You can print documents from the remote computer to a local printer connected to your system.

Does AnyDesk have a mobile app?

Yes, AnyDesk has mobile apps available for both Android and iOS devices. You can download the app from the respective app stores and use it to connect to remote computers from your mobile device.

Leave a Comment

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