Skip to content

Instantly share code, notes, and snippets.

@kaxing
Last active October 26, 2017 02:59
Show Gist options
  • Save kaxing/0a77b15c705eedd437dcb0176dbd82b3 to your computer and use it in GitHub Desktop.
Save kaxing/0a77b15c705eedd437dcb0176dbd82b3 to your computer and use it in GitHub Desktop.
Build & Install Clight 1.4 deb for Ubuntu 17.10

Download & install Clightd from https://github.com/FedeDP/Clightd/releases

$ sudo apt install libsystemd-dev ibpopt-dev libgsl-dev libconfig-dev

$ git clone https://github.com/FedeDP/Clight


in src/lock.c:

lck_fd = open(lockfile, O_RDWR | O_CREAT);

to

lck_fd = open(lockfile, O_RDWR | O_CREAT, 0600);

update DEBIAN/control:

libgs2

to

libgs23

Build and produce deb package: > $ make deb

Install that deb:

$ dpkg -i clight_1.4_amd64.deb

Prepare the conf file and even tweak it:

$ cp /etc/default/clight.conf ~/.config/clight.conf

Enable clight for every time:

$ systemctl --now --user enable clight.timer

Recalibrating with current lighting:

$ clight -c --verbose

Checking running status:

$ sudo journalctl -u clightd -f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment