Installing 32-bit MATLAB on 64-bit Linux (Ubuntu)

Currently 64-bit Linux distributions are stable and well established so there are virtually no problems in opting for a 64-bit system.
However, some MATLAB Linux versions, notably the student version, only exists in 32-bit and it is not so obvious to get it installed in 64-bit Linux environment.

Here’s how I got it done (MATLAB R2009a in Ubuntu 10.04 Lucid):
1) Install some 32-bit libraries:
sudo apt-get install ia32-libs lib32ncurses5
2) Mount the CD (e.g. open the content in a file manager)
3) Install MATLAB, force to use the 32-bit executable:
sudo /media/cdrom0/install_unix.sh -glnx86
Install matlab to some convenient place, typically /usr/local/matlab (assumed here).
The installation will fail, complaining about 64-bit java.
4) Fix the java problem (change the path according to your installation):
sudo ln -s /usr/local/matlab/sys/java/jre/glnx86/ /usr/local/matlab/sys/java/jre/glnxa64
5) Register your matlab
sudo /usr/local/matlab/bin/activate_matlab.sh
6) You can now run MATLAB:
matlab -glnx86

KDE touchpad configuration disabled in Kubuntu Maverick

After upgrade from Kubuntu Lucid 10.04 to Maverick 10.10 the touchpad configuration was disabled in KDE system settings (System settings -> Input devices -> Touchpad). All the controls were disabled, the “Informations” section reading “Touchpad Name: Device not found”.

I have Apple Macbook Pro (macbook5,5) which uses bcm5974 driver. Apparently the driver is included in the recent linux kernels, but it can also be installed from the Mactel Support repository. First thing to do is to check if the drive is loaded in the kernel:
lsmod | grep bcm5974
If the command doesn’t print anything, you need to install the driver.

If the driver is installed, like in my case, but the KDE configuration is still disabled, check if xserver synaptics package is installed:
sudo apt-get install xserver-xorg-input-synaptics

The KDE touchpad configuration module is provided by the package kde-config-touchpad.

%d bloggers like this: