A few days ago I mentioned that I’m now neck deep in Linux and loving it. Specifically however I mentioned that I had a little trouble getting MATLAB to display properly. When I initially launched MATLAB I would see a blank white window. I could access the file, edit, view, etc… commands via my keyboard and they would render fine but the main window was blank. This ended up being a problem with MATLAB’s java based rendering and Beryl.
I’ve gotten a few questions about how I fixed it so rather than let everyone else struggle here’s a quick fix. Make a shell script in your /MATLAB/bin/ directory with the following contents:
export AWT_TOOLKIT=MToolkit
PathToMATLAB/MATLAB/bin/./matlab
Replace “PathToMATLAB” with the actual path on your specific machine and save it (min is named LaunchMATALB.sh). Chmod this file to be executable. Now when you run this script in a terminal MATLAB should render correctly. If you want to add this script to your gnome panel (I run gnome under Beryl) simply right click on the panel and select “Add to Panel.” Then select custom application launcher and browse to the script. Be sure to change the type field to “Run in Terminal.” Hopefully this has solved some problems. I am running Beryl on nvidia drivers and I’d love to hear if this solution works with ATI cards with either AIGLX or XGL. Post any ATI info in the comments.
Now maybe I should look into installing Mathematica (though I’m starting to think MATLAB trumps it).
3 responses so far ↓
Pat // February 21, 2007 at 2:49 pm |
I was beginning to wonder when you’d write again. I was not disappointed. You never fail to amaze, enlighten and entertain. Thanks. And Congratulations on the Master’s Degree. ttfn
Clint // February 24, 2007 at 11:18 pm |
I’m with you! Why the hell should I have to validate my copy of Windows to download their fuggin browser?!
Try this baby out – a true IE clone for Linux:
http://www.tatanka.com.br/ies4linux/page/Main_Page
… and in case you hadn’t heard about Cedega, they’re pay and therefore controversial. When Wine is good enough Cedega may be better for games:
http://www.transgaming.com/products_linux.php
… and keep in mind that now you can use the now free VMWare server to run “the other OS” (whichever that may end up being):
http://www.vmware.com/products/server/
Anton // March 5, 2007 at 7:00 am |
Thank you very much for this script to run MATLAB.
I’m running Ubuntu 6.10 with an ATI 9600 screen card and Compiz and it is now working great.
Anton