Skip to content

Jetson nano docker ros 20 04

setup

# [deprecated]
docker run -it -h $(hostname) -e DISPLAY=$DISPLAY -e XAUTHORITY=/tmp/xauth -v ~/ws/docker2:/home -v ~/.Xauthority:/tmp/xauth -v /tmp/.X11-unix:/tmp/.X11-unix --net=host -d ros:humble-ros-base-jammy 
# then after committing:
docker run -it -h $(hostname) --device=/dev/ttyUSB0 -e DISPLAY=$DISPLAY -e XAUTHORITY=/tmp/xauth -v ~/ws/docker2:/home -v ~/.Xauthority:/tmp/xauth -v /tmp/.X11-unix:/tmp/.X11-unix --net=host -d new1
# [ex]
useradd -m -s /bin/bash -u 1000 julyfun
usermod -aG sudo julyfun
sudo passwd julyfun
su julyfun
sudo apt update
sudo apt install -y software-properties-common
sudo apt install -y net-tools
sudo apt install -y ros-humble-moveit-*
sudo apt install -y ros-humble-foxglove-bridge
sudo apt autoremove ros-humble-moveit-servo-*

sudo apt-get install libopenblas-dev

Docker usage

docker exec -u julyfun -it 7f bash