fairyglade / ly

display manager with console UI
Do What The F*ck You Want To Public License
5.47k stars 305 forks source link

Gentoo (openrc) issue [SOLVED] #677

Closed sudo-pkill closed 3 months ago

sudo-pkill commented 3 months ago

I git cloned ly and ran zig build install and all that stuff for openrc, i tried removing agetty and it returned a not found error, i didnt think much of it until i restarted and it booted into agetty, i went into etc/inittab and edited it a bit and it did not work it just left me in loop where i had to chroot from a usb. so how can i set it up for gentoo?

AnErrupTion commented 3 months ago

@atrpwq The instructions in the README are correct. The "not found" error shouldn't be problematic either. In the /etc/inittab file, you should comment the line that looks like the following:

c2:2345:respawn:/sbin/agetty 38400 tty2 linux 

What is that "loop" you're talking about? Could you be a bit more precise on that, please?

sudo-pkill commented 3 months ago

@AnErrupTion I followed some stupid tutorial online to figure it out after setting up dwm and gentoo, it ended up just throwing me into a constant loop where i couldnt login to xinitrc or xsession, and when i logged into shell to fix the the issue it kicked me to agetty then after a few seconds it prompted me to ly. I got the usb i used to install gentoo and i had to chroot back into my install and delete the command i found online.

sudo-pkill commented 3 months ago

@AnErrupTion i deleted gentoo and installed artix with openrc and its still not working. ly 1.0.2 needs sudo privileges, i downgraded to 1.0.1 and now its not working because agetty.tty2 is colliding with ly

AnErrupTion commented 3 months ago

@atrpwq I'm able to run Ly on Artix OpenRC with XFCE. I simply ran:

# zig build installopenrc
# rc-update add ly
# rc-update del agetty.tty2
# rc-update del lightdm

Then Ly ran after reboot.

ly 1.0.2 needs sudo privileges

I'm not sure what you're trying to do here. You shouldn't run it manually, the service will do that for you automatically.

sudo-pkill commented 3 months ago

on boot, it required sudo priviledges, i ran whats in the codeblocks, and it failed. when i changed to an older version, it ran fine, but then agetty tty2 kept on loading without a purpose and interuppting not letting me login. on arch however, it runs perfectly fine.

AnErrupTion commented 3 months ago

@atrpwq What failed when you ran the commands?

sudo-pkill commented 3 months ago

@AnErrupTion nothing failed when i enter the commands, itd js be interupted by agetty tty2 (after i disabled it), and create some like weird bug, where i couldt enter my password and its just start freaking out.

AnErrupTion commented 3 months ago

@atrpwq I'm honestly not sure how the TTY still appears for you (at least on Artix). I made a fresh install of Artix like I said before and installing Ly worked just fine. Is there something else you did I'm not aware of? I don't really understand...

sudo-pkill commented 3 months ago

@AnErrupTion reread the guide, i did it incorrectly, ill try it again and return whether it works or nah, thx tho

sudo-pkill commented 3 months ago

@AnErrupTion same issue (i booted bare metal instead), just says "starting ly" then starts agetty.tty1

sudo-pkill commented 3 months ago

i tried installing lightdm a few days ago on artix, i could be missing a package

AnErrupTion commented 3 months ago

@AnErrupTion same issue (i booted bare metal instead), just says "starting ly" then starts agetty.tty1

If you change the TTY, you also need to change it in Ly's config and must disable the right agetty service (if not already done, of course).

sudo-pkill commented 3 months ago

@AnErrupTion i disabled agetty 2 as the guide told me, and i ran all the commands like zig build [installopenrc], rc-update add ly default and rc-update del agetty.tty2, still im left with an agettytty1 login screen, and now when i switch to tty2 it doesnt show agetty, just "Artix Linux... (tty2)", i tried it with tty1, and edited config.ini to switch tty = 2 to tty = 1, same thing happend

DoctorKnowsBetter commented 3 months ago

Hi all. Just installed Artix with openrc and ly stopped working. It is true that the service does not work properly. @atrpwq You're doing the right thing, it's the service that's the problem.

DoctorKnowsBetter commented 3 months ago

Found the problem! You forgot to assign the EXE_NAME variable in ly-openrc. Please fix it!!!

DoctorKnowsBetter commented 3 months ago

https://github.com/fairyglade/ly/pull/682 - created a pull request to fix the error.

sudo-pkill commented 3 months ago

ah sweet, thanks doctor

AnErrupTion commented 3 months ago

I have absolutely no idea how I forgot about this, but I did. And I'm even more confused about how it worked for me in a VM. Regardless, the issue is now fixed, so can you confirm this @atrpwq please?

sudo-pkill commented 3 months ago

alr, ill try it again but ill have to dual boot artix with arch (OS i got now) ill come back with the results :)), btw maybe it was different on the virtual machine cus u got the stable iso (last updated a year ago)

sudo-pkill commented 3 months ago

@AnErrupTion btw since this is a bug fix, is it added onto v1.0.2 (says last updated 6 days ago) or is it released as v1.0.3?

AnErrupTion commented 3 months ago

@AnErrupTion btw since this is a bug fix, is it added onto v1.0.2 (says last updated 6 days ago) or is it released as v1.0.3?

That issue is only present in the master branch, so it doesn't need backporting.

sudo-pkill commented 3 months ago

alr, btw @DoctorKnowsBetter whered u discover this issue (pwd)

sudo-pkill commented 3 months ago

@AnErrupTion @DoctorKnowsBetter it works, tyvm :)), i can go back to artix now. ill mark this solved