.
This commit is contained in:
parent
dd9d6bf0b8
commit
bb70c7e43f
20
salt/states/remote-desktop/files/custom.conf
Normal file
20
salt/states/remote-desktop/files/custom.conf
Normal 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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user