-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_Ubuntu22.sh
More file actions
69 lines (62 loc) · 2.17 KB
/
Copy pathsetup_Ubuntu22.sh
File metadata and controls
69 lines (62 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
# MNE-LSL-based BCI installation script in Ubuntu 22.04.
# Author: Minsu Zhang <minsuzhang@utexas.edu> (Updated: Nov. 2, 2024)
# Dependencies
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y \
wget git build-essential cmake curl \
libpugixml-dev freeglut3-dev libboost-all-dev plocate \
qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-wayland-dev-tools \
libqt6waylandclient6 libqt6waylandcompositor6
sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update && sudo apt-get install -y --reinstall libc6
# Miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/opt/miniconda
rm Miniconda3-latest-Linux-x86_64.sh
$HOME/opt/miniconda/bin/conda init
source ~/.bashrc
# MNE
conda create -y --channel=conda-forge --strict-channel-priority --name=mne mne
echo 'conda activate mne' >> ~/.bashrc
source ~/.bashrc
# liblsl
git clone --depth=1 https://github.com/sccn/liblsl.git $HOME/opt/liblsl
cd $HOME/opt/liblsl
mkdir build
cd build
cmake ..
make
sudo make install
echo 'export CPLUS_INCLUDE_PATH="$HOME/opt/liblsl/include:$CPLUS_INCLUDE_PATH"' >> ~/.bashrc
echo 'export LIBRARY_PATH="$HOME/opt/liblsl/build:$LIBRARY_PATH"' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH="$HOME/opt/liblsl/build:$LD_LIBRARY_PATH"' >> ~/.bashrc
source ~/.bashrc
# MNE-LSL and pyxdf
conda install -y mne-lsl pyxdf
# LabRecorder
git clone https://github.com/labstreaminglayer/App-LabRecorder.git $HOME/opt/LabRecorder
cd $HOME/opt/LabRecorder
mkdir build
cd build
cmake ..
make
echo 'export PATH="$HOME/opt/LabRecorder/build:$PATH"' >> ~/.bashrc
source ~/.bashrc
# lsl-eego
mkdir $HOME/opt/lsl-eego
git clone https://github.com/minsuzhang/lsl-eego.git $HOME/opt/lsl-eego
cd $HOME/opt/lsl-eego
sudo cp 90-eego.rules /etc/udev/rules.d
sudo service udev restart
sudo cp $HOME/opt/lsl-eego/libeego-SDK.so /usr/local/lib/
echo 'export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' >> ~/.bashrc
sudo ldconfig
source ~/.bashrc
cd $HOME/opt/lsl-eego
mkdir build
cd build
sudo /usr/lib/qt6/bin/qmake ../eegoSports.pro
sudo make
echo 'export PATH="$HOME/opt/lsl-eego:$PATH"' >> ~/.bashrc
source ~/.bashrc