How Can I Run Install Program In Graphical Mode in Unix AIX?

Posted on 2011-10-18
Last Modified: 2013-11-22
I'm Trying to run an install program called: Server Manager agent. It's an install program for the JD Edwards Enterpriseone ERP Software that we use.

The  install file is: (smha_setup_aix). I'm trying to run it  in "graphical mode" on our AIX Unix server so that I can see the wizard and install it that way. but it keeps erroring out on me. I know there are JAVA paths that you have to enter just not sure what the commands are. Please advise. see attached screen print for the error. Thanks.
Question by:matrix0511
    LVL 68

    Expert Comment

    ./smha_setup_aix -console

    Or install an Xserver on your Windows box (where PuTTY runs), like Xming,
    and enable X11 forwarding in PuTTY (Configuration -> Connection ->SSH -> Enable X11 forwarding).


    Author Comment

    @woolmilkporc, could you give me a little more detail on setting up the Xserver on windows box? I'm not a Unix expert so I need more detailed steps on setup if you don't mind.

     I do have Putty installed on my windows machine that I use to connect to  my unix servers. So to setup, I need to download a tool called: Xming? Is the install straightforward? Just take defaults?

    After install, you say to click on Configuraiton (I assume this will be at the top menu bar?) then SSH - Enable X11 Forwarding. Any other steps for setting this up? Do I not have to provide Unix server names int the Xming tool?

    LVL 68

    Accepted Solution


    Download Xming from here:

    It's an XServer for Windows used to display the graphical X output of Unix clients.

    Just install it using the Wizard, accepting all defaults.

    Next, click on the new XLaunch icon.

    Select "Multiple Windows", leave "DISPLAY Number" at "0" if there's no other XServer running.
    Click "Next". Select "Start no client".
    Click "Next". Check "No Access Control".
    Click "Next", then "Finish".
    Your new Xserver will start in the background.

    Now use PuTTY to log in to AIX

    Done this issue

    export DISPLAY=MyWindowsPC:0

    where MyWindowsPC is the hostname of your Windows PC, and "0" is the DISPLAY number from XLaunch above.

    Issue "xclock" for testing.

    If you see a small analog clock on your screen you should now be able to run ./smha_setup_aix  in graphical mode.

    Here is an Xming HOWTO, if you want to learn more about it:



    Author Comment

    Guys, one aother thing. I noticed on AIX Unix servers you have to preface all commands with "./". So for example to run a script called "" on AIX i have to enter: ./

    However, on HP-UX systems I ONLY have to enter the actual script name:

    Is that true? IF so, why is it that AIX appears to be the only Unix version that demands you enter "./" ??
    LVL 68

    Expert Comment

    Are you root?

    root doesn't have the current directory ( ".") in his PATH.

    You could add the current directory to your PATH. This is considered insecure, however.

    To do it nonetheless add to your ".profile"

    export PATH=$PATH:.

    at the very end of the file.

    Logout anf login again to make this setting take effect.

    Another, more secure option is storing all your scripts in a common location, let's say /usr/local/bin (create it if necessary with "mkdir -p /usr/local/bin") and adding this location to your PATH:

    export PATH=$PATH:/usr/local/bin

    Again, logout anf login again to make this setting take effect.


    Author Comment

    woolmilkporc, I apologize for being a rather newbie when it comes to this. but I have always struggled a bit with understanding how Environment Variables work on Unix. I come from Windows background so I the enviroment varialbes work differently.

    Adding the line: export PATH=$PATH:.

    What is that telling the system? I am a software support guy. I support the JD Edwards Enterpriseone Software on our AIX servers. We just recently purchaded a new AIX server to ADD to our existing system. I have most of the tasks complete. But i'm having trouble with enviroment variables. My .profile is pretty much empty with the exception of a couple of lnes.

    Does the path to my Oracle client install and the path to my JD EDwards softwar have to be listed in my .profile? I thought it did. But when I check the other JD EDwards AIX servers, logged in as me I don't see any paths.

    I thnk what I need is a crash course in understanding environment variables on Unix and when and why I may need to add a PATH to my .profile.

    Thanks in advance!
    LVL 68

    Expert Comment

    >> What is that telling the system <<

    The statement constructs a new PATH variable by taking its current value ("$PATH") and appending the path delimiter (":") and the current directory (".", the dot is a hard link to the current directory).
    "export" makes the variable known to subshells of the current shell (e.g. scripts called from that shell).

    PATH is examined by the shell in order to find executables which are called without supplying any directory information, like

    >> Does the path to my Oracle client install and the path to my JD EDwards softwar have to be listed <<

    Basically, you don't need any PATH if you're willing to call each and every program or script by its full path, like /home/matrix0511/
    Setting PATH is a matter of convenience.

    >> I thnk what I need is a crash course in understanding environment variables <<

    Here is all about Korn shell (the standard shell in AIX), including variables (the first two paragraphs):


    LVL 61

    Expert Comment

    You have to install putty terminfo/termcap files in AIX, otherwise you get all your mistypings.
    Normally SSH client (also putty) has an X11 forward option which should be enabled (preferably also on "server" too)

    Then it displays pictures of remote application on an Xserver (Xming etc) locally.
    If you happen to run Linux on a client computer it just works without any extra configuration.

    java -jar command requires a full name of a jar file (and you need to type java as a command and not LeftArrowRightArrowjava

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machineā€¦
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now