Skip to content

Commit

Permalink
update install script
Browse files Browse the repository at this point in the history
Signed-off-by: Will Son <[email protected]>
  • Loading branch information
ROBOTIS-Will committed Sep 27, 2021
1 parent 02638af commit f4194c1
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 50 deletions.
8 changes: 3 additions & 5 deletions install_ros_kinetic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ name_os_version=${name_os_version:="xenial"}
name_ros_version=${name_ros_version:="kinetic"}
name_catkin_workspace=${name_catkin_workspace:="catkin_ws"}

echo "[Update the package lists and upgrade them]"
echo "[Update the package lists]"
sudo apt-get update -y
sudo apt-get upgrade -y

echo "[Install build environment, the chrony, ntpdate and set the ntpdate]"
sudo apt-get install -y chrony ntpdate build-essential
sudo apt-get install -y chrony ntpdate curl build-essential git
sudo ntpdate ntp.ubuntu.com

echo "[Add the ROS repository]"
Expand All @@ -44,9 +43,8 @@ else
exit 0
fi

echo "[Update the package lists and upgrade them]"
echo "[Update the package lists]"
sudo apt-get update -y
sudo apt-get upgrade -y

echo "[Install the ros-desktop-full and all rqt plugins]"
sudo apt-get install -y ros-$name_ros_version-desktop-full ros-$name_ros_version-rqt-*
Expand Down
15 changes: 8 additions & 7 deletions install_ros_kinetic_rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ name_os_version=${name_os_version:="xenial"}
name_ros_version=${name_ros_version:="kinetic"}
name_catkin_workspace=${name_catkin_workspace:="catkin_ws"}

echo "[Update the package lists and upgrade them]"
echo "[Update the package lists]"
sudo apt-get update -y
sudo apt-get upgrade -y

echo "[Install build environment, the chrony, ntpdate and set the ntpdate]"
sudo apt-get install -y chrony ntpdate build-essential
sudo apt-get install -y chrony ntpdate curl build-essential git
sudo ntpdate ntp.ubuntu.com

echo "[Add the ROS repository]"
Expand All @@ -44,20 +43,22 @@ else
exit 0
fi

echo "[Update the package lists and upgrade them]"
echo "[Update the package lists]"
sudo apt-get update -y
sudo apt-get upgrade -y

echo "[Install the ros-base]"
sudo apt-get install -y ros-$name_ros_version-ros-base

echo "[Initialize rosdep]"
echo "[Install rosdep]"
sudo apt install python-rosdep

echo "[Initialize rosdep and Update]"
sudo sh -c "rosdep init"
rosdep update

echo "[Environment setup and getting rosinstall]"
source /opt/ros/$name_ros_version/setup.sh
sudo apt-get install -y python-rosinstall git
sudo apt-get install -y python-rosinstall

echo "[Make the catkin workspace and test the catkin_make]"
mkdir -p $HOME/$name_catkin_workspace/src
Expand Down
21 changes: 11 additions & 10 deletions install_ros_melodic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ name_os_version=${name_os_version:="bionic"}
name_ros_version=${name_ros_version:="melodic"}
name_catkin_workspace=${name_catkin_workspace:="catkin_ws"}

echo "[Update the package lists and upgrade them]"
echo "[Update the package lists]"
sudo apt update -y
sudo apt upgrade -y

echo "[Install build environment, the chrony, ntpdate and set the ntpdate]"
sudo apt install -y chrony ntpdate build-essential
sudo apt install -y chrony ntpdate curl build-essential
sudo ntpdate ntp.ubuntu.com

echo "[Add the ROS repository]"
Expand All @@ -44,20 +43,22 @@ else
exit 0
fi

echo "[Update the package lists and upgrade them]"
echo "[Update the package lists]"
sudo apt update -y
sudo apt upgrade -y

echo "[Install the ros-desktop-full and all rqt plugins]"
sudo apt install -y ros-$name_ros_version-desktop-full ros-$name_ros_version-rqt-*

echo "[Initialize rosdep]"
sudo sh -c "rosdep init"
rosdep update

echo "[Environment setup and getting rosinstall]"
source /opt/ros/$name_ros_version/setup.sh
sudo apt install -y python-rosinstall python-rosinstall-generator python-wstool git
sudo apt install -y python-rosinstall python-rosinstall-generator python-wstool build-essential git

echo "[Install rosdep]"
sudo apt install python-rosdep

echo "[Initialize rosdep and Update]"
sudo sh -c "rosdep init"
rosdep update

echo "[Make the catkin workspace and test the catkin_make]"
mkdir -p $HOME/$name_catkin_workspace/src
Expand Down
17 changes: 9 additions & 8 deletions install_ros_melodic_rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ name_ros_version=${name_ros_version:="melodic"}
name_catkin_workspace=${name_catkin_workspace:="catkin_ws"}

echo "[Update the package lists and upgrade them]"
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt update -y

echo "[Install build environment, the chrony, ntpdate and set the ntpdate]"
sudo apt-get install -y chrony ntpdate build-essential
sudo apt install -y chrony ntpdate curl build-essential git
sudo ntpdate ntp.ubuntu.com

echo "[Add the ROS repository]"
Expand All @@ -45,19 +44,21 @@ else
fi

echo "[Update the package lists and upgrade them]"
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt update -y

echo "[Install the ros-base]"
sudo apt-get install -y ros-$name_ros_version-ros-base
sudo apt install -y ros-$name_ros_version-ros-base

echo "[Initialize rosdep]"
echo "[Install rosdep]"
sudo apt install python-rosdep

echo "[Initialize rosdep and Update]"
sudo sh -c "rosdep init"
rosdep update

echo "[Environment setup and getting rosinstall]"
source /opt/ros/$name_ros_version/setup.sh
sudo apt-get install -y python-rosinstall git
sudo apt install -y python-rosinstall

echo "[Setup 2GB Swap Partition]"
sudo fallocate -l 2G /swapfile
Expand Down
23 changes: 15 additions & 8 deletions install_ros_noetic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ name_os_version=${name_os_version:="focal"}
name_ros_version=${name_ros_version:="noetic"}
name_catkin_workspace=${name_catkin_workspace:="catkin_ws"}

echo "[Update the package lists]"
sudo apt update -y

echo "[Install build environment, the chrony, ntpdate and set the ntpdate]"
sudo apt install -y chrony ntpdate curl build-essential
sudo ntpdate ntp.ubuntu.com

echo "[Add the ROS repository]"
if [ ! -e /etc/apt/sources.list.d/ros-latest.list ]; then
sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu ${name_os_version} main\" > /etc/apt/sources.list.d/ros-latest.list"
Expand All @@ -36,20 +43,24 @@ else
exit 0
fi

echo "[Update the package lists and upgrade them]"
echo "[Update the package lists]"
sudo apt update -y

echo "[Install ros-desktop-full version of Noetic"
sudo apt install -y ros-$name_ros_version-desktop-full

echo "[Install RQT & Gazebo"
sudo apt-get install -y ros-$name_ros_version-rqt-* ros-$name_ros_version-gazebo-*
echo "[Install RQT & Gazebo]"
sudo apt install -y ros-$name_ros_version-rqt-* ros-$name_ros_version-gazebo-*

echo "[Environment setup and getting rosinstall]"
source /opt/ros/$name_ros_version/setup.sh
sudo apt install -y python3-rosinstall python3-rosinstall-generator python3-wstool build-essential git

echo "[Install rosdep and Update]"
sudo apt install python3-rosdep2
sudo apt install python3-rosdep

echo "[Initialize rosdep and Update]"
sudo sh -c "rosdep init"
rosdep update

echo "[Make the catkin workspace and test the catkin_make]"
Expand All @@ -76,9 +87,5 @@ sh -c "echo \"export ROS_HOSTNAME=localhost\" >> ~/.bashrc"

source $HOME/.bashrc

echo "[Install build environment, the chrony, ntpdate and set the ntpdate]"
sudo apt install -y git chrony ntpdate build-essential
sudo ntpdate ntp.ubuntu.com

echo "[Complete!!!]"
exit 0
25 changes: 13 additions & 12 deletions install_ros_noetic_rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ name_os_version=${name_os_version:="focal"}
name_ros_version=${name_ros_version:="noetic"}
name_catkin_workspace=${name_catkin_workspace:="catkin_ws"}

echo "[Update the package lists and upgrade them]"
sudo apt-get update -y
sudo apt-get upgrade -y
echo "[Update the package lists]"
sudo apt update -y

echo "[Install build environment, the chrony, ntpdate and set the ntpdate]"
sudo apt-get install -y chrony ntpdate build-essential
sudo apt install -y chrony ntpdate curl build-essential git
sudo ntpdate ntp.ubuntu.com

echo "[Add the ROS repository]"
Expand All @@ -44,20 +43,22 @@ else
exit 0
fi

echo "[Update the package lists and upgrade them]"
sudo apt-get update -y
sudo apt-get upgrade -y
echo "[Update the package lists]"
sudo apt update -y

echo "[Install the ros-base]"
sudo apt-get install -y ros-$name_ros_version-ros-base

echo "[Initialize rosdep]"
sudo sh -c "rosdep init"
rosdep update
sudo apt install -y ros-$name_ros_version-ros-base

echo "[Environment setup and getting rosinstall]"
source /opt/ros/$name_ros_version/setup.sh

echo "[Install rosdep and Update]"
sudo apt install python3-rosdep

echo "[Initialize rosdep and Update]"
sudo sh -c "rosdep init"
rosdep update

echo "[Setup 2GB Swap Partition]"
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
Expand Down

0 comments on commit f4194c1

Please sign in to comment.