diff --git a/autopilot/setup/scripts.py b/autopilot/setup/scripts.py index 2d3a8b15..235c7f75 100644 --- a/autopilot/setup/scripts.py +++ b/autopilot/setup/scripts.py @@ -38,12 +38,27 @@ SCRIPTS = odict({ 'env_pilot': { 'type': 'bool', - 'text': 'install system packages necessary for autopilot? (required if they arent already)', + 'text': 'install system packages necessary for autopilot Pilots? (required if they arent already)', 'commands': [ "sudo apt-get update", "sudo apt-get install -y build-essential cmake git python3-dev libatlas-base-dev libsamplerate0-dev libsndfile1-dev libreadline-dev libasound-dev i2c-tools libportmidi-dev liblo-dev libhdf5-dev libzmq-dev libffi-dev", ] }, + 'env_terminal': { + 'type': 'bool', + 'text': 'install system packages necessary for autopilot Terminals? (required if they arent already)', + 'commands': [ + 'sudo apt-get update', + 'sudo apt-get install -y \ + libxcb-icccm4 \ + libxcb-image0 \ + libxcb-keysyms1 \ + libxcb-randr0 \ + libxcb-render-util0 \ + libxcb-xinerama0 \ + libxcb-xfixes0' + ] + }, 'performance': { 'type': 'bool', 'text': 'Do performance enhancements? (recommended, change cpu governor and give more memory to audio)', diff --git a/docs/guide/installation.rst b/docs/guide/installation.rst index 0bd4a483..fb565f08 100644 --- a/docs/guide/installation.rst +++ b/docs/guide/installation.rst @@ -24,7 +24,7 @@ We have tried to take care to make certain platform-specific dependencies not br so if you have some difficulty installing autopilot on a non-raspberry-pi linux machine please submit an issue! -Pre-installation prep +Pre-installation ===================== On the Pilot device @@ -39,7 +39,9 @@ It's also best to update the Pi's operating system at this time:: sudo apt update sudo apt upgrade -y -Now install the system packages that are required by Autopilot. You can do this by running this command, or it's also available as a setup script in the guided installation of Autopilot. :: +Now install the system packages that are required by Autopilot. +You can do this by running this command, or it's also available as a setup script +in the guided installation of Autopilot. (``python -m autopilot.setup.run_script env_pilot``) :: sudo apt install -y \ python3-dev \ @@ -61,7 +63,17 @@ Now install the system packages that are required by Autopilot. You can do this On the Terminal device ---------------------- -On the computer that will run the Terminal, you also need to install virtualenv and create a virtualenv for Autopilot, but you don't need to install all the system dependencies (the line beginning with "sudo apt install"). +The following system packages are required by ``PySide2`` (which no longer packages ``xcb``):: + + sudo apt-get update && \ + sudo apt-get install -y \ + libxcb-icccm4 \ + libxcb-image0 \ + libxcb-keysyms1 \ + libxcb-randr0 \ + libxcb-render-util0 \ + libxcb-xinerama0 \ + libxcb-xfixes0 Creating a Virtual Environment ------------------------------