LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Getting vncserver to work (https://www.linuxquestions.org/questions/linux-software-2/getting-vncserver-to-work-100529/)

JoshNelson 10-05-2003 01:44 PM

Getting vncserver to work
 
I've tried and tried and read and read. This used to work before I installed ximian desktop/evolution. I try from a winders machine and all I get is "failed to connect to server". I have no clue why this is happening.....someone please help. I'm lazy and don't want to have to walk to the other room just to use my linux box.

Here's me firing up vncserver:

[root@bones bin]# vncserver

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Password too short

Warning: bones:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server bones:1

New 'X' desktop is bones:2

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/bones:2.log

[root@bones bin]#

Here's the log:

[root@bones root]# tail -f /root/.vnc/bones:2.log
05/10/03 01:47:49 Copyright (C) 2000-2002 Constantin Kaplinsky.
05/10/03 01:47:49 All Rights Reserved.
05/10/03 01:47:49 See http://www.uk.research.att.com/vnc for information on VNC
05/10/03 01:47:49 See http://www.tightvnc.com for TightVNC-specific information
05/10/03 01:47:49 Desktop name 'X' (bones:2)
05/10/03 01:47:49 Protocol version supported 3.3
05/10/03 01:47:49 Listening for VNC connections on TCP port 5902
05/10/03 01:47:49 Listening for HTTP connections on TCP port 5802
05/10/03 01:47:49 URL http://bones:5802
Xlib: extension "RENDER" missing on display ":2.0".


JoshNelson 10-05-2003 01:46 PM

this is my xstartup :

[root@bones bin]# cat /root/.vnc/xstartup
#!/bin/sh

# Red Hat Linux VNC session startup script
exec /etc/X11/xinit/xinitrc
[root@bones bin]#

acid_kewpie 10-05-2003 01:48 PM

you're running it as root? wow that's a bad idea....

what are you entering on the windows client?

Cubsy 10-05-2003 01:48 PM

I believe the proper syntax would be vncserver :1 or vncserver :2 .... Then when you go to connect use the ip or host name xxx.xxx.xxx.xxx:2 to connect to that box.

If you want to use vncserver :1 type the command vncserver -kill :1 and then vncserver :1.

I hope this helps

JoshNelson 10-05-2003 02:06 PM

still no dice....
 
Well, i've just killed everything and tried again, only this time not as root. Check out the last line of the log, that the problem?

[cheese@bones cheese]$ cd /usr/bin/
[cheese@bones bin]$ ./vncserver

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:

New 'X' desktop is bones:1

Creating default startup script /home/cheese/.vnc/xstartup
Starting applications specified in /home/cheese/.vnc/xstartup
Log file is /home/cheese/.vnc/bones:1.log

[cheese@bones bin]$

[cheese@bones bin]$ tail -f /home/cheese/.vnc/bones:1.log
05/10/03 02:13:43 Copyright (C) 2000-2002 Constantin Kaplinsky.
05/10/03 02:13:43 All Rights Reserved.
05/10/03 02:13:43 See http://www.uk.research.att.com/vnc for information on VNC
05/10/03 02:13:43 See http://www.tightvnc.com for TightVNC-specific information
05/10/03 02:13:43 Desktop name 'X' (bones:1)
05/10/03 02:13:43 Protocol version supported 3.3
05/10/03 02:13:43 Listening for VNC connections on TCP port 5901
05/10/03 02:13:43 Listening for HTTP connections on TCP port 5801
05/10/03 02:13:43 URL http://bones:5801
gnome-session: you're already running a session manager

acid_kewpie 10-05-2003 02:56 PM

that should still let you conncet to it i believe.... try using a different window manager like blackbox...


All times are GMT -5. The time now is 03:26 PM.