自动安装maya2014的脚本
来源:互联网 发布:韩国游戏源码交易平台 编辑:程序博客网 时间:2024/05/16 07:36
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/
阅读全文
0 0
- 自动安装maya2014的脚本
- maya2014中uvlayout2.08安装
- maya2014安装之后出现log4cplus错误修复
- Linux-自动安装的脚本
- 安装JBoss的自动启动脚本
- 自动安装Qt4.5的脚本
- *自动安装jdk的脚本--select用法*
- Ubuntu下自动安装NodeJs的脚本
- IIS6,IIS7,IIS8的脚本自动安装
- Linux自动安装JDK的shell脚本
- RHEL自动安装zookeeper的shell脚本
- 简单的zabbix agent自动安装脚本
- 自动安装LNMP的简洁Shell脚本
- hadoop自动安装的脚本与步骤
- 自动安装linux系统的脚本
- Linux Unit14--虚拟机的自动安装脚本
- Linux system 系统的自动安装脚本
- svn自动安装脚本
- C++命名空间 namespace的作用和使用解析
- Springmvc 项目从tomcat迁移到weblogic遇到的问题 求大神解 急!!
- 近期暂时没有时间处理的一些问题以及查到的资料
- mysql5.7官网直译SQL语句优化--块式嵌套循环和批量key访问连接
- 电商那些年,我摸爬打滚出的高并发架构实战精髓
- 自动安装maya2014的脚本
- 查看虚拟机里的Centos7的IP
- 用Unity的TextAsset读取TXT文档内容,将物品信息存入字典中
- 色彩的相关概念
- 基于Django框架的用户信息管理系统mini项目
- B
- Java实现Kafka读写笔记
- 欢迎使用CSDN-markdown编辑器
- 循环第10题