You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed your guide but I was not successful (I'm not a linux expert).
when I ran the command systemctl enable rpiplayIt asked to authenticate me in big red letters which I found a bit odd:
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===
after this I tried starting the service like you wrote with systemctl start rpiplayIt then again asked to verify me in big red letters:
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'rpiplay.service'.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===
Failed to start rpiplay.service: Unit rpiplay.service has a bad unit file setting.
As you can see it failed.
I am running a raspberry pi zero with raspbian buster light.
@B0rax You need to run sudo systemctl enable rpiplay instead. Only users with root privileges are allowed to make changes to the systemd system, since without that security it would allow all kinds of software to automatically start at boot.
Yes @B0rax using sudo would get rid the Authentication message in "big red letters" as you call it. However, Failed to start rpiplay.service: Unit rpiplay.service has a bad unit file setting. is interesting. Give sudo a try and see if it solves the problem. If not, lets look at the rpiplay.service file and see what went wrong. but using services is the right approach and should be the way we go about it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added instructions in the README to properly autostart the server on boot using a systemd service.