大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

不同视角、不同观点、深度探讨,禁止人品和道德攻击
kokozhou
帖子: 80
注册时间: 2008-10-06 17:01

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#16

帖子 kokozhou »

其实是可以这么搞呀。。C盘根目录 UBUNTU /再是其它所有的文件在这个目录下。
已经还是系统结构吧。不是很了解。 我只是用户,只想把安装的软件放在一个目录。
头像
yysq009
帖子: 2682
注册时间: 2007-01-28 23:00
来自: @江西|南昌@
联系:

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#17

帖子 yysq009 »

WIN是一家独大,而LIN是遍地开花。就像《大教堂与集市》中比喻的一样。
LIN如果每个发行版都去搞一套自己的目录分类的话!那LIN会比现在还散。所以通过POSIX来制定一个大家都执行的标准,这样软件可以在不同发行版上通用!
还有,LIN只是把硬盘和硬件都看作是一个文件,你的根目录就是你安装时提供挂载给他的那个分区,只是没有什么C,D,E的盘符罢了!还有WIN下的目录很少吗?你去Documents and Settings目录去看,记得打开隐藏文件夹来看,同样一大堆。而且大部分都不知道有什么用。
如常使用LIN 接触到的 无非就是 /home /etc /tmp /bin /usr 等几个目录,而且目录的分工明确。当然你要乱放 也是可以的。

我看LZ不是嫌目录多,是嫌软件安装过程的繁琐吧!这个你不愿意编译就通过APT安装,源没有的就去找DEB包,同样简单,点一下全部搞定!

个人观点!!!请多指教!

Do as you would be done by !
头像
yysq009
帖子: 2682
注册时间: 2007-01-28 23:00
来自: @江西|南昌@
联系:

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#18

帖子 yysq009 »

kokozhou 写了:其实是可以这么搞呀。。C盘根目录 UBUNTU /再是其它所有的文件在这个目录下。
已经还是系统结构吧。不是很了解。 我只是用户,只想把安装的软件放在一个目录。
LIN下的软件 一般安装在 /usr /opt这2个目录中!
我就不明白C盘和/分区 有什么不同,不过就是一个表示方法的不同!习惯下吧!

Do as you would be done by !
kokozhou
帖子: 80
注册时间: 2008-10-06 17:01

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#19

帖子 kokozhou »

有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
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#20

帖子 HuntXu »

我认为这个安装说明是详细而不是麻烦...
明明就很简单...
HUNT Unfortunately No Talent...
kokozhou
帖子: 80
注册时间: 2008-10-06 17:01

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#21

帖子 kokozhou »

yysq009 写了:
kokozhou 写了:其实是可以这么搞呀。。C盘根目录 UBUNTU /再是其它所有的文件在这个目录下。
已经还是系统结构吧。不是很了解。 我只是用户,只想把安装的软件放在一个目录。
LIN下的软件 一般安装在 /usr /opt这2个目录中!
我就不明白C盘和/分区 有什么不同,不过就是一个表示方法的不同!习惯下吧!

还有就是软件的UNINSTALL的方式,有些还不方便的。 路还有很长要走呀。 :em11
头像
yysq009
帖子: 2682
注册时间: 2007-01-28 23:00
来自: @江西|南昌@
联系:

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#22

帖子 yysq009 »

每个STEP都写的如此详细,还有什么怨言?

Do as you would be done by !
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#23

帖子 adagio »

C盘根目录!!!
:em31 :em31 :em31
:em49 :em49 :em49
:em45 :em45 :em45
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#24

帖子 BigSnake.NET »

kokozhou 写了:
yysq009 写了:
kokozhou 写了:其实是可以这么搞呀。。C盘根目录 UBUNTU /再是其它所有的文件在这个目录下。
已经还是系统结构吧。不是很了解。 我只是用户,只想把安装的软件放在一个目录。
LIN下的软件 一般安装在 /usr /opt这2个目录中!
我就不明白C盘和/分区 有什么不同,不过就是一个表示方法的不同!习惯下吧!

还有就是软件的UNINSTALL的方式,有些还不方便的。 路还有很长要走呀。 :em11
不明白什么不方便, 你说UG很麻烦, 那是UG的问题,关 Linux 何事
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
yysq009
帖子: 2682
注册时间: 2007-01-28 23:00
来自: @江西|南昌@
联系:

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#25

帖子 yysq009 »

仔细看了看 人家都提供了 安装的脚本 其实第5步以后似乎都是一些注册和配置的步骤!
反安装 尝试通过APT或者进入此软件编译的目录 输入make uninstall 也可以反安装!

Do as you would be done by !
kokozhou
帖子: 80
注册时间: 2008-10-06 17:01

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#26

帖子 kokozhou »

不明白什么不方便, 你说UG很麻烦, 那是UG的问题,关 Linux 何事[/quote]

这个不能这么说吧,如果这么说的话,安装系统麻烦,软件不方便等,都是用户能力不行,当然啦,高手不会出现低级错误,但现实吗?
kokozhou
帖子: 80
注册时间: 2008-10-06 17:01

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#27

帖子 kokozhou »

adagio 写了:C盘根目录!!!
:em31 :em31 :em31
:em49 :em49 :em49
:em45 :em45 :em45
WINDOWS 的目录结构也不见多少人吐?? 这个吐应该是用户对于LINUX的目录的疑问了。
头像
yysq009
帖子: 2682
注册时间: 2007-01-28 23:00
来自: @江西|南昌@
联系:

Re: 大家来讨论下,UBUNTU把系统文件安装在硬盘的一个目录里。

#28

帖子 yysq009 »

思想没有转变过来而已!多适应下你会觉得这样的目录结构比WIN还简洁的。

先折磨自己几天,习惯下吧! 别的没什么想说的了!

Do as you would be done by !
回复