ImSwitchInstallUbuntu
ImSwitch Installation Ubuntu
Step 1: Install Visual Studio Code (VS Code)
- Open a web browser and navigate to the VS Code download page.
- Download the Debian package for your 64-bit system.
- Once downloaded, open a terminal window and navigate to the directory where the
.deb
file is located. - Run the following command to install VS Code:
sudo dpkg -i <filename>.deb
sudo apt-get install -f
Step 2: Install Miniconda
- Open a terminal window and run the following command to download Miniconda:
wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.5.2-0-Linux-x86_64.sh
- Make the script executable and run it:
bash Miniconda3-py310_23.5.2-0-Linux-x86_64.sh
- Follow the on-screen instructions to complete the installation.
- Create a new environment named
imswitch
with Python 3.10:conda create -n imswitch python=3.10 -y
Step 3: Clone Necessary Repositories
- Navigate to the Downloads directory:
cd ~/Downloads
- Clone the required repositories:
git clone https://github.com/openUC2/UC2-REST
git clone https://github.com/openUC2/ImSwitch
git clone https://gitlab.com/bionanoimaging/nanoimagingpack
Step 4: Install ImSwitch and Related Packages
- Activate the
imswitch
environment:conda activate imswitch
- Navigate to the ImSwitch directory and install it:
cd ~/Downloads/imswitch
pip install -e . - Repeat for UC2-REST and nanoimagingpack:
cd ~/Downloads/UC2-REST
pip install -e .
cd ~/Downloads/nanoimagingpack # Correcting typo from original logs
pip install -e .
Step 5: Install Camera Drivers
- Clone the camera drivers:
cd ~/Downloads
git clone https://github.com/hongquanli/octopi-research/ - Navigate to the camera drivers directory and run the installation script:
cd octopi-research/software/drivers\ and\ libraries/daheng\ camera/Galaxy_Linux-x86_Gige-U3_32bits-64bits_1.2.1911.9122/
./Galaxy_camera.run
Step 6: Clone ImSwitch Configuration and Set Permissions
- Navigate to the Documents directory:
cd ~/Documents
- Clone the ImSwitch configuration:
git clone https://github.com/openUC2/ImSwitchConfig
- Change the ownership of the device:
sudo chown pi:pi /dev/ttyUSB0
Congratulations! You have successfully installed ImSwitch and related dependencies.