LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2003, 11:51 AM   #1
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Rep: Reputation: 30
Xvnc couldn't start-->trying to run vnc.....


Hello


I'm running a redhat9-shrike-router where the gui is running well...locallly
I just wanted to install vnc .......here, what I've already doneas user "pablo"):
  • vncpasswd
    --->define pwd.....

    then I changed this file to.....:
    -->$HOME/.vnc/xstartup (the home-dir of user "pablo")....

    #!/bin/sh
    # Sample ~/.vnc/xstartup

    xrdb $HOME/.Xresources
    #xsetroot -solid grey
    #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    startkde &
and then this error message appears when i want to start the vnc service like this:
Code:
[pablo@router1 pablo]$ vncserver :1 -name VNCServer -depth 32 -geometry 1000x700
Couldn't start Xvnc; trying default font path.
Couldn't start Xvnc process.

06/12/03 17:33:11 Xvnc version 3.3.6 - built Jan 15 2003 11:41:01
06/12/03 17:33:11 Copyright (C) 2002 RealVNC Ltd.
06/12/03 17:33:11 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
06/12/03 17:33:11 All Rights Reserved.
06/12/03 17:33:11 See http://www.realvnc.com for information on VNC
06/12/03 17:33:11 Desktop name 'VNCServer' (router1:1)
06/12/03 17:33:11 Protocol version supported 3.3
06/12/03 17:33:11 Listening for VNC connections on TCP port 5901
06/12/03 17:33:11 Listening for HTTP connections on TCP port 5801
06/12/03 17:33:11   URL http://router1:5801
06/12/03 17:33:12 Xvnc version 3.3.6 - built Jan 15 2003 11:41:01
06/12/03 17:33:12 Copyright (C) 2002 RealVNC Ltd.
06/12/03 17:33:12 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
06/12/03 17:33:12 All Rights Reserved.
06/12/03 17:33:12 See http://www.realvnc.com for information on VNC
06/12/03 17:33:12 Desktop name 'VNCServer' (router1:1)
06/12/03 17:33:12 Protocol version supported 3.3
06/12/03 17:33:12 Listening for VNC connections on TCP port 5901
06/12/03 17:33:12 Listening for HTTP connections on TCP port 5801
06/12/03 17:33:12   URL http://router1:5801
....I don't understand that, cause everywhere is written, that's it's just "so easy" to configure this service....
here the file /etc/sysconfig/vncserver:
Code:
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the VNCSERVERS line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own).  You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted!  For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/vnc/sshvnc.html>.

VNCSERVERS="1:pablo"
#VNCOPTIONS="-depth 8 -geometry 1024x768 -alwaysshared"
have I forgotten anything,......? ...please help.....the path''s:
  • export PATH=$PATH:/sbin:/usr/bin:/var/X11R6/bin:/sbin
thanks
pablo

Last edited by pablovschby; 12-06-2003 at 11:52 AM.
 
Old 12-06-2003, 01:10 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Well it look like it is running - are you having problems connecting? Make sure you specify the display when you vnc - eg "ip.of.server.here:1". Also check your firewall rules:
iptables -nL
 
Old 12-06-2003, 01:20 PM   #3
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by david_ross
Well it look like it is running - are you having problems connecting? Make sure you specify the display when you vnc - eg "ip.of.server.here:1". Also check your firewall rules:
iptables -nL
well.... yes it is running.....but ---->what about the error messages about "Xvnc" above........?

I stopped the iptables service, so.... the firewall policies doesn't affect the connection......but the vncviewer on a windows-machine reports: failed to connect to server......when i enter "ip:1" after starting the vnc-service on the router...

kde is installed, and the local gui works....
please help me....thanks for your advices
pablo

Last edited by pablovschby; 12-06-2003 at 01:23 PM.
 
Old 12-06-2003, 01:24 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
it does seem od but it says it is listening. To verify if it is running post the output of:
ps -ef | grep vnc
netstat -nlp
 
Old 12-06-2003, 01:31 PM   #5
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
Code:
[pablo@router1 pablo]$ vncserver :1 -name VNCServer -depth 32 -geometry 1000x700

Warning: router1:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server router1:1
A VNC server is already running as :1
[pablo@router1 pablo]$ ps -ef | grep vnc
pablo     1669  1628  0 20:30 pts/0    00:00:00 grep vnc
------------------------------------
[root@router1 pablo]# netstat -nlp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:1352            0.0.0.0:*               LISTEN      1196/sshd
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      1281/smbd
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1135/
udp        0      0 80.218.69.191:137       0.0.0.0:*                           1287/nmbd
udp        0      0 192.168.3.1:137         0.0.0.0:*                           1287/nmbd
udp        0      0 0.0.0.0:137             0.0.0.0:*                           1287/nmbd
udp        0      0 80.218.69.191:138       0.0.0.0:*                           1287/nmbd
udp        0      0 192.168.3.1:138         0.0.0.0:*                           1287/nmbd
udp        0      0 0.0.0.0:138             0.0.0.0:*                           1287/nmbd
udp        0      0 0.0.0.0:67              0.0.0.0:*                           1269/dhcpd
udp        0      0 0.0.0.0:68              0.0.0.0:*                           882/dhclient
udp        0      0 0.0.0.0:111             0.0.0.0:*                           1135/
raw        0      0 0.0.0.0:1               0.0.0.0:*               7           1269/dhcpd
Aktive Sockets in der UNIX Domäne (Nur Server)
Proto RefZäh Flaggen     Typ        Zustand       I-Node PID/Program name    Pfad
unix  2      [ ACC ]     STREAM     HÃRT         1514   1258/               /tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     HÃRT         1475   1219/gpm            /dev/gpmctl
[root@router1 pablo]#
it looks like the vnc server isn't running.........

Last edited by pablovschby; 12-06-2003 at 01:34 PM.
 
Old 12-06-2003, 01:33 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
well it seems to have died right enough. Remove hte lock file with:
rm -f /tmp/.X1-lock

Try running the vnc server with no options to start with and see if it starts:
vncserver
 
Old 12-06-2003, 01:37 PM   #7
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
Code:
[root@router1 pablo]# rm -f /tmp/.X1-lock
[root@router1 pablo]# exit
exit
[pablo@router1 pablo]$ vncserver :1 -name VNCServer -depth 32 -geometry 1000x700

Warning: router1:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server router1:1
A VNC server is already running as :1
[pablo@router1 pablo]$ su
Password:
[root@router1 pablo]# rm /tmp/.X11-unix/X1
rm: Socket »/tmp/.X11-unix/X1« entfernen? j
[root@router1 pablo]# exit
exit
[pablo@router1 pablo]$ vncserver :1 -name VNCServer -depth 32 -geometry 1000x700
Couldn't start Xvnc; trying default font path.
Couldn't start Xvnc process.

06/12/03 20:36:15 Xvnc version 3.3.6 - built Jan 15 2003 11:41:01
06/12/03 20:36:15 Copyright (C) 2002 RealVNC Ltd.
06/12/03 20:36:15 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
06/12/03 20:36:15 All Rights Reserved.
06/12/03 20:36:15 See http://www.realvnc.com for information on VNC
06/12/03 20:36:15 Desktop name 'VNCServer' (router1:1)
06/12/03 20:36:15 Protocol version supported 3.3
06/12/03 20:36:15 Listening for VNC connections on TCP port 5901
06/12/03 20:36:15 Listening for HTTP connections on TCP port 5801
06/12/03 20:36:15   URL http://router1:5801
06/12/03 20:36:16 Xvnc version 3.3.6 - built Jan 15 2003 11:41:01
06/12/03 20:36:16 Copyright (C) 2002 RealVNC Ltd.
06/12/03 20:36:16 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
06/12/03 20:36:16 All Rights Reserved.
06/12/03 20:36:16 See http://www.realvnc.com for information on VNC
06/12/03 20:36:16 Desktop name 'VNCServer' (router1:1)
06/12/03 20:36:16 Protocol version supported 3.3
06/12/03 20:36:16 Listening for VNC connections on TCP port 5901
06/12/03 20:36:16 Listening for HTTP connections on TCP port 5801
06/12/03 20:36:16   URL http://router1:5801

[pablo@router1 pablo]$ ps -ef | grep vnc
pablo     1794  1628  0 20:36 pts/0    00:00:00 grep vnc
------------------------
Code:
[root@router1 pablo]# netstat -nlp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:1352            0.0.0.0:*               LISTEN      1196/sshd
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      1281/smbd
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1135/
udp        0      0 80.218.69.191:137       0.0.0.0:*                           1287/nmbd
udp        0      0 192.168.3.1:137         0.0.0.0:*                           1287/nmbd
udp        0      0 0.0.0.0:137             0.0.0.0:*                           1287/nmbd
udp        0      0 80.218.69.191:138       0.0.0.0:*                           1287/nmbd
udp        0      0 192.168.3.1:138         0.0.0.0:*                           1287/nmbd
udp        0      0 0.0.0.0:138             0.0.0.0:*                           1287/nmbd
udp        0      0 0.0.0.0:67              0.0.0.0:*                           1269/dhcpd
udp        0      0 0.0.0.0:68              0.0.0.0:*                           882/dhclient
udp        0      0 0.0.0.0:111             0.0.0.0:*                           1135/
raw        0      0 0.0.0.0:1               0.0.0.0:*               7           1269/dhcpd
Aktive Sockets in der UNIX Domäne (Nur Server)
Proto RefZäh Flaggen     Typ        Zustand       I-Node PID/Program name    Pfad
unix  2      [ ACC ]     STREAM     HÃRT         1514   1258/               /tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     HÃRT         1475   1219/gpm            /dev/gkmctl

Last edited by pablovschby; 12-06-2003 at 01:39 PM.
 
Old 12-06-2003, 02:35 PM   #8
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
_

Last edited by pablovschby; 12-06-2003 at 02:53 PM.
 
Old 12-06-2003, 02:53 PM   #9
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
_

Last edited by pablovschby; 12-07-2003 at 05:54 AM.
 
Old 12-06-2003, 05:15 PM   #10
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
isn't there anything else, that I could have forgotten-....?
please help
 
Old 12-07-2003, 05:45 AM   #11
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
is this one of these problems that can't be solved on linux...? I don't believe that....
please help
.... also give me hints, in which area this problem could be, please....

also tell me, if my actions were right, please...... a hint like "you've done everything correctly.... i don't know, why it shouldn't run..." would be an advise......

Last edited by pablovschby; 12-07-2003 at 05:55 AM.
 
Old 12-07-2003, 10:47 AM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try following what I actually said in post 6
 
Old 12-07-2003, 11:07 AM   #13
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
thanks....the problem is solved...it just ran.... there were some options I've just deleted in xstartup....now it runs welll
thanks a lot
 
Old 01-11-2009, 11:11 PM   #14
vs.mahalakshmi
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by pablovschby View Post
thanks....the problem is solved...it just ran.... there were some options I've just deleted in xstartup....now it runs welll
thanks a lot
How did you corrected this problem. I would like to know. Becoz. I am facing the same problem.
Thanks.
 
Old 10-20-2012, 03:19 AM   #15
seighalani
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 15
thanks a lot david_ross

my problem solved by remove /tmp/.X...
 
  


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
Start VNC at boot VBAHole22 Linux - Networking 3 06-14-2004 04:09 AM
How do i Run vnc on my linux box? hornet74 Linux - Networking 4 11-14-2003 04:52 PM
Can VNC run under LAN? iamthewind Linux - Software 7 10-16-2003 10:33 PM
Getting VNC to run with Gnome Dark_Helmet Linux - Software 2 07-02-2003 12:30 AM
How do you run vnc madiyaan Linux - Newbie 2 05-04-2003 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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