Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

[BUG]: support other users in enable-usb-sync.sh #423

Closed
CWempe opened this issue May 1, 2022 · 3 comments
Closed

[BUG]: support other users in enable-usb-sync.sh #423

CWempe opened this issue May 1, 2022 · 3 comments
Labels
bug Something isn't working resolved

Comments

@CWempe
Copy link

CWempe commented May 1, 2022

Describe the bug

I installed photobooth on a freshly installed pi today.
As far as I know the user pi is no longer the default user for Raspberry Pi OS.
see: https://www.golem.de/news/bastelrechner-raspberry-pi-os-verwirft-den-standarduser-pi-2204-164535.html

But the script enable-usb-sync.sh does only work with the pi user.

Steps to reproduce the behavior

wget https://raw.githubusercontent.com/andi34/photobooth/dev/enable-usb-sync.sh
sudo bash enable-usb-sync.sh

Output:

--2022-05-01 22:42:30--  https://raw.githubusercontent.com/andi34/photobooth/dev/enable-usb-sync.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8001::154, 2606:50c0:8002::154, 2606:50c0:8003::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8001::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1696 (1.7K) [text/plain]
Saving to: ‘enable-usb-sync.sh’

enable-usb-sync.sh                                          100%[========================================================================================================================================>]   1.66K  --.-KB/s    in 0.001s

2022-05-01 22:42:31 (1.88 MB/s) - ‘enable-usb-sync.sh’ saved [1696/1696]

### Disabling automount for pi user
chown: invalid user: ‘pi:pi’

Expected behavior

Script should use the current user or ask for the user name.

Photobooth Version

3.3.0

Browser and browser version

Chrome 101

Operating System

Raspberry Pi OS 11

Did it work before?

No

Latest working version

No response

Additional context

I will try to correct the script for myself (quick and dirty).

@CWempe CWempe added the bug Something isn't working label May 1, 2022
@CWempe CWempe changed the title [BUG]: [BUG]: support other users in enable-usb-sync.sh May 2, 2022
@CWempe
Copy link
Author

CWempe commented May 2, 2022

If anyone is wondering, you can use this command to replace the pi user with your own user.

sed -i 's/pi/my-new-user/g' enable-usb-sync.sh

@CWempe
Copy link
Author

CWempe commented May 2, 2022

btw: I just realized I had not installed this fork, yet.
I was still using v2.1.0.

But this does not change this bug, I think.

@andi34
Copy link
Owner

andi34 commented May 6, 2022

Same applies to the installer. I am going to look at it as soon as I find enough time. Thanks for the report!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working resolved
Projects
None yet
Development

No branches or pull requests

2 participants