Last active
August 29, 2015 14:23
-
-
Save grahampugh/3328acf97bdcd03085d6 to your computer and use it in GitHub Desktop.
Installs Matlab and Maple from packages.bris.ac.uk to UoB Ubuntu 14.04 LTS desktops. Will only work within the University.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# uncomment these to force a reinstall | |
# dpkg -r opt-maple-18 opt-maple-18-modules | |
# rm -rf /opt/matlab-R2014a | |
# matlab | |
if [ ! -f /opt/matlab-R2014a/bin/matlab ]; then | |
wget -O /opt-matlab-R2014a--plus-module.tar.bz2 http://packages.bris.ac.uk/unpackaged/zone_d/opt-matlab-R2014a--plus-module.tar.bz2 | |
tar xvjf /opt-matlab-R2014a--plus-module.tar.bz2 -C / | |
fi | |
# maple | |
if [ ! -f /opt/maple18/bin/maple ]; then | |
wget -O /opt-maple-18_18-1_amd64.deb http://packages.bris.ac.uk/unpackaged/zone_d/opt-maple-18_18-1_amd64.deb | |
dpkg -i /opt-maple-18_18-1_amd64.deb | |
fi | |
# maple modules | |
if [ ! -f /opt/modulefiles/maple-18-x86_64 ]; then | |
wget -O /opt-maple-18-modules_18-1_amd64.deb http://packages.bris.ac.uk/unpackaged/zone_d/opt-maple-18-modules_18-1_amd64.deb | |
dpkg -i /opt-maple-18-modules_18-1_amd64.deb | |
fi | |
# clear everything out | |
rm /opt-matlab-R2014a--plus-module.tar.bz2 /opt-maple-18_18-1_amd64.deb /opt-maple-18-modules_18-1_amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment