Saturday, December 10, 2011

Installing Matlab on ubuntu 11.10


Here is a small hint in installing matlab in Linux platforms ( of course i used ubuntu11.10).
However coming to the point we can install matlab with sufficient privileges only.
So now just insert the cd of mount the image that consists the setup files. now just type the following command to start the instalation.
sudo /<full_path>/install\ 
then there appears the window which is self explanative.
Just follow the instructions  in that window to fully complete the instalation.
But there won't be any launcher of icon installed.
Though typing matlab in the terminal would be able to run the matlab program.
Totally there are two problems that will arise after installation.
"MATLAB desktop keyboard shortcuts, such as Ctrl+S, are now customizable.
In addition, many keyboard shortcuts have changed for improved consistency
across the desktop.

To customize keyboard shortcuts, use Preferences. From there, you can also
restore previous default settings by selecting "R2009a UNIX Default Set"
from the active settings drop-down list. For more information, see Help.

Click here if you do not want to see this message again.
Cannot write to preference file "matlab.prf" in "/home/jodiaq/.matlab/R2010a".
Check file permissions."
Now we shall take a look at the solution for these problems.
Solution to problem 1:

1. Get an icon:

sudo wget -O /usr/share/icons/matlab.png
2. Get the launcher file:

sudo wget '' -O /usr/share/applications/matlab.desktop
Solution to problem 2:
Solution to 2nd problem is simple and easy just giving the user the read and write permissions to the user. For that purpose we'll use the chown command.
It can be as shown
jodiaq@jodiaq-nl:~$ sudo chown -R jodiaq /home/jodiaq/.matlab
jodiaq@jodiaq-nl:~$ ls -al
total 2244
. . . . . . . .
. . . . .
. . .
drwxr-xr-x 3 jodiaq root 4096 2011-11-12 21:21 .matlab
. . . .
. . . . .
. . .. .. . 
Hope this will help you. If you need much more help rather than this go here

No comments:

Post a Comment