Using PTB on Linux

GNU/Linux is the recommended operating system of choice for demanding experimental setups and experimental paradigms. Linux, due to it being a true free software / open-source operating system provides us and you with a couple of advantages:

Manual Installation

Very old and obsolete instructions for Linux are kept in PsychtoolboxDownloadLinux for posterity. However, this is usually not what you want.

Installation via Subversion

This works the same as on Windows or OSX, so follow the instructions on the main Download page. However, Psychtoolbox requires a few software libraries to be installed on your Linux system. The installer will tell you what kind of libraries you need to install, should some of them be missing. For the most simple way of installation, read on.

Neuro Debian installation

The most convenient way of installation if you use a Debian GNU/Linux system or a Debian derivative, e.g., Ubuntu Linux, is the Neuro Debian repository of neuro-science software. It provides you with a large number of popular neuro-science related software packages, optimally configured for use on Debian and Ubuntu, with a convenient installation via the package management system of your Linux distribution. If you install the package octave-psychtoolbox-3, your system will be automatically configured and tuned for use with Psychtoolbox under GNU/Octave. If you prefer to run Psychtoolbox with Matlab, you can can run the function DownloadAdditionsForNeuroDebian from within a Matlab running under Linux. It will install a few additional files needed to run Psychtoolbox with Matlab on Linux.

Choice of Distribution

The Linux specific code in PTB is currently being developed and tested using Ubuntu Linux provided by Canonical. We recommend this distribution because it is beginner friendly and constantly tested with Psychtoolbox. However, there is nothing wrong with other Linux distributions, so feel free to use them, but keep in mind we can only provide you with support for Ubuntu at the moment. See UsingPsychtoolboxOnUbuntu for more details and instructions on Ubuntu Linux. Or UsingPsychtoolboxOnFedora for Fedora.

Older Matlab Versions and libz

With older Matlab versions execution of Screen() may lead to mex file errors. Often these errors arise from outdated versions of libz that come with the old Matlab. To get rid of this problem, delete or move all libz*.so* files in your Matlab/bin/glnx86.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki