-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL_RASPI.sh
64 lines (48 loc) · 1.89 KB
/
INSTALL_RASPI.sh
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
#!/bin/bash
sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED
# Navigate to Downloads directory
cd ~/Downloads
# Download Mambaforge installer
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pypy3-Linux-aarch64.sh
# Install Mambaforge without requiring user interaction
bash Mambaforge-pypy3-Linux-aarch64.sh -b -u
# Initialize Mambaforge environment for the current shell session
eval "$(~/mambaforge-pypy3/bin/conda shell.bash hook)"
conda init
# Update PATH and make mamba available in the current shell
export PATH=~/mambaforge-pypy3/bin:$PATH
eval "$(echo 'export PATH=~/mambaforge-pypy3/bin:$PATH'; echo 'hash -r conda')"
# Synchronize time with the internet
sudo ntpdate pool.ntp.org
# Create a new environment with Python 3.9
mamba create -n imswitch python=3.9 -y
# Activate the new environment
conda activate imswitch
# Clone necessary repositories
git clone https://github.com/openUC2/ImSwitch/
git clone https://github.com/openUC2/UC2-REST
# Install UC2-REST
cd ~/Downloads/UC2-REST
pip install -e .
# Install dependencies for ImSwitch
cd ~/Downloads/ImSwitch
sudo apt-get install python3-pyqt5 -y
pip install -r requirements-jetsonorin.txt
# Install PyQt via mamba
mamba install pyqt -y
pip install -e . --no-deps
# Clone additional repository
# Install HIK camera drivers
cd ~/Downloads
wget https://www.hikrobotics.com/cn2/source/support/software/MVS_STD_GML_V2.1.2_231116.zip
unzip MVS_STD_GML_V2.1.2_231116.zip
sudo dpkg -i MVS-2.1.2_aarch64_20231116.deb
source ~/.bashrc
# Install Daheng camera drivers
cd ~/Downloads
git clone https://github.com/hongquanli/octopi-research
cd octopi-research/software/drivers\ and\ libraries/daheng\ camera/Galaxy_Linux-armhf_Gige-U3_32bits-64bits_1.3.1911.9271/
chmod +x Galaxy_camera.run
sudo ./Galaxy_camera.run # This command might require user interaction
# Remove the specified file
sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED