Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
#2016 Aleksey Samoilov aka Sunderland93
#samoilov.lex@gmail.com
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 Mudbox will only run on 64-bit linux.
echo Please install the 64-bit debian and try again.
exit
fi
#Setup a few vars
export MUDBOXINSTALL='mudboxTempInstall'
export INSTALLFILE="Autodesk_Mudbox_2017_EFGJ_Linux64.tgz"
export RPM_INSTALL_PREFIX=/usr
export LD_LIBRARY_PATH=/opt/Autodesk/Adlm/R12/lib64/
MUDBOXURL="http://edutrial.autodesk.com/NET17SWDLD/2017/MBXPRO/ESD/Autodesk_Mudbox_2017_EFGJ_Linux64.tgz"
PRODUCTID="498I1"
#Install Message
echo "You’re about to download and install Autodesk Mudbox 2017"
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://www.autodesk.com/education/home"
echo "Enter the serial number"
read SERIALNUMBER
echo ""
#Create a temp folder for the install files
if [ ! -d /tmp/$MUDBOXINSTALL" ]; then
mkdir /tmp/$MUDBOXINSTALL
echo "Creating $MUDBOXINSTALL folder"
echo ""
fi
export INSTALLDIR=/tmp/$MUDBOXINSTALL
cd $INSTALLDIR
sudo chmod -R 777 $INSTALLDIR
#Now check to see if you already have mudbox downloaded and in the install folder.
if [ -f $INSTALLDIR/$INSTALLFILE ]; then
#Make sure the install file is complete.
MUDBOX_INSTALL_HASH=$(md5sum -b $INSTALLDIR/$INSTALLFILE | awk '{print $1}')
if [ "$MUDBOX_INSTALL_HASH" = "6d5028c9e244866246a837103ffa734f" ]; then
echo "Mudbox install file found and verified... skipping download"
else
echo "Mudbox 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 $MUDBOXURL
fi
else
echo "Mudbox install file not found. We'll download it now."
wget --referer="http://trial.autodesk.com" --content-disposition $MUDBOXURL
fi
# Install Dependencies
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, libtiff5, openssl
sleep 3s
# Extract Maya Install Files
tar xvf $INSTALLDIR/$INSTALLFILE
# Convert rpms to debs
for i in $INSTALLDIR/*.rpm; do sudo alien -cv $i; done
sleep 2s
#install the debs
sudo dpkg -i $INSTALLDIR/*.deb
#Required for license to install
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 'MUDBOX_LICENSE=unlimited\nMUDBOX_LICENSE_METHOD=standalone' > /usr/autodesk/mudbox2017/bin/License.env
#Notice the lack of sudo.
/usr/autodesk/mudbox2017/bin/adlmreg -i S $PRODUCTID $PRODUCTID 2017.0.0.F $SERIALNUMBER /var/opt/Autodesk/Adlm/Mudbox2017/MudboxConfig.pit
# symbolic links:
# libtiff
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...
echo "Installation Complete."
echo ""
echo "Start Mudbox Now?"
read RUNNOW
case "$RUNNOW" in
n*|N*)
echo "You can run mudbox any time by typing mudbox into the terminal"
exit 0;
esac
mudbox
@bvz2000

This comment has been minimized.

Copy link

bvz2000 commented Aug 19, 2017

There is an error on line 44.

Current line: if [ ! -d /tmp/$MUDBOXINSTALL" ]; then
Should be: if [ ! -d /tmp/$MUDBOXINSTALL ]; then

(removed quote).

There may also be an error on line 72 (Not sure, I am totally new to all of this):

Current line: 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, libtiff5, openssl
Should be: 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 libtiff5 openssl

(I removed the commas after alien and libtiff5)

Thanks for this btw. Still not working for me but it gets me a lot further along the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.