Maya 2017 on Ubuntu 17.04

Setting up Maya 2017 on Ubuntu 17.04

This is going to be a post mainly for myself so I can remember it whenever I have to inevitably set it up again.

This will ape off of Frederik Averpil's prior article without which, I would have given up in desperation. So thanks to him for publishing his steps before.

I'm posting this because there are a few things that are different between when he published his article (given that his is for Ubuntu 14.04 and mine is for Ubuntu 17) along with his being for a different version of Maya (although there wasn't that much difference for Maya). Also, this was a really fresh install of Ubuntu 17, I just installed it the day before doing this, so I didn't have a lot of libraries set up or added. So this walkthrough should cover from start to finish, hopefully.

Also, I'm using Ubuntu because of an issue in the Linux Kernel that causes an error with my graphics card (EVGA NVidia GTX 970). This is the only recent version of Linux that allows me to get past the boot screen of the distribution because of the nouveau drivers. If you want to see the bug tracking on this issue, you can visit this link. - I've normally liked being on Antergos, but since it's a rolling distribution, it updated my Linux kernel without my knowledge and then it broke ... literally... everything. And getting this Ubuntu running wasn't a picnic either, I had to go mess with some BIOS settings to get it running. Bottom line: Fuck Nvidia hardware.

First, I'm going to be adding some package libraries that are not in the default Ubuntu package repository.

sudo nano /etc/apt/sources.list

Make a back-up of this file by putting a message at the top of it indicating that it's a back-up, hit Ctrl+x and save it as bak-sources.list

Then, run the command again

sudo nano /etc/apt/sources.list

and this time I'm going to add some repositories to the bottom of the line file.

## source for libpng12-0 package
deb http://mirrors.cat.pdx.edu/ubuntu xenial main
# source for libxp6
deb http://mirrors.cat.pdx.edu/ubuntu trusty main
# Source for libjpeg62
deb http://cz.archive.ubuntu.com/ubuntu zesty main universe

You can choose your own server for the above by going to this link for libpng12 and selecting an appropriate server for yourself.

The link above is for libpng12, this link is for libjpeg62(the required version for Maya, even though newer libs for jpeg should be installed on your machine), and this link is for libxp6. Notice that they're all for amd64, so go to the prior page on the index if you need to select a different architecture - although I have no clue if Maya will even run on the other architectures.

Then, to make sure that the packages are up to date, run

sudo apt-get update

Make sure you don't have anything that flags as an error - if you do, try using a different server.

Alright, so that's the first part, grabbing the extra dependencies. From here on, I'll be integrating Frederik's stuff, and updating it for what needs to be updated.

sudo apt-get install csh tcsh libaudiofile-dev libglw1-mesa elfutils gamin libglw1-mesa-dev mesa-utils xfstt ttf-liberation ttf-mscorefonts-installer xfonts-100dpi xfonts-75dpi alien libjpeg62 libpng12 libxp6

Maya needs write access to a temp folder.

sudo mkdir /usr/tmp
sudo chmod 777 /usr/tmp

Ubuntu can't use .rpm packages (which are inside of the Maya install), so we need to convert these to .deb packages.

sudo alien -cv *.rpm

Install the .deb packages that were just created.

sudo dpkg -i *.deb

Next, we're going to link the libraries that Maya is going to need. Make sure that your library versions are the same (they might have a different number) before running the links. Go to /usr/lib/x86_64-linux-gnu/ and look at the libraries in there.

sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.5 /usr/autodesk/maya2017/lib/libtiff.so.3

sudo apt-get install libssl1.0.0 libssl-dev

sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/autodesk/maya2017/lib/libcrypto.so.10

sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/autodesk/maya2017/lib/libssl.so.10

Then, you can follow the rest of Frederik's information on his page from Setting up the licensing forward.

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

Inside of /usr/autodesk/maya2017/bin

chmod +x setup
sudo ./setup

Yes, the set-up will "fail" as Frederik mentions, but just continue, because it's registering that it failed because it can't install rpms, even though the .deb packages were already installed.

Here's the license file:

# /var/opt/Autodesk/Adlm/Maya2016/MayaConfig.pit
(binary file)

# cat /var/opt/Autodesk/Adlm/Maya2016/install.env
ADLMLICENSETYPE=<network|standalone>
ADLMPRODUCTKEY=<PRODUCT_NUMBER>
ADLMPRODUCTVERSION=2016.0.0.F
ADLMSERIALNUMBER=<SERIAL_NUMBER>

# cat /usr/autodesk/maya2016/bin/License.env
MAYA_LICENSE=<PRODUCT_NUMBER>
MAYA_LICENSE_METHOD=<network|standalone>

# cat /var/flexlm/maya.lic
SERVER <SERVER_NAME_OR_IP> 0
USE_SERVER

And then you can (should be able to) run Maya.

sudo /usr/autodesk/maya2017/bin/maya

Again, thanks to Frederik for doing the bulk of the work.