Custom session does not work: xterm error

Forums / NoMachine for Mac / Custom session does not work: xterm error

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1722
    AvatarCeewhat
    Participant

    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

     

     

     

    #1783
    Avatarreza
    Moderator

    Please 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

    #1786
    AvatarCeewhat
    Participant

    cedric$ 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 directory

    on 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/Xsession

    Best,

    Cédric

    #1808
    Avatarreza
    Moderator

    Can you execute the same commands on server side?

    On CentOS 6.3 machine you mentioned before.

    #1809
    AvatarCeewhat
    Participant

    On the server side:

     

    cat /usr/NX/etc/node.cfg | grep DefaultXSession
    DefaultXSession /etc/X11/Xsession

     

    ls -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 directory

    #1858
    Avatarreza
    Moderator

    Thank 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”

     

    #2219
    AvatarCeewhat
    Participant

    Dear 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/Xsession

    however, I still get the same error message when trying to use custom session.

    any other thoughts?

    Thanks!

     

Viewing 7 posts - 1 through 7 (of 7 total)

No further information provided by the user for more than 10 days. This topic was marked as closed, you can't post.