This guide provides a step-by-step process to dual boot Windows 11/10 with Ubuntu 22.04 LTS and then install ROS2 Humble. This setup is crucial for various robotics projects.
Important Advice: If you do not have an NVIDIA graphics card in your laptop or desktop, you may encounter problems controlling simulations and post-processing in different robotics projects.
- Operating System: Windows 11 or 10.
- USB Drive: 8GB+ USB drive to flash the Ubuntu distribution.
- Free Space: 50GB+ of free space on your SSD or HDD.
Follow the comprehensive guide in this video for the Windows configuration steps: How to Dual Boot Windows 11 and Ubuntu in 2025 (Step by Step) by Crown GEEK.
-
Download Ubuntu Desktop 22.04 LTS:
- Download the
.iso
file from the official releases page: https://releases.ubuntu.com/22.04/ - Ensure you download the image desktop version.
- Download the
-
Install Rufus:
- Download Rufus from its official website: https://rufus.ie/en/
-
Prepare for Installation:
- Disable Secure Boot: Before proceeding with the hard steps, you need to disable Secure Boot from your PC's BIOS settings [00:00:33]. The video provides guidance on how to access and disable it [00:00:50].
- Create Partitions: You will need to create a new partition for Ubuntu. The video demonstrates how to shrink your existing Windows partition to create unallocated space and then format it for Ubuntu [00:01:46].
- Create Bootable USB: Use Rufus to create a bootable USB drive with the downloaded Ubuntu ISO [00:02:54].
-
Install Ubuntu:
- After connecting the bootable USB drive, configure it as a flash drive.
- Boot from the USB drive and select your prepared partition to install Ubuntu [00:05:09].
- Follow the on-screen instructions to complete the Ubuntu installation.
Once Ubuntu is successfully installed, follow this tutorial to set up ROS2: How to install ROS | Getting Ready to Build Robots with ROS #3 by Articulated Robotics.
If you are new to ROS, Articulated Robotics also offers an excellent introductory playlist to understand the basics of this robotics operating system: ROS Complete Guide Playlist
The version of ROS2 to be installed is Humble. Refer to the official documentation for detailed instructions: https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debs.html
Open a terminal in Ubuntu (Ctrl + Alt + T) and follow these individual steps:
sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update && sudo apt install curl -y
Get the latest ROS2 apt source version:
export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}')
Download the ROS2 apt source package:
curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo ${UBUNTU_CODENAME:-${VERSION_CODENAME}})_all.deb"
Install the ROS2 apt source:
sudo dpkg -i /tmp/ros2-apt-source.deb
sudo apt update
sudo apt upgrade
sudo apt install ros-humble-desktop
sudo apt install ros-dev-tools
After completing the installation, test ROS2 with a simple talker-listener example to verify everything is working correctly.
First, source the ROS2 setup file:
source /opt/ros/humble/setup.bash
Note: Try some examples to verify your installation.
Talker-Listener Demo: This is the most simple representation where different programming files like Python or C++ can communicate with each other to make more complex interactions for robotics projects.
Terminal 1 - Run C++ Talker: Open a terminal and run:
source /opt/ros/humble/setup.bash
ros2 run demo_nodes_cpp talker
Terminal 2 - Run Python Listener: Open a second terminal and run:
source /opt/ros/humble/setup.bash
ros2 run demo_nodes_py listener
If both nodes are running successfully, you should see the talker publishing messages and the listener receiving them. This confirms that ROS2 is properly installed and different programming languages can communicate through ROS2 topics.