Skip to content

Instantly share code, notes, and snippets.

@robotsorcerer
Last active April 1, 2017 19:23
Show Gist options
  • Save robotsorcerer/4c74b4ff69519414e0b0 to your computer and use it in GitHub Desktop.
Save robotsorcerer/4c74b4ff69519414e0b0 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 One-time packages set-up
#olalekan ogunmolu
#June 25, 2014
#I generally use this script to do my basic package installation after a dry format of ubuntu 14.04.2 LTS
#!/bin/bash
#creates most of the packages I normally use in ubuntu
echo "setting up sources for ros indigo"
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
echo "setting up your ros keys"
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116
echo "setting up ppa keys for beignet opencl dev"
sudo apt-add-repository ppa:pmjdebruijn/beignet-testing
sudo apt-get install beignet-dev
echo "fetching repository for sublime-text2"
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - #get google keys
#
echo "adding ppa for sublime-text2"
sudo add-apt-repository ppa:webupd8team/sublime-text-2
echo "adding google-chrome sources to your /etc/apt/sources.list"
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
wait
echo "Fetching mendeley"
cd ~/Downloads && wget -v https://www.mendeley.com/repositories/ubuntu/stable/amd64/mendeleydesktop-latest
echo "installing the mendeley .deb file"
sudo dpkg -i mendel*.deb
wait
echo "Downloading dropbox for linux 64 bit and unpacking to your Documents directory"
cd ~/Documents && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
echo "updating your apt-get"
cd ~ && sudo apt-get update
wait
echo "Installing ulogme dependencies"
sudo apt-get install xdotool wmctrl
wait
#install dropbox
echo "Installing dropbox"
sudo ~/.dropbox-dist/dropboxd
wait
echo "You may now launch ulogme a separate terminal"
echo "installing nvidia-346 graphic drivers"
sudo apt-get install nvidia-346-dev
wait
echo "installing opencl headers"
sudo apt-get install opencl-headers
wait
echo "Cloning libfreenect2"
cd ~/Documents && git clone https://github.com/OpenKinect/libfreenect2.git
echo "Installing libfreenect2's dependencies"
sudo apt-get install build-essential libturbojpeg libjpeg-turbo8-dev libtool autoconf libudev-dev cmake mesa-common-dev freeglut3-dev libxrandr-dev doxygen libxi-dev libopencv-dev automake
# sudo apt-get install libturbojpeg0-dev (Debian)
wait
echo "installing the USB 3.0 superspeed patch from Joshua Blake"
cd libfreenect2/depends
sh install_ubuntu.sh
wait
sudo dpkg -i libglfw3*_3.0.4-1_*.deb # Ubuntu 14.04 only
# sudo apt-get install libglfw3-dev (Debian/Ubuntu 14.10+:)
wait
echo "Building protonect executable"
cd ../examples/protonect/
cmake CMakeLists.txtmake && sudo make install
wait
echo "Protonect has been built. Please cd into the /bin directory and run Protonect"
echo "Installing google google-chrome-unstable"
sudo apt-get install google-chrome-unstable
wait
#install sublime-text2
echo "Installing sublime-text2, thank you for your patience"
sudo apt-get install sublime-text
wait
echo "Installing ros-indigo-dektop-full"
sudo apt-get install ros-indigo-desktop-full
echo "Initializing rosdep"
sudo rosdep init
wait
echo "updating ros dependencies"
rosdep update
wait
echo "setting up your ros environment"
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc
wait
echo "getting rosinstall"
sudo apt-get install python-rosinstall
wait
echo "setting up your catkin workspace"
cd && mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_init_workspace
wait
echo "catkin_make is now gonna make your top-level CMakeLists.txt and 'build' and 'devel' folders"
cd ~/catkin_ws/
catkin_make
wait
#Installing Kinect2's bridge to ROS
echo "Installing Kinect2's bridge to ROS"
cd ~/catkin_ws/src
git clone https://github.com/code-iai/iai_kinect2.git
wait
cd iai_kinect2
rosdep install -r --from-paths .
wait
cd ~/catkin_ws
catkin_make -DCMAKE_BUILD_TYPE="Release"
wait
echo "instaling your galculator"
cd && sudo apt-get install galculator
wait
echo "Checking all installations!"
sudo apt-get install checkinstall
sudo checkinstall
wait
echo "installing mendeley desktop"
sudo apt-get install mendeleydesktop
wait
echo "Dynamically linking all files, packages and dependencies, please wait"
sudo ldconfig -d
echo "System is ready to be used"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment