Can't get root priviliges for hyperion

  • Hi,


    I'm trying to set root user for Hyperion.NG. I used the code below in terminal of Rapsberry Pi OS (RPI3):

    Code
    sudo chmod +x /usr/share/hyperion/scripts/updateHyperionUser.sh && sudo updateHyperionUser -u root

    Next I have to type 'Yes' for question:


    Code
    Are you sure you want to run Hyperion under root? [Yes/No] Yes


    The last line is:

    Code
    Restarting Hyperion Service: hyperion@root.service

    But I guess the script not worked for me because debug log in WEB UI looks like this:

    Code
    2022-10-21T07:19:57.515Z [LEDDEVICE|First LED Hardware instance] (ERROR) Device disabled, device 'ws281x' signals error: 'Hyperion must run with "root" privileges for this device. Current user is: "pi"'
    2022-10-21T07:21:27.598Z [LEDDEVICE|First LED Hardware instance] (ERROR) Previous line repeats 6 times
    2022-10-21T07:21:27.599Z [LEDDEVICE|First LED Hardware instance] (ERROR) Device disabled. Maximum number of 6 attempts enabling the device reached. Tried for 1788836300 seconds.

    Any ideas? I would like to ensure my RPI will be working with WS2812b led strip.


    I have a look into script updateHyperionUser.sh in usr/share/hyperion/scripts/ and in the end it should print "Done" in terminal. But it does'nt.

    Einmal editiert, zuletzt von ZbyBo () aus folgendem Grund: Merged a post created by ZbyBo into this post.

  • Zur hilfreichsten Antwort springen
  • Hyoerion Version?

    OS?


    When installing Hyperion, everything is prepared in such a way that you only have to enter sudo updateHyperionUser -u root

    Otherwise the call would not work either because you did not specify a path (Post #1 Code 1).


    Code: hyperion postinst
    BINSP=/usr/share/hyperion
    BINTP=/usr/bin
    #create symlink for updateHyperionUser.sh script
    ln -fs $BINSP/scripts/updateHyperionUser.sh $BINTP/updateHyperionUser 2>/dev/null


    regards pclin

    Dreambox ONE / TWO

    dreamOS OE2.6

    Amlogic S922X - 53.000 DMIPS - 2 GB RAM - 16 GB Flash - Twin-DVB-S2X Tuner - HDR10 - HLG
    -
    AudioDSP: miniDSP 2x4HD - Amp: Pentagon - Lautsprecher ELAC / ARENDAL
    LG OLED65BX9LB (PicCap, hyperion.NG webOS)

    FireTV 4K max

    -
    hyperion (classic) & Plugin HyperionControl | hyperion-ng 2.0.16-beta.1 (dreamOS)
    Hyperion-ng (Debian bullseye)
    -
    6 x ESP32/Wemos D1 mini - WLED - SK6812 RGBW-NW 60 LEDs/m
    FeinTech VSP01201 - Grabber Macrosilicon

    LG TV Hyperion webOS & PicCap


    snoozer_likelinux_manvtkns.gif


    Ambilight for ever

    Einmal editiert, zuletzt von pclin ()

  • Hyoerion Version?

    OS?

    When installing Hyperion, everything is prepared in such a way that you only have to enter sudo updateHyperionUser -u root

    I used that command too, but effect was the same.


    After first post in that thread, I tried to reinstall Hyperion (uninstall and install using commands from here), but it wasn't help.

  • Is there any Hyperion running you started manually before?

    Yes, Hyperion is running when I'm trying to run script. I can get acces to configuration on WEB UI from RPI and another computer/smartphone in network.


    But I found and used another code (with, and without letter "d"):


    sudo systemctl disable --now hyperion(d)@pi


    sudo systemctl enable --now hyperion(d)@root


    And the ansower from terminal is:

    1. Failed to disable unit: Unit file hyperion@pi.service does not exist.
    2. Failed to disable unit: Unit file hyperiond@pi.service does not exist.

    Code: hyperion postinst
    BINSP=/usr/share/hyperion
    BINTP=/usr/bin
    #create symlink for updateHyperionUser.sh script
    ln -fs $BINSP/scripts/updateHyperionUser.sh $BINTP/updateHyperionUser 2>/dev/null


    There's no different after execute code from above.


    Screenshot-2022-10-21-21-30-50-130-com-realvnc-viewer-android.jpg

    2 Mal editiert, zuletzt von ZbyBo () aus folgendem Grund: Merged a post created by ZbyBo into this post.

    • Hilfreichste Antwort
    • Offizieller Beitrag

    How did you start Hyperion which is running currently?


    I assume that you are running a rpi with GUI?

    I guess then no service was created during installation, as service is normally for headless systems by default.

  • Yes, I ran Hyperion from menu in GUI after installation. Is there a way to create service manually or force Hyperion to do it somehow?

    I guess then no service was created during installation, as service is normally for headless systems by default.

    Or there is no way to do so in system with GUI?


    Finally, how can I set root user for Hyperion afterall?

  • pclin

    Hat einen Beitrag als hilfreichste Antwort ausgewählt.
  • /etc/systemd/system/hyperion@.service

    hyperion.ng/hyperion.systemd at master · hyperion-project/hyperion.ng
    The successor to Hyperion aka Hyperion Next Generation - hyperion.ng/hyperion.systemd at master · hyperion-project/hyperion.ng
    github.com


    Code
    systemctl daemon-reload
    systemctl enable hyperion@root
    systemctl start hyperion@root
    systemctl status hyperion@root

    regards pclin

    Dreambox ONE / TWO

    dreamOS OE2.6

    Amlogic S922X - 53.000 DMIPS - 2 GB RAM - 16 GB Flash - Twin-DVB-S2X Tuner - HDR10 - HLG
    -
    AudioDSP: miniDSP 2x4HD - Amp: Pentagon - Lautsprecher ELAC / ARENDAL
    LG OLED65BX9LB (PicCap, hyperion.NG webOS)

    FireTV 4K max

    -
    hyperion (classic) & Plugin HyperionControl | hyperion-ng 2.0.16-beta.1 (dreamOS)
    Hyperion-ng (Debian bullseye)
    -
    6 x ESP32/Wemos D1 mini - WLED - SK6812 RGBW-NW 60 LEDs/m
    FeinTech VSP01201 - Grabber Macrosilicon

    LG TV Hyperion webOS & PicCap


    snoozer_likelinux_manvtkns.gif


    Ambilight for ever

    2 Mal editiert, zuletzt von pclin ()

  • Code
    systemctl daemon-reload
    systemctl enable hyperion@root
    systemctl start hyperion@root
    systemctl status hyperion@root

    After execute code the terminal said:


    Failed to enable unit: Unit file hyperion@root.service does not exist.

    Failed to start hyperion@root.service: Unit hyperion@root.service not found.

    Unit hyperion@root.service could not be found.


    Futhermore I tried that code:

    sudo systemctl -q enable hyperion.service --now from another thread.


    The ansower from terminal was:


    Failed to start hyperion.service: Unit hyperion.service has a bad unit file setting.

    See system logs and 'systemctl status hyperion.service' for details.


    So I ran sudo systemctl status hyperion.service and get:


    IMG-20221021-234128.jpg


    Einmal editiert, zuletzt von ZbyBo () aus folgendem Grund: Merged a post created by ZbyBo into this post.

  • what do you mean "i reinstalled" ? which version ? what system do you have on your Pi ?

    i tried everything ... it doesnt work as "root" :(

  • For example, you can use Hyperbian.

    Raspberry Pi OS Lite with Hyperion pre installed.

    Is a ready to use image for your Raspberry Pi. Based on the original Raspberry Pi Foundation image "Raspberry Pi OS Lite". Hyperion is already pre installed. So simply

    1. Download
    2. Burn image on sd
    3. Power on your Pi
    4. Visit with your Browser http://IpOfYourPi:8090 for configuration

    More information in the Hyperion Wiki


    Note: The default user and password were changed to align with Raspberry Pi OS security measures.


    If you need root (only for ws281x) then before point 4.

    Console type sudo updateHyperionUser -u root and reboot


    regards pclin

    Dreambox ONE / TWO

    dreamOS OE2.6

    Amlogic S922X - 53.000 DMIPS - 2 GB RAM - 16 GB Flash - Twin-DVB-S2X Tuner - HDR10 - HLG
    -
    AudioDSP: miniDSP 2x4HD - Amp: Pentagon - Lautsprecher ELAC / ARENDAL
    LG OLED65BX9LB (PicCap, hyperion.NG webOS)

    FireTV 4K max

    -
    hyperion (classic) & Plugin HyperionControl | hyperion-ng 2.0.16-beta.1 (dreamOS)
    Hyperion-ng (Debian bullseye)
    -
    6 x ESP32/Wemos D1 mini - WLED - SK6812 RGBW-NW 60 LEDs/m
    FeinTech VSP01201 - Grabber Macrosilicon

    LG TV Hyperion webOS & PicCap


    snoozer_likelinux_manvtkns.gif


    Ambilight for ever

    3 Mal editiert, zuletzt von pclin ()

  • thank you for quick answer. I had Hyperbian on my PI and it was ok - hyperion works good. But i want to have OS with desktop and then install hyperion. is it possible ? which OS version should I choose (32bit, 64bit) ? which version of Hyperion (2.013, 2.0.14) ? maybe older one ?

  • Yes iIt's possible, I'm using Debian Bullseye with Hyperion.

    I also used Debian Stretch and Buster.


    regards pclin

    Dreambox ONE / TWO

    dreamOS OE2.6

    Amlogic S922X - 53.000 DMIPS - 2 GB RAM - 16 GB Flash - Twin-DVB-S2X Tuner - HDR10 - HLG
    -
    AudioDSP: miniDSP 2x4HD - Amp: Pentagon - Lautsprecher ELAC / ARENDAL
    LG OLED65BX9LB (PicCap, hyperion.NG webOS)

    FireTV 4K max

    -
    hyperion (classic) & Plugin HyperionControl | hyperion-ng 2.0.16-beta.1 (dreamOS)
    Hyperion-ng (Debian bullseye)
    -
    6 x ESP32/Wemos D1 mini - WLED - SK6812 RGBW-NW 60 LEDs/m
    FeinTech VSP01201 - Grabber Macrosilicon

    LG TV Hyperion webOS & PicCap


    snoozer_likelinux_manvtkns.gif


    Ambilight for ever

    Einmal editiert, zuletzt von pclin ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!