sudo apt update
sudo apt install -y curl
curl https://get.docker.com | sudo sh
sudo gpasswd -a $USER dockerRestart your VM (for WSL, close and reopen your terminal)
sudo systemctl --now enable dockerAdd the following to /etc/wsl.conf (in WSL)
[boot]
systemd=true
Add the following to ~/.profile (in WSL)
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 wgetcd &&\
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 installIn WSL:
ssh-keygen -t ed25519 -C "your_email@example.com"- Replace your_email@example.com with your actual email
- Hit enter until you get back to a command line
Copy the output of
cat ~/.ssh/id_ed25519.pubGo to https://github.com/settings/keys and click "New SSH Key"
Paste what you copied into the "Key" field
Name the key wsl (or whatever you want)
cd ~
git clone git@github.com:FRC900/900JetsonCode.gitcd ~/900JetsonCode/docker./docker-run./docker-run-macOfficial docker image TBA to frc900 repo
docker ps -a to find name of container (should be jetson-dev)
docker start [container name] to start container
docker exec -it [container name] /bin/bash to enter container
You can also use the Dev Container extension of VS Code
TBA