Closed mpfl closed 2 years ago
mainsailOS has no influence on 3rd part installer. this issue needs to be fixed in obico installer. please open an issue in the moonraker-obico repo.
Sorry, @meteyou but the issue is not with moonraker-obico. The MainsailOS installation documentation states:
Please don’t change the username! At this stage MainsailOS Setup relies on the user “pi”. We will change that in the future.
Sorry for not reading through the documentation before raising the issue, but the fact remains this is not an issue with moonraker-obico. If anything, the problem exists between keyboard and chair. My keyboard and my chair, that is.
The change of the username from pi to mfpl was successful? Did you install obico after you installed MainsailOS? You installed a 3rd party software and complaining about MainsailOS has an issue, while you installing the 3rd party software under the user mfpl, which where created by the OS?
The obico installer has nothing to do with the issue itself as i was able to reproduce it just by flashing MainsailOS 0.7.0 with the Raspberry Pi Imager and change the username without running the obico installer at all.
It's just that the obico installer seems to have pointed out that there does exist a problem. Which is a fair to point out by @mpfl.
With the recent release of MainsailOS 0.7.0 we allow changing of the username and it should get handled respectively. The docs need to be updated in that regard.
I am working on another solution to get that fixed.
I want to stick with the ability to rename the user, for security reasons mainly, but I think a custom Printer needs an custom user name also.
If someone wants to take a look what I am trying to do:
https://github.com/mainsail-crew/MainsailOS/tree/fix/rename
Regards Kwad
What happened
I installed MainsailOS 0.7.0 with the Raspberry Pi installer, changing the username from
pi
tompfl
.When trying to install moonraker-obico, I get the following error:
What did you expect to happen
I expected moonraker-obico to install successfully.
How to reproduce
pi
to any other username.Additional information
It looks like some scripts in MainsailOS hardcode the python interpreter to be /home/pi/moonraker-env
~/moonraker-env/bin/pip ~/moonraker-env/bin/pip3 ~/moonraker-env/bin/pip3.7
When I changed the interpreter to /home/mpfl it all worked okay.