Forum / NoMachine for Mac / Custom session does not work: xterm error
Tagged: custom session, mac
- This topic has 6 replies, 2 voices, and was last updated 10 years, 10 months ago by Ceewhat.
-
AuthorPosts
-
January 16, 2014 at 14:58 #1722CeewhatParticipant
Dear Nomachine,
I’ve been using nx for a number of years without any problems. However, when I updated to version 4 I found myself a number of issues. Most of them have been solved, but there is still an error with the custom session and scaling of the resolution when using the same session on different computers.
When I connect with a custom session, I keep getting the following error:
Cannot run /ect/X11/Xsession
Please enure that the requested path is in the system PATH and that you have the appropriate credentials to run it. (for floating window selection)
OR
Cannot run ‘xterm’ Please enure that the requested path is in the system PATH and that you have the appropriate credentials to run it. (for virtual desktop selection)
The suggested workaround mentioned in: https://www.nomachine.com/TR10K03974 does not seem to work.
When I type ‘xterm’ locally in my terminal window, this works fine.
I encounter these problems with nx version 4.0396 for Mac, both on OS X 10.6.8 and 10.7.5.
Remote machine is a Linux CentOS 6.3 (gnome) version running NXSERVER-4.0.369 small business server subscription.
Any thoughts on this would be appreciated.
Many thanks,
Cédric
January 21, 2014 at 09:52 #1783rezaParticipantPlease execute the commands listed below and paste the output.
cat /usr/NX/etc/node.cfg | grep DefaultXSession
ls -l /etc/X11/xdm/Xsession /etc/X11/Xsession /ect/X11/Xsession
January 22, 2014 at 15:00 #1786CeewhatParticipantcedric$ cat /usr/NX/etc/node.cfg | grep DefaultXSessioncat: /usr/NX/etc/node.cfg: No such file or directory
cedric$ ls -l /etc/X11/xdm/Xsession /etc/X11/Xsession /ect/X11/Xsession
ls: /ect/X11/Xsession: No such file or directory
ls: /etc/X11/Xsession: No such file or directory
ls: /etc/X11/xdm/Xsession: No such file or directoryon both my iMac and MBP I get the same output. X11/XQuartz is installed in either /Applications/Utilities/XQuartz or /Applications/Utilities/X11.
the Xsession file is present here:
/opt/X11/lib/X11/xdm/Xsession
/usr/X11/lib/X11/xdm/XsessionBest,
Cédric
January 22, 2014 at 15:42 #1808rezaParticipantCan you execute the same commands on server side?
On CentOS 6.3 machine you mentioned before.
January 22, 2014 at 21:40 #1809CeewhatParticipantOn the server side:
cat /usr/NX/etc/node.cfg | grep DefaultXSession
DefaultXSession /etc/X11/Xsessionls -l /etc/X11/xdm/Xsession /etc/X11/Xsession /ect/X11/Xsession
ls: cannot access /etc/X11/xdm/Xsession: No such file or directory
ls: cannot access /etc/X11/Xsession: No such file or directory
ls: cannot access /ect/X11/Xsession: No such file or directoryJanuary 24, 2014 at 15:20 #1858rezaParticipantThank you Ceewhat
Looks like default X session script is badly configured.
Please try to locate a Xsession files in your /etc dir:
find /etc -name Xsession
And set correct key in node.cfg, for example:
DefaultXSession “/etc/X11/xinit/Xsession default”
February 10, 2014 at 15:03 #2219CeewhatParticipantDear reza,
our system admin followed your suggestions:
root:~ # cat /usr/NX/etc/node.cfg | grep DefaultXSession
# DefaultXSession /etc/X11/Xsession
DefaultXSession /etc/X11/xinit/Xsession default
root:~ # find /etc -name Xsession -exec ls -l {} \;
-rwxr-xr-x 1 root root 3563 Aug 17 2010 /etc/X11/xinit/Xsession
lrwxrwxrwx 1 root root 21 Jul 16 2012 /etc/gdm/Xsession -> ../X11/xinit/Xsessionhowever, I still get the same error message when trying to use custom session.
any other thoughts?
Thanks!
-
AuthorPosts
No further information provided by the user for more than 10 days. This topic was marked as closed, you can't post.