Networking Forums

Networking Forums > Computer Networking > Linux Networking > vncserver setup

Reply
Thread Tools Display Modes

vncserver setup

 
 
Xrak
Guest
Posts: n/a

 
      03-09-2006, 05:38 PM
Hi,

I currently run a RH 9 Linux server, which pretty much has not been upgraded
past that point. I started looking for a Remote Desktop program to allow me
to use the Linux desktop from my Windows XP notebook and desktop (mostly
just internally behind a router firewall - 192.168.0.X network). After
searching a bit I came across vncserver. I searched the original RH9 discs
that I have and found vncserver 3.3.3r2-47. So, I installed it.

It seems as though it works fine. When I run "vncserver" it reports a port
number and seems to start just great. When I try to connect from my windows
desktop, though, it doesn't connect correctly. I run vncviewer, and it asks
me for the IP and port, it just disappears. Using Firefox also returns an
error. I am using port 1, 5801 and 5901 for the correct service. I took a
look at the logfile for vncserver and it reports that the connection was
refused. I double checked iptables and removed all firewall rules for
testing purposes. Then I also tried running vncserver as root and a normal
user. I get the same problem each time. Now, since I am not leaving my
LAN, the router firewall shouldn't come into play. The firewall on the
Linux server is disabled. Anyone have any idea why I can't connect?

Thanks,
Scott


 
Reply With Quote
 
 
 
 
Chris Davies
Guest
Posts: n/a

 
      03-10-2006, 08:06 AM
Xrak <(E-Mail Removed)> wrote:
> I started looking for a Remote Desktop program to allow me
> to use the Linux desktop from my Windows XP notebook and desktop [...]
> and found vncserver 3.3.3r2-47. So, I installed it.


> It seems as though it works fine. When I run "vncserver" it reports a port
> number and seems to start just great.


vncserver doesn't actually report the port number; it reports the VNC
display number (starting from :0), which corresponds directly to a pair
of port ranges starting from 5800 and 5900.


> When I try to connect from my windows
> desktop, though, it doesn't connect correctly. I run vncviewer, and it asks
> me for the IP and port, it just disappears.


It's not the port number, it's the display number (starting from 0).


> I am using port 1, 5801 and 5901 for the correct service.


These ports equate to display :1.


> I took a look at the logfile for vncserver and it reports that the
> connection was refused.


Ah. Did you set a vncserver password? The command is "vncpasswd"

Chris
 
Reply With Quote
 
Xrak
Guest
Posts: n/a

 
      03-10-2006, 01:14 PM
No, I guess that the password I already set was correct. I used the
vncpasswd command, set it, and got the same result. Still refuses the
connection. Again, I cleared the iptables so that nothing was in there.

"Chris Davies" <chris-(E-Mail Removed)> wrote in message
news:g6s7e3-(E-Mail Removed)...
> Xrak <(E-Mail Removed)> wrote:
>> I started looking for a Remote Desktop program to allow me
>> to use the Linux desktop from my Windows XP notebook and desktop [...]
>> and found vncserver 3.3.3r2-47. So, I installed it.

>
>> It seems as though it works fine. When I run "vncserver" it reports a
>> port
>> number and seems to start just great.

>
> vncserver doesn't actually report the port number; it reports the VNC
> display number (starting from :0), which corresponds directly to a pair
> of port ranges starting from 5800 and 5900.
>
>
>> When I try to connect from my windows
>> desktop, though, it doesn't connect correctly. I run vncviewer, and it
>> asks
>> me for the IP and port, it just disappears.

>
> It's not the port number, it's the display number (starting from 0).
>
>
>> I am using port 1, 5801 and 5901 for the correct service.

>
> These ports equate to display :1.
>
>
>> I took a look at the logfile for vncserver and it reports that the
>> connection was refused.

>
> Ah. Did you set a vncserver password? The command is "vncpasswd"
>
> Chris



 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      03-10-2006, 02:40 PM

Xrak <(E-Mail Removed)> wrote:
> I started looking for a Remote Desktop program [...]
> and found vncserver 3.3.3r2-47. So, I installed it.


> When I run "vncserver" it reports a port number and seems to start
> just great.


Can you post the actual output it produces, please.


> When I try to connect from my windows desktop, though, it doesn't
> connect correctly. I run vncviewer, and it asks me for the IP and port,
> it just disappears.


That's typical of the situation where you're trying to connect to a
non-existant server/port.

> I am using port 1, 5801 and 5901 for the correct service.


So that should be vncviewer remote_server:1

> I took a look at the logfile for vncserver and it reports that the
> connection was refused.


Can you provide the exact output, please.


"Chris Davies" <chris-(E-Mail Removed)> asked:
> Ah. Did you set a vncserver password? The command is "vncpasswd"


Xrak <(E-Mail Removed)> wrote:
> No, I guess that the password I already set was correct. I used the
> vncpasswd command, set it, and got the same result. Still refuses the
> connection. Again, I cleared the iptables so that nothing was in there.


