[Update, 2 December 2005]
On a Kubuntu Breezy 5.10 box, when attempting to launch nxclient (/usr/ ), I received this error message: “nxclient unable to create the x authorization cookie.” I found the fix here. This entry in that thread contains the fix (italicized, emphasis mine):
spikkle
10-02-2005, 10:09 AM
I was able to make it work by taking the following steps:
Install all FreeNX packages from here from the deb packages you are allowed to download:
http://blackbird.kaarsemaker.net/
Install the nxclient deb package from:
http://www.nomachine.com/download_client_linux.php
If you get a message to the effect of “Unable to create X authority” or something like that, then for me the problem was that it was looking in an (outdated) incorrect location for the ‘xauth’ program. Run these commands:
cd /usr/X11R6/bin
sudo ln -sf /usr/bin/xauth
This will make a link to the xauth program in the location it expects it to be in. At this point the client worked fine for me.
Good luck.
Just prior to that, I encountered an error which prevented the nxclient from loading at all. I ran the client from the command line so that I could see error messages, and this appeared: “nxclient: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory.” I found the fix here.
The relevant post read:
The file you are looking for is in this package libstdc++2.10-glibc2.2
Get it from universe.
So, in a shell, I typed: sudo apt-get install libstdc++2.10-glibc2.2
One last note (sorry to do this in reverse order, but I just wanted to get this down where I’d be able to find it later): I needed to copy a key for the nxclient to use from the server to the client box. Freenx / nxserver use ssh to connect, and ssh requires an encrypted key pair, one for each box that participates in the session. When setting up the nxclient, you need to go to [the appropriate directory on the server] and copy the key over to your client’s /usr/NX/share directory (location may differ depending on which distribution you’re using).
One last, last note: I set up nxserver using Rick Stout’s excellent nxserver fedora setup instructions.
Another (really! the last!) note: in the last sentence of this post is a link about where the keys are located. Also, my update repeats what I had said earlier, in part — I was setting up another Kubuntu Breezy box, and had apparently run into this problem before, and forgotten.
[End update]
This post contained a fix for the “nxclient cannot open shared object” error that I received when trying to open in Kubuntu Breezy/5.10.
The relevant post reads:
Re: HOWTO: Can I use FreeNX with Ubuntu? - 4 Weeks Ago
In my original question I asked:
Quote:
Originally Posted by tlepes
Anyone here got nxclient working on Breezy? I used Seveas’s guide on the WIKI https://wiki.ubuntu.com/FreeNX but get this error when runnin nxclient on the client machine:
Code:
/usr/NX/bin/nxclient: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
Searching Synaptic I only find up to C/C++ 6.0 (methinks). Am I doing something wrong? Do I need to try compiling nxclient from source?
I got a fast response from “bob2″ in the #ubuntu channel on freenode IRC. He pointed me to a web page with search results for the missing library file “libstdc++-libc6.2-2.so.3″ that showed what packages it was. Issuing the following command solved my problems getting nxclient to run:
Code:
sudo apt-get install libstdc++2.10-dbg libstdc++2.10-glibc2.2
On further reflection, I suppose I could have gotten the missing library file by just installing one or the other, as opposed to installing both libstdc++2.10-dbg and libstdc++2.10-glibc2.2 packages.
That package search was very cool. I poked around a bit on the website and figured that bob2 must have used the “Search the contents of packages” section of this page: http://packages.ubuntu.com/#search_contents
I also made this comment earlier, which I still believe may be a source of trouble for people later on:
Quote:
Originally Posted by tlepes
I noticed that in synaptic the nxclient does not show anything listed for “dependencies”. Maybe this is a problem with the deb in Seveas’ repository?
Now lets see if we can get this mutha humming…
Other resources that might help (right now I’m getting an authentication error):
ltsp freenx wiki setup page
lug.mtu freenx wiki page
post on nx’s authentication keys and the directories to get from on server and to put in on client. The relevant excerpt:
> >> You will need to tell your NX windows client to use they private key
> >> that FreeNX created during installation. FreeNX creates a
> >> private/public key pair, and stores the private key into
> >> /var/lib/nxserver/nxhome/.ssh/client.id_dsa.key, and the public key
> >> into /var/lib/nxhome/.ssh/authorized_keys2.
> >>
> >> You’ll have to install the private key stored in
> >> /var/lib/nxserver/nxhome/.ssh/client.id_dsa.key into your Windows NX
> >> client. Don’t have a clue on how to do this, but for the Linux NX
> >> client is as simple as copying that file into
> >> /usr/NX/share/client.id_dsa.key.
Note that on my FC4 server the key directory was named:
/var/lib/nxserver/home/.ssh
Desination directory on host (Kubuntu/Breezy 5.10) was named:
/usr/NX/share
Another pretty good page for troubleshooting nx ssh authentication problems