gagle / raspberrypi-motd

Message of the Day for the Raspberry Pi.
MIT License
194 stars 75 forks source link

Placing in /etc/profile.d breaks X #13

Closed plasmoduck closed 3 years ago

plasmoduck commented 6 years ago

After copying scipt to /etc/profile.d and rebooting. The graphical login screen is stuck in an endless loop asking for password, I input correct password then it loops back to asking for password again. Removing the file from /etc/profile.d and rebooting fixed this and allowed me to login and start the desktop.

P4N1CO commented 6 years ago

I have the same problem, and when running cat .xsession-errors the error "/ etc / X11 / Xsession: 5: /etc/profile.d/motd.sh: Syntax error:" ("unexpected"

plasmoduck commented 6 years ago

Here is my forked version with correct way to install https://plasmoduck.github.io/raspberrypi-motd/

On Fri, Jun 22, 2018 at 12:09 PM, P4N1CO notifications@github.com wrote:

I have the same problem, and when running cat .xsession-errors the error "/ etc / X11 / Xsession: 5: /etc/profile.d/motd.sh: Syntax error:" ("unexpected"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

plasmoduck commented 6 years ago

Source the motd.sh script in the file ~/.profile by placing a link to it at the end of the file like /path/to/motd.sh and it will be executed after login.

On Sun, Jun 24, 2018 at 4:34 AM, Chris Garvin chrisjoelgarvin@gmail.com wrote:

Here is my forked version with correct way to install https://plasmoduck.github.io/raspberrypi-motd/

On Fri, Jun 22, 2018 at 12:09 PM, P4N1CO notifications@github.com wrote:

I have the same problem, and when running cat .xsession-errors the error "/ etc / X11 / Xsession: 5: /etc/profile.d/motd.sh: Syntax error:" ("unexpected"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

P4N1CO commented 6 years ago

Very good, it worked.