P
Home Articles Poems, Wishes Recipes
Menu
×

How to Install and Set Up AnyDesk on Ubuntu 22.04

AnyDesk is a fast and lightweight remote desktop solution that works well on Ubuntu 22.04, allowing access from Windows, Mac, Linux, or Android.


Step 1: Update System Packages

Before installing AnyDesk, update your package lists to ensure your system has the latest updates:

sudo apt update && sudo apt upgrade -y

Step 2: Add AnyDesk Repository and GPG Key

Since AnyDesk is not available in the default Ubuntu repository, you need to add the official AnyDesk repository.

1. Import AnyDesk GPG Key

wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add -

2. Add the AnyDesk Repository

echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk.list

3. Update Package Lists Again

sudo apt update

Step 3: Install AnyDesk

Now, install AnyDesk with:

sudo apt install anydesk -y

Step 4: Start AnyDesk

After installation, launch AnyDesk with:

anydesk

Or open it from the Applications Menu by searching for “AnyDesk.”


Step 5: Enable Unattended Access (Optional for Remote Login Without User Confirmation)

If you want to access your Ubuntu PC without manually accepting connections, follow these steps:

1. Open AnyDesk and Go to Settings

Click on "Settings" > "Security".

2. Enable Unattended Access

  • Check "Enable unattended access"
  • Set a strong password for remote access.

3. Allow AnyDesk to Run on Startup

To allow AnyDesk to start automatically after reboot:

sudo systemctl enable anydesk

Step 6: Allow AnyDesk Through Firewall (If Enabled)

If you have UFW (Uncomplicated Firewall) enabled, allow AnyDesk:

sudo ufw allow 7070/tcp
sudo ufw reload

Step 7: Find Your AnyDesk Address

Once AnyDesk is running, it will show a 9-digit ID (e.g., 123 456 789).

  • Use this ID to connect from another device (Windows, Mac, Linux, or Android).
  • If unattended access is enabled, just enter your password.

Step 8: Connect from Another Device

  1. Install AnyDesk on your Windows/Mac/Linux/Android device from anydesk.com/download.
  2. Open AnyDesk and enter the Ubuntu AnyDesk ID.
  3. Click "Connect" and enter the password if needed.

Remove AnyDesk (If Needed)

If you ever want to remove AnyDesk, run:

sudo apt remove --purge anydesk -y
sudo rm -rf /etc/apt/sources.list.d/anydesk.list