This commit is contained in:
Jonas Forsberg 2021-10-12 08:29:31 +02:00
parent dd9d6bf0b8
commit bb70c7e43f
3 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,20 @@
# GDM configuration storage
#
# Note: settings from /etc/sysconfig/displaymanager have a higher priority
#
[daemon]
InitialSetupEnable=False
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false
[security]
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
#Enable=true

View File

@ -1,6 +1,6 @@
[Desktop Entry]
Type=Application
Exec=x0vncserver -passwordfile /home/{{ pillar['user'] }}/.vnc/passwd
Exec=x0vncserver -passwordfile /home/{{ pillar['username'] }}/.vnc/passwd
Hidden=false
X-GNOME-Autostart-enabled=true
Name=x0vncserver

View File

@ -2,6 +2,15 @@ Install xorg-x11-Xvnc:
pkg.installed:
- name: xorg-x11-Xvnc
Disable wayland login:
file.managed:
- name: /etc/gdm/custom.conf
- source: salt://remote-desktop/files/custom.conf
- user: root
- group: root
- mode: "0644"
Set vnc password if no passwd file:
cmd.run:
- name: bash -c "echo {{ pillar['remote-desktop']['password'] }} | vncpasswd -f > /home/{{ pillar['username'] }}/.vnc/passwd"
@ -19,6 +28,7 @@ Create x0vncserver desktop file:
file.managed:
- name: /home/{{ pillar['username'] }}/.config/autostart/x0vncserver.desktop
- source: salt://remote-desktop/files/x0vncserver.desktop.template
- template: jinja
- user: {{ pillar['username'] }}
- group: users
- mode: "0600"