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

GUI login issues after installing V1.1.0 FreeZTP on a RaspberryPI #41

Closed
RichGu opened this issue Mar 19, 2019 · 5 comments
Closed

GUI login issues after installing V1.1.0 FreeZTP on a RaspberryPI #41

RichGu opened this issue Mar 19, 2019 · 5 comments
Assignees
Labels

Comments

@RichGu
Copy link

RichGu commented Mar 19, 2019

After installing the FreeZTP I’m getting an .xession-errors issue
/etc/X11/Xsession: 11: /etc/profile.d/zip-complete.sh: Syntax error: “(“ unexpected (expecting “}”)

@PackeTsar
Copy link
Owner

Any indication on which line of the file this is referencing? Can you tweak with that completion script to see where BASH is getting pissed off and let me know?

@PackeTsar
Copy link
Owner

I have received a second report of this happening. Going to install on Rasperian and see if I can reproduce.

@PackeTsar
Copy link
Owner

I am tracking this bug in a central issue. Closing this issue.

@PackeTsar PackeTsar reopened this Apr 11, 2020
@PackeTsar
Copy link
Owner

PackeTsar commented Apr 11, 2020

Looks the root cause of this is that FreeZTP installs a BASH completion file into the /etc/profile.d/ directory. This is typically OK with Linux installs not having a GUI component.

In the case of Rasperian with a GUI, Rasperian tries to run the scripts in the /etc/profile.d/ directory with sh instead of bash. The completion script is bash-based and errors out when run by sh which causes a user to log into the GUI, the screen blanks out, and then returns to the login screen; failing to log in.

The bug fix should be:

  • Delete the completion script in the /etc/profile.d/ directory
  • Install the script in the /etc/bash_completion.d directory

This should still run the script upon bash login, but not upon GUI login

@PackeTsar
Copy link
Owner

This fix is being prepared and will be ready in the next release. Apologies for breaking your Raspberry Pi profile

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

No branches or pull requests

2 participants