Install UG NX 9.0 on Ubuntu 12.04

Here are some notes about UG NX 9.0 installation on Ubuntu 12.04 (aka precise), but probabilly working also for different NX / Ubuntu versions .

1) Install the following libraries:
sudo apt-get install libmotif3
sudo apt-get install libstdc++5

2) Download from the official website the installation package and uncompress it.
In the folder you will find a ug_install file, that needs to be edited:
At line 103 replace "Suse" with "Ubuntu".
At the following lines, replace the correct X11/app-defaults path (it should be /etc/X11/app-defaults)

3) From installation dir, launch:
sudo ./ug_install

4) You need to set environmental variables. In (my_UG_install_dir)/ugii/ugii_env.dat set:
SPLM_LICENSE_SERVER=XXXX@YYYYY (server license on YYYYY server)
UGS_LICENSE_BUNDEL=.... (name of your license bundle. In my case, P1)
UGII_JAVA_HOME= dir of JRE installation, for instance /usr/lib/jvm/java-X-openjdk-amd64/jre/ where X stands for java version.

Note: (my_UG_install_dir) is your own installation dir. Default is usr/usg090/

5)To launch the programm:

Final remarks:
- In ugii_env.dat (see point 4) you should set environmental variables according to ug_env_ug.dat in order to specify your own setting files
- lsb 3.0 libraries may be needed
- If you have problems with graphical settings and in particular with tools windows, delete $HOME/.nx90 dir and re-launch NX
- I encountered problems when I tried to export STEP or IGES format and still I didn't manage to fix them.

Created on 02/08/2014 by Federico