LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-01-2012, 12:27 AM   #1
analog_match
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Rep: Reputation: Disabled
vncviewer in WinXP connection to LINUX Fedora 16 giving error 10065


I am trying to connect VNC viewer on WINXP. I have vncserver running on port 5902 on my Fedora Linux 16 box. I keep getting the dreaded:

unable to connect to host: A socket operation was attempted to an unreachable host (10065)

I started vnc server with command

vncserver

And received following message:

Warning: fel2:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server fel2:1

New 'fel2:2 (yusuf)' desktop is fel2:2

Creating default startup script /home/yusuf/.vnc/xstartup
Starting applications specified in /home/yusuf/.vnc/xstartup
Log file is /home/yusuf/.vnc/fel2:2.log

Have setup port 5902 in Windows firewall

Also have setup port forwarding in my router (Westell versalink237w)

Service Details



Service Name
*vnc
Type
Port Forwarding
Port 1

Protocol
TCP
Global Port(s)
5900-5902
Base Host Port
5902

In the viewwer I;ve tried various combinations

192.168.1.96
192.168.1.96:5902
192.168.1.96:2

Nothing works.

Please any hints or suggestions where I might me going wromg with this.
Thanks.
 
Old 02-01-2012, 12:42 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
remove the file
Code:
#rm -rf /tmp/.X*
and again set the password

Code:
#vncpasswd
Code:
#service vncserver restart
 
Old 02-01-2012, 09:25 PM   #3
analog_match
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi Deepak,

Thanks for the reply. When I try the service command you mention:

$ sudo service vcnserver restart
Redirecting to /bin/systemctl restart vcnserver.service
Failed to issue method call: Unit vcnserver.service failed to load: No such file or directory. See system logs and 'systemctl status vcnserver.service' for details.
[yusuf@fel2 ~]$ systemctl status vncserver.service
vncserver.service
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)

I'm sure this is pretty simple stuff. But I've just started using Linux and am still trying to figure out the basics.
 
Old 02-01-2012, 09:38 PM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
please post your vncserver config file
 
Old 02-03-2012, 12:56 PM   #5
analog_match
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Here are the contents of the log file located under .vnc/fel2:1.log

Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

Xvnc Free Edition 4.1.3 - built Oct 15 2008 12:55:42
Copyright (C) 2002-2008 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40201000, The XFree86 Project, Inc


Fri Feb 3 13:54:11 2012
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!

Fatal server error:
could not open default font 'fixed'
xsetroot: unable to open display 'fel2:1'
/home/yusuf/.vnc/xstartup: line 7: twm: command not found
/home/yusuf/.vnc/xstartup: line 6: xterm: command not found
vncconfig: unable to open display "fel2:1"
------------------------
Here is the xstartup file under .vnc:


#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

Last edited by analog_match; 02-03-2012 at 12:58 PM.
 
Old 02-03-2012, 12:58 PM   #6
analog_match
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Here is the xstartup file under .vnc:


#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
 
Old 02-03-2012, 02:20 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,452

Rep: Reputation: 2050Reputation: 2050Reputation: 2050Reputation: 2050Reputation: 2050Reputation: 2050Reputation: 2050Reputation: 2050Reputation: 2050Reputation: 2050Reputation: 2050
This:
Quote:
Originally Posted by analog_match View Post
I have vncserver running on port 5902 on my Fedora Linux 16 box.

...

In the viewwer I;ve tried various combinations

192.168.1.96
192.168.1.96:5902
192.168.1.96:2
And this:
Quote:
Originally Posted by analog_match View Post
Here are the contents of the log file located under .vnc/fel2:1.log

...


vncext: Listening for VNC connections on port 5901
Don't add up. Have you tried connecting to port 5901?

You can ignore any rules in your router and your Windows firewall, neither of them apply to what you're doing. The Windows firewall only controls incoming connections, not outgoing, and the port forwarding rules in the router are only used for connections from outside of your subnet. If you connect directly to the machine's local IP (192.168.1.96) from another machine on your subnet, the port forwarding rules in the router are irrelevant.
 
Old 02-06-2012, 11:34 PM   #8
analog_match
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by analog_match View Post
Here are the contents of the log file located under .vnc/fel2:1.log

Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'

From the above excerpt from my logfile, could it be possible that X windows system is not installed on my machine???? How do I verify the installation of X windows?
 
  


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
fedora 14, openvpn disconnected from the network giving the following error ..!!!! HuMan-BiEnG Linux - Newbie 3 01-26-2011 05:03 AM
TurboVNC vncviewer freezes on connection forward Linux - Software 1 10-22-2010 03:38 AM
vncviewer : mac , connection refused(61) bhargavi Linux - Networking 1 09-08-2009 12:07 AM
VNCviewer and Proxy Connection Issue metallica1973 Linux - Security 1 01-25-2007 08:07 PM
why am getting error when ever after giving user name and passwd in Fedora 3? spbalaji Linux - General 3 10-03-2006 02:35 AM


All times are GMT -5. The time now is 10:27 AM.

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