Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Setup Ubuntu 16.04
# Setup Ubuntu 16.04
sudo apt-get update
sudo apt-get upgrade
# Install Text Editors
sudo apt-get install vim
sudo apt-get install gedit
# Install Terminal Multiplexer
sudo apt-get install tmux
# Install Process Manager
sudo apt-get install htop
# Install PIP (Python)
sudo apt install python-pip
# Install iPython
sudo apt install ipython
# Install ROS Kinetic
sudo sh -c 'echo "deb $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp:// --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
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
sudo apt-get install python-catkin-tools
# Create and build catkin workspace using Catkin Build
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin build
# Setup SSH
sudo apt-get install openssh-server
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults
sudo chmod a-w /etc/ssh/sshd_config.factory-defaults
# Install CURL
sudo apt-get install -y curl
# Install GIT
sudo apt-get install -y git
# Install CUDA (Requires Editing Script)
# Manually download CUDA .deb package
#read -p "Press any key after cuda-repo-XYZ-FILENAME-deb.deb is placed in ~/Downloads folder.."
#cd ~/Downloads
#sudo dpkg -i cuda-repo-XYZ-FILENAME-deb
#sudo apt-get update
#sudo apt-get install cuda
# Add the following lines to ~/.bashrc file
#export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
#export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64\ ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
# Run the following script to install cuda install samples in home directory ~
# Installing OPENCV 2.4
# Install Dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev
sudo apt-get -qq install libopencv-dev checkinstall pkg-config yasm libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine2 libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils
wget -O
cd opencv-
mkdir release
cd release
make all -j
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment