Writing /var/lib/dokuwiki/data/meta/tutorials/installing_ros_melodic_inside_ubuntu_bionic_chroot.meta failed
tutorials:installing_ros_melodic_inside_ubuntu_bionic_chroot
This is an old revision of the document!
Installing ROS Melodic & ROS Dashing inside a Ubuntu Bionic chroot
- Install Ubuntu inside a chroot. Follow guide from here
- Fix /etc/resolv.conf
nameserver 8.8.8.8
- Fix /etc/hosts. On the second line put the name of your hostname instead of 'shirka'.
127.0.0.1 localhost 127.0.1.1 shirka
- Add all ubuntu repositories. Edit file /etc/apt/sources.list:
deb http://mirrors.ucr.ac.cr/ubuntu bionic main universe restricted multiverse deb http://mirrors.ucr.ac.cr/ubuntu bionic-updates main universe restricted multiverse deb http://mirrors.ucr.ac.cr/ubuntu bionic-backports main restricted multiverse
- Update repos
$ apt-get update
- Install the following packages:
$ apt-get install sudo mc nano curl lsb-release gnupg2 apt-utils bash-completion locales
- Add a new user in the chroot
$ adduser user
- Add your new user to sudo group
$ adduser user sudo
- Fix sudo error with visudo:
$ visudo
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
- From now on, use your new user for the following steps:
$ su user
- Follow guide for ROS Melodic from ROS: http://wiki.ros.org/melodic/Installation/Ubuntu
- Follow guide for ROS Dashing from ROS: https://index.ros.org/doc/ros2/Installation/Dashing/Linux-Install-Debians/
Creating ROS Dashing Workspace
From ROS Crystal (ROS 2) to newer versions, ROS use Colcon for building all packages. This guide shows the basic steps for creating a Colcon Workspace.
- Install colcon
$ sudo apt install python3-colcon-common-extensions
- Create workspace for ROS 2
$ mkdir -p ~/ros2_ws/src
- Move to the new workspace and build it
$ cd ~/ros2_ws $ colcon build
- Source workspace configuration
$ source ~/ros2_ws/install/local_setup.bash && source ~/ros2_ws/install/setup.bash
tutorials/installing_ros_melodic_inside_ubuntu_bionic_chroot.1570674574.txt.gz · Last modified: 2022/09/20 00:08 (external edit)