Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Cannot start lightdm on boot after switching to runit (Read 6936 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Cannot start lightdm on boot after switching to runit

Hi,

I recently installed Artix with OpenRC, but decided to migrate to runit without reinstalling. I managed to remove all the OpenRC packages, and install the runit equivalents, and everything is working perfectly except that I cannot get lightdm to run on boot. The first few times I tried to follow the instructions in the wiki, the directory /run/runit seemed to be absent, but then it magically appeared. (The first few times, I booted from my Artix USB stick and chrooted into my installation; the last time, I booted into the virtual terminals on my permanent Artix installation itself. Maybe that’s what made the difference? Either way, lightdm still won’t start.)

Also, lxde also fails to start, if I try to run startlxde. Startx works, but brings up twm (I think).

Both lightdm and lightdm-gtk-greeter are installed.

Can’t think of any other relevant information but happy to provide it if asked.

Thank you in advance.

Jeff

Re: Cannot start lightdm on boot after switching to runit

Reply #1
Do you have lightdm-runit installed?

Re: Cannot start lightdm on boot after switching to runit

Reply #2
Also, lxde also fails to start, if I try to run startlxde. Startx works, but brings up twm (I think).
You could just do:
echo 'startlxde' > .xinitrc
or edit the .xinitrc if your xinitrc file has custom things in it you'd like to keep


Re: Cannot start lightdm on boot after switching to runit

Reply #4
You should be able to just make the symlink from the /etc directory to the /run directory to enable it on bootup.

Code: [Select]
ln -s /etc/runit/sv/lightdm /run/runit/service

If that doesn't work, does it start if you manually start the service? ("sv up lightdm")

 

Re: Cannot start lightdm on boot after switching to runit

Reply #5
You should be able to just make the symlink from the /etc directory to the /run directory to enable it on bootup.

Code: [Select]
ln -s /etc/runit/sv/lightdm /run/runit/service


That did it! Thanks. Whilst I don’t know why it didn’t start automatically when installed, and in fairness perhaps it was working as designed, I had misinterpreted the “.../service” as a variable to be replaced with “.../lightdm”, and also perhaps wasn’t aware that the line above would place a symlink *in* the directory rather than replacing the directory with a symlink.

Thanks very much.