This discussion is archived
2484 Views 9 Replies Latest reply: Dec 15, 2007 1:10 PM by Lanny Rosicky
Currently Being ModeratedNov 27, 2007 1:30 PM (in response to Lanny Rosicky)If you're able to open up a vnc session to the AIX host, and then try to run an X program by typing something like "xterm &" in a terminal window running on the AIX host, and you're getting that DISPLAY complaint, then that's nothing to with your VNC client running on your Mac, it's a problem with you AIX shell environment. Try running "echo $DISPLAY" on it. If I didn't understand your situation, please clarify.MacBook Pro, Powerbook G4, Mac OS X (10.5.1)
Currently Being ModeratedNov 27, 2007 2:05 PM (in response to jarik)Thank you. You understood it perfectly. However, it worked in Tiger ...
I tried all possible combinations of DISPLAY such as
The display name shown on top of the window which opens on my Mac
... and keep getting cannot open display (initialized in the environment DISPLAY). Can you advice on what the proper value for DIAPLY could be?iMac 20, Titanium, iMac 24" C2D, Mac OS X (10.5.1), some wintel :-(
Currently Being ModeratedNov 27, 2007 2:20 PM (in response to Lanny Rosicky)Since your X server is running on the same host as your client (and only displayed via VNC) you should be able to get away with
<pre class=command>export DISPLAY=:0.0</pre>
in sh, bash, ksh, or
<pre class=command>setenv DISPLAY <colon here>0.0</pre>
Message was edited by: jarik
I had to replace ':' with "<colon here>" because of the automatic smiley system.MacBook Pro, Powerbook G4, Mac OS X (10.5.1)
Currently Being ModeratedNov 27, 2007 2:50 PM (in response to jarik)After DISPLAY=0:0 and sunning xterm on the remote machine I get:
xterm Xt error: Can't open display: 0:0
immediately. Since I start vnc on 5901 I also tried DISPLAY=1:0
I takes longer but eventually also get
xterm Xt error: Can't open display: 1:0
My vncserver (on the remote UNIX) looks like this:
root 20816 1 0 09:48:49 - 0:00 Xvnc :1 -desktop X -httpd /opt/freeware/vnc/classes -auth //.Xauthority -geometry 1024x768 -depth 8 -rfbwait 120000 -rfbauth //.vnc/passwd -rfbport 5901 -nolisten local -fp usr/lib/X11/fonts/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/,/usr/lib/ X11/fonts/100dpi/,/usr/lib/X11/fonts/ibm850/,/usr/lib/X11/fonts/Type1/iMac 20, Titanium, iMac 24" C2D, Mac OS X (10.4.8), some wintel :-(
Currently Being ModeratedNov 27, 2007 3:26 PM (in response to Lanny Rosicky)I'm getting a little confused again. But did you try DISPLAY=:0.0, not DISPLAY=0:0. This would mean display number zero on the localhost.
I don't have access to my old Xvnc configs any more, but I think that Xvnc will start it's own Xserver. And looking at the command line, and especially the "Xvnc :1" part I seem to remember this means "use DISPLAY 1". The correct DISPLAY setting for the client then would be ":1.0". This is only coincidentally connected with your "-rfbport 5901" (i.e.vnc display 1) setting (meaning you could run "Xvnc :1 ..." with "-rfbport 5902" but then it will really start to get confusing).
Message was edited by: jarikMacBook Pro, Powerbook G4, Mac OS X (10.5.1)
Currently Being ModeratedNov 27, 2007 5:02 PM (in response to Lanny Rosicky)I'm not familar with aix, but have you tried doing a 'ps -elf' or ps auxwww' and look for
the X11, process, it may tell you what the display variable should be set too. just a thought.
have you tried
just another variation.15in. PowerBook G4, 15in. MacBook Pro, Mac OS X (10.4.11)
Currently Being ModeratedDec 8, 2007 3:51 PM (in response to Nils C. Anderson)Sorry for the delay in thanking you for your reply.
I believe that I tried everything. It is a problem of the "host" system but I cannot nail it down. I am instead using X now - that is I fire ssh -X and from the connected session run xterm to my X-server in the Mac. Works like a charm.iMac 20, Titanium, iMac 24" C2D, Mac OS X (10.5.1), some wintel :-(
Currently Being ModeratedDec 9, 2007 4:45 AM (in response to Lanny Rosicky)I'm not sure of the entire problem but this might help
Prior to connecting to the AIX box, use xhost(1) to allow you to display stuff back to your Xsession.
Once on the AIX box, type who(1) or who am i. If you used ssh or rsh to connect to the AIX box, you should be able to identify the remote user and remote host of where you are coming from. This will be displayed in the right column. export your display to the IP address identified.
This command will anybody or the specified person to display stuff in your X session depending on the duration and how secure you wantiMac 20, Mac OS X (10.5.1)