Specify which display to connect to

Forum / NoMachine for Linux / Specify which display to connect to

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #13869
    jn505
    Participant

    My Linux machine has two displays to choose from :0 and :1002.  Is there a way to specify what display I want my client to connect to without the user being prompted?  Is this setting specified on the client or the server?

    Thanks

    Environment: nxplayer 5.2.11

    #13879
    reza
    Participant

    Please take a look at ‚PhysicalDisplays’ key in node.cfg file.

    #13905
    jn505
    Participant

    Reza,

    I was looking into that (https://www.nomachine.com/FR10K02789) but I cannot seem to make it work.  Do I use this option on the node.cfg file located on the client or the server.  Also, if I do end up using this option and specify DisplayDefault :1002 , does it mean that my client can only connect to display 1002 and won’t be able to switch?

    Ideally I would like to have a connection file specifically for display 0 and one for display 1002.

    Thanks!

     

    #13923
    kroy
    Contributor

    Thanks for the report. We will look at it closer. Meanwhile you can uncomment and change the value in following key in the server.cfg file: DisplayBase 1003 (it mustn’t be 1003 but it needs to be bigger than  your greater display) or just create desktop with smaller display number to :1000.

    Also, if I do end up using this option and specify DisplayDefault :1002 , does it mean that my client can only connect to display 1002 and won’t be able to switch?

    Yes, exactly.

    Ideally I would like to have a connection file specifically for display 0 and one for display 1002.

    Unfortunately, it’s not possible to save the session file to autoconnect to a specify physical session. You will still be able to choose between those two displays though.

    #14242
    jn505
    Participant

    Kroy,

    Is there any other way to do this?  I really need the client to connect to a specific display.

    #14252
    Britgirl
    Keymaster

    jn505, I supposed you are using the free version on the server side. If you are using the free version on the server side, this will only ever allow you to connect to one of your display options (1 connection, 1 physical display). If you had a Workstation installed (which doesn’t limit the connections being created), for example, you would be given the option to choose which one you want to connect to rather than just one.

    #14256
    jn505
    Participant

    Britgirl,

    I am using the enterprise version. What I want to do is specify the display I want to connect to on the nxs file so that the user in not prompted for either display 0 or 1002.  In other words, I don’t want the user to know what display he/she is connecting to.

    #14259
    Tor
    Participant

    Hi. At the moment a physical desktop cannot be automatically selected by storing it in the NXS file.

    #14429
    fermulator
    Participant

    This is an issue. I can confirm that if GDM (login) or window session (i.e. gnome) crashes or is restarted, the display ID can change, and having NoMachine connect to the new one specifically is seemingly impossible, … when physical access is not possible at such a given moment, the user is forced to restart the entire system ;/

    #14463
    brotech
    Participant

    Hello,

    the PhysicalDisplays key in node configuration file allows to define a range of physical
    displays which are accepted, and all others will be ignored, so in your case range
    0-100 should be good enough.

    Regarding auto attach to physical desktop, nxserver needs to tell nxplayer that there
    is no other choice, which means you need to disable the possibility to create different kinds of sessions, and then nxplayer will auto attach to physical desktop.

    Rules are set per user, the user logged into the system, which is not necessarily the owner of the desktop. The set of rules, which you could set per user is for example:

    sudo /etc/NX/nxserver --ruleadd --class session --type unix-console --value no --user
    sudo /etc/NX/nxserver --ruleadd --class session --type unix-gnome --value no --user
    sudo /etc/NX/nxserver --ruleadd --class session --type unix-xsession-default --value no --user
    sudo /etc/NX/nxserver --ruleadd --class session --type windows --value no --user
    sudo /etc/NX/nxserver --ruleadd --class session --type unix-remote --value no --user
    sudo /etc/NX/nxserver --ruleadd --class session --type unix-application --value no --user
    sudo /etc/NX/nxserver --ruleadd --class session --type unix-default --value no --user
    sudo /etc/NX/nxserver --ruleadd --class session --type unix-xdm --value no --user
    sudo /etc/NX/nxserver --ruleadd --class feature --type enable-multinode --value no --user 

    If you apply this set of rules for, let’s say, user Adam, nxplayer will auto attach to physical desktop for user Adam. And it will still be possible for a different user to create virtual session. The rule without ”–user ” switch, will apply to all users.

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

This topic was marked as solved, you can't post.