LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2005, 11:30 AM   #1
sim2k
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
VNC Server (on Ubuntu) Client on Windows


Hi,
i shared my desktop in Ubuntu (there is the server vncserver icecube:0
But the Client on my windows server shows the message "Failed to connect to server"?!

No Firewall aktive, ping works fine!?

thanks for answers!

sim
 
Old 01-27-2005, 11:38 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sounds like the server failed to load. for a start i don't think you used the right command line. vncserver won't "share" anything. it will create a NEW X session. see the vncserver docs for more details abou it's use.

sounds like you want to use x11vnc to export a real display.
 
Old 01-27-2005, 01:49 PM   #3
paul.nel
Member
 
Registered: Nov 2003
Location: Cape Town
Distribution: Gentoo, Redhat 9, SuSE 9.0, 9.2, Win XP
Posts: 149

Rep: Reputation: 15
I am not so sure about what acid_kewpie is saying. I am running vncserver on my gateway (redhad 9) and start vnc with the command

Code:
vncserver
only. This works fine for me and I can connect to it via the vnc client on 2 XP machines and 2 other Linux machies.

Are you sure you are connecting to the correct server from your client? Make sure you enter icecube:0 with the trailing ":0" inlcuded.

Regards
p.n
 
Old 01-27-2005, 01:52 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes, you can connect to a vnc created server from anywhere, sure. but you can't see the actual X session that is on that machines monitor. that's the point.
 
Old 01-27-2005, 02:14 PM   #5
sim2k
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
mh
the server is here (on my left ;-) ) and i can boot it, and work on it fine,...

but the vnc server is in the gui included i think? I needn't start it with any command...
( whats the port to connect the console? *g* << ^^ )
( must i share the console before i can connect 2 it ? )
thx sim
 
Old 01-27-2005, 02:42 PM   #6
Hamsjael
Member
 
Registered: Aug 2003
Location: Vejle, Denmark
Distribution: Mainly Debian, some Fedora for the bleeding edge fix
Posts: 92

Rep: Reputation: 15
session number

Hi sim2k

did you remember to tell the vnc server which session you would like to connect to ?

contrary to windows vnc server, you have to tell it like this:

vncviwer hostname:[number]

example:

vncviewer mylinuxbox.home:1

the vnc-server start a session on number one and then just keeps counting if you start another.

good luck
 
Old 01-27-2005, 10:43 PM   #7
Gaurav Wadhwa
LQ Newbie
 
Registered: Jan 2005
Location: London
Posts: 21

Rep: Reputation: 15
Please check the vncserver services also and make sure these are running.

Hope it'll be working.

Bye
 
Old 01-29-2005, 06:04 AM   #8
sim2k
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
is der any cmd which is like
check_running vncserver ?
and vncserver cmd does not exists in telnet...
any idea? vncpasswd is workingfine ;-)

but every connection is refused; Localhost:0 connections (on the linux mashine are working fine..)

greetings sim
 
Old 01-29-2005, 06:34 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
vncviewer doesn't exist in telnet???? what does that mean?? why has telnet come into the equation?

like i said, the connection is likely to be being refused as it does not exist. you can NOT use vncserver in the way you are trying to, i.e. to just instantly hook into the currently running X server. not going to happen. using "vncserver" to start a vnc server, will create a NEW server, you don't want to specify which display, and if you do want to, then if you're already logged on to X locally, :0 will not work as it's in use already.

to view an existing X server, try http://www.karlrunge.com/x11vnc/ or another implementation that can actually do what you want to do.
 
Old 02-10-2005, 03:00 AM   #10
tkw
LQ Newbie
 
Registered: Feb 2005
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
vncserver fails to run on my Ubuntu 4.10.
When I start the vncserver, with the command:
vncserver

I get proper looking output, but after checking the process information for the pid written to the $HOME/.vnc/*.pid file, there is no such process.

So it seems that my vncserver dies in the startup.
Since vncserver actually starts Xvnc, I tried to run Xvnc command directly, which resulted in segmentation fault.

Any hints to get the vncserver running?

I have the following packages installed on my Ubuntu:
libvncauth0, libvncauth-dev, vnc-common, vnc-java, vncserver, xvncviewer.

The idea is to connect from my Windows host to my Ubuntu Linux server.

Thanks!

TKW
 
Old 02-10-2005, 03:22 AM   #11
tkw
LQ Newbie
 
Registered: Feb 2005
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Sorry for hesitating.
A quick search from ubuntu forums helped.
Ubuntu has a built in vncserver.
Now all is working fine.
The hint that helped me was the first hint on page:

http://www.ubuntuforums.org/showthre...&highlight=VNC

TKW
 
  


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
VNC over SSH. Windows client - Linux Server c_mitulescu Linux - Networking 30 05-20-2007 11:20 PM
DISCUSSION: VNC Server/Client Quickstart doublejoon LinuxAnswers Discussion 3 11-16-2005 12:10 PM
PPTP on Ubuntu Server - Client WinXP Eleven77 Linux - Networking 4 11-06-2005 03:00 PM
Problem with VNC on Natted Windows Client Palula Linux - Networking 5 09-12-2005 11:01 AM
Running a Linux desktop on a Windows client using VNC spartanM19SSM Linux - Networking 19 12-13-2004 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:17 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