Skip to content

Instantly share code, notes, and snippets.

@MichaelLawton
Last active August 27, 2023 17:41
Show Gist options
  • Save MichaelLawton/32ca5cf6145f0ca4a7ebcdc510d7447d to your computer and use it in GitHub Desktop.
Save MichaelLawton/32ca5cf6145f0ca4a7ebcdc510d7447d to your computer and use it in GitHub Desktop.
Installing Maya 2015 SP6 on Linux Mint 18.1 Serena with Student License
# Installing Maya 2015 SP6 on Linux Mint 18.1 Serena with Student License
# This should work with later versions of Maya or different versions of Ubuntu [based] operating systems with a few changes.
# Don't run this as a script, instead copy and paste each line into your terminal
# Download link is from here: https://knowledge.autodesk.com/support/maya/downloads/caas/downloads/content/autodesk-maya-2015-service-pack-6.html
mkdir ~/maya2015_setup
cd ~/maya2015_setup
# Download Maya. Can use wget instead
aria2c -x12 http://download.autodesk.com/us/support/files/maya_2015_service_pack_6/Autodesk_Maya_2015_SP6_EN_Linux.tgz
# Extract archive
tar xvf Autodesk_Maya_2015_SP6_EN_Linux.tgz
export RPM_INSTALL_PREFIX=/usr
export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R9/lib64/
# Install dependencies
sudo apt-get install alien
sudo apt-get install tcsh # don't need csh, tcsh will create symlink from csh to tsch
sudo apt-get install libaudiofile-dev
sudo apt-get install libglw1-mesa-dev mesa-utils
sudo apt-get install xfstt ttf-liberation xfonts-100dpi xfonts-75dpi
sudo apt-get install ttf-mscorefonts-installer
sudo apt-get install libjpeg62
sudo apt-get install elfutils # not sure if needed
sudo apt-get install gamin # libfam (and libfam-dev?) should also work instead
# install libxp6
wget http://launchpadlibrarian.net/183708483/libxp6_1.0.2-2_amd64.deb
dpkg -i libxp6_1.0.2-2_amd64.deb
# Convert Maya rpm packages to debian style
# Can take a long time - 15 to 30min
for i in *.rpm; do sudo alien -cv $i; done
# Install packages
sudo dpkg -i *.deb
# Make sure these files exist.
# If not, find libssl.so (not libssl3.so) using locate libssl.so
# Make sure it's in a x86_64 not i386 folder
# Same with libcrypto, libtiff, libjpeg
LIBCRYPTO="/lib/x86_64-linux-gnu/libcrypto.so.1.0.0"
LIBSSL="/lib/x86_64-linux-gnu/libssl.so.1.0.0"
LIBTIFF="/usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4"
LIBJPEG="/usr/lib/x86_64-linux-gnu/libjpeg.so.62"
sudo ln -s $LIBTIFF /usr/autodesk/maya/lib/libtiff.so.3
sudo ln -s $LIBSSL /usr/autodesk/maya/lib/libssl.so.10
sudo ln -s $LIBCRYPTO /usr/autodesk/maya/lib/libcrypto.so.10
sudo ln -s $LIBJPEG /usr/autodesk/maya/lib/libjpeg.so.62 # Will run without this but will crash when decoding jpeg images
# Fix font not found errors
xset +fp /usr/share/fonts/X11/100dpi/
xset +fp /usr/share/fonts/X11/75dpi/
xset fp rehash
# Set correct temp directory
echo "TMPDIR=/tmp" >> ~/maya/2015-x64/Maya.env
# Disable customer improvement program as can cause issues in some versions
echo "MAYA_DISABLE_CIP=1" >> ~/maya/2015-x64/Maya.env
# Create fake rpm binary
echo 'int main (void) {return 0;}' > mayaInstall.c
gcc mayaInstall.c
# Backup rpm binary then copy fake binary
sudo cp /usr/bin/rpm /usr/bin/rpm_backup
sudo cp a.out /usr/bin/rpm
# Remove installation directory
cd
rm -rf ~/maya2015_setup
# Run setup
sudo ./setup
# Restore rpm binary
sudo cp /usr/bin/rpm_backup /usr/bin/rpm
# Set application icon
sudo sed -i 's/^\(Icon=\).*/\1\/usr\/autodesk\/maya\/icons\/hsMaya.png/' /usr/autodesk/maya/desktop/Autodesk-Maya.desktop
# Fix crash on loading jpegs
# https://ubuntuforums.org/showthread.php?t=2020648&p=12132661#post12132661
sudo sed -i '/setenv LIBQUICKTIME_PLUGIN_DIR/a setenv LD_PRELOAD "$MAYA_LOCATION/lib/libjpeg.so.62"' /usr/autodesk/maya2015-x64/bin/maya
# Run once with sudo to activate license
sudo maya
# Fix permissions
sudo chown -R $USER:$USER ~/maya
sudo rm -f /tmp/commandportDefault
# Now it can be run
maya
#or maya -style gtk
# Optional - set Maya application shortcut to use GTK theme
# sudo sed -i 's/bin\/maya/bin\/maya -style gtk/' /usr/autodesk/maya/desktop/Autodesk-Maya.desktop
# Optional - Allow alt key for camera movement by changing window modifier key to Super
# Without this change you can only use Super (Windows key) to drag camera
# gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>"
# gsettings set org.cinnamon.desktop.wm.preferences mouse-button-modifier "<Super>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment