Skip to content

Latest commit

 

History

History
74 lines (65 loc) · 2.44 KB

robot_code_setup.md

File metadata and controls

74 lines (65 loc) · 2.44 KB

Robot Code Setup

  • sudo apt update
  • sudo apt install -y curl
  • curl https://get.docker.com | sudo sh
  • sudo gpasswd -a $USER docker
  • Restart your VM (for WSL, close and reopen your terminal)

Note, only one of these options will match your particular OS. Pick the one that makes the most sense.

  • For native linux systems :
    • sudo systemctl --now enable docker
  • For Windows 11 WSL2
    • add to /etc/wsl.conf
      [boot]
      systemd=true
      
  • For Windows 10 WSL2
    • add to ~/.profile
      if service docker status 2>&1 | grep -q "is not running"; then
        wsl.exe -d "${WSL_DISTRO_NAME}" -u root -e /usr/sbin/service docker start >/dev/null 2>&1
      fi
      
  • sudo apt install -y wget
   cd &&\
   wget https://github.com/git-lfs/git-lfs/releases/download/v3.3.0/git-lfs-linux-amd64-v3.3.0.tar.gz &&\
   mkdir git-lfs-install &&\
   cd git-lfs-install &&\
   tar -xzf ../git-lfs-linux-amd64-v3.3.0.tar.gz &&\
   cd git-lfs-3.3.0 &&\
   sudo ./install.sh &&\
   cd &&\
   rm -rf git-lfs-linux-amd64-v3.3.0.tar.gz git-lfs-install &&\
   git lfs install
  • cd ~/900RobotCode/docker
  • ./docker-run (if on an Apple silicon Mac, use ./docker-run-mac)
  • Wait for things to download

The general Docker reference is here.

  • docker ps -a, find the name of your container
  • docker start [container name]
  • docker exec -it [container name] /bin/bash

Inside Docker:

  • cd 900RobotCode/zebROS_ws
  • git submodule update --init
  • wstool update -t src
  • natbuild, this will take a while