Skip to content

Instantly share code, notes, and snippets.

@anisyanka
Last active February 27, 2024 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anisyanka/b3ffba2e9d7965c03a5c87864565025e to your computer and use it in GitHub Desktop.
Save anisyanka/b3ffba2e9d7965c03a5c87864565025e to your computer and use it in GitHub Desktop.
# It works fine for commit `master (Paulchen-Panther-5709d89e/bb40778a-1708095831)`.
# Install deps
sudo apt-get update
sudo apt-get install \
git \
cmake \
build-essential \
qtbase5-dev \
libqt5serialport5-dev \
libqt5sql5-sqlite \
libqt5x11extras5-dev \
libusb-1.0-0-dev \
python3-dev \
libcec-dev \
libxcb-image0-dev \
libxcb-util0-dev \
libxcb-shm0-dev \
libxcb-render0-dev \
libxcb-randr0-dev \
libxrandr-dev \
libxrender-dev \
libavahi-core-dev \
libavahi-compat-libdnssd-dev \
libjpeg-dev \
libturbojpeg0-dev \
libssl-dev \
zlib1g-dev \
libraspberrypi-dev \
libasound2-dev
# Clone
git clone --recursive --depth 1 https://github.com/hyperion-project/hyperion.ng.git hyperion
cd hyperion
# Install
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j $(nproc)
sudo make install/strip
# But the above actions don't install systemd, upstart or sysV service.
# We HAVE TO do it manually. For my system I use systemd.
# Create service file
sudo touch /etc/systemd/system/hyperion.service
# Open file with nano/vi/vim/code or other edito:
sudo nano /etc/systemd/system/hyperion.service
# Paste these lines
[Unit]
Description=Hyperion ambient light systemd service
Documentation=https://docs.hyperion-project.org
Requisite=network.target
Wants=network-online.target
After=network-online.target
After=systemd-resolved.service
[Service]
ExecStart=/usr/local/share/hyperion/bin/hyperiond
WorkingDirectory=/usr/local/share/hyperion/bin/
TimeoutStopSec=5
KillMode=mixed
Restart=on-failure
RestartSec=2
[Install]
WantedBy=multi-user.target
# Close the editor
# Enable the service
sudo systemctl enable hyperion.service
sudo systemctl start hyperion
# Check that all running fine
sudo systemctl status hyperion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment