Forum Replies Created
-
AuthorPosts
-
September 7, 2024 at 13:51 in reply to: Help needed with custom scripts for XFCE desktop start/stop in NoMachine #49573RunAway189Participant
Finally with your new suggested settings I’ve been able to automate my lightdm service. Thanks everyone for the fantastic support, you’re great!
September 6, 2024 at 17:05 in reply to: Help needed with custom scripts for XFCE desktop start/stop in NoMachine #49569RunAway189ParticipantThanks a lot for the reply again, so this is the bash script I should run or is it just the visudo file I need to edit? Sorry, I just want to make sure that everything is set properly. @Britgirl
August 28, 2024 at 17:38 in reply to: Help needed with custom scripts for XFCE desktop start/stop in NoMachine #49434RunAway189ParticipantThanks for your reply @hawk, I’ve just tried what you suggested but unfortunately it doesn’t work: it’s asking me for nx password to execute the script. (I’m manually testing it through ‘sudo -u nx /usr/NX/scripts/custom/start_de.sh’)
August 26, 2024 at 18:56 in reply to: Help needed with custom scripts for XFCE desktop start/stop in NoMachine #49378RunAway189ParticipantI’ve specified my scripts in server.cfg file like you suggested me but the only way to make them working is editing sudoers file with:
nx ALL=(ALL) NOPASSWD: ALL
But honestly I’d prefer something else since this is very unsafe. I’m waiting for some suggestion. Thanks to everyone!
August 26, 2024 at 14:38 in reply to: Help needed with custom scripts for XFCE desktop start/stop in NoMachine #49363RunAway189ParticipantThanks for your response, @Britgirl. My main goal is to conserve resources when I’m not using the GUI on my Debian server. Specifically, I want to ensure that when I disconnect from the NoMachine client, the Desktop Environment “shuts down” while keeping the rest of the server running.
Is my understanding correct? Should I focus on the
UserScriptAfterLogin
inserver.cfg
to achieve this, and ensure proper permissions and ownership for the usernx
?Thanks for the helpful links as well!
-
AuthorPosts