Tested in Ubuntu 16.04 (test machine has GPUs. may need some modification if have no GPU)
cd ~/
git clone -b sim https://github.com/commaai/openpilot.git
// capnproto and capnpc-c needed for this step, see instruction HERE (2.Install Cap'n Proto)
cd ~/openpilot
scons
sudo cp ./phonelibs/capnp-c/x64/lib/libcapnp_c.so.0 /usr/lib
(if have pipenv already, skip this step) pip install pipenv
cd ~/openpilot/tools/sim
pipenv install
// curl seems to randomly stop when getting big files, so we suggest downloading
// CARLA to ~/openpilot/tools/sim with a browser first then continue
cd ~/openpilot/tools/sim
./get_carla_095.sh
cd ~/openpilot/tools/sim
./run_carla_095.sh
add 'export PYTHONPATH=$HOME/openpilot' to your ~/.bashrc
cd ~/openpilot/tools/sim
pipenv shell
cd ~/openpilot/selfdrive/
CUDA_VISIBLE_DEVICES='' PASSIVE=0 NOBOARD=1 ./manager.py
// you may need to comment out L47-54 in ./thermald.py, may need not
// links carla to openpilot, will "start the car" according to manager
cd ~/openpilot/tools/sim
pipenv shell
./bridge.py
// once started, you can do basic vehicle control, or engage openpilot with logitech G29
// you can also modify the code to drive with any other input method