2022-05-04 06:52:47 +02:00
---
2023-07-15 21:54:43 +02:00
title: Linux
2022-05-04 06:52:47 +02:00
weight: 4
---
### Installation
2022-07-10 05:20:52 +02:00
#### Ubuntu (>= 16)
2023-10-10 21:36:19 +02:00
```sh
2022-05-04 06:52:47 +02:00
# please ignore the wrong disk usage report
sudo apt install -fy ./rustdesk-< version > .deb
```
2023-07-15 21:54:43 +02:00
#### CentOS/Fedora (>= 18)
2022-07-10 05:20:52 +02:00
```sh
2022-05-04 19:41:06 +02:00
sudo yum localinstall ./rustdesk-< version > .rpm
2022-05-04 06:52:47 +02:00
```
2022-07-10 05:20:52 +02:00
#### Arch/Manjaro
```sh
2022-05-04 06:52:47 +02:00
sudo pacman -U ./rustdesk-< version > .pkg.tar.zst
```
2023-08-27 20:43:57 +02:00
#### openSUSE (>= Leap 15.0)
2022-07-10 05:20:52 +02:00
```sh
2022-05-04 19:41:06 +02:00
sudo zypper install --allow-unsigned-rpm ./rustdesk-< version > -suse.rpm
```
2023-05-25 04:50:25 +02:00
### ~~X11 Required~~
2023-07-15 21:54:43 +02:00
~~RustDesk does not support Wayland yet; you need switch to X11 manually.~~
2022-07-10 05:20:52 +02:00
2023-07-15 21:54:43 +02:00
RustDesk now has experimental Wayland support. You may need to download the [nightly version ](https://github.com/rustdesk/rustdesk/releases/tag/nightly ) to enable this feature.
2022-05-04 06:52:47 +02:00
#### Display Server
2022-07-10 05:20:52 +02:00
[Ubuntu ](https://askubuntu.com/questions/1260142/ubuntu-set-default-login-desktop ) |
[Fedora ](https://docs.fedoraproject.org/en-US/quick-docs/configuring-xorg-as-default-gnome-session/ ) |
[Arch ](https://bbs.archlinux.org/viewtopic.php?id=218319 )
2022-05-04 06:52:47 +02:00
2022-07-10 05:20:52 +02:00
#### Login Screen
2022-05-04 06:52:47 +02:00
2022-07-10 05:20:52 +02:00
Modify below line to `WaylandEnable=false` in `/etc/gdm/custom.conf` or `/etc/gdm3/custom.conf` :
2022-05-04 06:52:47 +02:00
2022-07-10 05:20:52 +02:00
```ini
2022-05-04 06:52:47 +02:00
#WaylandEnable=false
```
2022-07-05 05:21:39 +02:00
{{% notice note %}}
2023-10-10 21:36:19 +02:00
Please **reboot** to make above changes taking effect.
2022-07-05 05:21:39 +02:00
{{% /notice %}}
2023-10-21 13:33:07 +02:00
#### Permissions Issue
2023-10-21 17:38:41 +02:00
If SELinux is enabled, RustDesk will not work properly in either X11 or Wayland environments.
2023-10-21 13:33:07 +02:00
2023-10-21 17:38:41 +02:00
You can run:
```bash
$ sudo grep 'comm="rustdesk"' /var/log/audit/audit.log | tail -1
type=AVC msg=audit(1697902459.165:707): avc: denied { name_connect } for pid=31346 comm="rustdesk" dest=53330 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=tcp_socket permissive=0
```
If the output contains `avc: denied` , you need to add SElinux policies, please refer to [SELinux ](./selinux/ ).