View Single Post
Posts: 385 | Thanked: 426 times | Joined on Dec 2009 @ Gothenburg, Sweden
#153
Originally Posted by maacruz View Post
But that breaks the script everywhere else. It is better to add both paths in you user's .profile (server side).
I have the same situation, using the NoMachine binaries, but in ubuntu.
So I tried adding the lines:
Code:
export LD_LIBRARY_PATH=/usr/NX/lib:$LD_LIBRARY_PATH
PATH=$PATH:/usr/NX/bin
...to the .bashrc file on the server side, but that didn't work (doesn't this ssh session read the .bashrc file? Hmm?
So, as of now I have also modified the snx script with the changed paths for nxagent and the libraries.

Any ideas here?

BTW, as a command to start a full gnome desktop on my server i use:

snx -d user@myserver gnome-session

It works, sure, but is that the correct command to use?
I mean, I thought -d was enough to get a desktop session, or is that -d meant just to put nx in fullscreen mode?

Sorry if I'm kind of slow in understanding this.