Forum / NoMachine for Linux / Specify which display to connect to
- This topic has 9 replies, 7 voices, and was last updated 7 years, 8 months ago by brotech.
-
AuthorPosts
-
February 24, 2017 at 09:47 #13869jn505Participant
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
February 24, 2017 at 11:52 #13879rezaParticipantPlease take a look at ‚PhysicalDisplays’ key in node.cfg file.
February 28, 2017 at 08:58 #13905jn505ParticipantReza,
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!
February 28, 2017 at 15:50 #13923kroyContributorThanks 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.
April 4, 2017 at 14:23 #14242jn505ParticipantKroy,
Is there any other way to do this? I really need the client to connect to a specific display.
April 4, 2017 at 14:44 #14252BritgirlKeymasterjn505, 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.
April 5, 2017 at 08:02 #14256jn505ParticipantBritgirl,
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.
April 5, 2017 at 12:15 #14259TorParticipantHi. At the moment a physical desktop cannot be automatically selected by storing it in the NXS file.
April 18, 2017 at 08:52 #14429fermulatorParticipantThis 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 ;/
April 18, 2017 at 15:38 #14463brotechParticipantHello,
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.
-
AuthorPosts
This topic was marked as solved, you can't post.