Link Search Menu Expand Document

Linux Laptop Setup

Table of contents
  1. Linux laptop setup
    1. Reason why we had to go with Linux
  2. Installing PTB on linux
  3. adding EOL to matlab path without having to add it everytime
    1. firewall
    2. manually changing IP on linux
    3. Setting firewalls and allowing private network

Linux laptop setup

step 1

Reason why we had to go with Linux

  • developers of psychtoolbox recommend linux
  • timing issue with windows (lag icon)
  • added more than two minutes of a lag for a task
  • ease of containerization

step 2

Installing PTB on linux

move elsewhere

check installation

  • neurodebian
  • neurodocker
  • anaconda
  • singularity

worked for Luke http://neuro.debian.net/install_pkg.html?p=psychtoolbox-3-common

Yarik suggestion You need to add contrib (probably no need for non-free) portion in addition to main in your NeuroDebian apt file.

  • https://wiki.debian.org/SourcesList
  • cat /etc/apt/sources.list.d/neurodebian.sources.list

Getting error message:

libGL error: MESA_LOADER: failed to open readeonsi (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri) libGL error: failed to load driver: readeonsi failed to create dri screen

-> https://psychtoolbox.discourse.group/t/matlab-crashes-after-insatlling-ptb-com-jogamp-opengl-glexception/74

adding EOL to matlab path without having to add it everytime

  • check sudo vim /etc/ptb3/matlab.sh
  • added a matlab path: EOL MASTER = /home/spacetop/repos/EOL-master in the shell script add the line export MATLABPATH=$(find "$EOL_MASTER" -type d | grep -v private | tr '\n' ':')$MATLABPATH

firewall

  • allow incoming input from medoc PC
  • use iptable
  • iptables -A OUTPUT -p tcp -d 192.168.0.114 --dport 20121 -j ACCEPT
  • https://serverfault.com/questions/183461/how-do-i-allow-outgoing-connections-via-iptables

manually changing IP on linux

  • follow this page to change the ip. link
  • make sure to change the name of this ethernet setting: Wired > identity > name : spacetop.dartmouth.edu

Setting firewalls and allowing private network

  • ping the medoc PC from the spacetop stim PC
  • if it doesn’t work, there are two things that need to happen

    Create a new rule: creating rules Frewall > Inbound rules > look for “file and printer sharing (echo Request - ICMPv4-In) Private” > Enable rule