linux-enable-ir-emitter: Immutable distro does not allow root commands after manual build

Ouput of linux-enable-ir-emitter -v configure

CRITICAL: Please run as root.

Output of cat /etc/linux-enable-ir-emitter/*

cat: '/etc/linux-enable-ir-emitter/*': No such file or directory

Output of ls -l /dev/v4l/by-path

total 0
lrwxrwxrwx. 1 root root 12 Apr  7 11:37 pci-0000:05:00.4-usb-0:4:1.0-video-index0 -> ../../video0
lrwxrwxrwx. 1 root root 12 Apr  7 11:37 pci-0000:05:00.4-usb-0:4:1.0-video-index1 -> ../../video1
lrwxrwxrwx. 1 root root 12 Apr  7 11:37 pci-0000:05:00.4-usb-0:4:1.2-video-index0 -> ../../video2
lrwxrwxrwx. 1 root root 12 Apr  7 11:37 pci-0000:05:00.4-usb-0:4:1.2-video-index1 -> ../../video3
lrwxrwxrwx. 1 root root 12 Apr  7 11:37 pci-0000:05:00.4-usbv2-0:4:1.0-video-index0 -> ../../video0
lrwxrwxrwx. 1 root root 12 Apr  7 11:37 pci-0000:05:00.4-usbv2-0:4:1.0-video-index1 -> ../../video1
lrwxrwxrwx. 1 root root 12 Apr  7 11:37 pci-0000:05:00.4-usbv2-0:4:1.2-video-index0 -> ../../video2
lrwxrwxrwx. 1 root root 12 Apr  7 11:37 pci-0000:05:00.4-usbv2-0:4:1.2-video-index1 -> ../../video3

Give more information if you have I built the package manually using meson by following the instructions on docs/manual-build.md, including changing the installation directory to $HOME/.local because I’m on an immutable system. If I run linux-enable-ir emitter configure, the output is CRITICAL: Please run as root.. However, if I then run the same command using sudo, I get sudo: linux-enable-ir-emitter: command not found.

Additional info

  • Computer (or camera) model: Lenovo Yoga Slim 7 Pro 16ACH6
  • Linux distribution: Fedora Silverblue 39
  • Version of linux-enable-ir-emitter: linux-enable-ir-emitter 6.0.0-pre

About this issue

  • Original URL
  • State: closed
  • Created 3 months ago
  • Comments: 36 (17 by maintainers)

Most upvoted comments

I’m pretty sure that’s fixed everything! Thank you so much for all the support and development of this awesome program, much appreciated.

Main PID: 1255 (code=exited, status=0/SUCCESS)

No no, not the same. Now the systemd service does not exit with error, and the output in the bottom is not the same.

However, I forgot that I changed the shortname for the verbosity. It is not anymore -v. Could you do:

  1. Open with root privilege /etc/systemd/system/linux-enable-ir-emitter.service, so e.g. sudo nano /etc/systemd/system/linux-enable-ir-emitter.service
  2. Modify the -v with --verbose, thus the line becomes: linux-enable-ir-emitter --verbose run
  3. Save (with nano: ctrl+o, enter, ctrl+x)
  4. sudo systemctl enable --now linux-enable-ir-emitter

After that everything should be good!

Turns out it still does not automatically start upon device restart, but thanks for the tarball- it’s a much easier way to install.

That first command seemed to work! The output did not contain the errors:

./
./usr/
./usr/local/
./usr/local/bin/
./usr/local/bin/linux-enable-ir-emitter
./usr/local/share/
./usr/local/share/zsh/
./usr/local/share/zsh/site-functions/
./usr/local/share/zsh/site-functions/_linux-enable-ir-emitter
./usr/local/share/licences/
./usr/local/share/licences/linux-enable-ir-emitter/
./usr/local/share/licences/linux-enable-ir-emitter/LICENSE
./usr/local/share/bash-completion/
./usr/local/share/bash-completion/completions/
./usr/local/share/bash-completion/completions/linux-enable-ir-emitter
./etc/
./etc/systemd/
./etc/systemd/system/
./etc/systemd/system/linux-enable-ir-emitter.service
./etc/linux-enable-ir-emitter/

I can now run linux-enable-ir-emitter run just fine and it works, I will test to see if it works even after a shut down now.

And does something is extracted? Is /usr/local/bin/linux-enable-ir-emitter exists?

Yep, it exists (after running the above command, not sure if it did before).

Strangely, after this step, all my issues with howdy have been fixed and my ir emitter works even after a system shut down. Thank you so much for all the work you’ve put into solving this for me 😃

Hum, not sure if this will persist

However, just to see if linux-enable-ir-emitter itself worked on my system, I tried installing the tarball (this time from the downloads directory)- the unzip works, but sudo tar -C / --no-same-owner -h -vxzf linux-enable-ir-emitter*.tar.gz then outputs:

Please try this command: sudo tar -C / --no-same-owner --no-overwrite-dir -h -vxzf linux-enable-ir-emitter*.tar.gz

Many thanks to you also for your contribution to this project!

No problem! Good to know, like this I can also adapt the level of details I should give you in my explanation.

sudo systemctl status linux-enable-ir-emitter

Hey, unfortunately it appears that the issue has persisted- not sure why it worked yesterday. I’m very happy to wait for the new tarball and simply run the program when necessary until then, would you recommend that?

Don’t need to re-configure, execute linux-enable-ir-emitter run.

I think there is a problem with the systemd script. Can paste here the output of sudo systemctl status linux-enable-ir-emitter?

Could you also paste here where are installed the different files, thus what is output by the ninja install -C build step

Many many thanks! your tool has fixed the issues I was having with Howdy, and you’ve been incredibly friendly and helpful 😃