```html
This guide explains how to build and run OpenAuto (wired Android Auto) on Ubuntu 22.04. It is written for practical, real-world use.
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
cd ~
git clone https://github.com/f1xpl/openauto.git
cd openauto
mkdir build
cd build
cmake ..
make -j$(nproc)
./autoapp
The OpenAuto interface should now appear.
If it does not connect immediately, unplug and reconnect once.
pactl info
If PulseAudio is not running:
pulseaudio --start
pavucontrol
xinput list
xinput map-to-output <ID> eDP-1
Replace <ID> with your touchscreen ID and eDP-1 with the correct display from xrandr.
If OpenAuto starts but never detects your phone:
sudo usermod -aG plugdev $USER
Reboot after running this command.
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.