Skip to content

Instantly share code, notes, and snippets.

@abutbul
Created October 24, 2019 08:21
Show Gist options
  • Save abutbul/49ef606a0e3230b991d2cb08ee90cadc to your computer and use it in GitHub Desktop.
Save abutbul/49ef606a0e3230b991d2cb08ee90cadc to your computer and use it in GitHub Desktop.
1. Create a backup of nx PAM configuration (sudo cp -a /etc/pam.d/nx /etc/pam.d/nx.original). Then change /etc/pam.d/nx in this way:
auth include system-login
account include system-login
password include system-login
session include system-login
2. Change DefaultDesktopCommand in /usr/NX/etc/node.cfg in order to remove dbus-launch –exit-with-session:
DefaultDesktopCommand "startkde"
(or DefaultDesktopCommand "/usr/bin/startplasma-x11")
and set
PhysicalDisplays :10
3. Stop display manager:
sudo systemctl stop display-manager
4. Restart NoMachine:
sudo /etc/NX/nxserver --restart
(depend on dbus state -also consider changing pam to > su to remote-login )
@xopyip
Copy link

xopyip commented Feb 4, 2023

Thanks, this snippet helped a lot!

@abutbul
Copy link
Author

abutbul commented Feb 4, 2023

Thanks, this snippet helped a lot!

im no longer using it but so glad it could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment