Created
October 24, 2019 08:21
-
-
Save abutbul/49ef606a0e3230b991d2cb08ee90cadc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) |
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
Thanks, this snippet helped a lot!