Skip to content

Instantly share code, notes, and snippets.

@freitzzz
Last active August 15, 2023 10:30
Show Gist options
  • Save freitzzz/a36a60cd9cc923a30af9699e388bc061 to your computer and use it in GitHub Desktop.
Save freitzzz/a36a60cd9cc923a30af9699e388bc061 to your computer and use it in GitHub Desktop.
(debian/ubuntu One click DLT Viewer Install script
#!/usr/bin/env bash
# This is an one-click install script using the instructions listed on the official dlt-viewer repo: https://github.com/COVESA/dlt-viewer/blob/master/INSTALL.md
# This script is intended to be run on Debian / Ubuntu based systems.
banner="
___ __ ______ _ __ ____ ____ _ __ ____ ___
/ _ \ / / /_ __/____| | / // _// __/| | /| / // __// _ \
/ // // /__ / / /___/| |/ /_/ / / _/ | |/ |/ // _/ / , _/
/____//____//_/ |___//___//___/ |__/|__//___//_/|_|
A one-click install script for DLT-Viewer in Debian / Ubuntu based systems.
Run this script anytime over the Internet: wget -qO- https://gist.githubusercontent.com/freitzzz/a36a60cd9cc923a30af9699e388bc061/raw/dlt_viewer_install.bash | bash
"
echo "$banner"
# 0. Update repositories
sudo apt-get update
# 1. Install qt dependencies
sudo apt-get install -y build-essential \
qtcreator \
qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools \
libqt5serialport5-dev
# 2. Clone dlt-viewer repo in known location
dlt_viewer_repo_path=~/.local/share/dlt-viewer
git clone https://github.com/COVESA/dlt-viewer/ $dlt_viewer_repo_path
cd $dlt_viewer_repo_path
# 3. Build dlt-viewer
mkdir build
cd build
qmake ../BuildDltViewer.pro
make
# 4. Install dlt-viewer
sudo make install
sudo ldconfig
echo "DLT Viewer was installed in $dlt_viewer_repo_path"
# <EOF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment