LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 10-30-2003, 11:16 PM   #1
jswilson
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
Question 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?
 
Old 10-31-2003, 02:15 PM   #2
szaroubi
Member
 
Registered: Oct 2003
Location: Montreal
Distribution: All/Any
Posts: 59

Rep: Reputation: 15
Figuer out which display is VNC connecting to.
then before lauching the program from the command line do:
export DISPLAY=<ip_of_vnc_server>ISPLAY_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.
 
Old 10-31-2003, 02:18 PM   #3
szaroubi
Member
 
Registered: Oct 2003
Location: Montreal
Distribution: All/Any
Posts: 59

Rep: Reputation: 15
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.
 
Old 10-31-2003, 03:06 PM   #4
jswilson
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
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?
 
Old 10-31-2003, 03:12 PM   #5
szaroubi
Member
 
Registered: Oct 2003
Location: Montreal
Distribution: All/Any
Posts: 59

Rep: Reputation: 15
try
xhost +

on the vnc server.
 
Old 10-31-2003, 03:19 PM   #6
jswilson
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
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" ?
 
Old 10-31-2003, 03:22 PM   #7
szaroubi
Member
 
Registered: Oct 2003
Location: Montreal
Distribution: All/Any
Posts: 59

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


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
Whoppix remote console with VNC juanb Linux - General 0 07-15-2005 09:28 AM
iptables - why am I still being redirected? michaelsanford Linux - Networking 1 05-23-2005 03:52 PM
GPG and redirected input Vookimedlo Linux - Software 1 04-30-2005 04:32 PM
Is a Domain being redirected? rigel_kent Programming 0 02-14-2005 06:43 AM
my domain is getting redirected to a different ip. QS_Shorty Linux - Newbie 3 02-10-2004 08:22 PM


All times are GMT -5. The time now is 04:27 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