Skip to content
New issue

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

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

Already on GitHub? # to your account

Chanigng the user in rpi-imager from breaks system #432

Open
guysoft opened this issue Jun 20, 2022 · 5 comments
Open

Chanigng the user in rpi-imager from breaks system #432

guysoft opened this issue Jun 20, 2022 · 5 comments

Comments

@guysoft
Copy link
Owner

guysoft commented Jun 20, 2022

Continuing report of @AlbertMN here:
#276 (comment)
It seems that the userless new setup breaks fullpageos if the username is changed.

Related:
guysoft/CustomPiOS#163

@jory3
Copy link

jory3 commented Dec 12, 2023

In case someone else needs a quick fix for the "unable to launch "/home/pi/scripts/start_gui" X session"-error: I had created a user 'myuser' in the pi imager. After the first boot I added a user called 'pi' manually and copied the folder /home/myuser/scripts to /home/pi/scripts. Then I did a chmod pi:pi /home/pi -Rand rebooted, now everything works.

@rameshnavi
Copy link

Faced same issue.

In case someone else needs a quick fix for the "unable to launch "/home/pi/scripts/start_gui" X session"-error: I had created a user 'myuser' in the pi imager. After the first boot I added a user called 'pi' manually and copied the folder /home/myuser/scripts to /home/pi/scripts. Then I did a chmod pi:pi /home/pi -Rand rebooted, now everything works.

This worked(kind of) for me. Had to do chown instead of chmod

@guysoft
Copy link
Owner Author

guysoft commented Feb 28, 2024

Related #525

Also started having a go at fixing this. Needs changes both in CustomPiOS and FullPageOS. I think I got the CustomPiOS side for now

@w1s3on3
Copy link

w1s3on3 commented Mar 6, 2024

i fixed mine just by creating a link,
sudo ln -s /home/$(whoami) /home/pi

and from memory edit /etc/lightdm/lightdm.conf and change auto login from pi to your username

@Pshock13
Copy link

I did a fresh install today from raspberry pi imager. The full quick fix I did was to just make the directory for pi and then symlink to the actual file in my user's home directory. change some permissions, reboot.

mkdir -p /home/pi/scripts
ln -s /home/USER/scripts/* /home/pi/scripts/
chown -R USER:USER /home/pi/scripts

Obviously an easier work around would be to just use pi as the user when going through the setup. But if you're like me, you have a username that you use for all your other devices and don't want to be adding more :)

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

No branches or pull requests

5 participants