有DEB包的软件是很好安装的。但商业软件是不是也会去做DEB包呢? 有些小的软件是有的,但大型的呢,如UG。PROE 等。
看看UG的安装,太麻烦了。
Showan2
January 6th, 2008, 10:25 AM
Hi
Sorry for this late reply!
Because I had a few people asking questions about installing NX 5 on Ubuntu, I will try tro explain here how I managed to install and run it:
My system specs are: C2D E6300, 2GB of RAM, Geforce 7600 GS with Gutsy 64 bit now. Remember, you need a 64 bit OS!
Step 1: Get a CID key (Composite ID)
First of all, you need a CID key for Linux. This is a key based on your hardware and OS.
On the GTAC support site (contact you school for a webkey) you will find 2 CID key generators, one for Suse 64 bit and one for Red Hat 64 bit. Both will work and both will generate the same key on all 64 bit Linux OS. Strangely they are named xxxx.exe but don't let they fool you you can just run it with ./xxxx.exe. The windows CID key generator generates a different key, so it's useless!
Send your CID key to your school, employer or directly to UGS/Siemens and they will send you a license file.
Step2: Get a copy of NX5 for Linux
Secondly, get a legal copy of NX5 for Linux (Suse 64). If you have a webkey account with fixed IP you can just download the install files from the GTAC support site.
Otherwise, your school can get the install DVD's for you via UGS/Siemens .There's also a Linux version of other interesting software (Nastran/Cast/...), you might want them to.
Step 3: Installation of the files
Now begins the actual installation of NX5 and it's components. Unpack all the installation files. Inside there is usually a few compressed maps with a complex ksh script (I used pdksh).
The ksh script is the install script, but it has to be slightly modified. It's designed to handle all sort of UNIXes but as a drawback it's unnecessary complex. I can't remember exact all of the modifications I made, because I don't have the install files anymore. But I will try:
Step 3a: Make the install scripts executable
Easiest way is to rightclick them and make them executable in the properties dialog.
Step 3b: Decide where you want to install the files
I made a map /opt/UGS where I installed all the files. Standard install goes to /usr/ugs and usr/ugslicensing.
Step3c: Install ugslicensing
cd dir-with-installation-files-of-ugslicensing && ./name-of-installscript
Respond to questions asked, you will likely get some error.
With every install script always check the Linux parameters: when you see something like
;;
Linux) # Linux machine.
check if all parameters are ok for you (for example installation dir for the software)
I remember also an error about the used uncompressing package, replace it with the one that's installed in Ubuntu. (find the package name with synaptic)
Step 3d: Install NX5 basefiles
If you try to run the unmodified ksh script (cd dir-with-installation-files-of-nx5 && ./name-of-installscript) it will get stuck at a certain point in a loop. Open the script with a text editor (probably you need root permissions), find the message that it returns, and just comment that part of the script. Also modify the parameters as described in 3c.
Now try to run it and respond to the questions asked.
If this still doesnt work give me the error I will try to help you.
Step 3e: Install NX5 maintenance packs, maintenance relases, NXNastran solver, nxcast, documentation,....
Just repeat Step 3d for this kind of software. Remember to direct updates to the right install dir.
Maintenance releases and updates can be found on GTAC Support Site, webkey is needed.
:::::::::::::::::::::::::::::::::::::
ALTERNATIVE INSTALL METHOD: (Instead of 3c-3e)
If the above didn't work for you, I don't know if this procedure would work, I never tested it.
*make a map like /opt/UGS
*unzip all the pieces in the installation folder (admin,bin,catiav5,....,ugii(base dir)) and copy the maps to /opt/UGS
:::::::::::::::::::::::::::::::::::::::
Ok now installation is hopefully successfull, a fews more things need to be done for we can run NX5 and all it's components:
Step 5: modify license file
Hopefully by now you got your license file from UGS.
Open it with sudo.
Modify 16th line: SERVER hostname COMPOSITE=xxxxxxxxxxxxx portnumber
Replace hostname and portnumber (usually 28000). Hostname is usually the hostname of your computer.
I named the license file ugs.lic.
Step 6: modify /etc/profile
sudo gedit /etc/profile
At the bottom, add:
UGII_BASE_DIR=/opt/UGS ; export UGII_BASE_DIR
UGII_ROOT_DIR=/opt/UGS/bin/ ; export UGII_ROOT_DIR
UGS_LICENSE_SERVER=port@host ; export UGS_LICENSE_SERVER
Fill in the portnumber and your hostname!!! (see step 5)
Step 7: modify the Environment Variables
Set up the .ugii_env file in the basedir (ugii): Open it with root permissions and check if the most important environment variables are set (if you have NXNastran don't forget it ex UGII_NX_NASTRAN=/opt/UGS/nxnastran/nxn5p0m1/x86_64linux/nastran )
If you plan to use browser features via NX5 (like documentation, cast/training) change the browser variable (ex UGII_HTML_BROWSER=swiftweasel32). Most people want to probably fill in firefox there.
Step 8: create the Motif resource files
For some reason these files aren't created at the installation, which results in strange window behavior (ex no text,...).
Create a map /usr/lib/X11/app-defaults, and copy Ugmenu10_default and Ugnx5_default in this map and rename them Ugmenu10 and Ugnx5.
Step 9: reboot & start up NX5
Ok it looks now that everything is set, now reboot.
When you now want to start up nx do:
cd /opt/UGS/ugslicensing && ./lmgrd -c ugs.lic 28000@hostname
replace /opt/UGS by your install base, ugs.lic by your license file name and hostname by your...hostname

This command start the license file server and has to be executed every time your computer boots up and you want to NX!!!
now to start NX5:
cd /opt/UGS/ugii && ./ugii
Normaly it now works! If you are a student don't forget to select the ACD bundle (File >Utilities) or manufacturing won't work. Sadly, you have to reselect this bundle every time you boot NX5
I made a desktop entry and a startup script for the license server and NX, so it just starts when you click an icon If somebody is interested I will post it later
I know it's a long way to get there but once it works it's great!
Note: GTAC support site:
http://support.ugs.com/
Know issues:
* I have to reselect the ACD bundle very time I start up NX
* One of the main differences with the Windows version is the lack of the "slider". Sometimes the windows on the left get out of their position.
Solution: Preferences > User Interface > Layout > Reset Window Position
Tips and Tricks:
* To greatly increase graphic quality (smoother edges):
Preferences > Visualization Performance > General Graphics > Deselect "Disable (Full Screen) Anti Aliasing"
Only for powerful graphical cards!
* For better performance with NXNastran solver & dualcore CPU's:
sudo gedit /opt/UGS/nxnastran/conf/nast5rc
At the bottom, add:
Parallel=2