
If you see something like the error below, it indicates that you need to create the Xn.hosts file as referenced above. It could also indicate a typo in the vncserver file in /etc/xinetd.d, so check that file closely.Ĭlient is not authorized to connect error

The safest thing, if you run into this problem (or a black screen) is to replace ‘localhost’ with the output of hostname –f on the server. If, after doing the above, you get a “the connection closed unexpectedly” error when trying to connect, try changing the -query localhost to -query in the file in the /etc/xinetd.d dir. The next time that user logs in, copy and paste will be supported.Ĭonnection Closed Unexpectedly or a Black Screen Type /usr/bin/vncconfig -nowin in the startup command field.Click on the Startup Programs tab and click the Add button.Click on Applications (SYSTEM in CentOS and RHEL v5) and select Preferences -> More preferences -> Sessions.To set it up so that it runs at login, first log in (this must be done for each user who would use the system).Xvnc doesn’t do copy/paste to the client by default it needs a helper app to do that. Once you are connected you should have the usual graphical login screen from gnome. VNC works by specifying ports at the end of the computer domain name (e.g., hostname:10, to connect on port 5910). Use the stand-alone vncviewer application to connect. We now should be able to connect to the server using 59. Do make sure that your use of this doesn't put you at risk for having sensitive data (passwords, for instance) compromised. What this means is that any traffic that VNC sends over the wire is *not* encrypted. Please note: vnc is not a secure protocol. What we're doing here is using xinetd, which will spin up Xvnc on an as-needed basis. This does allow for persistent sessions (sessions that survive a disconnect), but it's not really what most of us need most of the time.

In some set-ups, people create a VNCSERVER process that runs all the time.
Vnc viewer the connection closed unexpectedly software#
So this is a step-by-step instruction list on getting a remote X Windows session set up on enterprise linux 4, 5, and 6 (RHEL and CENTOS) that can be accessed with VNC viewer software (do a quick search on VNC if you're not familiar with it). Unfortunately, I've not found one that was quite complete, especially for someone who is only just getting familiar with Linux (which is precisely when you most need a GUI!). This is something that is terribly useful, and there are lots of how-to articles running around.
