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)
I’m pretty sure that’s fixed everything! Thank you so much for all the support and development of this awesome program, much appreciated.
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:/etc/systemd/system/linux-enable-ir-emitter.service
, so e.g.sudo nano /etc/systemd/system/linux-enable-ir-emitter.service
-v
with--verbose
, thus the line becomes:linux-enable-ir-emitter --verbose run
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:
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.Yep, it exists (after running the above command, not sure if it did before).
Hum, not sure if this will persist
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
stepMany many thanks! your tool has fixed the issues I was having with Howdy, and you’ve been incredibly friendly and helpful 😃