OpenQNX :: The QNX Community Portal

May 13, 2008 - 04:33 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 54 unlogged users and 0 registered users 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
nsiddiqui
Post subject: Running gvim on VNC  PostPosted: Nov 28, 2007 - 09:31 PM
New Member


Joined: Nov 26, 2007
Posts: 6

I am trying to run gvim application on my VNC desktop client which is running on QNX 6.2.1 host with fvwm desktop. Whenever I start the gvim it starts it on the host and not on the VNC desktop client. This is the same case for Mozilla browser. I will really appreciate any help on this.

Thanks,

Nasir.
 
 View user's profile Send private message  
Reply with quote Back to top
micro
Post subject: RE: Running gvim on VNC  PostPosted: Nov 29, 2007 - 11:28 AM
Senior Member


Joined: Jul 22, 2004
Posts: 317

you are using the xf86 implementation for qnx?
check your DISPLAY-env, if this is set wrong it will start UI-Apps on the server-X rather then on your remote-desktop.
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject: Re: Running gvim on VNC  PostPosted: Nov 29, 2007 - 06:26 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

nsiddiqui wrote:
I am trying to run gvim application on my VNC desktop client which is running on QNX 6.2.1 host with fvwm desktop. Whenever I start the gvim it starts it on the host and not on the VNC desktop client. This is the same case for Mozilla browser. I will really appreciate any help on this.

Thanks,

Nasir.



Isn't that the expected behavior?
VNC client is just something that let you "see" the graphics from the host server. Whatever you run inside the VNC client window is actually on the host (VNC server).
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
nsiddiqui
Post subject: RE: Re: Running gvim on VNC  PostPosted: Nov 29, 2007 - 06:55 PM
New Member


Joined: Nov 26, 2007
Posts: 6

Actually I am not seeing the gvim on my client window whenever I it from my vnc client window xterm like gvim &, the actual server machine displays it, but when I do xterm & or emacs &, those are properly displayed on my vnc desktop, my environment is following.

PHWM=pwm
PHOTON_PATH=/usr/photon
PHTK_PATH=/usr/photon
OLSTARGET=PPC
VNCDESKTOP=X
PHSTART=1
USER_NAME=/dev/photon
LC_ALL=C
PHINSTANCE=1
PHOTON=/dev/photon
DISPLAY=localhost:1.0
SHLVL=3
LOGNAME=root
SHELL=/usr/bin/bash
CVSROOT=:pserver:nsiddiqui@cvs:/data/bti
SYSNAME=nto
HOME=/root
TERM=xterm
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject: RE: Re: Running gvim on VNC  PostPosted: Nov 29, 2007 - 07:16 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

Your gvim may be a script or an alias that has reset the display.
do:
alias | grep gvim
which gvim
file `which gvim`

also, try to force the display:
gvim -display localhost:1.0
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
nsiddiqui
Post subject: RE: Re: Running gvim on VNC  PostPosted: Nov 29, 2007 - 07:26 PM
New Member


Joined: Nov 26, 2007
Posts: 6

I tried to do the force display and got the following response

gvim -display localhost:1.0 &
[4] 1040535616
root@localhost:/usr/X11R6/bin$ VIM - Vi IMproved 6.1 (2002 Mar 24, compiled May 22 2002 11:01:2Cool
Garbage after option: "-display"
More info with: "vim -h"


Also by doing the which gvim gave me following which shows that it is just a path

root@localhost:/usr/X11R6/bin$ alias | grep gvim
root@localhost:/usr/X11R6/bin$
root@localhost:/usr/X11R6/bin$
root@localhost:/usr/X11R6/bin$
root@localhost:/usr/X11R6/bin$ which gvim
/usr/bin/gvim
root@localhost:/usr/X11R6/bin$ file `which gvim`
/usr/bin/gvim: symbolic link to vim
root@localhost:/usr/X11R6/bin$

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject:   PostPosted: Nov 29, 2007 - 07:40 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

Seems like your gvim doesn't support X Window (VNC).
It's probably a hacked version that supports text mode and Photon GUI. You must have a Photon running on the host itself, and those photon apps (gvim, mozilla) will show up there.
You will need an X Window version if you want to run within VNC. www.sourceforge.net/projects/openqnx may have an X version of mozilla. Not sure about gvim, you may have to compile yourself to have the X support.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
nsiddiqui
Post subject:   PostPosted: Nov 29, 2007 - 07:51 PM
New Member


Joined: Nov 26, 2007
Posts: 6

Thanks noc, as I mentioned, starting gvim on the vnc desktop, actually does start a gui version, but it is displayed on my qnx machine which is running vncserver instead of the vnc desktop which is running on my xp machine. This is the same case for the mozilla. That means my qnx machine have the gui versions of both, but they do not show up on the vnc desktop. Does that still mean that my gvim does not have the support for X Window and I will need to compile one for that ?

Thanks.
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject:   PostPosted: Nov 29, 2007 - 08:51 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

I guess I wasn't clear.

QNX 6 supports two GUI systems: X Window and Photon.
VNC falls under X Window.

Your gvim and mozilla only support Photon.
Your server (host) runs both VNC server and Photon.
When you run gvim or mozilla, it shows on the Photon GUI, but your VNC client can only "see" VNC server, not photon.

If you client runs MS Windows, you can use "phindows" application, which allows you to "see" the Photon GUI on the server (host).
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
nsiddiqui
Post subject:   PostPosted: Nov 29, 2007 - 10:12 PM
New Member


Joined: Nov 26, 2007
Posts: 6

Ok, I got it now. So is it possible to install X windows version of the gvim in addition to the photon version of the gvim which is already installed on my qnx machine (which has the vnc server)? If it is possible, how can I go about it (what should be the steps to do that ) and how can I tell the vnc client to use the X windows version of the gvim and not the photon version.

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject:   PostPosted: Nov 29, 2007 - 10:41 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1629

Yes, you can have two versions coexist, as long as they are in different directories.
When you compile your own vim (gvim), you can specify --prefix to install it into a different location.
For example, if you use --prefix=/usr/local, your gvim will end up in /usr/local/bin. You can then launch your X version of gvim with /usr/local/bin/gvim, or just create an alias, or set up your PATH to have /usr/local/bin ahead of /usr/bin (where your other gvim is).
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
nsiddiqui
Post subject:   PostPosted: Nov 30, 2007 - 08:42 PM
New Member


Joined: Nov 26, 2007
Posts: 6

Thanks for the clarification are there any versions of the gvim under X whichcan compile in qnx ?
 
 View user's profile Send private message  
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.