Created
August 1, 2025 19:16
-
-
Save 7yl4r/5591f50ed3ac1cf12ff38111e1e637a3 to your computer and use it in GitHub Desktop.
install process for planktoscope segmentation machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ==================================================================== | |
# === install system prerequisites | |
# ==================================================================== | |
# via package manager | |
sudo apt install git | |
# === docker's special install process | |
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | |
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \ | |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
# install | |
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
# ==================================================================== | |
# ==================================================================== | |
# === install forklift | |
# ==================================================================== | |
# !!! MANUALLY download | |
# set up install dir | |
mkdir /opt/forklift | |
# install | |
tar -xzf forklift_0.8.0_linux_amd64.tar.gz -C /opt/forklift | |
# set up symlink for easy usage | |
sudo ln -s /opt/forklift/forklift /usr/local/bin/forklift | |
# ==================================================================== | |
# ==================================================================== | |
# === set up docker usage without sudo | |
# ==================================================================== | |
sudo usermod -aG docker imars # NOTE: replace `imars` with your username | |
# !!! MANUALLY log out & log back in | |
# ==================================================================== | |
# ==================================================================== | |
# === initial set up of segmenter using forklift | |
# ==================================================================== | |
sudo -E forklift pallet switch --apply github.com/PlanktoScope/pallet-segmenter@edge | |
# ==================================================================== | |
# ==================================================================== | |
# === set segmenter to run automatically on login | |
# ==================================================================== | |
echo "forklift stage apply" > ~/.profile | |
# ==================================================================== | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment