You are not logged in.
Pages: 1
Dear Arch Community,
i recently entered the rabbit hole and installed arch as my daily driver. Everything was going fine, I installed zsh and omz and felt unstoppable using the omz default theme with Alacritty.
Then, I needed to use Teamviewer. Turns out Teamviewer is not running when using startx. I experimented a bit with display managers at the beginning of my journey but i was using bash at that time.
Now to the problem. My system and my dot files have changed a bit since then and when using startx, everything is fine and my zsh configs are applied to my default shell (zsh).
When using lightdm as my display manager (doesn't matter the greeter) I get stuck in an infinite login loop. Now hold up! I know you want to point me to the Lightdm XSession file! But unfortunately that doesn't do the trick.
I am actually quite sure I located the problem to be in my ~/.xprofile file. Before switching to lightdm, this file was empty. Then Archwiki said: Paste this when using zsh and you should be fine but it didn't work out.
When using the lines from the Wiki (https://wiki.archlinux.org/title/LightD … _variables) it results in an infinite login loop. My X beginner brain figured out that there must be an error with the file i'm sourcing in there.
I also figured out that I maybe need to source the .zprofile file where a lot of env variables are set. So i prepended the same line as recommended in the wiki but replaced ~/.config/zsh/zshrc with ~/.zprofile. But no success, still the login loop.
When i run `source .xprofile` in alacritty, the current terminal applies the omz config and everything is fine, but lightdm apparently can't do it.
Here are the relevant files:
Lightdm config:
[LightDM]
run-directory=/run/lightdm
[Seat:*]
greeter-session=web-greeter
session-wrapper=/etc/lightdm/XsessionLightdm Xsession wrapper: https://pastebin.com/85aZ0NFZ
~/.xprofile:
#!/bin/sh
# Commenting these two lines makes zsh unconfigured and lightdm working again. This is the critical part
[ -f ~/.zprofile ] && . ~/.zprofile
[ -f ~/.config/zsh/.zshrc ] && . ~/.config/zsh/.zshrc~/.zprofile: https://pastebin.com/skN3qqJe
~/.config/zsh/.zshrc: https://pastebin.com/p3yexUUL
Maybe you can spot some obvious mistakes or explain to me why my efforts are failing. Thanks.
If you need any Error output or something else, just say because I am not sure what to paste here.
What i've tried so far:
- Updating pacman and yay repositories
- Reading the Wiki and using the code for xprofile
- Deleting .Xauthority file
Last edited by Cainy (2023-04-02 13:02:12)
Offline
I suspect the primary proximate problem is that you are running startx from your shell rc and sourcing this from a display manager. Pick one way of starting X.
But more broadly, you are using OMZ and "larbs" content. Either one of those on their own is known to break nearly everything in spectacular, suprising, and confusing ways. Get rid of both of these.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yes I used the larbs script at the very beginning of my journey. It was a bad idea but I thought wow great this will give me a great headstart. Now I don't even know what is generated by larbs and what not, could you maybe give me some hints on what to remove? I really like OMZ so when possible I would like to keep that..
Also, what do you mean by "running startx from your shell rc" ? Where in my zshrc am I running startx?
Last edited by Cainy (2023-04-02 13:20:14)
Offline
You have two choices: 1) remove everything and install arch properly, or 2) seek support for your system from the authors of the tools you used to create your arch-derivative system.
We do not / cannot support installations from third party tools / scripts on these forums.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yes I used the larbs script at the very beginning of my journey. It was a bad idea but I thought wow great this will give me a great headstart. Now I don't even know what is generated by larbs and what not, could you maybe give me some hints on what to remove?
That statement captures the very essence of why we don't support third party installers. You have no idea what they did, and neither do we. By policy, we would generally close and dust bin a thread such as this, but you seem to understand the problem. Rather than close this thread outright, allow me to suggest you do reinstall using the guide. Use this opportunity and the community will help with any glitches along the way. As to zsh, I use it myself as a general shell. I still write scripts in Bash. As to omz, I played with it once, it was interesting, but as a long time member of this community I have not seen another project cause as many really subtle problems.
Last edited by ewaller (2023-04-02 15:35:50)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Thanks to both of you..
It was totally unforeseeable for me that OMZ can cause problems while only solving minor issues for me. Also, as a default windows NPC, seeing luke smith demonstrate all this fancy linux stuff in his videos just makes you want to use this script but immediately after using it i regretted some parts of it..
For now, I will just continue using startx like i did before but will do a complete reinstall of the system when i have the time to do so..
Offline
Pages: 1