Reply To: No session on headless server

Forums / NoMachine for Linux / No session on headless server / Reply To: No session on headless server

#4120
Avatarcescarpa
Participant

I am running the free version of NoMachine 4-2-26 as display server in a opensuse 13.1, and same NoMachine version under OSX for the client side.

As the starting mail reports, i can access the linux server whenever it has a monitor connected, otherwise i get connected to a blackĀ  screen that does not allow me to login or access the server

I followed the configuration recommendations provided in the article https://www.nomachine.com/AR10K00710 and did not get it to work.

after executing:

COOKIE=ps -ef | md5sum | cut -f 1 -d " "
xauth -f ~/Xvfb-0.auth add :0 MIT-MAGIC-COOKIE-1 $COOKIE
xauth add :0 MIT-MAGIC-COOKIE-1 $COOKIE
Xvfb :0 -auth ~/Xvfb-0.auth -screen 0 1024x768x24 &
DISPLAY=:0 nohup /etc/gdm/Xsession gnome-session &

I can see the Xvfb running: (ps -ax |grep -i x)

but after i run
DISPLAY=:0 nohup /etc/gdm/Xsession gnome-session &
it results in an error shown in ~/.xsession-errors-:0

Invalid MIT-MAGIC-COOKIE-1 key/etc/X11/xim.d/es/40-ibus started sucessfully
Invalid MIT-MAGIC-COOKIE-1 keyxrdb: Resource temporarily unavailable
xrdb: Can't open display ':0'
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key
** (gnome-session-check-accelerated:13488): WARNING **: Could not open X display
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server

(gnome-session-check-accelerated:13488): Gtk-WARNING **: cannot open display: :0
Invalid MIT-MAGIC-COOKIE-1 key