# Setting Up Any Desk

### How to Install Any Desk on Unbuntu

Change to root:

<p class="callout info">sudo -i</p>

**Step 1.** Add Anydesk repository key to the Trusted software providers list.

<p class="callout info">wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -</p>

**Step 2.** Now add the repository to the sources list.  
Below command will put the repository entry in a new file under /etc/apt/sources.list.d/ directory.  
\* Execute as single command

<p class="callout info">echo "deb http://deb.anydesk.com/ all main" &gt; /etc/apt/sources.list.d/anydesk-stable.list</p>

**Step 3.** Update the apt cache by running below command.

<p class="callout info">apt update</p>

**Step 4.** Now install the software. This command will download and install Anydesk from repository along with dependencies.

<p class="callout info">apt install anydesk</p>

### Issues

After installing AnyDesk, the following error is presented:

[![image.png](https://bsa.lynops.com/uploads/images/gallery/2024-03/scaled-1680-/Lgmimage.png)](https://bsa.lynops.com/uploads/images/gallery/2024-03/Lgmimage.png)

#### To fix the problem, we have to edit a file.

<p class="callout info">sudo gedit /etc/gdm3/custom.conf</p>

[![image.png](https://bsa.lynops.com/uploads/images/gallery/2024-03/scaled-1680-/GkKimage.png)](https://bsa.lynops.com/uploads/images/gallery/2024-03/GkKimage.png)

- Uncomment line 7 "WaylandEnable=false"
- Uncomment line 10 "AutomaticLoginEnable = true"
- Uncomment line 11 "AutomaticLogin = <span style="text-decoration: underline;">**$USERNAME**</span>" (note change to $USERNAME if a different value was there)

##### Then re-boot the Linux machine.