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 &".
|
All times are GMT -5. The time now is 03:22 AM. |