Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"pi" is no longer the standard user name on Raspberry PIs #133

Closed
askpatrickw opened this issue May 18, 2023 · 2 comments
Closed

"pi" is no longer the standard user name on Raspberry PIs #133

askpatrickw opened this issue May 18, 2023 · 2 comments

Comments

@askpatrickw
Copy link

Lots of the code assumes /home/pi is the path and pi is user.
It is no longer the given that "pi" is the user name everyone is using.

Some alternative approaches to take:

  • .sh: use "~" or $HOME
  • .py: use os.getenv('HOME')

I am not sure if those will also work when running as a service.

@pageauc
Copy link
Owner

pageauc commented Feb 23, 2025

See NEW pi-timolo2 libcamera picamera2 at https://github.com/pageauc/pi-timolo2

I will look at this issue for new picamera2 release. Will add as issue on pi-timolo2

@pageauc pageauc closed this as completed Feb 23, 2025
@pageauc
Copy link
Owner

pageauc commented Feb 25, 2025

I have modified the NEW pi-timolo2 libcamera picamera2 at https://github.com/pageauc/pi-timolo2
It will run under a different RPI login account. This is used for timolo2-cam.sh and timolo2-web.sh for launching the related python scripts in the background using supervisor. menuboxsh also works under a different user. You will have to manually modify makevideo.conf although this could also be updated using sed.

If you have time I would appreciate any issues you encounter running my pi-timolo2 project.
Thanks Claude ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants