LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2006, 09:33 AM   #1
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
VNC connection refused


hello linux community

i have gnome installed on my FC3. Now, i wanted to start vnc through ssh, and i ran the following:

/etc/rc.d/init/./vncserver start

/usr/bin/vncserver status , and prompted me to set a password, which i did

/usr/bin/vncserver and the following came up :

Code:
xauth:  creating new authority file /root/.Xauthority

New 'AEGEE_bot:1 (root)' desktop is AEGEE_bot:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/AEGEE_bot:1.log
now when i try to connect to it, it gives me the connection confused error.

Note that there are no rules set in my iptables.

also,

Code:
[root@AEGEE_bot init.d]# /usr/bin/Xvnc

Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.

[root@AEGEE_bot init.d]# /usr/bin/vncconfig
/usr/bin/vncconfig: unable to open display ""
thx beforehand

Last edited by dragunu; 11-11-2006 at 09:35 AM.
 
Old 11-11-2006, 10:08 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Do you have VNC and SSH setup?
Here is a good link on VNC setup. http://fedoranews.org/tchung/vnc/
And one on SSH. Note if using passphrase set the permissions on the directory as described. http://www.suso.org/docs/shell/ssh.sdf

I use a line like this to connect to vnc over ssh from within my lan network.
ssh -f -L 25903:127.0.0.1:5902 username@192.168.45.7 sleep 10; vncviewer 127.0.0.1:25903:3
This connects to ssh which then passes on connection to vnc on display :2 which is on port 5902.

port 5900 is for display :0. If trying to use that check out this link to configure X to allow vnc on display :0.
http://www.cs.princeton.edu/~gwallac...vnc-linux.html
http://www.realvnc.com/products/free/4.1/x0.html

Brian
 
Old 11-11-2006, 10:19 AM   #3
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
thx brian, will check them out
 
Old 11-11-2006, 10:38 AM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Forgot to mention one of my thoughts.

I would make sure one can connnect to the vnc server directly with a client first and same for ssh. Once both are working then you should be able to vnc over ssh easily.

Brian
 
  


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 : Connection refused dragunu Linux - Newbie 5 04-25-2006 05:54 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
VNC Connection refused pacman Linux - Software 7 08-08-2003 12:51 AM


All times are GMT -5. The time now is 01:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration