January 6, 2020 at 11:43
#25098
Hello everybody,
I’m trying to remotely access a Linux machine (server, Mint 19.2 (Tina) Cinnamon) through my (gaming) PC which is a Windows machine (client, 10 Pro x64). So if this is supposed to be in the Windows subforum I’m sorry. Maybe a mod or admin could place it there if this is the case!?
So I can’t login on my Linux machine from my Windows machine. NoMachine (I’m using the free version) shows the Linux machine, so that’s not the problem. Just when I try to login with the credentials of my Linux machine I get the error: “Authentication failed, please try again.”.
So I edited the server.cfg file (first only on the Linux machine, later both) and changed these settings:
#EnableUserDB 1
#
EnablePasswordDB 1
at the bottom of the server.cfg file:
# Host 192.168.1.12
# Port 4000
# User *****
# Password *********
But I’m still getting the same error. I also added a new user on the Linux machine in the terminal with this command:
sudo /usr/NX/bin/nxserver –useradd *****
I also restarted the server in between each change. What am I still missing?
And also, how can I restore the settings.cfg file back to default? I know… I should have made a duplicate (back up) before editing it, but I forgot.
Reason I’m asking this last thing, is because I think I used the wrong username of my Linux machine when I tried to login. So I could also still try that with the parameters in the settings.cfg returned to default. But I would like to learn how to change the login credentials regardless as I feel this might be useful in the future.
Hope somebody can help me out, thanks in advance! 🙂
January 7, 2020 at 17:45
#25138
So someone on Reddit told that I should remove the brackets, so I did and now it looks like this:
#
# When WebRTC is enabled, set parameters for STUN/TURN utilities to
# permit NAT traversal for peer to peer direct video, audio and data
# streaming. Replace ‘hostname’ and ‘portnumber’ with the ip or host
# name of the network server; replace ‘username’ and ‘password’ with
# username and password to be used for authenticating to such server.
# If a TURN server has to be contacted, duplicate section below, set
# it to Section “TURN” and provide the appropriate values for Host,
# Port, User and Password parameters. Define multiple sections for
# different STUN or TURN servers to provide an alternative server
# in case the first of the list is not reachable.
#
# Section “STUN”
#
Host 192.168.1.12
Port 4000
User username
Password password
#
# EndSection
But it still doesn’t work. So I must still be doing something wrong. Even the server on my Linux Machine gives the authentication error now:
Hope somebody can help me out…
January 8, 2020 at 11:53
#25154
Hello
First thing about NoMachine config, the information you got is correct, when you set it like that:
#EnableUserDB 1
#
EnablePasswordDB 1
Even if you change the EnableUserDB key to 1, the whole line is still treated as comment line and ignored. You need to get rid of ‘#’ character for config line to be parsed.
Second, at the bottom of the config file, the Section “Server” and Section “STUN” are only when you are connecting to the server using web interface (usually through a web browser) and not NoMachine player application. And for standard usage the modifications here are usually
not required.
Also if you are using free version, the HTTP protocol is disabled, so those fragments can be simply ignored.
Then for the config file backups, I’m afraid there is no way to restore it in easy way. We provide some generic cfg.sample files, but the main .cfg are created during the installation procedure depending of operating system configuration. In other words, you can restore some of the keys by comparing
.cfg to .cfg-sample files, but the most important ones have to be created on installation.
And for the problem. Part of it of course may be that currently you have EnableUserDB key commented and by default it is set to 0. Although when EnablePasswordDB is set to 1 it should not provide the problem with login.
First what does EnablePasswordDB do. If it is set to 0, you can connect to the NoMachine server using any user account that is on that operating system by providing its username and system password.
When you set it to 1, by default you will not be able to connect at all.
So by doing ‘sudo /usr/NX/bin/nxserver –useradd *****’ you have provided the NoMachine database with the user.
When doing so you should have been prompted by the:
nxserver --useradd test
NX> 906 Setting password for user: test.
NX> 251 Password:
NX> 102 Confirm password:
NX> 110 Password for user 'test' has been added to the NX password DB.
And now, as long as EnablePasswordDB is set to 1, you need to provide this new password to connect.
There is a problem though, if you added that user before setting EnablePasswordDB to 1, there would have
been no new password prompt, and the user would not have its NoMachine password provided.
You would need to do the useraddd command again to fix it.
There is one exception to this, when using SSH connection protocol you still need to provide system password as per the SSH configuration, then after this you will be again prompted by the NoMachine password question.
So for now please try those things:
1. Remove the ‘#’ from server.cfg ‘#EnableUserDB 1’ line.
2. Run ‘sudo /usr/NX/bin/nxserver –useradd <username>’ again and see if you have password prompt, if yes, please
provide it and use that password to login. Be sure you are using NX protocol.
3. If still no use please run ‘sudo /usr/NX/bin/nxserver –passwd <username>’ and set new password again, just to rule
out there was no typos, and use that password to login.
4. If it still does not work, please set in server.cfg
EnableUserDB 0
EnablePasswordDB 0
And try to login using the system credentials.
5. If that attempt also fails, there may be more to this problem, and we would like to see the logs as there might me unexpected bug behind this.
Article on how to collect logs:
https://www.nomachine.com/DT10O00163 (“How to gather debug logs for support requests”)
Please enable the debug and then try to login again and send the logs to forum[at]nomachine[dot]com using the title of that forum’s thread as the mail’s subject.
/Mth
January 11, 2020 at 09:12
#25192
Hello,
Thanks for the reply! I’m aware of the differences between STUN and Server, I just copied the wrong part. But since every post has to await moderation I couldn’t edit it anymore.
Logging in with system credentials simply doesn’t work (with EnableUserDB and EnablePasswordDB set to: 0). I want to control my Linux machine remotely, so I checked my username with the command: whoami (= oem (no clue why, haven’t chosen this myself)
I have to use my password often in Linux for certain proceedings, so there can’t really go much wrong there I feel (nothing?).
2. Run ‘sudo /usr/NX/bin/nxserver –useradd <username>’ again and see if you have password prompt, if yes, please
provide it and use that password to login. Be sure you are using NX protocol.
After that I get:
[sudo] password for oem:
Once I set that it seems to be good. I get a lot of info, but no errors or such it seems. At the bottom it says: Run a new nxserver shell.
When I run NoMachine server on the Linux machine it looks like this:
So it does mention ‘Changes disabled’ at the left bottom. I don’t feel that always has been there.
When I try to login on the Windows client now I get the same error. Just to be clear… I edited the server.cfg fiel on both machines the same way! I assume that this is correct?!
4. If it still does not work, please set in server.cfg
When changing EnableUserDB and EnablePasswordDB back to 0 (zero) and try to login using the system credentials (so user: oem + password) I also still get the same error.
Again to be sure, I changed both server.cfg files. The one on the Linux machine (server) and the Windows machine (client). And only before EnableUserDB, EnablePasswordDB and the server details I removed the # symbol. All the other text still has the # symbol in front of each line.
I made a compressed archive of the .nx directory and I will e-mail this. There is no nxtrace.log present/generated.
January 13, 2020 at 09:13
#25193
I just now see that I get an error for this command:
sudo /usr/NX/bin/nxserver –useradd <username>
After I try to set the password I get the following error:
NX> 500 ERROR: Invalid command: ‘-useradd’
And then followed by a lot info about the various commands and options. So in hindsight, something has gone wrong at this step it seems…
January 13, 2020 at 16:29
#25214
Hello
I’m sorry, this forum seems to change double “-” signs to this big “–” when not written in code tags. The commands to use are:
sudo /usr/NX/bin/nxserver --useradd <username>
sudo /usr/NX/bin/nxserver --passwd <username>
But it seems this does not matter in this case.
I’m sorry I have not noticed before, but on that screenshot you sent you are in a completely wrong page.
This is not an connection attempt to the remote machine. This is an attempt to change settings on the server for the local machine.
If you click on this “lock icon” and the “Changes disabled”, you should get prompt for the local administrator account and password to enable the
settings changes, same if you try to change anything.
I am really not sure what is the case here, but to connect to another machine please use “New connection” instead of “Service status”
screen from the monitor tray icon, or use ‘nxplayer’ application.
/Mth
January 15, 2020 at 09:07
#25233
I’m sorry I have not noticed before
No problem of course!
This is not an connection attempt to the remote machine. This is an attempt to change settings on the server for the local machine.
That is correct, but since I noticed that “Changes disabled” lock icon there. Which I never seen before, I thought I made a screenshot of that.
A screenshot of the Windows Client saying “Authentication failed, please try again.” didn’t seem necessary to post here.
I’m not quite sure what you mean with “use New connection” or the “nxplayer” application. Here are two screenshots of what I’m seeing in the Windows client:
So nothing strange there, except the error of course. I emailed the log like you said. Have you any idea what kind of ETA I can expect on an answer?
Thanks again for the reply!
Attachments:
January 15, 2020 at 17:15
#25243
Hello.
The player logs had nothing really meaningful, so I think we need the server side logs here.
Please check the system logs. For mint system the /var/log/auth.log should
say if the logging attempt was blocked by the system (entries for nx:auth).
Also as the nx service uses su module for authorization, please provide us the /etc/pam.d/su module
configuration. Also please note that if authorization uses Kerberos tool, you need to specify it before
connecting in the player (connection details -> advanced).
And at last please provide the NoMachine server logs. As your server is on Linux, please refer to point
‘1.1. Server on Linux’ of the article
https://www.nomachine.com/DT10O00163
Please enable logs, try to connect and then gather the logs. Send them to us just like before.
/Mth
January 27, 2020 at 08:46
#25381
Hi,
Sorry for the late response.
I tried to do what you said. In var/log there is no auth.log file…
I can’t find ‘connection details/advanced’ in the player (that is the Windows client right?)
I used the following command as mentioned in the ‘How to gather debug logs for support requests’ from the Knowledge Base.:
oem@Zenith:~$ sudo tar cvfz NoMachine-log.tar.gz /usr/NX/var/log
[sudo] password for oem:
tar: Removing leading `/’ from member names
/usr/NX/var/log/
/usr/NX/var/log/archives/
/usr/NX/var/log/nxd.log
/usr/NX/var/log/logrotate/
/usr/NX/var/log/node/
/usr/NX/var/log/nxinstall.log
/usr/NX/var/log/nxserver.log
/usr/NX/var/log/nxerror.log
oem@Zenith:~$
This produced the following files and folders (if not already present before I executed the command):
folders: archives, logrotate, node
files: nxd, nxerror, nxinstall, nxserver (all .log)
I can’t copy/paste nxerror.log and nxserver.log to my NAS or Windows machine. I get the following error:
Error opening file /usr/NX/var/log/nxerror.log: Permission Denied. Despite elevated privileges in the log folder.
I also can’t find the /usr/NX/etc/pam.d/su module configuration. There is nothing located with the name ‘pam.d’ in the etc folder.
Where do I go from here?
Thanks in advance
February 4, 2020 at 10:56
#25470
Hello.
Unfortunately NoMachine logs cannot be read by a normal user, even if the directory
rights are proper. You will need sudoer or root account to access and copy them.
You can also use the command
etc/NX/nxserver --debug --collect
to make NoMachine collect and package them itself, but this command also requires
the sudo/root access.
As for the pam.d directory, it is not NoMachine configuration, but rather system
configuration, so it will not be in ‘/usr/NX’, but in system directory ‘/etc’.
/Mth
February 7, 2020 at 11:52
#25517
Thanks for the reply!
I tried the commands:
etc/NX/nxserver --debug --collect
and
etc/NX/server --debug --collect
since there’s no ‘nxserver’ folder in NX, just ‘server’. Both give me this outcome:
bash: etc/NX/(nx)server: No such file or directory
I also tried both commands with sudo in front of it, but that gives me this message:
sudo etc/NX/(nx)server: command not found
The only folder present in the ‘server’ folder (in etc/NX) is ‘localhost’.
I DID find the /etc/pam.d folder and found a file called ‘su’. So I copied that to a folder where I save the files needed to provide. But still no luck on collecting the logs from the Linux server… and since I doubt I have a root account or sudoer (?) how will I ever be able to collect the files/logs that you need to be able to help me out?
I CAN provide the files: nxd.log, nxinstall.log and su. Would that be of any help?
Thanks in advance
February 12, 2020 at 10:44
#25614
Hello
Sorry for the confusion, the proper command would be:
sudo /etc/NX/nxserver --debug --collect
This command should point you to the generated archive, like:
NX> 900 Archive is: /usr/NX/var/log/archives/NoMachine-log-2020.02.12-10.28.14.zip
Please send this archive and the ‘su’ file to forum[at]nomachine[dot]com using the title of that forum’s thread as the mail’s subject.
/Mth
February 26, 2020 at 08:33
#25766
Sorry for the late response, I was able to collect the debug archive this time. I feel so stupid for forgetting the forward slash before ‘etc’… complete Linux newbie here.
I mailed the files like you said, can’t wait for the response 🙂
Thanks in advance
March 2, 2020 at 10:21
#25817
Zenith, did you not send the logs in the end? We haven’t received them.
March 3, 2020 at 08:59
#25825
Hello Britgirl,
I did send the e-mail on 25 February 2020 on 14:53u (or 02:53 pm) to forum[at]nomachine.com and it’s marked as sent. I didn’t receive an error, so it seems it has arrived. I used this as title: ‘Can’t login “Authentication failed, please try again.” (Linux forums)’.
So I added the ‘(Linux forums)’ part to the title, could that be the problem? Should I send it again?
Please let me know, thanks in advance!
I followed this link (https://www.nomachine.com/AR10K00728) to try to connect by ssh. But after those setting, when I login in the NoMachine client GUI, I always meet «Authentication failed» after entering my username and password. Any suggestions on this? Thanks in advance.
Dan
asked Jan 10, 2014 at 1:39
1
Either your NoMachine app is not allowing your username or the ssh server on your NoMachine host is actually not allowing Password authentication.
Try enabling the PasswordAuthentication yes
options in the /etc/ssh/sshd_config file and restart the ssh server. i.e service ssh restart
answered Jan 10, 2014 at 1:47
RicoRico
57.8k12 gold badges110 silver badges141 bronze badges
1
If you encounter errors like NoMachine doesn’t connect or NoMachine connection refused, their support funnel requires customers to send a message directly to tech support, or describe the issue on their forum. From there, customers are provided with several solutions:
- • Set debug log level manually
- • Reproduce the problem
- • Create the compressed archives of logs
- • Send the archives to NoMachine Support Team via e-mail
- • Request NM Support provide a place to upload logs if file sizes exceed what can send as an e-mail attachment
This can take a while, but makes it much easier to define the most effective way to resolve the issue. To expedite a NoMachine not connecting solution (and more) before reaching out to IT support, check out a few of the following self-service methods provided in this article. We also suggest you read the NoMachine vs. RealVNC comparison article, as well as the NoMachine vs. TeamViewer comparison.
Error 107: NoMachine Connection Refused
Along with the other issues (like NX NoMachine session failed or NoMachine no monitor) Error 107 most often means the client-side of the connection isn’t able to access NoMachine’s service (which is located on the remote host.) Follow the steps below to try correcting this without involving NM support.
Method 1: Make sure the correct IP and Port are set correctly (Do this on NoMachine’s User Interface by opening Server Preferences > Services tab while operating the host that needs access permission).
Method 2: Ensure firewall configurations on the server and client machines aren’t causing the problem (usually firewalls aren’t the root issue if it’s native to the operating system being used).
Method 3: Review the nxserver status on the server machine (Do this by opening the Server Preferences (Server Preferences > Services tab) and ensuring status is set to ‘Running’).
How to open NoMachine ‘Server Preferences’
Users may need to access the GUI (Graphical User Interface) to manage the server and configure custom settings. There are two ways to accomplish this:
Method 1
- • Step 1: On the system tray, click the “!M” icon to open the menu
- • Step 2: Click Show the service status > Server preferences
Method 2
- • Step 1: Run NoMachine from your program menu
- • Step 2: Click Settings > Server preferences (a link located in the bottom panel)
Note: NoMachine’s Server preferences UI (User Interface) consists of six tabs to transfer the available configuration panels: Services, Security, Devices, Transfers, Performance, and Updates.
“NoMachine authentication failed, please try again” Error
Step 1: First ensure the connection is reaching the intended machine (the one located at a workplace, for example).
Step 2: Examine the nxd.log file to check for any info regarding incoming connections (during the attempted connection) is the only way to accomplish this.
Step 3: If there’s no incoming connection, configure access to the appropriate machine via setting up a firewall or NAT router.
If NoMachine (server) computers are behind a firewall or NAT router, NoMachine attempts to use protocols UPnP or NAT-PMP (based on what the router supports).
It does this to:
- • Retrieve the host’s public or external IP
- • Set up routers to permit NoMachine clients to connect from beyond the private network
All types of servers support the UPnP/NAT-PMP port mapping, but only personal/small environment products enable it by default.
UPnP/NAT-PMP port mapping enabled by default:
- • NoMachine Free Edition
- • NoMachine Workstation
- • NoMachine Small Business Server
UPnP/NAT-PMP port mapping disabled by default:
- • NoMachine Enterprise Desktop
- • NoMachine Terminal Server
- • NoMachine Enterprise Terminal Server
- • NoMachine Cloud Server
- • NoMachine Enterprise Server v. 5 and 4.
How it resolves potential issues:
UPnP or NAT-PMP port mapping services only function when:
- • It’s enabled within the server configuration
- • The router offers UPnP or NAT – PMP support
- • UPnP or NAT-PMP is enabled
- • The router accepts UPnP — or NAT-PMP commands to allow port forwarding
Please note:
Regarding point 4 (“The router accepts UPnP or NAT-PMP commands to allow for enabling port forwarding”).
If the router won’t support UPnP or NAT-PMP commands, users must manually set it up via the administrative interface.
Those using the free edition of NoMachine must open port 4000 on the router, then map it to the public IP address of the NoMachine (server) host.
The ports that must be opened and mapped to public IP addresses on the host are:
- • 4000 for connections using the NX protocol
- • 22 or 4022 on Windows for connections using the SSH protocol
- • 4080 and 4443 for web connections
Note: The default port values are editable via server admin UI on NoMachine.
Step 1: From the system tray, click the “!M” icon to open the menu.
Step 2: Select ‘Show the service status’ (‘Connections’ or ‘ Server status’ via versions 5 and 4).
Step 3: Open ‘Server preferences’ (previously referred to as ‘Connection preferences’ on the free version of NoMachine versions 5 and 4).
Step 4: Open the Services panel.
Enabling UPnP/NAT-PMP port mapping
NoMachine Free Edition users must edit their server configuration file (namely server.cfg) and set:
Step 1: Enable UPnP NX for users connecting with the NX protocol
Step 2: Restart NoMachine
How users can configure this via the UI on the server’ machine:
Step 1: From the system tray, click the “!M” icon
Step 2: Select ‘Show the service status’
Step 3: Hit the ‘Restart the server’ button
The following options are available on NoMachine subscriptions:
EnableUPnP NX: For those connecting with the NX protocol
EnableUPnP SSH: For users connecting to the SSH protocol
EnableUPnP HTTP: Regarding web connections scenarios
How to disable UPnP/NAT-PMP port mapping:
Step 1: From the server configuration file (server.cfg) set: “EnableUPnP none”
Step 2: Restart NoMachine
Server connections are still possible — but only if server hosts (and end-user pc/devices) share the same local LAN — or if the server uses a public IP address.
How to Locate the server.cfg file
The configuration files for the server (server.cfg) are displayed below. For those using version 5 and under, if they have Cloud Server installed, their web players also provide a configuration file (“cloud.cfg.”)
From versions 6 and on, web session keys are included in server.cfg—and the cloud.cfg file is gone.
Configuration files are kept in the ‘etc’ directory, under NoMachine’s installation directory:
/usr/NX/etc/server.cfg on Linux
InstallationDirectory/NoMachine/etc/server.cfg on Windows
(e.g. C:Program files (x86)NoMachineetcserver.cfg)
/Applications/NoMachine.app/Contents/Frameworks/etc/server.cfg on Mac.
NoMachine No Audio Troubleshooting Solutions
Here are a selection of common audio/microphone issues that happen when running NoMachine physical desktops or virtual desktops/custom sessions via RHEL-based systems such as CentOS 7.
What to do if audio is missing in a NoMachine session:
- Step 1: Download PulseAudio Volume Control.
- Step 2: Run PulseAudio Volume Control.
- Step 3: Navigate to “Output Devices”.
- Step 4: Click the “Set as fallback” (a green button beside the built-in Audio Analog Stereo).
- Step 5: Increase the sound level.
Missing audio—NoMachine audio devices are not available:
If there’s still no audio after using PulseAudio Volume Control to increase, check whether NoMachine audio devices are actually available on the system.
Execute the following in a terminal:
pactl list sources | grep NoMachine
pactl list sources | grep nx
If the list is empty, users can recreate NoMachine sinks and sources by doing the following:
Step 1: End the PulseAudio process (this automatically creates a new process)
Execute in a terminal:
pulseaudio -k
Step 2: Restart the NoMachine server.
Execute in a terminal:
sudo /etc/NX/nxserver --restart
NoMachine Error: NoMachine Cannot Create a New Display/Negotiation Failed
If Linux users receive the following message when attempting to connect with a Linux host:
“The session negotiation failed. Error: Session failed, application terminated prematurely.”
… this can mean that programs/apps run by the NoMachine node (i.e. the desktop environment or a custom application) end immediately after initiating.
This can occur when the command that launches the desktop (or the custom app) is inaccurate.
The command that starts a Linux desktop environment is defined in the DefaultDesktopCommand key—within the node configuration file (“/usr/NX/etc/node.cfg.”)
For example: DefaultDesktopCommand “/etc/X11/Xsession ‘gnome-session –session=ubuntu’”
To check if the command is accurate, perform the following:
Step 1: Figure out which desktop environment is installed on a system by executing the following terminal command:
“ls /usr/share/xsessions”
Step 2: Retrieve the command to run the desired desktop. The command is shown in the *.desktop file in the line beginning with “Exec.”
For example:
grep ^Exec /usr/share/xsessions/gnome.desktop
returns:
Exec=gnome-session
Step 3: After retrieving the command, check that it’s set in the DefaultDesktopCommand key in node.cfge:
“DefaultDesktopCommand gnome-session”
Users don’t need to restart the server because the changes go into effect as soon as the new session starts.
Regarding custom sessions, the application running the node is specified within the UI of the client. For example: ‘Run the console‘ or the app set in ‘Run the following command‘.
When the program/software ends immediately, the following error gets reported inside the connection log file:
NX> 501 Session failed, application terminated prematurely
NX> 598 Error: failed to connect to nxclient –monitor.
On the end user’s host, the session log file reflects as follows:
3579 3579 15:18:18 658.862 ClientSession: Failing reason is ‘The session negotiation failed. Error: Session failed, application terminated prematurely.’
These error files are located in the NoMachine session directory, which is created in the /usr/NX/var/log/node directory.
When the error ‘application terminated prematurely‘ displays, it’s helpful to find possible causes in the below files (located on the remote host):
Number 1: The clients file within the: /usr/NX/var/log/node/C-<session> directory
For example:
“/usr/NX/var/log/node/C-testdrive2-1005-246612EE435B150D4A8D37463B948139/clients”
Note: NoMachine’s node redirects the standard error of X app to this file.
When a virtual desktop is running, however, consider that the X display manager commonly redirects the standard error to: “~/.xsession-errors” and NoMachine’s client file can be empty.
Number 2: The .xsession-errors file in the user’s home
For example: /home/nxtest01/.xsession-errors
Number 3: The system log
For example: /var/log/messages on Ubuntu
or, if the operating system is systemd-based: journalctl -b -0 > journalctl.txt
Number 4: The following test may also offer more information:
Step 1: Run a NoMachine custom session
Step 2: Choose ‘Run the console’ + ‘Run the command in a virtual desktop’
Step 3: Within this console, execute the same command set in the DefaultDesktopCommand key—within the node configuration file
NoMachine Cannot Change Resolution
Those using NoMachine free or Enterprise Desktop editions are connected to the remote computer’s physical desktop.
In this scenario, the maximum resolution available is the maximum resolution supported by the remote machine’s graphics card.
Linux remote hosts
For those needing to run a higher resolution, and it’s a Linux remote host, think about utilizing products that support virtual desktop functionality—such as NoMachine Workstation.
The virtual desktop’s supported resolution won’t depend on the remote hardware, thus the remote screen can be changed to whatever resolution is supported by the operator’s monitor.
Running at increased resolution is also possible via headless machines. In that circumstance, shut down the X server and allow NoMachine to create a virtual display.
NoMachine for Linux is intended to work out-of-the-box, regardless of the machine’s installed desktop environment. NoMachine can detect when X servers aren’t running, and so launch its own virtual display (an embedded X server.) This is enabled by default in the free edition and can be enabled in the commercial versions.
What to do if you see a black screen on Linux
This can happen when the X server is running but isn’t rendering due to the video card being turned off. In this scenario, NoMachine won’t use its own virtual display since it detects the X server running. There are few possible solutions:
Use a fake display dongle
Use a fake display dongle (also referred to as a ‘dummy dongle’) and insert it into the video card port to simulate the presence of a screen—thus forcing the system to take total advantage of the GPU as if a physical monitor was attached. For Linux hosts, rebooting the machine (or restarting the display manager) is required to make this work.
Setup Xorg for working in headless mode
2.1) Configure X.org to run headless (use –allow-empty-initial-configuration)
2.2) Install a Xorg dummy driver by creating a fake EDID (Extended Display Identification Data) and use it in Xorg.conf (EDID are kept in the monitor, and read out by the GPU when a monitor is attached)
Use an X virtual framebuffer
Users can try any of the methods above (or manually stop the X server) to force NoMachine to use its own display service:
- • Use the proper command to stop the X server based on your display manager. For example:
sudo systemctl stop lightdm
or:sudo systemctl stop gdm
or:sudo systemctl stop sddm
and so on …
or, if you aren’t sure what it is, try a “display-manager” alias:sudo systemctl stop display-manager
and restart the NoMachine server:sudo /etc/NX/nxserver --restart
- • Now NoMachine will create its own virtual framebuffer, and users should now have the ability to connect and view the desktop.
Note: If a Linux system lacks systemd (e.g. RHEL 6 and earlier versions), restart the machine at runlevel 3: sudo init 3
FAQ
This could be caused by a networking problem, a firewall, a NAT blocking incoming traffic, or because of an inaccurate server address.
The first thing to do is verify whether the CentOS server IP is accessible from the Windows client.
If the answer is yes, ssh to the server and check on NoMachine’s server status using sudo /etc/NX/nxserver --status
.
If the server is off, try to restart the server with the command: sudo /etc/NX/nxserver --restart
If a doc file opened on the NoMachine server, and copy-paste (Ctrl+c and Ctrl+v) doesn’t work, check the /usr/NX/etc/server.cfg file to ensure the clipboard is enabled for both channels/directions. If not, use: EnableClipboard both
‘Error 108 connection reset by peer‘ occasionally happens when accessing the remote Linux physical desktop. This issue gets triggered because of an unexpected termination of the nxserver –daemon process.
A ‘connection refused’ error frequently happens when there aren’t any services listening on that port—or if a firewall connection is rejected. Users can find out if they can connect with another client via the same server.
Я выполнил эту ссылку (https://www.nomachine.com/AR10K00728), чтобы попытаться подключиться по ssh. Но после этих настроек, когда я вхожу в графический интерфейс клиента NoMachine, я всегда встречаю «Ошибка аутентификации» после ввода моего имени пользователя и пароля. Любые предложения по этому поводу? Заранее спасибо.
Дэн
Либо ваше приложение NoMachine не разрешает ваше имя пользователя, либо сервер ssh на вашем хосте NoMachine на самом деле не разрешает аутентификацию пароля.
Попробуйте включить параметры PasswordAuthentication yes
в файле /etc/ssh/sshd_config и перезапустите ssh-сервер. т.е. service ssh restart
Введите минимум 50 символов
Есть 2 машины, клиентская и сервер, на сервере установлена kubuntu 9.04 64bit, на клиентской kubuntu 9.10 64bit. На обоих стоит NoMachine 3.3.0.6. На обоих машинах поднят ssh на сервере на 22 порту, на клиентской машине на 24, проблема заключается в том, что серверу можно подсоединиться и просто по ссх и при помощи Nx, а к клиенткой машине только по ссх, при попытке воспользоваться Nx, происходит соединение далее выдается сообщение Ошибка авторизации для пользователя под которым происходит соединение, пользователь существует и пароль для него верный, под ним просто по ссх соединение происходит без каких либо проблем. Подскажите куда копать?