Skip to content

Instantly share code, notes, and snippets.

@florisvb
Last active January 14, 2019 16:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florisvb/ad637899798af51013d6b0e7ff8621a7 to your computer and use it in GitHub Desktop.
Save florisvb/ad637899798af51013d6b0e7ff8621a7 to your computer and use it in GitHub Desktop.
Install ROS and make mac camera available
#!/bin/sh
sudo apt-get update
sudo apt-get upgrade -y
# install 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:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full -y
sudo rosdep init
rosdep update
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential -y
# get the webcam working
sudo mkdir -p /etc/local/src
cd /etc/local/src
sudo git clone https://github.com/patjak/bcwc_pcie.git
cd bcwc_pcie/firmware
sudo make
sudo make install
cd ..
sudo make
sudo make install
sudo depmod
sudo modprobe -r bdc_pci
sudo modprobe facetimehd
# prevent sleeping
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
# renabel with: sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
sudo apt-get install guvcview -y
# install ipython
sudo apt-get install ipython -y
# disable cups printing to speed up shutdown
sudo systemctl disable cups-browsed.service
# install open ssh server
sudo apt-get install openssh-server -y
. ~/.bashrc
# make the facetimehd persistent
# sudo -s -H
# echo facetimehd >> /etc/modules
# exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment