Skip navigation
This discussion is archived

Connect to AIX (Unix) from Leopard

2484 Views 9 Replies Latest reply: Dec 15, 2007 1:10 PM by Lanny Rosicky RSS
Lanny Rosicky Level 1 Level 1 (60 points)
Currently Being Moderated
Nov 27, 2007 8:22 AM
Befpre I installed Leopard, I was able to fire up vncserver on my AIX 5.2 (Unix) and connect to it using Chicken of VNC.

Now with Leopard I do get the X window from my AIX box (grey) but cannot run any applications from the AIX, getting "Can't open display". I could not locate xhost except in X11.app.

Could you please point me to some reading.
iMac 20, Titanium, iMac 24" C2D, Mac OS X (10.5.1), some wintel :-(
  • jarik Level 4 Level 4 (1,005 points)
    Currently Being Moderated
    Nov 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)
  • jarik Level 4 Level 4 (1,005 points)
    Currently Being Moderated
    Nov 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>
    in (t)csh.

    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)
  • jarik Level 4 Level 4 (1,005 points)
    Currently Being Moderated
    Nov 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: jarik
    MacBook Pro, Powerbook G4, Mac OS X (10.5.1)
  • Nils C. Anderson Level 4 Level 4 (3,480 points)
    Currently Being Moderated
    Nov 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

    xterm -display

    just another variation.
    15in. PowerBook G4, 15in. MacBook Pro, Mac OS X (10.4.11)
  • Hawaiian Scuba Dude Calculating status...
    Currently Being Moderated
    Dec 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.

    export DISPLAY=xxx.xxx.xxx.xxx:0



    This command will anybody or the specified person to display stuff in your X session depending on the duration and how secure you want
    iMac 20, Mac OS X (10.5.1)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.