Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-17-2012, 10:40 AM   #1
LQ Newbie
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Nomachine "NX> 596 ERROR: Could not generate cookie: ."

Distribution: OpenWrt, custom

I am using Nomachine NX for headless control, shadowing existing desktop.

Success scenario:

After boot, if, manually as root on server machine do:

"startx &", then SUCCESS, can remotely control server desktop

if, however, I place in rc.local for unattended X startup

"startx &" OR "su root -c startx &" then, FAIL with:

Nomachine "NX> 596 ERROR: Could not generate cookie: ."

this is bizarre, because rc.local is run as root, but, I suspect that something in the environment is different between the two startx invocations.

anyone "have a clue", which I am lacking?
Old 03-23-2012, 05:18 AM   #2
LQ Newbie
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Solved: NX> 596 ERROR: Could not generate cookie: .

Sorted this out. Works, but testing not complete.

If you get the "NX> 596 ERROR: Could not generate cookie: ." error,
the first thing to try is

"rm -f /home/nxuser/.Xauthority"

This was insufficient for me, so I had to:

1 - Completely uninstall NoMachine NX on server
2 - rm -rf /usr/NX
3 - remove user nx and any nxuser and their home directories defined

add nxuser
re-install NX on server

in rc.local:

rm -f /home/nxuser/.Xauthority
su root -c startx &

where nxuser is the client user YOU have defined.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A "guide" to set NoMachine NX (3.5.x) up on Debian Wheezy (and possibly others) pusrob Linux - Software 1 12-09-2011 11:49 AM
NoMachine NX Client for Windows Displays "Connection Error" when logging in rhen18 Linux - Software 1 01-01-2010 12:09 PM
Nomachine nxclient error: Xlib: connection to ":0.0" refused linux_junky SUSE / openSUSE 7 02-11-2009 03:45 PM
Rewriting "Set-cookie:" http header field J_Szucs Linux - Networking 3 08-06-2007 04:10 AM
Generate alert with "CPU load average" "CPU utilization" viky Linux - Hardware 3 07-25-2007 04:24 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration