Skip to content

Instantly share code, notes, and snippets.

@ohadcn
Created July 17, 2017 15:35
Show Gist options
  • Save ohadcn/54a76d0bcb779d526415b683624144dd to your computer and use it in GitHub Desktop.
Save ohadcn/54a76d0bcb779d526415b683624144dd to your computer and use it in GitHub Desktop.
#!/bin/bash
export ROS_VERSION=lunar
sudo apt-add-repository -y universe
sudo apt-add-repository -y multiverse
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-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get install -y ros-$ROS_VERSION-desktop-full python-rosinstall htop zip unzip build-essential rar unrar
sudo rosdep init
rosdep update
echo "source /opt/ros/$ROS_VERSION/setup.bash" >> ~/.bashrc
source /opt/ros/$ROS_VERSION/setup.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment