Skip to content

Instantly share code, notes, and snippets.

@thomasweng15
Created January 11, 2018 19:38
Show Gist options
  • Save thomasweng15/309a7b12428d3badeb08c161a31bb608 to your computer and use it in GitHub Desktop.
Save thomasweng15/309a7b12428d3badeb08c161a31bb608 to your computer and use it in GitHub Desktop.
ros/fetch install script
#! /bin/bash
# Basic stuff
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get install -y build-essential vim git tmux python-dev curl python-pip cmake libgif-dev
rm -r Documents Pictures Videos Templates Public Music examples.desktop
# ROS
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 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get -y install ros-indigo-desktop-full
#echo "source /opt/ros/indigo/setup.bash" >> ~/.basher
sudo rosdep init
rosdep update
# MoveIt
sudo apt-get install -y ros-indigo-moveit-*
# Fetch
sudo apt-get install -y ros-indigo-fetch-*
# ROS utils
sudo apt-get install -y python-wstool python-catkin-tools python-rosinstall
# NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm install node
npm install -g polymer-cli bower
# Catkin workspace
source /opt/ros/indigo/setup.bash
cd ~
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
catkin init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment