显示标签为“linux”的博文。显示所有博文
显示标签为“linux”的博文。显示所有博文

2009年4月6日星期一

Linux fedora 9 Maya Nuke (x86_64) 安装笔记

很久没有更新了,贴一篇大概半年前转Linux平台时记的笔记。本只想记下来给自己以后提个醒用,所以很多地方只求自由能看懂,记的比较乱。各位如果有看不懂的地方就见谅了啊,仔细看还是比较详细直观通俗易懂老少皆宜的。希望对同志们也有用。


Linux fedora 9 Maya Nuke (x86_64) 安装笔记


概况:

1.计划

        计划安装Linux fedora 9 Maya Nuke 64位版,因为这样我们可以充分利用4G内存,不在受32位windows的2G内存限制。运行起nuke和Maya可以同时开多个软件,单个nuke文件内节点数大大增加,减少nuke因内存原因带来的不稳定,Maya大场景渲染的问题。从而提高生产效率。

2.过程

        先安装双系统启动linux 64位和windows 32位。安装 nuke 和 maya。

3.未解决的问题
  • framecycler(可用nuke本身的viewer跑几次就ok了。)
  • 局域网,文件共享
  • wacom
详细过程:

1.安装双系统启动:

   在linux fedora 9 默认安装程序中可以定义双系统启动。在分区选项内选择自定义分区。需要两个区,一个为ext3格式linux专用格式分区。二为swap区这个区类似于windows的虚拟内存。大小好像要求要跟实际物理内存一样多。区分好后linux会自动安装,安装完成后会自动有双操作系统启动提示。因此一步一步按提示来就可以了,基本不用复杂的手动调整。系统的启动文件是grub.cfg文件,在里边可以对系统启动做相应调整。

2.4G memory启动问题:

    我安装的是fedora 9 (x86_64)版,安装好后发现无法进入系统。我用的是2根2G的内存,当拔掉一根内存后可以进入系统。如果是1根1G和1根2G也可以进入系统但是2根1G和1根2G还是不能进入系统。就是说3G的可以启动,4G的就不行了。在网上查一开始以为是主板BIOS的原因,升级BIOS一样不行,无奈暂时用2G内存进入系统后自动升级补丁,升级完全部补丁后便可使用4G内存启动了。所以应该是系统的原因打好补丁就可以了。补丁可能PAE补丁,但是不确定。自动升级后fedora也可以自动识别windows的ntfs分区了。

3.安装nVidia卡驱动程序:

    装N卡前在网上查了一下,似乎官方版本都不太好用,普遍建议使用livna的版本。具体安装流程:

Nvidia finally decided to release an updated version of its proprietary video driver for Linux systems, one that supports the controversial XServer 1.5, which is present in bleeding-edge distributions, such as Fedora 9. Ok, so this tutorial is here to help actual and future Fedora 9 users to install the video drivers for their graphics cards and, as a bonus from Softpedia, a nice step-by-step AWN installation guide, assuming you have a fresh Fedora 9 installation with the GNOME desktop environment.

Step 1 - Install the Livna repository

First of all, make sure your system is up to date, then install the Livna repository like this:

Open a terminal (
Applications -> System Tools -> Terminal)...


...and switch to root (system administrator) with the following command:

su -

