how to use: vncserver and vncviewer
Hi all,
Installed vncserver rpm on RHEL5 and trying to start vncviewer (installed realvnc on windows box) for a user and getting this error: Code:
unable to connect to host: Connection refused (10061) Code:
]# service iptables status Code:
]# rpm -qa |grep vnc Code:
$ vncpasswd Does the RHEL server should be running at runlevel 5 to use VNC ? it is currently at runlevel 3. Thanks in advance! |
Show log /home/admin/.vnc/hostname:1.log You can also check if vncviewer works on localhost. And you did not mentioned: are you trying to connect to port 5901? Like that:
Code:
vncviewer SERVER_IP:1 |
You have started vncserver on the desktop 1 so the port will be default+1.
You can see wich one is by using: Code:
netstat -nalpt | grep vncser |
Hi eSelix,
Code:
more /home/admin/.vnc/hostname:1.log Code:
# service vncserver status Hi Celyr Code:
# netstat -nalpt |grep vnc |
No, you can run it at run level 3 with no problem at all.
It seems that the vncserver doesn't start because of the missing font, tomorrow I'll look for it :) |
Check 3rd question on vncserver FAQ They say that on Red Hat you probably need to install 100dpi fonts or use "-dpi 75" option.
|
Ok, now i am able to see the desktop but it is all grey desktop but not real GUI one.
How to make it real GUI desktop ? Below are few files Code:
# more .vnc/xstartup Code:
# more /root/.vnc/hostname:1.log |
I think there is a GUI for modern distros. All I did was click some stuff in settings and allowed vnc users with a special password.
|
checkout this link: http://www.walkernews.net/2007/07/05...ux-vnc-server/, very helpful..
|
Hi Satyaveer Arya,
Thank you for the link. I did similar setup/config but not getting desktop manager to work. Only having text based console only. |
But do you have twm installed? If not, install it or run another window manager that you have, in your xstartup file. Show also your /etc/X11/xinit/xinitrc.
|
Hi eSelix,
I think twm is installed Code:
]# rpm -qa |grep -i twm Code:
# Mandatorily source xinitrc-common, which is common code shared between the |
are you able to use vncserver as root?
just give a cross check instead of admin use root and assign a vncpasswd for root Code:
#vncpasswd and post the output of Code:
#rpm -qa | grep vnc |
Hi deep27ak,
Yes i am running vnc as root. I assigned a passwd and started the vncserver. Code:
# service vncserver status Code:
# rpm -qa |grep vnc |
If you get "text based console only" then it means that your Xvnc is working, but only window manager not started. Default in my system (Ubuntu) is stored in "/etc/X11/default-display-manager". You can change it in "~/.vnc/xstartup" file in place of line "/usr/bin/twm &".
|
Hi eSelix,
I did not find "/etc/X11/default-display-manager" but looks like twm is the window manager here. But anyway can i install any other window manager package like Gnome or Kde etc on this RHEL5 box and configure .vnc/xstartup file so that i can see the GUI ? looks like there are some gnome packages installed already but not sure how to configure so that i can use it ? Code:
]# rpm -qa |grep gnome |
Sorry, there was a display manager "kdm". A window manager I have as symlink in "/etc/alternatives/x-window-manager". You should be able to use another one. KDE window manager is called "kwin" and GNOME - I think "metacity".
|
kill all the cureent running vncserver and restart the server with following changes
Code:
#vncserver -kill :2 Code:
#vi /etc/sysconfig/vncservers Code:
#vncpasswd Code:
#service vncserver restart Code:
#vi /root/.vnc/xstartup |
Hi deep27ak,
Followed but no change. Still endup with text based white console with xclock displayed on right on the vncviewer window. |
I use gnome-session rather than twm.
|
Hi Les Windoze,
could you tell me how to use gnome-session ? If you mean just putting a "exec gnome-session" in .vnc/xstartup file, then i tried that. And i am not sure how to check if gnome related packages are installed and how to use them. Thanks! |
It seems there has not been any resolution. I am having similar problem setting up a vnc session server on Redhat 5.
Please i created a vnc sersion between Redhat linux 5 and windows server 2003. Redhat linux is the vnc server while window server 2003 is the vnc viewer. I can not connect to Redhat despite starting Redhat. I have an error in windows. VNC Viewer :Error Unable to connect to host: Connection refused(10061) There is network connection between both and their hostname can also be resolve.(hosts file contains ipaddress and hostname). VNC viewer in Linux can access the windows(I installed both VNC server and viewer on windows). Redhat 5 has both VNC viewer and server installed when the OS is installed. I started up vnc server from services and it is running. The following below is the command to start and the error log message. [root@idsl01 ~]# vncserver -geometry 1920x1200 New 'idsl01:3 (root)' desktop is idsl01:3 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/idsl01:3.log [root@idsl01 ~]# more /root/.vnc/idsl01:3.log _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6 _XSERVTransOpen: transport open failed for inet6/idsl01:3 _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6 Xvnc Free Edition 4.1.2 Copyright (C) 2002-2005 RealVNC Ltd. See http://www.realvnc.com for information on VNC. Underlying X server release 70101000, The X.Org Foundation Sat Mar 24 15:16:01 2012 vncext: VNC extension running! vncext: Listening for VNC connections on port 5903 vncext: Listening for HTTP connections on port 5803 vncext: created VNC server for screen 0 [root@idsl01 ~]# Regards, Jude |
Quote:
The possible reasons can be # server firewall is blocking # vncserver service is not running # vncserver is not configured properly |
All times are GMT -5. The time now is 12:08 PM. |