Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: spike32 on 03 January 2021, 16:14:03

Title: Enable Ly display manager service
Post by: spike32 on 03 January 2021, 16:14:03
Hello everybody! I'm new to the Artix world and I already find it powerful and interesting. I've just finished a fresh installation and I wanted to use the Ly DM. So I found this version which is compatible with runit: https://github.com/drozdowsky/ly-void

By the way, it assumes that a service is enabled from /etc/sv/service_name to /var/service/, whereas Artix uses /etc/runit/sv/service_name linked to /run/runit/service.

So, if I do
Code: [Select]
sudo ln -s /etc/sv/ly-runit-service /var/service/
as the README suggests, the DM doesn't start for obvious reasons. So my question is, how do I enable the Ly DM service?

Thanks folks!
Title: Re: Enable Ly display manager service
Post by: Artist on 03 January 2021, 18:00:35
For runit services the following is required:
sudo ln -s /etc/runit/sv/<service> /run/runit/service/
You can check https://wiki.artixlinux.org/Main/Runit for more info.
Title: Re: Enable Ly display manager service
Post by: spike32 on 03 January 2021, 18:24:28
For runit services the following is required:
sudo ln -s /etc/runit/sv/<service> /run/runit/service/
You can check https://wiki.artixlinux.org/Main/Runit for more info.
Thank you for your reply. I know that, but there is no ly-runit-service in /etc/runit/sv/
Title: Re: Enable Ly display manager service
Post by: Artist on 03 January 2021, 18:32:33
Ly is not in our repo (also, for arch it is only in aur) so you would have to create the /etc/runit/sv/ly/run file manually
Title: Re: Enable Ly display manager service
Post by: spike32 on 03 January 2021, 18:38:46
Ly is not in our repo (also, for arch it is only in aur) so you would have to create the /etc/runit/sv/ly/run file manually
How do I create it?
Title: Re: Enable Ly display manager service
Post by: Artist on 03 January 2021, 19:14:20
you might try using the content of https://raw.githubusercontent.com/drozdowsky/ly-void/master/res/ly-runit-service/run
Title: Re: Enable Ly display manager service
Post by: spike32 on 03 January 2021, 19:48:37
So I just have to paste this content to /etc/runit/sv/ly/run ?
Title: Re: Enable Ly display manager service
Post by: Artist on 03 January 2021, 19:59:08
indeed, and make the file executable and create the link for the directory
Title: Re: Enable Ly display manager service
Post by: spike32 on 04 January 2021, 15:26:01
indeed, and make the file executable and create the link for the directory
So, I have created the file /etc/runit/sv/ly/run with this content https://raw.githubusercontent.com/drozdowsky/ly-void/master/res/ly-runit-service/run .
Then I have made it executable with sudo chmod a+x /etc/runit/sv/ly/run and created the link with sudo ln -s /run/runit/service/, but when I reboot the DM doesn't start.
Title: Re: Enable Ly display manager service
Post by: spike32 on 05 January 2021, 15:53:31
So, I have created the file /etc/runit/sv/ly/run with this content https://raw.githubusercontent.com/drozdowsky/ly-void/master/res/ly-runit-service/run .
Then I have made it executable with sudo chmod a+x /etc/runit/sv/ly/run and created the link with sudo ln -s /run/runit/service/, but when I reboot the DM doesn't start.
up
Title: Re: Enable Ly display manager service
Post by: spike32 on 05 January 2021, 20:42:25
Okay I have an update. I have created /etc/runit/sv/ly-runit-service/run with this content https://raw.githubusercontent.com/drozdowsky/ly-void/master/res/ly-runit-service/run .

Then I tried:
- sudo ln -s /etc/runit/sv/ly-runit-service /etc/runit/service/
but if I try:
- sudo sv restart ly-runit-service
it says:
- fail: ly-runit-service: unable to change to service directory: file does not exist

So, I tried to do:
- sudo ln -s /etc/runit/sv/ly-runit-service /etc/runit/runsvdir/current/
and then:
- sudo sv restart ly-runit-service
and it says:
- timeout: down: ly-runit-service: 1s, normally up, want up
so I think that for some reason it is not able to start the service.

The strange thing is that it doesn't recognize the service when it is placed where it should be, and it does recognize the service when it is not where it should be. Why?
Title: Re: Enable Ly display manager service
Post by: spike32 on 06 January 2021, 22:36:34
Okay I have an update. I have created /etc/runit/sv/ly-runit-service/run with this content https://raw.githubusercontent.com/drozdowsky/ly-void/master/res/ly-runit-service/run .

Then I tried:
- sudo ln -s /etc/runit/sv/ly-runit-service /etc/runit/service/
but if I try:
- sudo sv restart ly-runit-service
it says:
- fail: ly-runit-service: unable to change to service directory: file does not exist

So, I tried to do:
- sudo ln -s /etc/runit/sv/ly-runit-service /etc/runit/runsvdir/current/
and then:
- sudo sv restart ly-runit-service
and it says:
- timeout: down: ly-runit-service: 1s, normally up, want up
so I think that for some reason it is not able to start the service.

The strange thing is that it doesn't recognize the service when it is placed where it should be, and it does recognize the service when it is not where it should be. Why?
Up
Title: Re: Enable Ly display manager service
Post by: Artist on 07 January 2021, 21:13:52
sudo ln -s /etc/runit/sv/ly-runit-service /etc/runit/service/ is not correct
as per wiki:
Quote
Enable service (in runlevel default)# ln -s /etc/runit/sv/service_name /run/runit/service
Title: Re: Enable Ly display manager service
Post by: xanadu on 07 January 2022, 00:02:35
Ly is not in our repo (also, for arch it is only in aur) so you would have to create the /etc/runit/sv/ly/run file manually
In the meantime, Ly made it into universe.
But the init-packages are still missing.
Title: Did anybody create an init package for Ly?
Post by: xanadu on 07 January 2022, 18:52:41
Did anybody create an init package for the Ly display manager?

https://universe.artixlinux.org/x86_64/ly-0.5.2-2.1-x86_64.pkg.tar.zst (https://universe.artixlinux.org/x86_64/ly-0.5.2-2.1-x86_64.pkg.tar.zst)

https://github.com/nullgemm/ly (https://github.com/nullgemm/ly)
Title: Re: Did anybody create an init package for Ly?
Post by: strajder on 07 January 2022, 19:06:23
You already posted in the older topic (https://forum.artixlinux.org/index.php/topic,2136.msg22605/topicseen.html#msg22605). Please don't create multiple similar topics. Merging.

On topic, why not create a package for the init you are using yourself?
Title: Re: Enable Ly display manager service
Post by: xanadu on 07 January 2022, 22:48:09
On topic, why not create a package for the init you are using yourself?

Before I will try to do so, I'd like to know, if anybody did so before me. Since it is in universe, it is actually quite likely that sbd. already created some init for it.