LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-12-2006, 07:24 AM   #1
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Rep: Reputation: 15
Question VNC Failed to connect to server


I installed SUSE 10 server and I spent all day yesterday trying to get VNC to work. I'm trying to connect from my windows xp pro system to this Ssuse box. Would somebody give me step bt step instructions as to how to get VNC to work?

Thanks.
 
Old 10-12-2006, 07:44 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
A pretty good step by step setup guide can be found here (yes I know that it is for Fedora Core but does work in many cases);

http://fedoranews.org/tchung/vnc/

.
 
Old 10-12-2006, 09:52 AM   #3
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard
A pretty good step by step setup guide can be found here (yes I know that it is for Fedora Core but does work in many cases);

http://fedoranews.org/tchung/vnc/

.
Thanks but I still can't get it to work. I must be missing a step some where. I have tried it using KDE and GNOME.
 
Old 10-12-2006, 11:04 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Does it work locally on the Linux system???

vncviewer 192.168.0.1:1

Use the ip adress of the Linux system inplace of the 192.168.0.1 address in the typed command above, you might want to try the same for the Windows vncviewer.
 
Old 10-12-2006, 12:07 PM   #5
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
[QUOTE=Lenard}

Does it work locally on the Linux system???

vncviewer 192.168.0.1:1

Use the ip adress of the Linux system inplace of the 192.168.0.1 address in the typed command above, you might want to try the same for the Windows vncviewer.[/QUOTE]

I did use the IP address.

"Does it work locally on the Linux system???" I'm not sure what you are asking.
 
Old 10-13-2006, 06:18 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Can you use the vncviewer on the Linux system, open a terminal and type the command.

If it works locally then try again a specify exactly the same ip_address with the same port, i.e. 192.168.0.:1

The Windows version of vncviewer is looking to find the the server as just the default address without the port assignment (really looking for port 5900 and not 5901 or better).
 
Old 10-13-2006, 08:50 AM   #7
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard
Can you use the vncviewer on the Linux system, open a terminal and type the command.

If it works locally then try again a specify exactly the same ip_address with the same port, i.e. 192.168.0.:1

The Windows version of vncviewer is looking to find the the server as just the default address without the port assignment (really looking for port 5900 and not 5901 or better).
Well I guess it just need to set over night. I came in this morning and it's working.

I don't know if I should start another thread or not but here goes.

I wnat to try FreeNX but I can't find it on my system (SUSE 10 server). Every thing I have read says that FreeNX comes with SUSE 10. How can I get?
 
Old 10-13-2006, 09:31 AM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Look here; http://repos.opensuse.org/NX/ hint:get both rpm packages
 
Old 10-13-2006, 10:06 AM   #9
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard
Look here; http://repos.opensuse.org/NX/ hint:get both rpm packages
When I go here there is a SUSE 10 and 10.1 folder. Since I'm running SUSE 10 that is the one I would use. In side of these folders are other folders so which one do I use?

(hint:get both rpm packages) Why? What is the difference?
 
Old 10-14-2006, 06:59 AM   #10
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
On your windows box you first need to run something like putty to connect to your Linux box and initially login. There's other software like free ssh or whatever that you can also use.
Ensure Port 22 SSH is open especially if you are going accross the public internet (i.e accessing your Linux box remotely). You'll need the IP address as well.

On your Linux box you need to enable your VNC server usually with a command like vncserver -2 which means start the server to work on console nr 2.

Now back on your windows box start your vncviewer program (like tightvnc or similar).

You should see a little box on your windows XP system.

Enter IPaddress:5902 (or Ipaddress:02) depending on which client vnc software you are using on Windows. The port nr is equal to the console nr so for console nr 2 use 5092 or 02 depending on the software.

Once you connect you should see a cnsole where you will have to start kde / gnome or whatever (from the Windows box).

Unless you have a very fast connection use compression otherwise you'll get quite a slow response if you've got a lot of graphics being sent.

When you've finished kill the vnc server process on the Linux box.


It's easier to test this locally so I'd do this at home before playing around with remote connections -- and don't start the X server on your linux box if you want to login from Windows.

Once you've got the basic connection working you can use Putty to "tunnel" even if ports are blocked --that's beyond the scope of this post but it DOES work.

The piece most people forget is that you have to do the original remote login (ssh / putty) first before any vnc connections will work.

Incidentally if you have a dynamic ISP address you'll have to find the IP address each time unless you use some type of dynamic dns updating (also beyond the scope of the post but google for it and there's plenty of info).

Cheers

-K
 
  


Reply



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
Failed to connect to SDP server ...Function not implemented triona Linux - Software 2 03-24-2006 10:03 AM
can't connect to VNC server started by xinetd andymadigan Linux - Networking 4 02-21-2006 04:18 PM
login failed when try to connect to mail server sazaney Linux - Newbie 4 04-07-2005 09:29 PM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM
unable to connect to server thru vnc... marvc Linux - Software 0 05-25-2003 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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