Type the root password (the one you have set up when you've installed Fedora). Then, as root, type:

rpm -ivhU http://rpm.livna.org/livna-release-9.rpm

Now that the Livna repository is installed, you can continue with the driver installation part.

Step 2 - Install the Nvidia drivers

I presume you did not close the Terminal window; if you did close it, fire it up again from Applications -> System Tools -> Terminal, log in as root and type:

yum -y install kmod-nvidia

To verify if the installation was successfully completed, reboot your computer, log back in, open up the terminal (Applications -> System Tools -> Terminal) and type:

glxinfo | grep direct

If the output of the above command is: direct rendering: Yes the Nvidia driver installation was successfully completed and you can now use OpenGL applications and desktop effects such as Compiz Fusion.




4.安装Maya

    Maya的安装需要几步,安装前需要先安装一些补丁,禁用selinux。具体步骤:


Installing Maya 8 on Fedora Core 8 Linux

(with bonus appendix: how to install drivers in Fedora Core appropriate to your Nvidia card)

last update June 29, 2008
A tutorial from cgspeed.com


Copyright (c) 2008 Bruce Hahne

I'm in the process of trying to shift, as much as possible, from Microsoft-based operating systems to Linux for at least some of my work.  Advantages of working under a free distribution of Linux include no licensing fees, no need to worry about whether you can reinstall the operating system on different hardware when you upgrade, easy use of all of your RAM, and no worries about whether your OS vendor is intentionally making it more difficult for you to create and edit content or locking down the OS to prevent creative freedom.

Unfortunately, a Maya install under Linux isn't as seamless as it is under Windows, so I took some notes when I did my most recent install of Maya on a new Fedora Core system.  Here's my attempt to write up the steps.  I can't guarantee that these steps will work for you, or that they'll work under software versions other than those I list here.

This tutorial assumes that you're comfortable with the basic use of Fedora Core 8, including both GUI-based and command-line based file navigation, plus how to use your "add/remove software" utility.

Hardware and software context:
- Intel 6600 quad-core CPU, 64-bit capable, 6 GB DRAM
- Fedora Core 8 (not 9!) 64-bit version, using the DVD image downloaded from 
fedoraproject.org in January 2008
- GNOME windows manager within Fedora (this is the default)
- Maya 8.0 64-bit version for Linux
- GEforce 8800GT video card

I don't presently (June 2008) recommend Fedora Core 9 as I had some significant video card driver and ethernet driver problems.  The ethernet driver issues have also been flagged by others in user forums.

This tutorial is 
not for the 32-bit version of Fedora Core or Maya, although the steps below are very close to what you'd need to do on the 32-bit version.

1. Install Fedora Core 8 and do NOT choose the option to enable 
SElinux, the security feature set for Linux.  Autodesk's install notes for Maya specifically note that SElinux isn't compatible with Maya.  Disabling SElinux on a Fedora Core install where you've already chosen to enable it is beyond the scope of this tutorial, although there are some comments about how to do this in the Fedora Core 3 SElinux FAQ.  My notes from an earlier attempt at Maya on Fedora Core 8 say that to disable SElinux, I ran /usr/bin/system-config-selinux and changed the enforcing modes to "permissive", which still make SElinux show all of the alerts but doesn't actually block programs from taking any action.

When I installed Fedora Core 8, I also chose one of the options that preinstalls various developer resources -- not the huge set of every X Windows development library, but just the basic developer resources so that I'd get the gcc compiler, Python, and so on.  I can't say whether doing so was necessary as a prerequisite to installing Maya, since I haven't tried doing a Fedora Core install and 
not asking the Fedora installer to install the basic developer tools.

2. Install tcsh.  

The shell script that you'll eventually run to start Maya requires csh, and tcsh will give you a csh equivalent.  To do this, bring up your Package Manager using Applications-->Add/Remove Software from your top menu.  Fedora should then ask you to authenticate as root, and then you should see the Package Manager window.  Do a Search for "tcsh" and the Package Manager should find it available online.  The version I have installed is "tcsh - 6.15-1.fc8.x86_64 - An enhanced version of csh, the C shell".  Install this.  If you don't do it, your attempts to start up Maya will fail.

3. Install libXp.  

From your Package Manager, do a search for "libXp" and the Manager should show you several options, most of which are for "libXpm" not "libXp".  The version of libXp that I have installed is "libXp - 1.0.0-8.fc8.x86_64 - X.Org X11 libXp runtime library".  Install this.  If you don't, Maya will die on startup with the error "libXp.so.6: cannot open shared object file: No such file or directory".

4. Install supplementary X Windows fonts.  

From you Package Manager, do a search for "
xorg-x11-fonts-ISO8859-1".  This should bring up about 10 different font file choices.  If you search on a shorter string than what I suggest here, you'll get a large list of font choices and it will get more confusing.  The fonts that you want are the "-1" 75dpi and 100dpi fonts, not the "-14" or "-15" fonts.  The fonts that I have installed on my Fedora box are:

    "xorg-x11-fonts-ISO8859-1-75dpi - 7.2-3.fc8.noarch - A set of 75dpi ISO-8859-1 fonts for X"
    "
xorg-x11-fonts-ISO8859-1-100dpi - 7.2-3.fc8.noarch - A set of 100dpi ISO-8859-1 fonts for X

Install these two font files if your Package Manager lists either of them as not yet installed.  In my install of Fedora Core 8, I already had the 100dpi file but I had to install the 75dpi file.

If you don't install these fonts, you'll get continuous errors of this form when you use Maya:

"Error: Failed trying to load font : -*-helvetica-bold-r-normal--10-*-*-*-*-iso8859-1" and you'll lose much of you ability to see text and error messages from Maya at the bottom of the Maya screen.

5. Check your font install.

From a shell, go to /etc/X11 and use "less" or any text editor to take a look at you fontpath.d file.  You should be able to find three lines that look very much like this:

     lrwxrwxrwx 1 root root   36 2008-06-07 16:06 xorg-x11-fonts-100dpi:unscaled:pri=30 -> /usr/share/X11/fonts/100dpi:unscaled

     lrwxrwxrwx 1 root root   35 2008-06-10 22:56 xorg-x11-fonts-75dpi:unscaled:pri=20 -> /usr/share/X11/fonts/75dpi:unscaled

     lrwxrwxrwx 1 root root   34 2008-06-07 16:06 xorg-x11-fonts-misc:unscaled:pri=10 -> /usr/share/X11/fonts/misc:unscaled

If you don't have all three of those lines -- one for 100dpi, one for 75dpi, and one for misc, then you might not have sufficient fonts installed for Maya to function completely.  If you don't have these lines in your fontpath.d file, stop here and fix your font situation before moving forward.  Working with your fontpath.d file and adding fonts outside of the context of the Package Manager is beyond the scope of this tutorial.  However in my install of Fedora Core 8, I simply needed to add the 75dpi fonts (step 4 of this tutorial) and I was good to go, so hopefully it will work for you also.

6. Restart X Windows by logging out of Fedore Core and logging back in, or doing a complete reboot.  This step is to make sure that X sees your new fonts correctly.

7. If necessary, adjust your ethernet MAC address.  Most people won't need to do this step.

Maya 8.0's licensing system locks the Maya license to the recognized ethernet MAC address of the computer that you're running on.  If for some reason Fedora is not seeing the correct ethernet MAC address, or if you've got some fancier setup where you use a different ethernet card for Fedora, then you might need to force Fedora to assign a MAC address to your ethernet card that's different from the burned-in-address (BIA) on your actual ethernet hardware.  

To force Fedora to use a MAC address that you specify, go to /etc/sysconfig/network-scripts and look for the ethernet interface configuration file associated with your (or one of your) ethernet interfaces.  In almost all Fedora Core installations, this configuration file will be named "ifcfg-eth0".  Make a backup of this configuration file somewhere safe, then edit it (you'll need to be root), and add a new line at the bottom of the ifcfg-eth0 that looks something like this:

        MACADDR=12:34:56:78:9a:bc   where "12:34:56:78:9a:bc" is the MAC address associated with your license key.  All you're doing here is changing the 48-bit MAC address that Fedora will associate with the ethernet controller.

Please follow all terms and conditions associated with your Maya / Autodesk license.  This step is here to help people to work through any legitimate problems with getting your licensed copy of Maya to run on your hardware.

If you did need to do this step 7, reboot after you've added the MACADDR line so that the configuration change will take.  Then after reboot, from a shell you can issue the "ifconfig -a" command to list the information about your ethernet port.  Look for the text towards the top that says "Hwaddr __________", and it should show the MACADDR that you configured.

8. Install Maya!

We can finally start to install Maya itself.  Put your 64-bit Linux install DVD from Autodesk into your drive, navigate within the Fedora GUI to the "maya80linux64" directory, and install the following.  You can generally do an install of each .rpm file by right-clicking on the icon for the .rpm file and choosing "Open with Software Installer".

8.1  Install AWCommon-10.80-7.x86_64.rpm or whatever version of AWCommon..._64 you have.

8.2 Install Maya8_0_64-8.0-179.x86_64.rpm or whatever version of Maya..._64 you have.

On my system, this install step (for Maya8) gave some awk errors but still seemed to complete successfully.

8.3 Install the Maya documentation .rpm file.  I've misplaced my notes that list the exact file name for the docs, but I believe it's in the same directory as the other Maya .rpm files above.

9. Fix your "windows movement key".

No, don't start Maya yet -- first you need to make one change to how the Fedora GUI handles windows.  From your top Fedora menu, choose  System --> Preferences --> Look and Feel --> Windows and Fedora should bring up the "Window Preferences" configuration window.

Within this window, find the section that says "Movement Key" and change it to "Super".  The default is "Alt".  If you don't make this change, you won't be able to use Maya's standard hold-down-the-alt-key mechanism for camera movement, because Fedora's GNOME window manager will intercept your ALT keypress and assume that you're trying to move the window around.  Maya will never see the ALT keypress.

10. Start Maya!

The install that you did at step 8 should have created the runable file /usr/local/bin/maya, which will be a symlink to /usr/aw/maya8.0-x64/bin/Maya8.0

From a shell, type:

        /usr/local/bin/maya

Of course if /usr/local/bin is in your path, then you only need to type "maya".

The first time you do this, you should get Autodesk's standard license key installation window and utility since you haven't entered your license key yet.  Install your license key, and then the next time you type "/usr/local/bin/maya" you should be up and running Maya 8.0.

______________________________________________

KNOWN ISSUES, or at least issues that I have:

- When I minimize Maya and then try to unminimize Maya again, it takes 6-30 seconds for the Maya window to appear, and during that time my display is mostly locked up.  I can move the mouse around but I can't select any windows or do any work.  A similar result happens if I'm using the Workplace Switcher virtual screen system (which installs by default in Fedora 8), then I shift from the active Maya virtual screen to some other screen, and then back.

- SpaceNavigator installation for Maya on Linux is ferociously tricky and has a variety of issues:

    -- No comprehensive install instructions available for SpaceNavigator for Fedora.

    -- There are undocumented steps to the install process, such as how you need to enable the 3dConnexion driver from your Maya plug-in manager.

    -- Fedora Core 8 doesn't have some necessary X Windows components required by the SpaceNavigator, and getting those components is a difficult manual process.

    -- Control window availability for SpaceNavigator both on Fedora and within Linux is unpredictable

    -- The MEL scripts for SpaceNavigator on Linux Maya are several years old and a full version behind the Maya-for-Windows MEL scripts offered by 3dConnexion.  There are a lot of features missing from the Linux version.

    -- When the SpaceNavigator plug-in is active in Maya, it breaks Maya batch rendering!  All batch renders will fail and you'll get a "maya encountered a fatal error     Signal: 11 (Unknown Signal)" in your mayaRenderLog.txt file.

______________________________________________

BONUS appendix: how to install drivers in Fedora Core appropriate to your Nvidia card (if you're using an Nvidia card...)

I purchased a GeForce 8800GT video card for use with my Fedora Core system, and then had to spend some time to determine the best way to actually get correct video drivers for it.  You'd think that the right thing to do would be to download Nvidia's Linux driver set from 
www.nvidia.com, but research in forums suggested that this wasn't the right choice.  Instead, several users recommended the use of the "Livna" driver set, which appears to be based on the official Nvidia release but is different from that release.  To be able to use your Fedora Package Manager to install the Livna driver set, you first have to add to the Package Manager configuration itself.  Here's the full process.

1. Set up your Package Manager to use Livna.

In a browser, go to 
http://rpm.livna.org.  You should see a section of the resulting web page titled "Repository RPMs" and one of the choices in that section should be "Fedora 8 repository RPM".  Click on the link, and your browser (I'm using Firefox) should give you a dialogue box that asks you what to do with the .rpm file.  You can then save the .rpm file to disk, then install it by right-clicking on the .rpm file's icon in the Fedora GUI.

2. Confirm the setup.

Bring up the Package Manager using  "Applications --> Add/Remove Software" from your top menu.  Within the Package Manager, choose "Edit --> Repositories" and you'll get a list of all of the repositories that the Package Manager knows about.  Scroll down in this list and confirm that there are several new repositories that start with the name "livna-".  Now close the Repository Manager edit window.  You don't need to edit anything.

3. Install the Nvidia drivers.

Within the Package Manager, do a search for "kmod-nvidia".  You should get a huge list of choices, so many that it will be difficult to find the right choice.  What you want is the metapackage which has the largest version number, and which has a "_64" at the end of it since you're running the 64-bit release of Fedora Core (you are, right?)

On my system, the metapackage that I have installed is:

  "kmod-nvidia - 173.14.09-2.lvn8.x86_64 - Metapackage which tracks in nvidia kernel module for newest kernel".

Install this metapackage, and the metapackage should then automagically pull in the "kmod-nvidia" release appropriate to you kernel.  I've found that even when I upgrade my kernel to newer sub-releases of Fedora Core 8, that this approach of using the metapackage appears to automagically hunt down and install the correct new release of the kmod-Nvidia drivers for me at the same time that the kernel upgrade happens.
  • 安装完成后启动时遇到下面报错问题:
apcw: error while loading shared libraries: libXrender.so.2: cannot open shared object file: No such file or directory

apcw: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory

apcw: error while loading shared libraries: libXcursor.so.1: cannot open shared object file: No such file or directory

apcw: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory

apcw: error while loading shared libraries: libXft.so.2: cannot open shared object file: No such file or directory

apcw: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory

查看安装包已安装libXrender等64位版。解决方法是将i386版同时安装就可以了。
  • license 文件问题。如果是多网卡的话,license内的mac地址需要同eth0一致,否则多数情况下会出问题。

5.Nuke的安装很顺利,正常安装就可以了。

6.Rar 文件支持:open add/remove software, search unrar, install,  Fedora自带的压缩软件就可以解压rar文件了。

7.中文输入法,用scim-python 安装方法: yum install scim-python-chinese.