Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A RHEL55 box in my office recently began behaving strangely. I normally run VNCserver on it, so I connect from home using VNC Viewer.
I start VNCserver by issuing the following command from my account:
At home, I launch VNC viewer and enter in the connection window:
<server address>:1
then provide password I set for this connection and I am connected.
What happens now:
Login as above opens a window entitled VNC:G5NNJN1:1 (yaximik) that shows a desktop without any menus, panels, mounted disks, trash can, only the normal background pattern. F8>Connection Info... shows
This window is useless since I cannot do anything.
However, login as <server address>:0 followed by required password opens a window with normal desktop, just as I set for this account (yaximik), with all menus, panels, mounted disks and trash can. However, the window is entititled VNC:LibVNCServer and F8>Connection Info... shows the following:
The window has everything, so I can work with provided GUI (Gnome).
Interestingly, login with <server address>:2 opens another window entitled VNC:LibVNCServer just like with <address>:1, that has no menus, panels, mounted disks and no Trash Can. F8>Connection Info... shows the following:
This has not been observed before. That is if VNCserver is launched with terminal :1, then I need to login with <address>:1, no other windows can be opened unless additional VNC servers are launched, each with it own terminal that needs to be used. I often was launching VNCserver from the root account at terminal :1, and another from user account (yaximik) at terminal :2. Now, if I launch root at :1, the user (yaximik) comes at :3 because VNC:LibVNCServer occupies :2 and :4, even if I did not launch any additional instance of VNCserver. The output from ps -afe | grep vnc does not show any additional instances of VNC server, no LibVNCServer whatsoever, and lists only instances that have been launched with assigned terminals, for example root:0 and yaximik:1, or just yaximik:1 for the example above.
Also, even if for all three Desktop windows (at :0, :1, and :2) display exactly the same information after F8>Options, mouse cursor behaves differently. In VNC:G5NNJN1:1 (yaximik), even if desktop is useless, cursor moves exactly like on my home desktop. However, in both VNC:LibVNCServer desktops (at :0 and :2), cursor is sluggish and drags following a dot that moves faster.
Sorry for long explanation - please advise what is going on and how to fix it.
[yaximik@G5NNJN1 ~]$ cat /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
It looks like a vncserver should launch at startup. but it does not, since I cannot connect via VNCviewer unless I launch it manually as I specified before. I guess I am missing something here.
Lack of the proper entry explains why I have to launch vncserver manually everytime I reboot. But what escapes my understanding is that vncserver nevertheless starts automatically after reboot, since I can log in as a user (yaximik) using terminal :0, using password I set for this user, but with desktop title LibVNCServer. No other terminals are available. This service, however, is very sluggish with mouse dragging after dot on the screen and gets corrupted or crashes after a while making the server inaccessible at terminal :0. When I launch vncserver manually as mentioned above either as root or as the user, the new instance of vncserver is much more responsive, mouse cursor behaves like on local desktop. The new instance takes terminal :1 with desktop title either "root" or "yaximik", depending on what account it was launched from. Another instance of the vncserver launches automatically and takes terminal :2 with title again "LibVNCServer", while service at terminal :0 may or may not remain available. Is there any other file that launches vncserver?
Now , when I try to log-in as remote using VNCviewer and entering address in the connection dialog field, the following happen:
If no login done locally
Remotely
address --> password --. login to the user account (yaximik)
address:1 or address:2 get Connection refused.
After user (yaximik) local login
Remotely
address --> password --> login to the user account (yaximik)
address:1 --> password --> login to the user account (yaximik)
address:2 --> Connection refused
After root local login
Remotely
address --> password --> login to the user account (yaximik)
address:1 --> login to the root account after permission to connect is granted locally, but no specified for vnc password is ever asked
address:2 --> Connection refused
That is not I wanted, since I put in vncservers root at terminal :1 and yaximik at terminal :2.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.