Created
February 27, 2019 18:54
-
-
Save varomix/6426165f7ebc1f2377d48d4c984c14cb to your computer and use it in GitHub Desktop.
Linux Mint Maya 2019 Install script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ### INSTRUCTIONS | |
| # make a folder called maya2019Install | |
| # mkdir -p maya2019Install | |
| # down load maya 2019 and put it in that folder | |
| # the name has to be this >> Autodesk_Maya_2019_Linux_64bit.tgz | |
| # if is different either rename it or change the name below | |
| # by varomix, www.mixtrn.com | |
| ### | |
| #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 | |
| cd maya2019Install | |
| ## Extract downloaded file, change this name if needed | |
| tar xvf Autodesk_Maya_2019_Linux_64bit.tgz | |
| ## Install Dependencies | |
| apt-get install -y libssl1.0.0 gcc libssl-dev libjpeg62 alien csh tcsh libaudiofile-dev libglw1-mesa elfutils libglw1-mesa-dev mesa-utils xfstt xfonts-100dpi xfonts-75dpi ttf-mscorefonts-installer libfam0 libfam-dev libcurl4-openssl-dev libtbb-dev | |
| #apt-get install -y libtbb-dev | |
| wget http://launchpadlibrarian.net/183708483/libxp6_1.0.2-2_amd64.deb | |
| wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb | |
| wget http://mixtrn.com/files/libpng15-15_1.5.7-1linaro1_amd64.deb | |
| ## Install Maya | |
| alien -cv *.rpm | |
| dpkg -i *.deb | |
| echo "int main (void) {return 0;}" > mayainstall.c | |
| gcc mayainstall.c | |
| mv /usr/bin/rpm /usr/bin/rpm_backup | |
| cp a.out /usr/bin/rpm | |
| chmod +x ./setup | |
| ./setup | |
| rm /usr/bin/rpm | |
| mv /usr/bin/rpm_backup /usr/bin/rpm | |
| ## Copy lib*.so | |
| cp libQt* /usr/autodesk/maya2019/lib/ | |
| cp libadlm* /usr/lib/x86_64-linux-gnu/ | |
| ## Fix Startup Errors | |
| ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5.3.0 /usr/lib/libtiff.so.3 | |
| ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/autodesk/maya2019/lib/libssl.so.10 | |
| ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/autodesk/maya2019/lib/libcrypto.so.10 | |
| ln -s /usr/lib/x86_64-linux-gnu/libtbb.so.2 /usr/lib/x86_64-linux-gnu/libtbb_preview.so.2 | |
| ln -s /usr/lib/x86_64-linux-gnu/libpcre16.so.3.13.3 /usr/lib/x86_64-linux-gnu/libpcre16.so.0 | |
| mv /usr/autodesk/maya2019/lib/python2.7/lib-dynload/_hashlib.so /usr/autodesk/maya2019/lib/python2.7/lib-dynload/rhel_hashlib.so | |
| ln -s /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so /usr/autodesk/maya2019/lib/python2.7/lib-dynload/_hashlib.so | |
| mkdir -p /usr/tmp | |
| chmod 777 /usr/tmp | |
| mkdir -p ~/maya/2019/ | |
| chmod 777 ~/maya/2019/ | |
| ## Fix Segmentation Fault Error | |
| echo "MAYA_DISABLE_CIP=1" >> ~/maya/2019/Maya.env | |
| ## Fix Color Managment Errors | |
| echo "LC_ALL=C" >> ~/maya/2019/Maya.env | |
| chmod 777 ~/maya/2019/Maya.env | |
| ## Maya Camera Modifier Key | |
| gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>" | |
| ## Ensure that Fonts are Loaded | |
| xset +fp /usr/share/fonts/X11/100dpi/ | |
| xset +fp /usr/share/fonts/X11/75dpi/ | |
| xset fp rehash | |
| echo Maya was installed successfully. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment