-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM dorowu/ubuntu-desktop-lxde-vnc:focal | ||
LABEL maintainer="Tiryoh<[email protected]>" | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN echo "Set disable_coredump false" >> /etc/sudo.conf | ||
RUN apt-get update -q && \ | ||
apt-get upgrade -yq && \ | ||
apt-get install -yq wget curl git build-essential vim sudo lsb-release locales bash-completion tzdata gosu && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN useradd --create-home --home-dir /home/ubuntu --shell /bin/bash --user-group --groups adm,sudo ubuntu && \ | ||
echo ubuntu:ubuntu | chpasswd && \ | ||
echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
COPY ./ros-noetic-desktop.sh /ros-noetic-desktop.sh | ||
RUN mkdir -p /tmp/ros_setup_scripts_ubuntu && mv /ros-noetic-desktop.sh /tmp/ros_setup_scripts_ubuntu/ && \ | ||
gosu ubuntu /tmp/ros_setup_scripts_ubuntu/ros-noetic-desktop.sh && \ | ||
rm -rf /var/lib/apt/lists/* | ||
ENV USER ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
[[ "$(lsb_release -sc)" == "focal" ]] || exit 1 | ||
ROS_DISTRO=noetic | ||
|
||
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | ||
|
||
sudo apt-get install -y curl | ||
curl -k https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | sudo apt-key add - | ||
sudo apt-get update || echo "" | ||
|
||
sudo apt-get install -y ros-${ROS_DISTRO}-desktop-full | ||
sudo apt-get install -y python3-rosdep | ||
|
||
ls /etc/ros/rosdep/sources.list.d/20-default.list > /dev/null 2>&1 && sudo rm /etc/ros/rosdep/sources.list.d/20-default.list | ||
sudo rosdep init | ||
rosdep update | ||
|
||
sudo apt-get install -y python3-rosinstall python3-rosinstall-generator python3-wstool build-essential python3-vcstool | ||
# sudo apt-get install -y python3-catkin-tools | ||
|
||
grep -F "source /opt/ros/${ROS_DISTRO}/setup.bash" ~/.bashrc || | ||
echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc | ||
|
||
# grep -F `catkin locate --shell-verbs` ~/.bashrc || | ||
# echo "source `catkin locate --shell-verbs`" >> ~/.bashrc | ||
|
||
grep -F "ROS_IP" ~/.bashrc || | ||
echo "export ROS_IP=127.0.0.1" >> ~/.bashrc | ||
|
||
grep -F "ROS_MASTER_URI" ~/.bashrc || | ||
echo "export ROS_MASTER_URI=http://\$ROS_IP:11311" >> ~/.bashrc | ||
|
||
echo "" | ||
echo "Success installing ROS ${ROS_DISTRO}" | ||
echo "Run 'source ~/.bashrc'" | ||
echo "" | ||
echo "If any error occurs, please refer to the following URL." | ||
echo "https://github.com/Tiryoh/ros_setup_scripts_ubuntu/" | ||
echo "" |