LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   VNC Connection refused (https://www.linuxquestions.org/questions/linux-software-2/vnc-connection-refused-62540/)

pacman 05-29-2003 02:43 PM

VNC Connection refused
 
Hi,
me and my friend started vnc but as i want to connect to him there was this error:
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server

Please help us.
Thanks, pacman.

Hangdog42 05-29-2003 03:04 PM

Two questions:

1- Has your friend started vncserver?
2- Does his firewall block ports 5901 and/or 5902

Also, any details on how you are trying to connect would help.

pacman 05-29-2003 03:23 PM

Ok it works now...
but i only got his display :1 and not the real display :0 what should we do to get on his real kde gui display?

Thanks, pacman

Hangdog42 05-29-2003 05:19 PM

I'm not entirely sure what you mean by "real" display. The :1 display is as real (and functional) as any other. Usually the problem is that vncserver starts twm by default. So your friend will have to edit the xstartup file in his .vnc directory. Comment out the twm command and add the startkde command

#twm
startkde &


And if you really want to start vnc on 0, I think vncserver:0 should do the trick.

pacman 05-30-2003 06:44 AM

Hmmm
you know vnc with windows?
then you know what i mean...
there is only 1 display and i can control his mouse in windows, but in linux there are many new displays... the problem is: i should configure the mldonkey of my friend and not the one on other displays but the one display he sees when he starts linux with kde.

I hope you know what i mean....
Thanks, pacman.

Hangdog42 05-30-2003 07:36 AM

VNC doesn't work with linux the way it works with windows. In linux it doesn't seem to do desktop sharing (at least not that I've been able to find. I'm sure someone will correct me if I'm wrong).

If you want to share a desktop and your freind is running KDE, you'll want to check out KDE Destop Sharing . I've never used it, but it sounds more like it will do what you want.


By the way, you should probably check into running this over an SSH tunnel so you aren't doing things like sending usernames and passwords across the internet in plain text. VNC has no encryption capabilities and I doubt KDE Desktop Sharing does either.

acid_kewpie 05-30-2003 07:41 AM

i don't know if it is actually possible, as X is designed to be an extensible windowing server, not a noddy little toy like windows. the client server nature involved incorporates elements of security which makes in conceptually bad to be able to do that. What I do at home is simply to create a vnc session for that application just at 800x600 low colour, and maximize the program in the session, and remove window decoration. you can then access this as if it appeared to be a local program from anywhere including the local X session.

peputa 08-08-2003 12:51 AM

the way i do it is to use vnc as my login window manager (of course my .vnc/xstartup i have it run KDE.)

so i logon in failsafe mode and get a server running
i.e., vncserver :22 -geometry 1600x1200 -alwaysshared
then in my .xinitrc i put
vncviewer -fullscreen -passwd .vnc/passwd -shared mymachine:22

so whenever i log in i via KDM i get my vnc server (except in failsafe mode). since my home directory is nfs mounted on other machines in the lan, i can do the same thing from anywhere in my lab. to log out i just hit ctrl-alt-backspace.

an added benefit is that logging in is very fast, and all my stuff is still there. it works fast enough locally on the 100Mb lan that I don't really notice it.

and when i go home i can connect to my desktop whether i'm logged in or not. (in KDE's shared desktop if you log out, or if someone logs in on top of you it doesn't work. ) it does slow down when too many viewers are connected.


All times are GMT -5. The time now is 09:57 AM.