LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-29-2003, 02:43 PM   #1
pacman
Member
 
Registered: May 2003
Posts: 60

Rep: Reputation: 15
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.
 
Old 05-29-2003, 03:04 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 05-29-2003, 03:23 PM   #3
pacman
Member
 
Registered: May 2003
Posts: 60

Original Poster
Rep: Reputation: 15
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
 
Old 05-29-2003, 05:19 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 05-30-2003, 06:44 AM   #5
pacman
Member
 
Registered: May 2003
Posts: 60

Original Poster
Rep: Reputation: 15
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.
 
Old 05-30-2003, 07:36 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 05-30-2003, 07:41 AM   #7
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
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.
 
Old 08-08-2003, 12:51 AM   #8
peputa
LQ Newbie
 
Registered: Aug 2003
Posts: 1

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


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
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
VNC - Connection refused silkyd Linux - Networking 12 03-29-2006 08:09 AM
VNC Connection refused (10061) freddy1234 Linux - Software 9 09-01-2004 11:50 PM
VNC – Connection Refused markpadam Linux - Security 5 05-07-2004 07:02 PM
lp filename yields "cannot open connection to localhost - Connection refused" jjge Linux - General 3 12-28-2003 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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