MATLAB 7 under WINE

When I tried WINE many years ago, there were not that many large applications that could actually run smoothly without some sort of hacks.But when I gave it another try the other day, I was totally impressed by its abilities to run Windows applications natively under Linux. In fact, most Windows applications, as long as they use standard Windows API’s, could almost run directly under WINE without any modifications or tweaks (support for Microsft’s latest products however is quite limited as newer API’s might not have been implemented under WINE yet).

To use MATLAB 7 under WINE, all one has to do is to copy the harddrive serial number over into ~/.wine/drive_c/.windows-serial. Here I assume that MATLAB has already been installed under Windows C drive.

The serial number is the disk serial number detected during MATLAB’s installation and can be found under [MATLAB root folder]/bin/win32/license.dat. The value after HOSTID=DISK_SERIAL_NUM= is the serial number.

After setting the disk serial number, MATLAB should be able to be invoked from the shell:

 

wine /windows/C/MATLAB701/bin/win32/MATLAB.exe

Here is a screen shot of MATLAB 7 running under Suse 10.3 (Gome):

 

And if the serial number is set incorrectly, the following message will be received instead:

Be Sociable, Share!

11 Comments

  1. James says:

    Just a heads up that there is a Linux/Unix/OSX version of MatLab 7 and later versions

  2. ferry says:

    is “.windoes-serial” a text file where we put the serial number inside or a directory we need to put license.dat ? would you explain it more detail?
    thanks

  3. Suvinay says:

    Thanks a lot. Worked fine. Just one thing, I think you meant the name of the file to be “windows-serial” and not “windoes-serial”.

  4. a2o says:

    Spent far too long looking for this bit of info, got Matlab running for me!

    Unfortunately, now that it runs it runs horribly broken: 3/4 of the display starts out black, inactive or buggy controls, bad path, jvm won’t shut up… I’m guessing its just another case of amd64 being a complete and utter failure.

  5. tim says:

    I’m using Wine v1.1.41 and copied a windows MATLAB folder over to my linux HD. I was having problems at first, the /.windows-serial file wasn’t present. But, it gets created after manually assigning Wine’s c drive a serial number. You want to assign it the serial number that is in the license.dat file. It now works great!

  6. Mahdi says:

    Thank you soooooooooooooooooooooo much!

  7. mohammad says:

    it is very god.thank you very much.

Leave a Reply