Skip to content

Initial setup

This guide walks you through the process of setting up your development environment.

Follow Microsoft’s official guide to install WSL: https://learn.microsoft.com/en-us/windows/wsl/install. Make sure you install the latest Ubuntu distribution for consistency (this should be the default). You can use another distribution, but note that some steps may differ, most notably package installation.

  1. Ensure you have Git installed. If you are using Ubuntu 24.04 LTS or later, or installed the default WSL distribution, you should already have it installed. If not, open a terminal and run the following commands to install Git:

    Terminal window
    sudo apt update
    sudo apt install git
  2. Run the following command in a directory of your choice to clone the repository:

    Terminal window
    git clone https://github.com/UWOrbital/OBC-firmware.git
  3. Install our required tools:

    Terminal window
    sudo apt update
    sudo apt install -y build-essential gcc-multilib g++-multilib cmake curl
  4. Install Python 3.11+. If you are using Ubuntu 24.04 LTS or later, or installed the default WSL distribution, you should already have a compatible version of Python installed.

    Terminal window
    sudo apt install python3

    Check your installed Python version with:

    Terminal window
    python3 --version

    If it’s 3.11 or higher, you’re good.

  5. Install the Python virtual environment:

    Terminal window
    sudo apt install python3-venv
  6. Setup your virtual environment by running the following commands in the repository’s root directory (the OBC-firmware folder):

    Terminal window
    python3 -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
    pip install -e .
  7. Setup the pre-commit by running the following command in the repository’s root directory:

    Terminal window
    pre-commit install

If you’ll also be working on the ground station, complete these extra steps:

  1. Install nvm:

    Terminal window
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
  2. Restart your shell or run source ~/.bashrc (only works on Bash).

  3. Install Node.js v22:

    Terminal window
    nvm install 22
    # Verify the Node.js version
    node -v
  4. Set up the PostgreSQL database with the Database setup guide.