LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VNC connection refused (https://www.linuxquestions.org/questions/linux-newbie-8/vnc-connection-refused-500590/)

dragunu 11-11-2006 09:33 AM

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:)

Brian1 11-11-2006 10:08 AM

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

dragunu 11-11-2006 10:19 AM

thx brian, will check them out:)

Brian1 11-11-2006 10:38 AM

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


All times are GMT -5. The time now is 08:21 AM.