Sets up desktop sharing with RDP. Install neutrinolabs XRDP server and a desktop environment.
- Lock screen is disabled.
- GUI options suspend is turned off.
- Shutdown and reboot is disabled from GUI.
1.0.0
--- Ubuntu works, Fedora works without soundmain
--- latest development release, not for production
- Fedora 34, no sound
- Ubuntu 20.04, Focal
- Ubuntu 21.04, Hirsute
- Ubuntu 21.10, Impish
xrdp_server_desktop_environment
--- Which desktop environment to install, defaultgnome
.gnome
--- The vanilla Gnome desktop environment.
xrdp_server_disconnected_timeout_seconds
--- If>0
then disconnected sessions will be killed after seconds, default0
.xrdp_server_idle_timeout_seconds
--- If>0
then disconnects session after idle time, default0
.xrdp_server_loglevel
--- Set log level to core, error, warning, info or debug, defaultwarning
.xrdp_server_max_sessions
--- Maximum number of connected clients, default10
.xrdp_server_sound_driver_version
--- Version of neutrinolabs driver to use, defaultv0.5
xrdp_server_sound_enable
--- Enable sound redirect - Ubuntu only, defaultfalse
.xrdp_server_tigervnc_enable
--- Use tigervnc instead ofxorgxrdp
, defaultfalse
.
Security related.
xrdp_server_allow_root_login
--- Allow graphical login for root, defaultfalse
.xrdp_server_group_check
--- Check if users are intsusers
or admins are intsadmins
, defaultfalse
.xrdp_server_restrict_outbound_clipboard
--- Disable outbound clipboard, defaultfalse
.
None.
- SSL.
- name: install XRDP with sound redirect on Ubuntu
hosts: all
become: true
roles:
- role: xrdp_server
xrdp_server_desktop_environment: gnome
xrdp_server_disconnected_timeout_seconds: 60
xrdp_server_idle_timeout_seconds: 86400
xrdp_server_loglevel: error
xrdp_server_max_sessions: 25
xrdp_server_sound_enable: true
cd tests
vagrant up
Run role on all OSes again.
vagrant provision
This uses cluster ssh to work with all vagrant boxes at the same time.
vagrant ssh-config > ~/.ssh/config
cat ~/.ssh/config | grep ^Host | cut -d\ -f2 | xargs cssh
GPL-2.0
Arnulf Heimsbakk