Skip to content

Instantly share code, notes, and snippets.

View RishikesavanRamesh's full-sized avatar
🎯
Focusing

RishikesavanRamesh

🎯
Focusing
View GitHub Profile
@RishikesavanRamesh
RishikesavanRamesh / Dockerfile
Created August 21, 2024 07:59
ROS 2 Unicast Configuration for FastDDS
# Dockerfile
FROM ros:humble
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
ros-humble-demo-nodes-cpp \
iproute2 tmate tcpdump&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
@RishikesavanRamesh
RishikesavanRamesh / README.md
Last active October 6, 2025 03:28
Using Xephyr for Secure Docker GUI Access

Using Xephyr for Secure Docker GUI Access

When working with ROS development in Docker containers, visualizing data using tools like rviz2 can be challenging due to X11 authentication issues, especially after system restarts. The following approach uses Xephyr to securely manage GUI access without compromising the security of your host's X server.

Overview

  • Challenge: X11 authentication issues and security concerns when using Docker containers with GUI applications.
  • Solution: Use Xephyr to create a nested X server for Docker container GUI applications.

Steps to Set Up Xephyr for Docker GUI Applications

  • Start Xephyr:
@RishikesavanRamesh
RishikesavanRamesh / Dockerfile
Last active August 14, 2024 16:10
Connect ros2 docker containers with fastdds
FROM ros:humble
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
ros-humble-demo-nodes-cpp \
iproute2 tmate tcpdump&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN echo 'source /opt/ros/humble/setup.bash' >> ~/.bashrc