Re: ly dm dinit scripts
Reply #12 –
I changed back to "/usr/bin/ly-dm". But I have faced some issues:
no matter if I set "tty = 7" in /etc/ly/config.ini, ly always starts on tty 1.
WIth the default /etc/dinit.d/config/console.conf (tty 1 to 6) trying to start ly, doesn't start it but it gives a bunch of error on said tty ( tty 1), even though in dinitctl status the service's state is STARTED.
Second try, I modified /etc/dinit.d/config/console.conf (tty 2 to 6), so ly actually starts and shows up on tty 1, but when I try to login it gives this error: /usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
Third try, I created this file
cat /etc/X11/Xwrapper.config
allowed_users = anybody
Now I don't get the error above, but Xorg crashes with this error (this happens regardless if I set "tty = 1" or "tty = 7" in /etc/ly/config.ini, having set dinit tty between 2 and 6) :
[ 1892.706] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 1892.706] (EE)
Fatal server error:
[ 1892.707] (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied)
[ 1892.707] (EE)
[ 1892.707] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 1892.707] (EE) Please also check the log file at "/home/prova/.local/share/xorg/Xorg.1.log" for additional information.
[ 1892.707] (EE)
[ 1892.707] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 1892.707] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 1892.707] (EE) Server terminated with error (1). Closing log file.
That's weird, as I can normally start xorg with startx or xinit.