LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-12-2012, 08:19 AM   #1
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Rep: Reputation: 0
Exclamation unable to connect through vnc


Hi i have installed vncserver on my fedora machine and performed the following

Quote:
vi /etc/sysconfig/vncservers
#added the following on the bottom of file
VNCSERVERS="3:sah"
VNCSERVERARGS[3]="-geometry 1000x700"
Quote:
under user sah i performed the following task
[sah@fedora8 ~]$ vncpasswd
Password:
Verify:
Quote:
service iptables stop
Still i am unable to connect to the vncserver from my windows machine using vnc client. Please suggest anything else needed to be done. Which log file i should refer to approach the problem.
 
Old 09-12-2012, 09:37 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you need to see that there is actually a process running and listening on that port. "netstat -plnt" as root is what I'd look at to check.
 
Old 09-13-2012, 02:51 AM   #3
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Original Poster
Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by acid_kewpie View Post
you need to see that there is actually a process running and listening on that port. "netstat -plnt" as root is what I'd look at to check.
Here is the result: I checked the status first then tried to start but it says it is already started.

Quote:
[root@fedora8 ~]# service vncserver status
Xvnc is stopped
[root@fedora8 ~]# service vncserver start
Starting VNC server: 3:sah A VNC server is already running as :3
[FAILED]
[root@fedora8 ~]# netstat -plnt |grep -i vnc
[root@fedora8 ~]#
[root@fedora8 ~]# service vncserver status
Xvnc is stopped
 
Old 09-13-2012, 03:01 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
probably grep -i vnc is not applicable here, you need to check the port 5903. see: http://ubl.cim3.org/~lcsc/collaborat...ivity_faq.html
 
1 members found this post helpful.
Old 09-13-2012, 03:22 AM   #5
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
probably grep -i vnc is not applicable here, you need to check the port 5903. see: http://ubl.cim3.org/~lcsc/collaborat...ivity_faq.html
Thanks this worked fine.I was able to kill it with the pid
Quote:
t@fedora8 ~]# netstat -plnt |grep 5903
tcp 0 0 :::5903 :::* LISTEN 1618/xinetd
[root@fedora8 ~]# kill 9 1618
-bash: kill: (9) - No such process
[root@fedora8 ~]# netstat -plnt |grep 5903
 
Old 09-13-2012, 05:12 AM   #6
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Original Poster
Rep: Reputation: 0
However the issue is resolved I have a doubt that port 5903 was listening to xinetd.
I killed the process and started vncserver. Following are the result pre and post kill.
My question here is why was the port 5903 was occupied by xinetd and after killing the process when i started vncserver the port was occupied by Xvnc. What is xinetd and why does it run on vncserver port?

Quote:
t@fedora8 ~]# netstat -plnt |grep 5903
tcp 0 0 :::5903 :::* LISTEN 1618/xinetd
[root@fedora8 ~]# netstat -plnt |grep 5903
Quote:
[root@fedora8 ~]# service vncserver start
Starting VNC server: 3:sah
New 'fedora8.example.com:3 (sah)' desktop is fedora8.example.com:3

Starting applications specified in /home/sah/.vnc/xstartup
Log file is /home/sah/.vnc/fedora8.example.com:3.log

[ OK ]
[root@fedora8 ~]# netstat -plnt |grep 5903
tcp 0 0 0.0.0.0:5903 0.0.0.0:* LISTEN 2062/Xvnc

Last edited by abhinav4; 09-13-2012 at 05:13 AM.
 
Old 09-13-2012, 05:14 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
xinetd is a superserver, it listens on behalf of typically noddy services and loads them on demand. telnet, tftp and rsh often use it. If you look in /etc/xinetd.d/ you'll see all the configs for the services potentially using it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Connect to VNC server (vino) tiger.woods Ubuntu 1 03-08-2009 10:35 PM
Unable To Connect VNC carlosinfl Debian 1 06-29-2007 07:48 AM
Real VNC. Unable to connect joeman3429 Linux - Networking 4 10-18-2005 07:27 PM
Unable to connect VNC client puneetloiya Linux - Networking 5 04-29-2005 12:59 AM
unable to connect to server thru vnc... marvc Linux - Software 0 05-25-2003 07:24 PM


All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration