OpenQNX :: The QNX Community Portal

May 17, 2008 - 11:58 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 36 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
asmart
Post subject: Howto run vnc server in QNX?  PostPosted: Nov 08, 2006 - 07:54 AM
Active Member


Joined: Nov 25, 2005
Posts: 18

I want to connect vnc server on QNX from XP. I installed both
Xvnc-3.3.7-qnx6-bin.tar.gz and xf86-4301-qnx6-bin.tar.gz
by following procedures:
cd /
gzip xxx.tar.gz
tar -xf xxx.tar

after a reboot...
when I execute Xvnc, it shows errors as below:

_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already run
ning

Can anyone kindly me how to run vnc server on QNX?

P.S. I had start "inetd &" inside the /etc/rc.d/rc.local.
I can also connect from QNX to XP by "vncviewer"


Last edited by asmart on Nov 09, 2006 - 12:11 AM; edited 1 time in total
 
 View user's profile Send private message MSN Messenger  
Reply with quote Back to top
noc
Post subject:   PostPosted: Nov 08, 2006 - 10:11 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

I thought you had to execute the wrapper script "vncserver" rather than the Xvnc directly.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
asmart
Post subject:   PostPosted: Nov 09, 2006 - 11:09 AM
Active Member


Joined: Nov 25, 2005
Posts: 18

I try to run vncserver on QNX 6.3.0 SP2 with following errors:
/bin/sh: vncserver: No such file or directory
I even try to run from where it locates /usr/X11R6/bin, still same error.

I guess I did not install perl, but after installed perl from 3th party CD, it still has same error message
 
 View user's profile Send private message MSN Messenger  
Reply with quote Back to top
noc
Post subject:   PostPosted: Nov 10, 2006 - 12:16 AM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

does "which vncserver" find it in the right path?
try /usr/X11R6/bin/vncserver

"vncserver" is a perl script that expect /usr/bin/perl. Do you have your /usr/bin/perl ?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
asmart
Post subject:   PostPosted: Nov 10, 2006 - 07:21 AM
Active Member


Joined: Nov 25, 2005
Posts: 18

execute "which vncserver" returns /usr/X11R6/bin/vncserver
execute "which perl" returns /opt/bin/perl
therfore I create a link as below:
ln -s /opt/bin/perl /usr/bin/perl

then execute "vncserver" returns an error:
: socket failed: Address family not supported by protocol family
 
 View user's profile Send private message MSN Messenger  
Reply with quote Back to top
noc
Post subject:   PostPosted: Nov 10, 2006 - 06:19 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

What version of QNX 6? Post "uname -a"

It seems you are running on an old QNX 6 where Unix domain socket is not supported.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
asmart
Post subject:   PostPosted: Nov 16, 2006 - 01:13 AM
Active Member


Joined: Nov 25, 2005
Posts: 18

It shows,
QNX 6.3.0 2004/04/29-21:23:19UTC x86pc x86

Where is wrong?
 
 View user's profile Send private message MSN Messenger  
Reply with quote Back to top
noc
Post subject:   PostPosted: Nov 20, 2006 - 05:28 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

I finally got a chance to try it on my qnx 6.3.
1) installed perl from QopenCD project.
2) installed xf86-4301-qnx6-bin.tar.gz and Xvnc-3.3.7-qnx6-bin.tar.gz from the openqnx project.

export PATH=/usr/X11R6/bin:$PATH
export LD_LIBRARY_PATH=/usr/X11R6/lib:$LD_LIBRARY_PATH

vncserver

it works fine, no errors.

A few things I can suggest:
1) Do you have a local X window running the machine? If so, try to stop it and then run vncserver.
2) Do you have multiple installations of X? check if you have both /opt/X11R6 and /usr/X11R6 directory. You may have to remove the /opt/X11R6

Good luck.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
TrongNguyen
Post subject:   PostPosted: Mar 28, 2008 - 06:03 PM
Active Member


Joined: Jun 14, 2006
Posts: 10

Hi noc,
I follow your instruction but perl from QopenCD is difficult to get.
Can you help ?

Thanks,

Trong

------------------

noc wrote:
I finally got a chance to try it on my qnx 6.3.
1) installed perl from QopenCD project.
2) installed xf86-4301-qnx6-bin.tar.gz and Xvnc-3.3.7-qnx6-bin.tar.gz from the openqnx project.

export PATH=/usr/X11R6/bin:$PATH
export LD_LIBRARY_PATH=/usr/X11R6/lib:$LD_LIBRARY_PATH

vncserver

it works fine, no errors.

A few things I can suggest:
1) Do you have a local X window running the machine? If so, try to stop it and then run vncserver.
2) Do you have multiple installations of X? check if you have both /opt/X11R6 and /usr/X11R6 directory. You may have to remove the /opt/X11R6

Good luck.
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject:   PostPosted: Mar 28, 2008 - 11:53 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

You can install perl from other places (eg: 3rd party CD), but you need to make sure that the first line of the "vncserver" command point to the right location of the perl.

One thing you have to remember is Xvnc was compiled in QNX 6.2.X. If you run it on other versions of QNX, it may or may not work. Supposedly higher versions of QNX (eg: 6.3) is backward compatible with old ones. If you encounter any problems, you should report to qnx.com so that they know they broke the backward compatibility.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
TrongNguyen
Post subject:   PostPosted: Mar 29, 2008 - 12:13 PM
Active Member


Joined: Jun 14, 2006
Posts: 10

noc,

I trial the Perl5.5 from QNX Community, I can start vncserver, but first it required libperl.so, then after modifying LD_LIBRARY_PATH, it is OK and require another thing
----Unknown symbol: fchdir Could not resolve all symbols---------

You're right I'm using QNX6.3 SP3 now.
I will try to downgrade to 6.2.X

If you still have a link to your package Perl5.8.6_qcc2.95.3_nto6.3_x86
in QOpenCD project. It would be nice.

Thanks noc

noc wrote:
You can install perl from other places (eg: 3rd party CD), but you need to make sure that the first line of the "vncserver" command point to the right location of the perl.

One thing you have to remember is Xvnc was compiled in QNX 6.2.X. If you run it on other versions of QNX, it may or may not work. Supposedly higher versions of QNX (eg: 6.3) is backward compatible with old ones. If you encounter any problems, you should report to qnx.com so that they know they broke the backward compatibility.
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject:   PostPosted: Mar 30, 2008 - 06:39 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

First you need to find out whether the
----Unknown symbol: fchdir Could not resolve all symbols---------
error comes with perl (vncserver perl script) or the Xvnc itself.

I am not sure where you downloaded your perl, but if it is a perl issue, you should report the problem to them. You can also try to use the perl from the old QNX 6.2.1:
http://download.qnx.com/contrib/repository621a/repository.qrm
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.