diff --git a/tools/ubuntu_setup.sh b/tools/ubuntu_setup.sh new file mode 100755 index 00000000..c968e0b7 --- /dev/null +++ b/tools/ubuntu_setup.sh @@ -0,0 +1,57 @@ +#!/bin/bash -e +sudo apt-get update && sudo apt-get install -y \ + autoconf \ + build-essential \ + bzip2 \ + clang \ + cmake \ + curl \ + ffmpeg \ + git \ + libarchive-dev \ + libbz2-dev \ + libcurl4-openssl-dev \ + libeigen3-dev \ + libffi-dev \ + libglew-dev \ + libgles2-mesa-dev \ + libglfw3-dev \ + libglib2.0-0 \ + liblzma-dev \ + libmysqlclient-dev \ + libomp-dev \ + libopencv-dev \ + libssl-dev \ + libsqlite3-dev \ + libtool \ + libusb-1.0-0-dev \ + libzmq5-dev \ + locales \ + ocl-icd-libopencl1 \ + ocl-icd-opencl-dev \ + opencl-headers \ + python-dev \ + python-pip \ + screen \ + sudo \ + vim \ + wget + +curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash + +# TODO: add pyenv to .bashrc +pyenv install 3.7.3 +pyenv global 3.7.3 +pyenv rehash + +# install pipenv +pip install pipenv==2018.11.26 + +# pipenv setup +cd ../ +pipenv install --system --deploy + +# TODO: add openpilot to PYTHONPATH +# export PYTHONPATH="$HOME/openpilot" + +