Maya Linux Install 2015

From wikinotes

This is like the old windows versions that needed a flexlm server to be running in order to authenticate maya. It's been a learning experience doing it on the unix side. This post was tremendously helpful: http://forum.cgpersia.com/f40/maya-v2015-92811/index2.html

There was a catch for maya2015 .. The flexlm crack is specific to each maya release. I could find a crack for SP5 R2, but not simply SP5. So I'm using the version of maya that was packaged with the one I have after installing the dependencies with the AUR package.

THIS VERSION OF THE FLEXLM CRACK REQUIRES THAT YOU ARE RUNNING THE FLEXLM SERVER IN ORDER TO START MAYA. MAKE SURE TO ALIAS OR CREATE A CUSTOM SHELLSCRIPT IN /USR/BIN TO RUN MAYA THAT STARTS THE SERVER BEFORE TRYING TO RUN MAYA ALSO, AFTER MAKING APPROPRIATE PERMISSION CHAGNES, IF YOUR LOCK FILE WAS CREATED BY ROOT (FLEXNETSERVER RAN AS ROOT LAST TIME) YOU'LL HAVE TO DELETE IT BEFORE SERVER CAN BE RUN AS USER

cd /home/src
curl -#O https://aur.archlinux.org/packages/ad/adlmflexnetclient9/adlmflexnetclient9.tar.gz						## required for maya
curl -#O https://aur.archlinux.org/packages/ad/adlmflexnetserver9/adlmflexnetserver9.tar.gz						## required for crack (installs to /opt/flexnetserver)
curl -#O https://aur.archlinux.org/packages/ma/maya2015/maya2015.tar.gz													## maya
## do the usual makepkg -s, with the occasional makepkg -s --skippgpcheck and pacman -U *.pkg.*

## Copy Req'd Files
sudo cp /home/src/maya2015/src/libadlmPIT.so.9  /usr/lib																		## THIS IS SUPER IMPORTANT (even though ldd looks like it can find them)
sudo cp /home/src/maya2015/src/libadlmutil.so.9 /usr/lib

cp ../Crack-Net-Lnx64/adskflex               /opt/flexnetserver/
cp ../Crack-Net-Lnx64/libadlmint.so.9.0.23   /usr/autodesk/2015-x64/lib/
cp ../Crack-Net-Lnx64/lic.dat                /opt/flexnetserver/

## get information from lmutils
/opt/flexnetserver/lmutil lmhostid hostname																					## returns wintermute
/opt/flexnetserver/lmutil lmhostid ether																						## returns 9cb70de76fcd 902b343203d9 902b34321799
ifconfig -a																																## (rather than using lmutil, find the interface that actually
																																			##  has an internet connection, and enter that interface's mac address)
																																			##  in this case 902b34321799 is enp7s0

sudo chmod -R 777 /opt/flexnetserver

#### /opt/flexnetserver/lic.dat
SERVER wintermute 9cb70de76fcd
####

export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R9/lib64

##### This is where you'll start having problems if you have them. 
##### Remember that you can always use `ldd adlmreg` to see which libraries
##### are found and which libraries need to be linked manually.
sudo LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R9/lib64 /usr/autodesk/maya2015-x64/bin/adlmreg -i N 657G1 657G1 2015.0.0.F 666-69696969 /var/opt/Autodesk/Adlm/Maya2015/MayaConfig.pit 

#   /\   /\
#    |    |
#  THIS COMMAND IS DIFFERENT WITH STANDALONE AND NETWORK LICENSED VERSIONS OF MAYA!!!


sudo echo -e 'MAYA_LICENSE=657G1\nMAYA_LICENSE_METHOD=network' > /usr/autodesk/maya2015-x64/bin/License.env
sudo echo -e 'SERVER 127.0.0.1 0\nUSE_SERVER'                  > /var/flexlm/maya.lic

## open a new tmux session or run this in the background (flexnet server)
sudo /opt/flexnetserver/lmgrd -z -c /opt/flexnetserver/lic.dat

## test maya
sudo maya


## RUN AS REGULAR USER
##
sudo useradd autodesk					# create group autodesk
sudo usermod -a -G autodesk will		# add user 'will' to group autodesk
sudo newgrp autodesk						# enable group without login
 

sudo chown -R autodesk:autodesk  /usr/autodesk			## this is required so that my script can have permission to start flexlm server
sudo chown -R autodesk:autodesk  /var/opt/Autodesk		## before maya starts
sudo chown -R autodesk:autodesk  /var/flexlm
sudo chown -R autodesk:autodesk  /opt/flexnetserver

 
cp ~/Adlm /home/will/
cp ~/maya /home/will/
chown -R will:autodesk /home/will/Adlm
chown -R will:autodesk /home/will/maya


################ /usr/bin/maya
## Add this to /usr/bin/maya at the top of the script (under the shebang)
## to automatically run flexnet when maya starts (if it isn't already running).
/home/will/progs/bash/maya/flexnetStart &
################
## IF YOUR INSTALL STILL ISN'T WORKING AT THIS POINT, YOU ARE USING THE INCORRECT CRACK FOR 
## YOUR MAYA VERSION. YOU MIGHT HAVE TO GO IT MANUALLY...

su
tar -xvf Autodesk_Maya_English_2015_Linux_64bit.tgz
rpmextract.sh *rpm
rsync -aAXvt /home/will/dev/AUTODESK_MAYA_V2015_LNX64-XFORCE/usr/autodesk/maya2015-x64/* /usr/autodesk/
rsync -aAXvt /home/will/dev/AUTODESK_MAYA_V2015_LNX64-XFORCE/opt/* /opt/
rsync -aAXvt /home/will/dev/AUTODESK_MAYA_V2015_LNX64-XFORCE/var/* /var/

## Now Repeat the above cracking procedure