LinuxQuestions.org
Visit Jeremy's Blog.
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 08-14-2003, 10:00 PM   #1
aeb105
Member
 
Registered: Aug 2003
Posts: 30

Rep: Reputation: 15
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
 
Old 08-14-2003, 11:57 PM   #2
dogbreath
LQ Newbie
 
Registered: Aug 2002
Location: Estonia
Distribution: Redhat & Mandrake
Posts: 5

Rep: Reputation: 0
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)
 
Old 08-15-2003, 01:46 AM   #3
Nightblade_oz
LQ Newbie
 
Registered: Aug 2003
Location: Australia
Distribution: Fedora Core 2
Posts: 24

Rep: Reputation: 15
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
 
Old 08-15-2003, 09:07 AM   #4
aeb105
Member
 
Registered: Aug 2003
Posts: 30

Original Poster
Rep: Reputation: 15
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?
 
Old 08-16-2003, 02:28 PM   #5
gumdrop
LQ Newbie
 
Registered: Apr 2003
Location: Charlottesville, VA
Distribution: RedHat
Posts: 2

Rep: Reputation: 0
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
 
Old 08-16-2003, 02:31 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
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.
 
Old 08-16-2003, 02:41 PM   #7
aeb105
Member
 
Registered: Aug 2003
Posts: 30

Original Poster
Rep: Reputation: 15
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.
 
Old 08-16-2003, 02:43 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
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
 
Old 08-16-2003, 02:55 PM   #9
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
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?
 
Old 08-16-2003, 05:55 PM   #10
aeb105
Member
 
Registered: Aug 2003
Posts: 30

Original Poster
Rep: Reputation: 15
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.
 
Old 08-17-2003, 06:52 AM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
VNC runs slightly differently on UNIX to windows:
http://www.uk.research.att.com/vnc/start.html
 
Old 08-17-2003, 09:58 AM   #12
aeb105
Member
 
Registered: Aug 2003
Posts: 30

Original Poster
Rep: Reputation: 15
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.
 
Old 08-17-2003, 09:59 AM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
you can bring up your desktop. Edit your vnc startup script and add the command that brings up your desktop environment.
 
Old 08-17-2003, 01:32 PM   #14
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
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.

Last edited by ezra143; 08-17-2003 at 01:33 PM.
 
Old 08-17-2003, 04:35 PM   #15
aeb105
Member
 
Registered: Aug 2003
Posts: 30

Original Poster
Rep: Reputation: 15
Cool. How commands and how would I edit the startup script to bring up my Gnome desktop in VNC? Thanks.
 
  


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
Grey desktop connecting to VNC server paulsh2k4 Linux - Software 12 01-28-2005 04:12 AM
Having troubles connecting to a vino vnc server from windows xp using tightvnc,help? brynjarh Linux - Software 0 01-12-2005 04:28 AM
unable to VNC into Redhat 9 Server RedhatUK_2U Linux - Newbie 1 09-03-2004 07:05 AM
Connecting Via RedHat Server Patchouli Linux - Newbie 2 05-26-2003 07:04 AM
Connecting Windows Machines to Redhat 7.3 Server jwithers1 Linux - Networking 2 08-05-2002 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:21 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
Open Source Consulting | Domain Registration