Skip to content

Instantly share code, notes, and snippets.

@kurtontheway
Created February 13, 2017 15:47
Show Gist options
  • Select an option

  • Save kurtontheway/1cabed30cb73797b077b69347d351534 to your computer and use it in GitHub Desktop.

Select an option

Save kurtontheway/1cabed30cb73797b077b69347d351534 to your computer and use it in GitHub Desktop.

Revisions

  1. Aleksey Samoilov revised this gist Nov 14, 2016. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions mayaOnDebian.sh
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,8 @@ export MAYAINSTALL='mayaTempInstall'
    export INSTALLFILE="Autodesk_Maya_2016_SP3_EN_Linux_64bit.tgz"
    export RPM_INSTALL_PREFIX=/usr
    export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R12/lib64/
    LIBCRYPTO="/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0"
    LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0"
    MAYAURL="http://download.autodesk.com/us/support/files/maya_2016_service_pack_3/Autodesk_Maya_2016_SP3_EN_Linux_64bit.tgz"
    PRODUCTID="657F1"

    @@ -75,7 +77,7 @@ fi
    # Install Dependencies
    sudo apt-get install csh tcsh libaudiofile-dev libglw1-mesa elfutils gamin libglw1-mesa-dev mesa-utils libtiff5 xfstt ttf-liberation ttf-mscorefonts-installer xfonts-100dpi xfonts-75dpi alien
    sudo apt-get install csh tcsh libaudiofile-dev libglw1-mesa elfutils gamin libglw1-mesa-dev mesa-utils libtiff5 xfstt ttf-liberation ttf-mscorefonts-installer xfonts-100dpi xfonts-75dpi alien, openssl, libxp6
    sleep 3s
    # Extract Maya Install Files
    @@ -95,11 +97,17 @@ sudo cp libadlmPIT.so.11 /usr/lib/libadlmPIT.so.11
    sudo cp libadlmutil.so.11 /usr/lib/libadlmutil.so.11
    # License Setup:
    sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2016-x64/bin/License.env
    sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2016/bin/License.env
    #Notice the lack of sudo.
    /usr/autodesk/maya2016-x64/bin/adlmreg -i S $PRODUCTID $PRODUCTID 2016.0.0.F $SERIALNUMBER /var/opt/Autodesk/Adlm/Maya2016/MayaConfig.pit
    # symbolic links:
    #Libssl Link
    sudo ln -s $LIBSSL /usr/autodesk/maya2016/lib/libssl.so.10
    #LibCrypto Link
    sudo ln -s $LIBCRYPTO /usr/autodesk/maya2016/lib/libcrypto.so.10
    # libtiff
    sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.0 /usr/lib/libtiff.so.3
    sleep 2s
  2. Aleksey Samoilov revised this gist Nov 14, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions mayaOnDebian.sh
    Original file line number Diff line number Diff line change
    @@ -46,13 +46,13 @@ read SERIALNUMBER
    echo ""

    #Create a temp folder for the install files
    if [ ! -d "$HOME/$MAYAINSTALL" ]; then
    mkdir $HOME/$MAYAINSTALL
    if [ ! -d /tmp/$MAYAINSTALL" ]; then
    mkdir /tmp/$MAYAINSTALL
    echo "Creating $MAYAINSTALL folder"
    echo ""
    fi
    export INSTALLDIR=$HOME/$MAYAINSTALL
    export INSTALLDIR=/tmp/$MAYAINSTALL
    cd $INSTALLDIR
    sudo chmod -R 777 $INSTALLDIR
  3. Aleksey Samoilov revised this gist Nov 14, 2016. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions mayaOnDebian.sh
    Original file line number Diff line number Diff line change
    @@ -24,8 +24,6 @@ export MAYAINSTALL='mayaTempInstall'
    export INSTALLFILE="Autodesk_Maya_2016_SP3_EN_Linux_64bit.tgz"
    export RPM_INSTALL_PREFIX=/usr
    export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R12/lib64/
    LIBCRYPTO="/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0"
    LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0"
    MAYAURL="http://download.autodesk.com/us/support/files/maya_2016_service_pack_3/Autodesk_Maya_2016_SP3_EN_Linux_64bit.tgz"
    PRODUCTID="657F1"

  4. Aleksey Samoilov revised this gist Nov 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mayaOnDebian.sh
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ fi
    export MAYAINSTALL='mayaTempInstall'
    export INSTALLFILE="Autodesk_Maya_2016_SP3_EN_Linux_64bit.tgz"
    export RPM_INSTALL_PREFIX=/usr
    export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R7/lib64/
    export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R12/lib64/
    LIBCRYPTO="/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0"
    LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0"
    MAYAURL="http://download.autodesk.com/us/support/files/maya_2016_service_pack_3/Autodesk_Maya_2016_SP3_EN_Linux_64bit.tgz"
  5. Aleksey Samoilov revised this gist Nov 14, 2016. 1 changed file with 12 additions and 35 deletions.
    47 changes: 12 additions & 35 deletions mayaOnDebian.sh
    Original file line number Diff line number Diff line change
    @@ -21,17 +21,17 @@ fi

    #Setup a few vars
    export MAYAINSTALL='mayaTempInstall'
    export INSTALLFILE="Autodesk_Maya_2014_SP1_English_Linux_64bit.tgz"
    export INSTALLFILE="Autodesk_Maya_2016_SP3_EN_Linux_64bit.tgz"
    export RPM_INSTALL_PREFIX=/usr
    export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R7/lib64/
    LIBCRYPTO="/usr/lib/x86_64-linux-gnu/libcrypto.so.0.9.8"
    LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.0.9.8"
    MAYAURL="http://download.autodesk.com/us/maya/service_packs/Autodesk_Maya_2014_SP1_English_Linux_64bit.tgz"
    LIBCRYPTO="/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0"
    LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0"
    MAYAURL="http://download.autodesk.com/us/support/files/maya_2016_service_pack_3/Autodesk_Maya_2016_SP3_EN_Linux_64bit.tgz"
    PRODUCTID="657F1"


    #Install Message
    echo "You’re about to download and install Autodesk Maya 2014"
    echo "You’re about to download and install Autodesk Maya 2016"
    echo ""
    echo "Do you wish to continue [Y/n]?"
    read RESPONSE
    @@ -62,7 +62,7 @@ sudo chmod -R 777 $INSTALLDIR
    if [ -f $INSTALLDIR/$INSTALLFILE ]; then
    #Make sure the install file is complete.
    MAYA_INSTALL_HASH=$(md5sum -b $INSTALLDIR/$INSTALLFILE | awk '{print $1}')
    if [ "$MAYA_INSTALL_HASH" = "c4f709095760803d19e413093d7d5ab7" ]; then
    if [ "$MAYA_INSTALL_HASH" = "118a09f26901476f3aa9948643a5fc87" ]; then
    echo "Maya install file found and verified... skipping download"
    else
    echo "Maya file found, but it's not complete. We'll try the download again"
    @@ -77,7 +77,7 @@ fi


    # Install Dependencies
    sudo apt-get install csh tcsh libaudiofile-dev libglw1-mesa elfutils gamin libglw1-mesa-dev mesa-utils xfs xfstt ttf-liberation ttf-mscorefonts-installer xfonts-100dpi xfonts-75dpi alien
    sudo apt-get install csh tcsh libaudiofile-dev libglw1-mesa elfutils gamin libglw1-mesa-dev mesa-utils libtiff5 xfstt ttf-liberation ttf-mscorefonts-installer xfonts-100dpi xfonts-75dpi alien
    sleep 3s

    # Extract Maya Install Files
    @@ -93,40 +93,17 @@ sudo mkdir /usr/tmp
    sudo chmod 777 /usr/tmp

    #Required for license to install
    sudo cp libadlmPIT.so.7 /usr/lib/libadlmPIT.so.7
    sudo cp libadlmutil.so.7 /usr/lib/libadlmutil.so.7
    sudo cp libadlmPIT.so.11 /usr/lib/libadlmPIT.so.11
    sudo cp libadlmutil.so.11 /usr/lib/libadlmutil.so.11

    # License Setup:
    sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2014-x64/bin/License.env
    sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2016-x64/bin/License.env
    #Notice the lack of sudo.
    /usr/autodesk/maya2014-x64/bin/adlmreg -i S $PRODUCTID $PRODUCTID 2014.0.0.F $SERIALNUMBER /var/opt/Autodesk/Adlm/Maya2014/MayaConfig.pit
    /usr/autodesk/maya2016-x64/bin/adlmreg -i S $PRODUCTID $PRODUCTID 2016.0.0.F $SERIALNUMBER /var/opt/Autodesk/Adlm/Maya2016/MayaConfig.pit

    # symbolic links:
    # Its preferred to use the libssl and libcrypto that’s included with 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.5.1.0 /usr/lib/libtiff.so.3
    sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.0 /usr/lib/libtiff.so.3
    sleep 2s

    #Everything should work now...
  6. Aleksey Samoilov renamed this gist Nov 14, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. @heiths heiths revised this gist Jul 30, 2013. No changes.
  8. @heiths heiths revised this gist Jul 30, 2013. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion mayaOnUbuntu.sh
    Original file line number Diff line number Diff line change
    @@ -91,7 +91,11 @@ sudo dpkg -i $INSTALLDIR/*.deb
    #Setup For Mental Ray.
    sudo mkdir /usr/tmp
    sudo chmod 777 /usr/tmp


    #Required for license to install
    sudo cp libadlmPIT.so.7 /usr/lib/libadlmPIT.so.7
    sudo cp libadlmutil.so.7 /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.
  9. @heiths heiths revised this gist Jul 30, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mayaOnUbuntu.sh
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ fi
    export MAYAINSTALL='mayaTempInstall'
    export INSTALLFILE="Autodesk_Maya_2014_SP1_English_Linux_64bit.tgz"
    export RPM_INSTALL_PREFIX=/usr
    export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R5/lib64/
    export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R7/lib64/
    LIBCRYPTO="/usr/lib/x86_64-linux-gnu/libcrypto.so.0.9.8"
    LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.0.9.8"
    MAYAURL="http://download.autodesk.com/us/maya/service_packs/Autodesk_Maya_2014_SP1_English_Linux_64bit.tgz"
  10. @heiths heiths revised this gist Jul 30, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions mayaOnUbuntu.sh
    Original file line number Diff line number Diff line change
    @@ -105,20 +105,20 @@ sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/aut
    if [ -f "$LIBSSL" ]
    then
    echo "$LIBSSL found. Using it."
    ln -s $LIBSSL /usr/autodesk/maya2014-x64/lib/libssl.so.6
    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.6
    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.6
    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.6
    sudo ln -s /usr/autodesk/maya2014-x64/support/openssl/libcrypto.so.6 /usr/autodesk/maya2014-x64/lib/libcrypto.so.10
    fi

    # libtiff
  11. @heiths heiths revised this gist Jul 30, 2013. 1 changed file with 44 additions and 26 deletions.
    70 changes: 44 additions & 26 deletions mayaOnUbuntu.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    #Maya on Ubuntu v.1
    #This is the base installer... I’ll add more features in later versions.
    #if you have any issues, feel free email me at heiths@gmail.com

    #### Lets run a few checks to make sure things work as expected.
    #Make sure we’re running with root permissions.
    if [ `whoami` != root ]; then
    @@ -21,14 +21,17 @@ fi

    #Setup a few vars
    export MAYAINSTALL='mayaTempInstall'
    export INSTALLFILE="Autodesk_Maya_2014_SP1_English_Linux_64bit.tgz"
    export RPM_INSTALL_PREFIX=/usr
    export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R5/lib64/
    LIBCRYPTO="/usr/lib/x86_64-linux-gnu/libcrypto.so.0.9.8"
    LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.0.9.8"
    MAYAURL="http://download.autodesk.com/us/maya/service_packs/Autodesk_Maya_2013_SP1_English_Linux_64bit.tgz"
    MAYAURL="http://download.autodesk.com/us/maya/service_packs/Autodesk_Maya_2014_SP1_English_Linux_64bit.tgz"
    PRODUCTID="657F1"


    #Install Message
    echo "You’re about to download and install Autodesk Maya 2013"
    echo "You’re about to download and install Autodesk Maya 2014"
    echo ""
    echo "Do you wish to continue [Y/n]?"
    read RESPONSE
    @@ -45,68 +48,83 @@ read SERIALNUMBER
    echo ""

    #Create a temp folder for the install files
    if [ ! -d "$HOME/mayaInstaller" ]; then
    if [ ! -d "$HOME/$MAYAINSTALL" ]; then
    mkdir $HOME/$MAYAINSTALL
    echo "Creating $MAYAINSTALL folder"
    echo ""
    fi
    export INSTALLDIR=$HOME/MAYAINSTALL

    export INSTALLDIR=$HOME/$MAYAINSTALL
    cd $INSTALLDIR
    sudo chmod -R 777 $INSTALLDIR

    #Now check to see if you already have maya downloaded and in the install folder.
    if [ -f $INSTALLDIR/$INSTALLFILE ]; then
    #Make sure the install file is complete.
    MAYA_INSTALL_HASH=$(md5sum -b $INSTALLDIR/$INSTALLFILE | awk '{print $1}')
    if [ "$MAYA_INSTALL_HASH" = "c4f709095760803d19e413093d7d5ab7" ]; then
    echo "Maya install file found and verified... skipping download"
    else
    echo "Maya file found, but it's not complete. We'll try the download again"
    mv $INSTALLFILE $INSTALLFILE.bak
    wget --referer="http://trial.autodesk.com" --content-disposition $MAYAURL

    fi
    else
    echo "Maya install file not found. We'll download it now."
    wget --referer="http://trial.autodesk.com" --content-disposition $MAYAURL
    fi

    #Get Maya
    wget --referer="http://trial.autodesk.com" --content-disposition $MAYAURL

    # Install Dependencies
    sudo apt-get install csh tcsh libaudiofile-dev libglw1-mesa elfutils gamin libglw1-mesa-dev mesa-utils xfs xfstt ttf-liberation ttf-mscorefonts-installer xfonts-100dpi xfonts-75dpi alien
    sleep 3s

    #This is in case of name change (due to new service pack or something)
    MAYAFILE=Autodesk*.tgz

    # Extract Maya Install Files
    tar xvf $INSTALLDIR/$MAYAFILE
    tar xvf $INSTALLDIR/$INSTALLFILE
    # Convert rpms to debs
    sudo for i in $INSTALLDIR/*.rpm; do sudo alien -cv $i; done
    for i in $INSTALLDIR/*.rpm; do sudo alien -cv $i; done
    sleep 2s
    #install the debs
    sudo dpkg -i $INSTALLDIR/*.deb

    #Setup For Mental Ray.
    sudo mkdir /usr/tmp
    sudo chmod 777 /usr/tmp

    # License Setup:
    sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2013-x64/bin/License.env
    sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2014-x64/bin/License.env
    #Notice the lack of sudo.
    /usr/autodesk/maya2013-x64/bin/adlmreg -i S 657E1 657E1 2013.0.0.F $SERIALNUMBER /var/opt/Autodesk/Adlm/Maya2013/MayaConfig.pit

    /usr/autodesk/maya2014-x64/bin/adlmreg -i S $PRODUCTID $PRODUCTID 2014.0.0.F $SERIALNUMBER /var/opt/Autodesk/Adlm/Maya2014/MayaConfig.pit
    # symbolic links:
    # Its preferred to use the libssl and libcrypto that’s included with 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/maya2013-x64/lib/libssl.so.6
    ln -s $LIBSSL /usr/autodesk/maya2014-x64/lib/libssl.so.6
    else
    echo "$LIBSSL not found. Using Autodesk’s libssl"
    sudo ln -s /usr/autodesk/maya2013-x64/support/openssl/libssl.so.6 /usr/autodesk/maya2013-x64/lib/libssl.so.6
    sudo ln -s /usr/autodesk/maya2014-x64/support/openssl/libssl.so.6 /usr/autodesk/maya2014-x64/lib/libssl.so.6
    fi

    #LibCrypto Link
    if [ -f "$LIBCRYPTO" ]
    then
    echo "$LIBCRYPTO found. Using it."
    ln -s $LIBCRYPTO /usr/autodesk/maya2013-x64/lib/libcrypto.so.6
    ln -s $LIBCRYPTO /usr/autodesk/maya2014-x64/lib/libcrypto.so.6
    else
    echo "$LIBCRYPTO not found. Using Autodesk’s libssl"
    sudo ln -s /usr/autodesk/maya2013-x64/support/openssl/libcrypto.so.6 /usr/autodesk/maya2013-x64/lib/libcrypto.so.6
    sudo ln -s /usr/autodesk/maya2014-x64/support/openssl/libcrypto.so.6 /usr/autodesk/maya2014-x64/lib/libcrypto.so.6
    fi

    # libtiff
    sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.4.3.4 /usr/lib/libtiff.so.3
    sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5.1.0 /usr/lib/libtiff.so.3
    sleep 2s

    #Everything should work now...
    echo "Installation Complete."
    echo ""
  12. @heiths heiths created this gist Aug 3, 2012.
    120 changes: 120 additions & 0 deletions mayaOnUbuntu.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,120 @@
    #!/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 later versions.
    #if you have any issues, feel free email me at heiths@gmail.com

    #### Lets run a few checks to make sure things work as expected.
    #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.0.9.8"
    LIBSSL="/usr/lib/x86_64-linux-gnu/libssl.so.0.9.8"
    MAYAURL="http://download.autodesk.com/us/maya/service_packs/Autodesk_Maya_2013_SP1_English_Linux_64bit.tgz"

    #Install Message
    echo "You’re about to download and install Autodesk Maya 2013"
    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 serial number 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

    # Install Dependencies
    sudo apt-get install csh tcsh libaudiofile-dev libglw1-mesa elfutils gamin libglw1-mesa-dev mesa-utils xfs xfstt ttf-liberation ttf-mscorefonts-installer xfonts-100dpi xfonts-75dpi alien
    sleep 3s

    #This is in case of name change (due to new service pack or something)
    MAYAFILE=Autodesk*.tgz
    # Extract Maya Install Files
    tar xvf $INSTALLDIR/$MAYAFILE
    # Convert rpms to debs
    sudo for i in $INSTALLDIR/*.rpm; do sudo alien -cv $i; done
    sleep 2s
    #install the debs
    sudo dpkg -i $INSTALLDIR/*.deb

    #Setup For Mental Ray.
    sudo mkdir /usr/tmp
    sudo chmod 777 /usr/tmp

    # License Setup:
    sudo echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2013-x64/bin/License.env
    #Notice the lack of sudo.
    /usr/autodesk/maya2013-x64/bin/adlmreg -i S 657E1 657E1 2013.0.0.F $SERIALNUMBER /var/opt/Autodesk/Adlm/Maya2013/MayaConfig.pit

    # symbolic links:
    # Its preferred to use the libssl and libcrypto that’s included with 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/maya2013-x64/lib/libssl.so.6
    else
    echo "$LIBSSL not found. Using Autodesk’s libssl"
    sudo ln -s /usr/autodesk/maya2013-x64/support/openssl/libssl.so.6 /usr/autodesk/maya2013-x64/lib/libssl.so.6
    fi

    #LibCrypto Link
    if [ -f "$LIBCRYPTO" ]
    then
    echo "$LIBCRYPTO found. Using it."
    ln -s $LIBCRYPTO /usr/autodesk/maya2013-x64/lib/libcrypto.so.6
    else
    echo "$LIBCRYPTO not found. Using Autodesk’s libssl"
    sudo ln -s /usr/autodesk/maya2013-x64/support/openssl/libcrypto.so.6 /usr/autodesk/maya2013-x64/lib/libcrypto.so.6
    fi

    # libtiff
    sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.4.3.4 /usr/lib/libtiff.so.3
    sleep 2s

    #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 the terminal"
    exit 0;
    esac
    maya