Skip to content

This repository provides a comprehensive guide to installing ROS (Robot Operating System) on a virtual machine using VirtualBox and Ubuntu 20.04. Follow step-by-step instructions to download and install VirtualBox, create a new virtual machine, install Ubuntu 20.04, and set up ROS Noetic. Ideal for robotics enthusiasts and developers.

Notifications You must be signed in to change notification settings

xd7fx/ROS-Installation-Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

ROS Installation Guide using VirtualBox and Ubuntu 20.04

This guide provides step-by-step instructions to install ROS (Robot Operating System) on a virtual machine using VirtualBox and Ubuntu 20.04.

Table of Contents

Prerequisites

  • A computer with internet access.
  • Basic knowledge of using the command line.

Step 1: Download and Install VirtualBox

  1. Open your web browser and go to the [VirtualBox website] (https://www.virtualbox.org/).

لقطة الشاشة 2024-07-10 213750 2. Click on "Download VirtualBox". 3. Select the version appropriate for your operating system (Windows, macOS, Linux). 4. After downloading, open the installation file and follow the on-screen instructions to install VirtualBox.

Step 2: Download Ubuntu 20.04 Desktop Image

  1. Open your web browser and go to the Ubuntu website. لقطة الشاشة 2024-07-09 164728
  2. Select "Ubuntu 20.04 LTS" and click on "Download".
  3. Save the ISO file to your computer.

Step 3: Create a New Virtual Machine in VirtualBox

  1. Open VirtualBox and click on "New" to create a new virtual machine. لقطة الشاشة 2024-07-09 164747

  2. Name the machine (e.g., "Ubuntu 20.04") and choose the type of operating system as "Linux" and the version as "Ubuntu (64-bit)". لقطة الشاشة 2024-07-09 164801

  3. Set the memory size (RAM) (at least 2 GB is recommended)(to green). لقطة الشاشة 2024-07-09 164841

  4. Set the size of the virtual hard disk (at least 25 GB is recommended) and click "Create". لقطة الشاشة 2024-07-09 164855

Step 4: Install Ubuntu 20.04

  1. After creating the virtual machine, select it from the list in VirtualBox and click "Start". لقطة الشاشة 2024-07-09 164909

  2. When prompted, choose the Ubuntu 20.04 ISO file you downloaded and click "Start". لقطة الشاشة 2024-07-09 164958 لقطة الشاشة 2024-07-09 165022

  3. Follow the on-screen instructions to install Ubuntu 20.04 on the virtual machine. لقطة الشاشة 2024-07-09 165045

  4. Choose the third option install Ubuntu

لقطة الشاشة 2024-07-09 165115 لقطة الشاشة 2024-07-09 165235 لقطة الشاشة 2024-07-09 165313

5.Important thing, turn off the “Download updates while installing Ubuntu” option so that it does not update Ubuntu 20.04 لقطة الشاشة 2024-07-09 165419 لقطة الشاشة 2024-07-09 165512 لقطة الشاشة 2024-07-09 165618

Step 5: Install ROS on Ubuntu 20.04

  1. After installing and booting Ubuntu, open a terminal window. لقطة الشاشة 2024-07-10 070133

  2. Add the ROS repository to your system:

    sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

لقطة الشاشة 2024-07-10 214513

  1. Add the ROS key:
    sudo apt install curl
    curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

لقطة الشاشة 2024-073-10 221346

  1. Update the package list:
    sudo apt update

لقطة الشاشة 2024-027-10 221346

  1. Install the full version of ROS (Noetic):

    sudo apt install ros-noetic-desktop-full
  1. Set up the ROS environment:
    echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
    source ~/.bashrc

لقطة الشاشة 2024-07-10 222655

Congratulations! ROS is now successfully installed on Ubuntu 20.04 within VirtualBox. You can start using ROS to develop robotics applications.

Step 6: Problems installing ROS and their solutions

  1. go to settings and go About and Software Updates لقطة الشاشة 2024-07-10 222826

  2. Make sure this setting is set لقطة الشاشة 2024-07-10 212421

  3. Go to (Terminal) and place these commands in this order

     sudo apt clean
     sudo apt autoclean
     sudo apt autoremove
     sudo apt update
     sudo dpkg --configure -a
     sudo apt install -f

لقطة الشاشة 2024-07-10 223720

 sudo apt upgrade

لقطة الشاشة 2024-07-10 223951

  1. Now start from the beginning and everything will be fine لقطة الشاشة 2024-07-10 224203

About

This repository provides a comprehensive guide to installing ROS (Robot Operating System) on a virtual machine using VirtualBox and Ubuntu 20.04. Follow step-by-step instructions to download and install VirtualBox, create a new virtual machine, install Ubuntu 20.04, and set up ROS Noetic. Ideal for robotics enthusiasts and developers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published