LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Some windows redirected to console (not in VNC) (https://www.linuxquestions.org/questions/red-hat-31/some-windows-redirected-to-console-not-in-vnc-110684/)

jswilson 10-30-2003 11:16 PM

Some windows redirected to console (not in VNC)
 
I am using VNC to remotely control a Red Hat 9 system. Some of the applications display on the console instead of the VNC screen. [I suspect that they are hardwired to show up on display 0, but I don't know enough about Linux to be sure if this is the problem.] For example the HTTP Server configuration application does not show up in VNC.

How can I configure the system so that all the applications show up in VNC?
:scratch:

szaroubi 10-31-2003 02:15 PM

Figuer out which display is VNC connecting to.
then before lauching the program from the command line do:
export DISPLAY=<ip_of_vnc_server>:DISPLAY_NUM
example I connect to vnc server 123.123.123.12 on DISPLAY 9 I would do:
%> export DISPLAY=123.123.123.12:9
%> xeyes
And voila ... My VNC client can see me.

szaroubi 10-31-2003 02:18 PM

In the VNC client open a shell and do:
%> export DISPLAY:localhost:<id_of_display>

in above post example:
%> export DISPLAY=localhost:9
%> xeyes

NOTE:
All programs have to be launched from that same shell.
Or repeat that example for all the shells that your are opening.
Commands run from the menu will not work.

jswilson 10-31-2003 03:06 PM

I tried xeyes without the display redirect stuff and it showed up in my VNC client. So I thought maybe if I launch the applications from the shell they will be happy. I then tried redhat-config-httpd, mozilla & redhat-config-xfree86. Only mozilla works. The rest give the following error message:
Xlib: connection to ":1.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key

VNC is on display 1. I am clueless about what Xlib does not like. Can anyone tell me how to placate it?

szaroubi 10-31-2003 03:12 PM

try
xhost +

on the vnc server.

jswilson 10-31-2003 03:19 PM

Thanks!! You are the man!!

If I type in "xhost +localhost" in the shell then all the menus (that I have tried that did not work before) now seem to work. Where can I put this so it happens by it self? Should I put it in "/.vnc/xstartup" ?

szaroubi 10-31-2003 03:22 PM

Right on ...
I never considered myselft to me a "true man" a male .. no ... I am too weak to be a male ...


But thx for the ego boost.


All times are GMT -5. The time now is 09:44 PM.