January 29th, 2008, 06:29 PM
Files ugs nx5 ugflexlm nx5 lic 9 finish 10 magnitude ugscommon dll. Be guided from starting a NX5 session to creating models and designs that have various. First released the.
Hello,
I know that there is some information about how to install NX5 on ubuntu on this (http://ubuntuforums.org/showthread.php?t=581762) thread but to avoid confusion I thought it would be more helpful to make a clean description of what I had to do to install the program.
this worked with NX version 5.0.0.225
Replace 'joebloggs' with your username.
Installing NX5
1) copy the contents of the nx5 install DVD to a temporary location so that we can alter the install script:
mkdir /home/joebloggs/Desktop/ugnx
cp /cdrom/ /home/joebloggs/Desktop/ugnx/
chmod a+x -R /home/joebloggs/Desktop/ugnx/
2) install some dependencies
sudo apt-get install libmotif3 tcsh ksh libstdc++5
3) open the install script for some editing
gedit /home/joebloggs/Desktop/ugnx/ugnx050/ug_install
4) find this section in the file:
Linux) # Machine type Linux
PATH=.:/sbin:/usr/sbin:/usr/bin:/bin:/etc ; export PATH # Set the PATH
UGS_TMP=/tmp/ugs_tmp # Define a stash area for old files.
X11_DIR=/usr/lib/X11 # X11 directory for this system.
PS_CMD='ps -ef' # ps command for this system.
DF_CMD='df -k' # df command for this system.
AWK_CMD=awk # awk command for this system.
RC_DIR=/etc/rc.d # Dir for real rc scripts
RC_LNK_DIR=/etc/rc.d/rc5.d # Dir for links to rc scripts
TMP_DIR=/tmp # Tmp directory.
LPATH_VAR_NAME=LD_LIBRARY_PATH # Library path var name. V160P14
RC_PATH_VAR=/sbin:/usr/sbin:/usr/bin:/bin:/etc
alias -x pwd='pwd -L' # Tweak Linux pwd to give logical pwd.
alias -x uncompress=gunzip # On SuSE 10 must use gunzip. NX050P24
and change it to:
Linux) # Machine type Linux
PATH=.:/sbin:/usr/sbin:/usr/bin:/bin:/etc ; export PATH # Set the PATH
UGS_TMP=/tmp/ugs_tmp # Define a stash area for old files.
X11_DIR=/etc/X11 # X11 directory for this system.
PS_CMD='ps -ef' # ps command for this system.
DF_CMD='df -k' # df command for this system.
AWK_CMD=awk # awk command for this system.
RC_DIR=/etc/init.d # Dir for real rc scripts
RC_LNK_DIR=/etc/rc2.d # Dir for links to rc scripts
TMP_DIR=/tmp # Tmp directory.
LPATH_VAR_NAME=LD_LIBRARY_PATH # Library path var name. V160P14
RC_PATH_VAR=/sbin:/usr/sbin:/usr/bin:/bin:/etc
alias -x pwd='pwd -L' # Tweak Linux pwd to give logical pwd.
alias -x uncompress=gunzip # On SuSE 10 must use gunzip. NX050P24
5) the script fails to correctly check if no products have been selected for install. I did not find a way to correct this, I commented out the selection checking part of the code. Change this:
echo $FSETS | grep '[A-z]' >$NULL || {
print '${MSG}no products selected.'
sleep 2 ; continue 2
[ '$Q_SWT' ] && { print '${ERR}no products selected.' ; exit 1 ;}
} # End empty FSETS ck.
to this:
# echo $FSETS | grep '[A-z]' >$NULL || {
# print '${MSG}no products selected.'
# sleep 2 ; continue 2
# [ '$Q_SWT' ] && { print '${ERR}no products selected.' ; exit 1 ;}
#} # End empty FSETS ck.
6) After you have made these changes save the file and the installer should run fine:
sudo /home/joebloggs/Desktop/ugnx/ugnx050/ug_install
If you wish to subsequently change the licence server you need to adjust the parameters that are set in these two files:
/etc/profile & /etc/csh.login
you can run nx5 using this code:
/opt/ugs050/ugii/ugmenu
Installing the licence server
1) open the licence install script for editing
gedit /home/joebloggs/Desktop/ugnx/ugnx050/ugslicensing/ugslicensing_install
2) find the section:
Linux) # Machine type Linux
alias -x df='df -k' # Alias df to df -k, gives K bytes.
alias -x pwd='pwd -L' # Alias pwd to give a logical pwd.
alias -x echo=print # Alias echo to print.
DEFAULT_MEDIA=/media/dvd # Default name for the CD/DVD media.
PATH=.:/sbin:/usr/sbin:/usr/bin:/bin:/etc # Set the PATH
PS_CMD='ps -ef' # ps command for this system.
PROD_SIZE=3600 # Hard coded size for this plat.
RC_DIR=/etc/rc.d # Dir for real rc scripts
RC_LNK_DIR=/etc/rc.d/rc5.d # Dir for links to rc scripts
RC_PATH_VAR=/sbin:/usr/sbin:/usr/bin:/bin:/etc # Path used in the rc script.
RC_SCRIPTNAME=rc.ugs.licensing # The rc script name.
RC_LNK_NAME=S91$RC_SCRIPTNAME # Name for sym link in rc lnk dir.
RESTART_DELAY=10 # Daemon Restart delay in seconds.
TMP_DIR=/tmp # Tmp directory for this plat.
UGS_TMP=/tmp/ugs_tmp # Define a stash area for old files.
and change it to:
Linux) # Machine type Linux
alias -x df='df -k' # Alias df to df -k, gives K bytes.
alias -x pwd='pwd -L' # Alias pwd to give a logical pwd.
alias -x echo=print # Alias echo to print.
DEFAULT_MEDIA=/media/dvd # Default name for the CD/DVD media.
PATH=.:/sbin:/usr/sbin:/usr/bin:/bin:/etc # Set the PATH
PS_CMD='ps -ef' # ps command for this system.
PROD_SIZE=3600 # Hard coded size for this plat.
RC_DIR=/etc/init.d # Dir for real rc scripts
RC_LNK_DIR=/etc/rc2.d # Dir for links to rc scripts
RC_PATH_VAR=/sbin:/usr/sbin:/usr/bin:/bin:/etc # Path used in the rc script.
RC_SCRIPTNAME=rc.ugs.licensing # The rc script name.
RC_LNK_NAME=S91$RC_SCRIPTNAME # Name for sym link in rc lnk dir.
RESTART_DELAY=10 # Daemon Restart delay in seconds.
TMP_DIR=/tmp # Tmp directory for this plat.
UGS_TMP=/tmp/ugs_tmp # Define a stash area for old files.
3) Save the file, you can run the install script for the licence server now:
sudo /home/joebloggs/Desktop/ugnx/ugslicensing/ugslicensing_install
4) The startup script to automatically run the licence server when the machine starts needs some attention:
sudo chmod u+x /etc/init.d/rc.ugs.licensing
sudo update-rc.d rc.ugs.licensing defaults
I hope that this is useful for someone - please let me know if you find I have made an error (I only have my notes to hand, not the installed NX) and I will try and keep this post up to date.
Jack.
I know that there is some information about how to install NX5 on ubuntu on this (http://ubuntuforums.org/showthread.php?t=581762) thread but to avoid confusion I thought it would be more helpful to make a clean description of what I had to do to install the program.
this worked with NX version 5.0.0.225
Replace 'joebloggs' with your username.
Installing NX5
1) copy the contents of the nx5 install DVD to a temporary location so that we can alter the install script:
mkdir /home/joebloggs/Desktop/ugnx
cp /cdrom/ /home/joebloggs/Desktop/ugnx/
chmod a+x -R /home/joebloggs/Desktop/ugnx/
2) install some dependencies
sudo apt-get install libmotif3 tcsh ksh libstdc++5
3) open the install script for some editing
gedit /home/joebloggs/Desktop/ugnx/ugnx050/ug_install
4) find this section in the file:
Linux) # Machine type Linux
PATH=.:/sbin:/usr/sbin:/usr/bin:/bin:/etc ; export PATH # Set the PATH
UGS_TMP=/tmp/ugs_tmp # Define a stash area for old files.
X11_DIR=/usr/lib/X11 # X11 directory for this system.
PS_CMD='ps -ef' # ps command for this system.
DF_CMD='df -k' # df command for this system.
AWK_CMD=awk # awk command for this system.
RC_DIR=/etc/rc.d # Dir for real rc scripts
RC_LNK_DIR=/etc/rc.d/rc5.d # Dir for links to rc scripts
TMP_DIR=/tmp # Tmp directory.
LPATH_VAR_NAME=LD_LIBRARY_PATH # Library path var name. V160P14
RC_PATH_VAR=/sbin:/usr/sbin:/usr/bin:/bin:/etc
alias -x pwd='pwd -L' # Tweak Linux pwd to give logical pwd.
alias -x uncompress=gunzip # On SuSE 10 must use gunzip. NX050P24
and change it to:
Linux) # Machine type Linux
PATH=.:/sbin:/usr/sbin:/usr/bin:/bin:/etc ; export PATH # Set the PATH
UGS_TMP=/tmp/ugs_tmp # Define a stash area for old files.
X11_DIR=/etc/X11 # X11 directory for this system.
PS_CMD='ps -ef' # ps command for this system.
DF_CMD='df -k' # df command for this system.
AWK_CMD=awk # awk command for this system.
RC_DIR=/etc/init.d # Dir for real rc scripts
RC_LNK_DIR=/etc/rc2.d # Dir for links to rc scripts
TMP_DIR=/tmp # Tmp directory.
LPATH_VAR_NAME=LD_LIBRARY_PATH # Library path var name. V160P14
RC_PATH_VAR=/sbin:/usr/sbin:/usr/bin:/bin:/etc
alias -x pwd='pwd -L' # Tweak Linux pwd to give logical pwd.
alias -x uncompress=gunzip # On SuSE 10 must use gunzip. NX050P24
5) the script fails to correctly check if no products have been selected for install. I did not find a way to correct this, I commented out the selection checking part of the code. Change this:
echo $FSETS | grep '[A-z]' >$NULL || {
print '${MSG}no products selected.'
sleep 2 ; continue 2
[ '$Q_SWT' ] && { print '${ERR}no products selected.' ; exit 1 ;}
} # End empty FSETS ck.
to this:
# echo $FSETS | grep '[A-z]' >$NULL || {
# print '${MSG}no products selected.'
# sleep 2 ; continue 2
# [ '$Q_SWT' ] && { print '${ERR}no products selected.' ; exit 1 ;}
#} # End empty FSETS ck.
6) After you have made these changes save the file and the installer should run fine:
sudo /home/joebloggs/Desktop/ugnx/ugnx050/ug_install
If you wish to subsequently change the licence server you need to adjust the parameters that are set in these two files:
/etc/profile & /etc/csh.login
you can run nx5 using this code:
/opt/ugs050/ugii/ugmenu
Installing the licence server
1) open the licence install script for editing
gedit /home/joebloggs/Desktop/ugnx/ugnx050/ugslicensing/ugslicensing_install
2) find the section:
Linux) # Machine type Linux
alias -x df='df -k' # Alias df to df -k, gives K bytes.
alias -x pwd='pwd -L' # Alias pwd to give a logical pwd.
alias -x echo=print # Alias echo to print.
DEFAULT_MEDIA=/media/dvd # Default name for the CD/DVD media.
PATH=.:/sbin:/usr/sbin:/usr/bin:/bin:/etc # Set the PATH
PS_CMD='ps -ef' # ps command for this system.
PROD_SIZE=3600 # Hard coded size for this plat.
RC_DIR=/etc/rc.d # Dir for real rc scripts
RC_LNK_DIR=/etc/rc.d/rc5.d # Dir for links to rc scripts
RC_PATH_VAR=/sbin:/usr/sbin:/usr/bin:/bin:/etc # Path used in the rc script.
RC_SCRIPTNAME=rc.ugs.licensing # The rc script name.
RC_LNK_NAME=S91$RC_SCRIPTNAME # Name for sym link in rc lnk dir.
RESTART_DELAY=10 # Daemon Restart delay in seconds.
TMP_DIR=/tmp # Tmp directory for this plat.
UGS_TMP=/tmp/ugs_tmp # Define a stash area for old files.
and change it to:
Linux) # Machine type Linux
alias -x df='df -k' # Alias df to df -k, gives K bytes.
alias -x pwd='pwd -L' # Alias pwd to give a logical pwd.
alias -x echo=print # Alias echo to print.
DEFAULT_MEDIA=/media/dvd # Default name for the CD/DVD media.
PATH=.:/sbin:/usr/sbin:/usr/bin:/bin:/etc # Set the PATH
PS_CMD='ps -ef' # ps command for this system.
PROD_SIZE=3600 # Hard coded size for this plat.
RC_DIR=/etc/init.d # Dir for real rc scripts
RC_LNK_DIR=/etc/rc2.d # Dir for links to rc scripts
RC_PATH_VAR=/sbin:/usr/sbin:/usr/bin:/bin:/etc # Path used in the rc script.
RC_SCRIPTNAME=rc.ugs.licensing # The rc script name.
RC_LNK_NAME=S91$RC_SCRIPTNAME # Name for sym link in rc lnk dir.
RESTART_DELAY=10 # Daemon Restart delay in seconds.
TMP_DIR=/tmp # Tmp directory for this plat.
UGS_TMP=/tmp/ugs_tmp # Define a stash area for old files.
3) Save the file, you can run the install script for the licence server now:
sudo /home/joebloggs/Desktop/ugnx/ugslicensing/ugslicensing_install
4) The startup script to automatically run the licence server when the machine starts needs some attention:
sudo chmod u+x /etc/init.d/rc.ugs.licensing
sudo update-rc.d rc.ugs.licensing defaults
I hope that this is useful for someone - please let me know if you find I have made an error (I only have my notes to hand, not the installed NX) and I will try and keep this post up to date.
Jack.