```html OpenAuto on Ubuntu 22.04 – Installation Guide

Running OpenAuto on Ubuntu 22.04

This guide explains how to build and run OpenAuto (wired Android Auto) on Ubuntu 22.04. It is written for practical, real-world use.

1. Prerequisites

Wayland may work, but X11 is more reliable for OpenAuto.

2. Install Dependencies

sudo apt update
sudo apt install -y \
  git cmake build-essential \
  libboost-all-dev \
  libusb-1.0-0-dev \
  libprotobuf-dev protobuf-compiler \
  libqt5multimedia5 \
  libqt5multimedia5-plugins \
  libqt5serialport5-dev \
  qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools \
  libssl-dev \
  pulseaudio

3. Clone and Build OpenAuto

Clone the repository

cd ~
git clone https://github.com/f1xpl/openauto.git
cd openauto

Create build directory

mkdir build
cd build

Configure with CMake

cmake ..

Compile

make -j$(nproc)

4. Run OpenAuto

./autoapp

The OpenAuto interface should now appear.

5. Connect Your Phone

  1. Unlock your Android phone
  2. Connect it via USB
  3. Accept USB and Android Auto prompts on the phone

If it does not connect immediately, unplug and reconnect once.

6. Audio Setup

Verify PulseAudio

pactl info

If PulseAudio is not running:

pulseaudio --start

Select correct output device

pavucontrol

7. Touchscreen Fixes (Optional)

Find touchscreen device

xinput list

Map touch to display

xinput map-to-output <ID> eDP-1

Replace <ID> with your touchscreen ID and eDP-1 with the correct display from xrandr.

8. USB Permissions Fix

If OpenAuto starts but never detects your phone:

sudo usermod -aG plugdev $USER

Reboot after running this command.

9. Autostart OpenAuto (Optional)

nano ~/.config/autostart/openauto.desktop
[Desktop Entry]
Type=Application
Exec=/home/YOURUSER/openauto/build/autoapp
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=OpenAuto

Replace YOURUSER with your username.

For daily in-car use, consider OpenAuto Pro for faster startup and fewer audio issues.

Known Limitations