% Rustdesk

# Connexion sans moniteur



La base, mettre en place ceci: [Create or add extra fake virtual monitors in Linux to be used with Deskreen, AnyDesk, TeamViewer etc. · GitHub](https://gist.github.com/chitholian/9cac41d22b76364360429cc2a5ffa681)

Ajouter ceci (voir [display - How to duplicate desktop in Linux with xrandr? - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/371793/how-to-duplicate-desktop-in-linux-with-xrandr)) à la fin de `fakemonitor` :


```
xrandr --output VIRTUAL$D --same-as HDMI2
```

Voir [display - How to duplicate desktop in Linux with xrandr? - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/371793/how-to-duplicate-desktop-in-linux-with-xrandr)

:::warning

Comment détecter le nom du moniteur affiché ?

:::





## Exécution automatique

Au moment du démarrage de la session X

[gdm - How to execute command before user login on linux - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/450835/how-to-execute-command-before-user-login-on-linux)
