LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-05-2003, 01:44 PM   #1
JoshNelson
LQ Newbie
 
Registered: Sep 2003
Distribution: RH 9
Posts: 11

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


Last edited by JoshNelson; 10-05-2003 at 01:45 PM.
 
Old 10-05-2003, 01:46 PM   #2
JoshNelson
LQ Newbie
 
Registered: Sep 2003
Distribution: RH 9
Posts: 11

Original Poster
Rep: Reputation: 0
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]#
 
Old 10-05-2003, 01:48 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you're running it as root? wow that's a bad idea....

what are you entering on the windows client?
 
Old 10-05-2003, 01:48 PM   #4
Cubsy
LQ Newbie
 
Registered: Sep 2003
Posts: 8

Rep: Reputation: 0
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
 
Old 10-05-2003, 02:06 PM   #5
JoshNelson
LQ Newbie
 
Registered: Sep 2003
Distribution: RH 9
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 10-05-2003, 02:56 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

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


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
vncserver does not work - 2006 x86_64 ejennings_98 Mandriva 15 11-25-2005 09:40 AM
Robust vncserver startup file (rc.vncserver) arobinson74 Slackware 4 05-14-2005 05:33 AM
getting vncserver to work on Fedora jerryk Linux - Newbie 1 07-15-2004 11:36 AM
can vncserver work on X mgyildiz Linux - Software 4 03-14-2004 06:37 PM
Getting Vncserver to work on Fedora ajspliffs Linux - Software 2 01-13-2004 02:57 PM


All times are GMT -5. The time now is 04:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration