Background: I have created an Ubuntu VirtualBox from LAPP stack and added the Ubuntu desktop (Unity: sudo apt-get install ubuntu-desktop
). Now I am attempting to install the MCR without loosing Unity.
- Download MCR zip and extract to MCR_SOURCE
- Go to my folder that contains the files:
cd /media/sf_shared/MCR_ SOURCE
Change
installer_input.txt
file:destinationFolder=/opt/MCR agreeToLicense=yes outputFile=/opt/install.log mode=silent product.MATLAB product.MATLAB_Builder_JA # Note: To find out the required toolboxes >> start Matlab >> run your code and find out which toolboxes were used with: license('inuse')
- Install MCR:
sudo ./install -inputFile /media/sf_shared/MCR_SOURCE/installer_input.txt
>> success - Restart Ubuntu >> test whether Ubuntu’s Unity still exists >> everything is fine
Attention the next step will “ kill ” your Ubuntu desktop configuration!!! (i.e. copy your hardisk, anything you must do to recover quickly) – now configure:
sudo gedit /etc/environment
LD_LIBRARY_PATH="/opt/MCR/v84/runtime/glnxa64:/opt/MCR/v84/bin/glnxa64:/opt/MCR/v84/sys/os/glnxa64:${LD_LIBRARY_PATH}" XAPPLRESDIR="/opt/MCR/v84/X11/app-defaults" # Note: X11/app-defaults folder has not been created during installation
Restart Ubuntu >> Unity is gone, recovery attempts such as deleting the above lines do not recover Unity; reinstalling the Ubuntu desktop does not help either.
I have tried an alternative route with exporting the variables, which also "kills" Unity. By the way this affects all users.
Any ideas?