NoMachine Support

Your questions answered

Knowledge Base

Searching in: Articles & FAQs
Filter the search results
Applies to:
Last update:
Searching in: Articles & FAQs
ID: AR07J00645
Applies to: NoMachine Server
Added on: 2012-07-20
Last update: 2019-02-01
How to run RDP sessions with NoMachine

RDP sessions are supported only on Linux by NoMachine Terminal Server and Enterprise Terminal Server.

RDP sessions, running in a NoMachine virtual desktop, are not enabled by default. To enable RDP virtual desktops, perform steps 1-4 below on the NoMachine server host.

Let's call:

host A, the NoMachine Linux host.

host B, the Windows Terminal Server host to be connected via RDP.


For multinode environments
In case of multi-node environments (NoMachine Enterprise Terminal Server + NoMachine Terminal Server Node), perform the same operations on each of the nodes where you want to run NoMachine RDP virtual desktops.

Step 1: Be sure you have an RDP client

Ensure that the RDP client is installed on host A.

NoMachine supports 'rdesktop' : http://www.rdesktop.org/

Step 2: Instruct NoMachine to launch the RDP client

On host A edit the /usr/NX/etc/node.cfg configuration file.

Specify path and name of the command to launch the RDP client: ensure that the CommandStartRDP key is not commented and set a proper value. For example:

CommandStartRDP "rdesktop -f"

If rdekstop is not in the path, specify full path to this command. For example:

CommandStartRDP "/usr/bin/rdesktop -f"

Step 3: Add RDP to the list of available session types in the node configuration file

On host A edit the /usr/NX/etc/node.cfg configuration file.

Uncomment and edit the AvailableSessionTypes key. Add value: windows if it is not present yet.

For example:

AvailableSessionTypes physical-desktop,shadow,unix-xsession-default,unix-gnome,windows

what's important is that the 'windows' keyword is present or RDP virtual desktop sessions will be not available.

Step 4: Add RDP to the list of available session types in the server configuration file

On Linux server A edit the /usr/NX/etc/server.cfg configuration file.

Uncomment and edit the AvailableSessionTypes key. Add value: windows if it is not present yet.

For example:

AvailableSessionTypes physical-desktop,shadow,unix-xsession-default,unix-gnome,windows

what's important is that the 'windows' keyword is present or RDP virtual desktop sessions will be not available.
 

Step 5: Launch the NoMachine RDP virtual desktop

 

How to connect by the client

On the user's machine, launch NoMachine (client) and create a new connection.

In the 'Host' field specify hostname or IP address of host A. 

Launch the connection, in the login form provide username and password of a user account enabled to log-in to host A.

Once connected to the NoMachine server on host A, click on 'Create a new desktop or custom session'. 

Then choose 'Create a new RDP virtual desktop'.

In the 'RDP remote desktop panel' provide data to connect to the Windows server on host B.

In the 'Server' field specify hostname or IP of the Windows server and eventually specify its Domain.

In the 'Authentication' menu choose how to authenticate to the Windows server. You have these options:

a) Use the NoMachine user's credentials -> i.e. use the same credentials used to log-in to host A

b) Show the Windows login screen -> i.e. connect to the Windows logon screen

c) Ask for login credentials -> i.e. provide credentials for an account enabled to log-in to Windows server

If  version of rdesktop supports single applications, it's also possible to define the 'Session type': the full remote Windows desktop ('Desktop')  or a single application ('Application') specified in the 'Application name' field.

Tip:

by clicking on 'Save this setting in the connection file', all data will be re-used next time.

 

How to connect by the web

Open a browser and point it to:

http://serverName:4080

where serverName is hostname or IP of host A.

In the login form provide username and password of a user account enabled to log-in to host A.

Once connected to the NoMachine server on host A, click on 'Create a new desktop or custom session'. 

Then choose 'Create a new RDP virtual desktop'.

In the 'RDP remote desktop panel' provide data to connect to the Windows server.

In the 'Server' field specify hostname or IP of the Windows server and eventually specify its Domain.

In the 'Authentication' menu choose how to authenticate to the Windows server. You have these options:

a) Use the NoMachine user's credentials -> i.e. use the same credentials used to log-in to host A.

b) Show the Windows login screen -> i.e. connect to the Windows logon screen

c) Ask for login credentials -> i.e. provide credentials for an account enabled to log-in to Windows server

If  version of rdesktop supports single applications, it's also possible to define the 'Session type': the full remote Windows desktop ('Desktop')  or a single application ('Application') specified in the 'Application name' field.

Since v. 6, it's possible to pre-configure web sessions: https://www.nomachine.com/DT10O00160 .