Win2003 login remotely to FC4 via VNC

  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

I know that there are heaps threads about this topics , but this what I did without any success



This is what I did on FC4 I am logging as root (I know the security implication)

First:

[root@localhost ~]# rpm -q --info vnc-server

Code: [ Select ]
Name    : vnc-server         Relocations: (not relocatable)

Version   : 4.1.1               Vendor: Red Hat, Inc.

Release   : 10              Build Date: Wed 27 Apr 2005 10:44:11 AM GST

Install Date: Wed 15 Feb 2006 11:53:50 PM GST   Build Host: decompose.build.redhat.com

Group   : User Interface/X       Source RPM: vnc-4.1.1-10.src.rpm

Size    : 3054396             License: GPL

Signature : DSA/SHA1, Fri 20 May 2005 10:28:29 PM GST, Key ID b44269d04f2a6fd2Packager  : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>

URL     : http://www.realvnc.com

Summary   : A VNC server.

Description :

The VNC system allows you to access the same desktop from a wide

variety of platforms. This package is a VNC server, allowing others to

access the desktop on your machine.
  1. Name    : vnc-server         Relocations: (not relocatable)
  2. Version   : 4.1.1               Vendor: Red Hat, Inc.
  3. Release   : 10              Build Date: Wed 27 Apr 2005 10:44:11 AM GST
  4. Install Date: Wed 15 Feb 2006 11:53:50 PM GST   Build Host: decompose.build.redhat.com
  5. Group   : User Interface/X       Source RPM: vnc-4.1.1-10.src.rpm
  6. Size    : 3054396             License: GPL
  7. Signature : DSA/SHA1, Fri 20 May 2005 10:28:29 PM GST, Key ID b44269d04f2a6fd2Packager  : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
  8. URL     : http://www.realvnc.com
  9. Summary   : A VNC server.
  10. Description :
  11. The VNC system allows you to access the same desktop from a wide
  12. variety of platforms. This package is a VNC server, allowing others to
  13. access the desktop on your machine.




Second:

The gedit /etc/sysconfig/vncserver

Code: [ Select ]

# 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/vnc/sshvnc.html>.

#zillah uncomment VNCSERVERS="2:myusername"



[B]VNCSERVERS="2:root"[/B]

#zillah uncomment VNCSERVERARGS[2]="-geometry 800x600"

[B]VNCSERVERARGS[2]="-geometry 800x600"[/B]
  1. # The VNCSERVERS variable is a list of display:user pairs.
  2. # Uncomment the lines below to start a VNC server on display :2
  3. # as my 'myusername' (adjust this to your own). You will also
  4. # need to set a VNC password; run 'man vncpasswd' to see how
  5. # to do that.
  6. # DO NOT RUN THIS SERVICE if your local area network is
  7. # untrusted! For a secure way of using VNC, see
  8. # <URL:http://www.uk.research.att.com/vnc/sshvnc.html>.
  9. #zillah uncomment VNCSERVERS="2:myusername"
  10. [B]VNCSERVERS="2:root"[/B]
  11. #zillah uncomment VNCSERVERARGS[2]="-geometry 800x600"
  12. [B]VNCSERVERARGS[2]="-geometry 800x600"[/B]






Third:

[root@localhost ~]# vncpasswd root

Password:

Verify:



Fourth:

[root@localhost ~]# vncserver

New 'localhost.localdomain:2 (root)' desktop is localhost.localdomain:2

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/localhost.localdomain:2.log

And i run the below command as well

[root@localhost ~]# service vncserver start

Starting VNC server: 2:root A VNC server is already running as :2


Fifth:
http://www.redhat.com/archives/rhl-list/2005-July/msg05595.html

Quote:
I am using FC4. The fix for me was that the default iptables (i think

thats the firewall settings) were preventing incoming VNC connections.

To overcome this in gnome i went to Desktop>System Settings>Server Settings>Services There I stopped iptables - and immediately I was able to connect!

I did stop iptables as qoute above suggested.




Sixth:
Code: [ Select ]
http://img273.imageshack.us/img273/8994/vncviewer5vn.jpg

From windows 2003 I opened VNC Viewer and I typed in this :
198.222.168.189:2
The error message that I received when I typed in the ip address for the address is below:
Code: [ Select ]
[B]VNC Viewer: 198.222.168.189:Error[/B]
unable to connect to host: The requested address is not valid in its context.(10049)
  1. [B]VNC Viewer: 198.222.168.189:Error[/B]
  2. unable to connect to host: The requested address is not valid in its context.(10049)



Note:
1- FC4 box and Win2003 box within the same LAN, the reachability is there (ping each other)


2- From within FC4 I tried : vncviewer 127.0.0.1:2 (same as vncviewer :2 ),,,,,,it worked.

3- I tried to do test by telnet from win2003 :
Telnet 198.222.168.189:5902,,,,failed

4- I tried to http://198.222.168.189:5802,,,,,failed as well.





I tried to configure from GUI method

A- Desktop - Preferences - Remote Desktop , check the users view and use boxes , uncheck the 'ask you for confirmation' box , set password ,

B- then - Desktop - Server Settings - Services , tick vncserver box - start - save , (starts at boot up)





Any suggestion ?
  • Jerrek
  • Graduate
  • Graduate
  • User avatar
  • Posts: 158
  • Loc: Melbourne, AUS

Post 3+ Months Ago

Hi there,
From a shell prompt type
Code: [ Select ]
iptables -L
and we'll see what that says :) Also, when you say you used telnet but it failed, what exact error message did it give you?

Cheers,
J.
  • zillah
  • Student
  • Student
  • zillah
  • Posts: 77

Post 3+ Months Ago

Hi Jerrek

Quote:
iptables -L


Please see the attchment below

http://img103.imageshack.us/img103/2519 ... hot7eg.jpg


Quote:
Also, when you say you used telnet but it failed, what exact error message did it give you?

Something like this : "-----Connection to telnet on port 23 failed "

I do not remember right now but I will check it and post it.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 29 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.