Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial version to fix DE NO_JIRA #2

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions tasks/Ubuntu-24.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
# Fix for xrdp selecting wrong DE. See - https://github.com/neutrinolabs/xrdp/issues/3053

- name: Run xrdp install
ansible.builtin.include_tasks: Ubuntu.yml

- name: Stop xrdp
ansible.builtin.service:
name: xrdp
state: stopped
become: true

- name: Download startwm.sh
ansible.builtin.get_url:
url: https://github.com/neutrinolabs/xrdp/raw/devel/sesman/startwm.sh
dest: /etc/xrdp/startwm.sh
mode: "755"
force: true
become: true

- name: Update file permissions
ansible.builtin.file:
path: /etc/xrdp/startwm.sh
owner: root
mode: "755"
become: true

- name: Create default desktop
ansible.builtin.file:
path: /etc/profile.d/90-xrdp-default-desktop.sh
state: touch
owner: root
mode: "644"
become: true

- name: Set default desktop
mmaharjan-ccdc marked this conversation as resolved.
Show resolved Hide resolved
ansible.builtin.shell: echo "[ -n \"\$XRDP_SESSION\" -a -z \"\$DESKTOP_SESSION\" ] && export DESKTOP_SESSION=$DESKTOP_SESSION" > /etc/profile.d/90-xrdp-default-desktop.sh
environment:
DESKTOP_SESSION: ubuntu
become: true

- name: Start xrdp
ansible.builtin.service:
name: xrdp
state: started
become: true