• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1229
  • Last Modified:

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

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.
  • 4
  • 3
1 Solution
./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).

matrix0511Author Commented:
@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?


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:



What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

matrix0511Author Commented:
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 "john.sh" on AIX i have to enter: ./john.sh

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

Is that true? IF so, why is it that AIX appears to be the only Unix version that demands you enter "./" ??
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.

matrix0511Author Commented:
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!
>> 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 john.sh

>> 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/john.sh
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):



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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now