NOTE: THIS SCRIPT WAS CREATED BY: HEITH.
**************************************************************************************************** ***
#!/bin/bash
#Heith Seewald 2012
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in laterversions.
#if you have any issues, feel free email me at heiths@gmail.com
#this version is updated by insomniac_lemon... issues were fixedand it has been converted to 2014, use at your own risk...
#testing in a VM first is recommended... (at least until I test itagain or someone confirms it works without tinkering)
#### Lets run a few checks to make sure things work asexpected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
echo Please run this script using sudo
echo Just type “sudo !!”
exit
fi
#Check for 64-bit arch
if [uname -m != x86_64]; then
echo Maya will only run on 64-bit linux.
echo Please install the 64-bit ubuntu and try again.
exit
fi
#Setup a few vars
export MAYAINSTALL='mayaTempInstall'
export RPM_INSTALL_PREFIX=/usr
export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R5/lib64/
LIBCRYPTO="/usr/lib/x86_64-linux-gnu/libcrypto.so.10"
LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.10"
MAYAURL="http://trial.autodesk.com/SWDLDNET3/2014/MAYA/ESD/Autodesk_Maya_2014_English_Linux_64bit.tgz"
#Install Message
echo "You’re about to download and install Autodesk Maya2014"
echo ""
echo "Do you wish to continue [Y/n]?"
read RESPONSE
case "$RESPONSE" in
n*|N*)
echo "Install Terminated"
exit 0;
esac
#Get serial number
echo "If you have not already done so, you can get your serialnumber from: http://students.autodesk.com"
echo "Enter the serial number"
read SERIALNUMBER
echo ""
#Create a temp folder for the install files
if [ ! -d "$HOME/mayaInstaller" ]; then
mkdir $HOME/$MAYAINSTALL
echo "Creating $MAYAINSTALL folder"
echo """"
fi
export INSTALLDIR=$HOME/$MAYAINSTALL
cd $INSTALLDIR
#Get Maya
wget --referer="http://trial.autodesk.com" --content-disposition$MAYAURL
MAYAURL="http://trial.autodesk.com/SWDLDNET3/2014/MAYA/ESD/Autodesk_Maya_2014_English_Linux_64bit.tgz"
# Install Dependencies
#I changed this a bit because for some reason alien would neverinstall for me
#also note -y was added so you can leave the script alone and nothaving it snag on asking for user input
#well, the MS agreement will still stop it
sudo apt-get install -y alien
sudo apt-get install -y csh tcsh libaudiofile-dev libglw1-mesaelfutils
sudo apt-get install -y gamin libglw1-mesa-dev mesa-utils xfsxfstt
sudo apt-get install -y ttf-liberation xfonts-100dpixfonts-75dpi
sudo apt-get install -y ttf-mscorefonts-installer
sleep 3s
#This is in case of name change (due to new service pack orsomething)
MAYAFILE=Autodesk*.tgz
# Extract Maya Install Files
tar xvf $INSTALLDIR/$MAYAFILE
#prevents composite from messing up your system.... (it happened tome with 2013, I had to re-install...)
rm $INSTALLDIR/Composite*
#this is to free up some space. comment out this line and the wgetline
#if you are doing testing that will require using the scriptmultiple times
sudo rm $INSTALLDIR/Autodesk_Maya*
# Convert rpms to debs
for i in $INSTALLDIR/*.rpm; do
sudo alien -cv $i;
done
sleep 2s
#again, space saving step.
sudo rm $INSTALLDIR/*.rpm
#install the debs
sudo dpkg -i $INSTALLDIR/*.deb
#Setup For Mental Ray.
sudo mkdir /usr/tmp
sudo chmod 777 /usr/tmp
#font issue fix
xset +fp /usr/share/fonts/X11/100dpi/
xset +fp /usr/share/fonts/X11/75dpi/
#fixing a few lib issues
sudo cp $INSTALLDIR/libadlmPIT* /usr/lib/libadlmPIT.so.7
sudo cp $INSTALLDIR/libadlmutil* /usr/lib/libadlmutil.so.7
# License Setup:
sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2014-x64/bin/License.env
#Notice the lack of sudo.
/usr/autodesk/maya2014-x64/bin/adlmreg -i S 657F1 657F1 2014.0.0.F$SERIALNUMBER /var/opt/Autodesk/Adlm/Maya2014/MayaConfig.pit
# symbolic links:
# Its preferred to use the libssl and libcrypto that’s includedwith your system... so we’ll try that first.
# We’ll use the files included by autodesk as a fallback
#Libssl Link
if [ -f "$LIBSSL" ]
then
echo "$LIBSSL found. Using it."
ln -s $LIBSSL /usr/autodesk/maya2014-x64/lib/libssl.so.10
else
echo "$LIBSSL not found. Using Autodesk’s libssl"
sudo ln -s /usr/autodesk/maya2014-x64/support/openssl/libssl.so.6/usr/autodesk/maya2014-x64/lib/libssl.so.10
fi
#LibCrypto Link
if [ -f "$LIBCRYPTO" ]
then
echo "$LIBCRYPTO found. Using it."
ln -s $LIBCRYPTO/usr/autodesk/maya2014-x64/lib/libcrypto.so.10
else
echo "$LIBCRYPTO not found. Using Autodesk’s libssl"
sudo ln -s/usr/autodesk/maya2014-x64/support/openssl/libcrypto.so.6/usr/autodesk/maya2014-x64/lib/libcrypto.so.10
fi
# libtiff
sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.4.3.4/usr/lib/libtiff.so.3
sleep 2s
#libjpeg
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2/usr/lib/libjpeg.so.62
#Everything should work now...
echo "Installation Complete."
echo ""
echo "Start Maya Now?"
read RUNNOW
case "$RUNNOW" in
n*|N*)
echo "You can run maya any time by typing maya into theterminal"
exit 0;
esac
maya
**************************************************************************************************** *****
Just copy the text between the arisks to a text file, then renamethe file to "maya_2014.sh", then run the script in aterminal:
sudo ./maya_2014.sh
Good luck and happy animating.
Copypasta from: http://forum.cgpersia.com/f40/maya-2014 ... z2aRSMNLEA
用其他方法安装,提示iso8859-1字体错误的,可以从上面拷贝设置字体搜寻目录的两行来解决:
xset +fp /usr/share/fonts/X11/100dpi/
xset +fp /usr/share/fonts/X11/75dpi/