Skip to content

Instantly share code, notes, and snippets.

View Wanchai290's full-sized avatar

Thomas Wanchaï Menier Wanchai290

View GitHub Profile
@Wanchai290
Wanchai290 / esp32_undetected_ubuntu_22.04.md
Last active May 14, 2026 20:22
Ubuntu 22.04 - ESP32 not detected via USB

i don't see my ESP32 !1!!1 why is the world so cruel

Can't detect your ESP32 to flash it on Ubuntu 22.04 ? The reason behind might be the same for other boards as well.

Check the following

  • Un-plug your ESP32
  • Run dmesg -w
  • Plug your ESP32
@Wanchai290
Wanchai290 / ros2_humble_container.sh
Last active October 30, 2025 13:11
ROS2 Humble Docker container with GUI (X11 forward)
#!/bin/bash
# Start the container
xhost +local:root # Unsafe, do not use in prod environment
(docker start ros4pro && docker exec --env="DISPLAY" -it ros4pro bash) || docker run --privileged -it --env="DISPLAY" --volume=/dev/mem:/dev/mem --volume="./meow:/home/" --name=ros4pro --volume="$HOME/.Xauthority:/root/.Xauthority:rw" --net=host
# note that `docker attach` will not forward the display. We need to start a new terminal to pass the value
# remember to run line 2 after each reboot