If I logout from my remote Ubuntu machine, I am not able to login again. So I need to always make my remote machine to stay in login mode. How can I start remote ubuntu NoMachine server after logout or restart?
There could be a few things that can be at fault here.
1. Is the remote machine headless? Are you connecting to actual physical session?
If there is a problem with detecting physical session, the NoMachine will create a virtual one
to connect, and logging out would cause the session to shut down.
2. If there is actual physical session, please check if the Login Window is running Xserver
or Wayland. If it is Wayland, please try to disable it and see if that helps.
3. There is a rare case when Login Window is wrongly identified as running as different user.
Please check if after connecting to the server the view is set on “All desktops” instead of
If this does not help, please provide us with logs.
1) Yes it is headless. Ubuntu 18.04.02 created onVMware vSphere.
2) didn’t show Wayland. I use “echo $XDG_SESSION_TYPE” command and showed as: x11
3) I will send the log files as described above.
I connect to server and logged in. If I try to restart client machine with same logged in session; next login I get a white screen. I have to go to remote place (where is my VMware vSphere reside) and use VMware vSphere consle to login to machine. I come back and use NoMachine. This time shows white screen and pressing Enter key I can enter the remote machine.
Thanks @mth, yes it worked. I connect to remote machine apply the part that you wrote and restart the remote machine. The white screen was only 3 seconds and then login screen comes up. I enter my credentials and it looks like freezed about 5 seconds and I enter the machine. Small glitch but I can live with it. Thanks.