LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Connecting to Redhat 9 VNC Server (https://www.linuxquestions.org/questions/linux-newbie-8/connecting-to-redhat-9-vnc-server-82114/)

aeb105 08-14-2003 10:00 PM

Connecting to Redhat 9 VNC Server
 
I downloaded and installed VNC Viewer for Redhat 9. I have installed the rpm and want to access this box from my Windows 2000 Server. I start the VNC session from a terminal and it tells me it is started. When I try to connect from my 2000 Server box it tells me "Failed to connect to server." I turned the firewall off in on Redhat 9 box. How can I bring up this screen on my Windows box. I am used to seeing a VNC icon on my desktop in Windows and seeing it on the Start menu. How can I make it more accessible in my gnome desktop environment. I have been running it from a terminal. Thanks

dogbreath 08-14-2003 11:57 PM

Quote:

I downloaded and installed VNC Viewer for Redhat 9
You`ll need the VNC SERVER for the vnc to work ;)

And on the win2K Server you can use the VNC viewer (win ver. offcourse)

Nightblade_oz 08-15-2003 01:46 AM

In Summary:

Linux box:
- Make sure you installed the vncserver
- Start vncserver (e.g. service vncserver start)

Windows:
- Start vncviewer
- Enter linux box's IP and display number (e.g. 192.168.1.1:1)
- Enter password if you've set one

Cheers,
Nightblade_oz

aeb105 08-15-2003 09:07 AM

I have done all those things. How do I determine what IP address my Redhat 9 machine is using. I have used process of elimination to find it. The VNC server on redhat 9 is started and I do all those things and I get "Unable to connect to server." Is there a way to put VNC on the desktop or launch it from my Gnome desktop menu or toolbar? I have been running it from terminal. But back to the original question: What else could be stopping me from connecting to this machine? Any other settings I need to adjust?

gumdrop 08-16-2003 02:28 PM

Re: get IP address
 
aeb105,

I found this on the RedHat website ... use /sbin/ifconfig and look at the IP for eth0 as in:

[mine]# /sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255
Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:558773 errors:0 dropped:0 overruns:0 frame:0
TX packets:558773 errors:0 dropped:0 overruns:0 carrier:0
collisions:0

eth0 Link encap:Ethernet HWaddr 00:06:2B:00:00:52
inet addr:<YOUR_IP_IS_HERE>
Bcast:209.42.224.175
Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:104397 errors:0 dropped:0 overruns:0 frame:0
TX packets:87782 errors:0 dropped:0 overruns:0 carrier:0
collisions:95
Interrupt:11 Base address:0xd400

Ignore anything you may see for eth0:1,2,... as they are aliases if they
exist at all.

gumdrop

david_ross 08-16-2003 02:31 PM

When you connect make sure you use the correct display value aswell. If you already ahve x running then it will most likely be 1. When you run the server it will tell you the display it is running on.

aeb105 08-16-2003 02:41 PM

Thanks for all the help. My main goal here is to VNC from my win 2000 box to my Redhat 9 box. When I do that I get "Failed to connect to server" I can VNC the other way from my Redhat Box, albeit the screen is huge.

david_ross 08-16-2003 02:43 PM

When you do what?

When you run vncserver what display does it say it is running as? You will need to conect with:
ip.addr.ess.here:X

Where X is the display number. Also - do you have any firewall rules blocking the VNC ports 5800 5999 (roughly):
iptables -L

ezra143 08-16-2003 02:55 PM

i wold reccomend flushing you ip tables, if you are not using any routing or firewall functions from your RH box, then call up a terminal session, login and call "vncserver" it should tell you the hostname and display ie: host:1

Then try to connect from your winbox specifying both the hostname AND display, or try using the ip address and display ie; 192.168.1.1.:1

this should work. can you see the other computer in network borwser? are they both assigned IP via DHCP?

aeb105 08-16-2003 05:55 PM

Thank You All. I am now able to access my Linux box from my windows 2000 box with VNC. I wasn't putting the display number behind the ip address. This is new to me. How come I can't see the Gnome desktop? It is just an X-Windows terminal. Can I set it so I can see everything that I see when sitting in front of my Gnome desktop? Thanks. :)

david_ross 08-17-2003 06:52 AM

VNC runs slightly differently on UNIX to windows:
http://www.uk.research.att.com/vnc/start.html

aeb105 08-17-2003 09:58 AM

So, basically all I will ever see when I VNC into my linux box will be the x-term or bash shell. Or can I bring up my desktop? Thanks this is helpful.

david_ross 08-17-2003 09:59 AM

you can bring up your desktop. Edit your vnc startup script and add the command that brings up your desktop environment.

ezra143 08-17-2003 01:32 PM

when you telnet into your linux box to start VNC, i am assuming you are on runlevel 3? you would want to startx and or your KDE, etc from terminal and then call VNC. so that vnc hooks the windows manager rather than the terminal. Might be wrong, I am always in runlevel 5 on my box's, so i havent had to do this.

aeb105 08-17-2003 04:35 PM

Cool. How commands and how would I edit the startup script to bring up my Gnome desktop in VNC? Thanks.


All times are GMT -5. The time now is 02:04 AM.