What happens if, on the box that you normally run vncviewer on, you run
this command (to exit, you can use Ctrl/] then q):

telnet remote_server 5901

Chris
 
Reply With Quote
 
Xrak
Guest
Posts: n/a

 
      03-10-2006, 04:19 PM
This is the exact output that I have been getting...

10/03/06 09:07:52 Xvnc version 3.3.3r2+tight1.2.2
10/03/06 09:07:52 Copyright (C) AT&T Laboratories Cambridge.
10/03/06 09:07:52 All Rights Reserved.
10/03/06 09:07:52 See http://www.uk.research.att.com/vnc for information on
VNC
10/03/06 09:07:52 Desktop name 'X' (localhost.localdomain:1)
10/03/06 09:07:52 Protocol version supported 3.3
10/03/06 09:07:52 Listening for VNC connections on TCP port 5901
10/03/06 09:07:52 Listening for HTTP connections on TCP port 5801
10/03/06 09:07:52 URL http://localhost.localdomain:5801
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/2498
Option given which is no longer supported in this version of gnome-terminal;
you might want to create a profile with the desired setting, and use the
new --window-with-profile option

10/03/06 09:08:20 Refused connection from client 192.168.0.2

10/03/06 09:10:22 Refused connection from client 192.168.0.2
10/03/06 09:10:36 Refused connection from client 192.168.0.2

10/03/06 09:18:14 Refused connection from client 192.168.0.2

10/03/06 09:18:55 Refused connection from client 192.168.0.2

10/03/06 09:20:47 Refused connection from client 192.168.0.2

Now, I am not sure, should I be able to use the 192.168.0.3:1 command to
connect via internal LAN? It is just that I was wondering if for some
reason it might be rejecting me because of that. I notice that the log
doesn't say anything about the IP address, just the localhost. I pretty
much just installed the RPM and didn't configure anything. Like I said, it
seemed to work ok, just won't connect.

Just trying to get this strait a little, too. If I am using :1 to connect,
in which instances would the 5801 and 5901 be used? Externally? As in when
I was trying to get on from outside the LAN? Maybe I should wait for that
question until I can at least connect with an internal computer.

Thank you for all your help,
Scott

"Chris Davies" <chris-(E-Mail Removed)> wrote in message
news:98j8e3-(E-Mail Removed)...
>
> Xrak <(E-Mail Removed)> wrote:
>> I started looking for a Remote Desktop program [...]
>> and found vncserver 3.3.3r2-47. So, I installed it.

>
>> When I run "vncserver" it reports a port number and seems to start
>> just great.

>
> Can you post the actual output it produces, please.
>
>
>> When I try to connect from my windows desktop, though, it doesn't
>> connect correctly. I run vncviewer, and it asks me for the IP and port,
>> it just disappears.

>
> That's typical of the situation where you're trying to connect to a
> non-existant server/port.
>
>> I am using port 1, 5801 and 5901 for the correct service.

>
> So that should be vncviewer remote_server:1
>
>> I took a look at the logfile for vncserver and it reports that the
>> connection was refused.

>
> Can you provide the exact output, please.
>
>
> "Chris Davies" <chris-(E-Mail Removed)> asked:
>> Ah. Did you set a vncserver password? The command is "vncpasswd"

>
> Xrak <(E-Mail Removed)> wrote:
>> No, I guess that the password I already set was correct. I used the
>> vncpasswd command, set it, and got the same result. Still refuses the
>> connection. Again, I cleared the iptables so that nothing was in there.

>
> What happens if, on the box that you normally run vncviewer on, you run
> this command (to exit, you can use Ctrl/] then q):
>
> telnet remote_server 5901
>
> Chris



 
Reply With Quote
 
Burkhard Schultheis
Guest
Posts: n/a

 
      03-17-2006, 08:05 AM
First: Please reply *under* the quoted text! And quote only the
necessary parts!

Xrak schrieb:
> This is the exact output that I have been getting...
>
> 10/03/06 09:07:52 Xvnc version 3.3.3r2+tight1.2.2


We have very bad experiences with tight VNC. We use Realvnc from
www.realvnc.com. Give it a try!

Regards,
--
Burkhard Schultheis
Tele Data Electronic, Wagnerstr. 10, D-76448 Durmersheim
Email: (E-Mail Removed)
Phone: +49 7245 9287-21
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to setup VPN without AD =?Utf-8?B?c2ZoYW5r?= Windows Networking 0 09-20-2004 09:13 PM
MN-700 Setup Broadband Hardware 1 06-03-2004 04:28 AM
MN-700 Setup John Broadband Hardware 7 02-22-2004 11:28 PM
vncserver running on linux . buster Linux Networking 11 12-29-2003 07:17 PM
vncserver configuration problems Patrick Linux Networking 0 12-04-2003 11:02 PM



1 2 3 4 5 6 7 8 9 10 11