You are not logged in.
I found three ways to get shutdown and reboot working at the login screen. These all count as workarounds, not a fix.
1. Edit /etc/lightdm/lightdm.conf and change the greeter-user to root. That's probably a bad idea for security reasons.
2. Replace lightdm with lxdm (without recommends) and with the elogind backend/gobject libs, without consolekit. I did need to add libck-connector0.
3. Install consolekit (with lightdm, not lxdm). The approprate libraries will replace the ones for elogind, but elogind will still be installed. Reboot and shutdown will work from the login screen, but from the desktop, they'll just log you out.
Oh, wait. If you run 'pam-auth-update' and uncheck the box for elogind, then shutdown and reboot work in both desktop and login screen. (reboot or cycle through init 1 to get it to change.) This (#3) might actually be working.
Every time I've gone in to mess with polkit stuff, I've been disappointed with the results.
Offline
@fsmithred: I installed lxdm (without recommended) and it worked. poweroff and restart buttons are working. I had already purged lightdm. Thanks for the tip. But, I wonder if lightdm pulled from testing will work or not with ascii.
Offline
I doubt that newer versions of lightdm will be different. I think the deps are the same as the ascii version. (I know it still wants consolekit.)
Offline
How do I replicate this Devuan Ascii installation on other systems? Is there a way, to create a list of packages that are installed currently and installed during installation?
Offline
One way to do it is to save the package list in a file, then use that list on a new system to get the same installed packages. Check 'man dpkg' before you do this.
On the old system:
dpkg --get-selections > package_list
On the new system:
dpkg --set-selections < package_list
Another way is to run refractasnapshot in a root terminal and make a bootable live-iso copy of your current system (installed packages and configs) and use that to install on other computers. This is my preferred method.
Offline
Thank you for your answers @fsmithred.
BTW, at this point, how is OpenRC integration in Devuan? Is it an easy conversion from sysV to OpenRC. And, is OpenRC parallel start supported in Devuan.
Offline
OpenRC is not recommended because it is does not have extensive testing on Devuan, yet.
Offline
Quite a few users have gotten openrc running just fine. I am not one of them. Still mostly on jessie.
Online
openRC is working fine here on ASCII.
Offline
openRC is working fine here on ASCII.
Did you choose openRC during the installation or converted to it?
Offline
Installing openrc is pretty easy either way. I just converted an installed system to openrc to see if it's still easy, and it is. If you convert a system, do yourself a favor and do it in a terminal on the desktop, so you can copy/paste the long command you need to run after installing openrc. (Apt will tell you exactly what to do.)
apt-get install openrc will get you there. My older instructions on this talk about manually installing some libraries, but you no longer need to do that.
Search the forum for openrc and you'll find a few discussions about it.
Edit to add: I've made live isos of systems with openrc using refractasnapshot, and it works without doing anything special. Works easily in live-sdk, too.
Offline
OpenRC version is very old - 0.23.x in ASCII . Latest version available in Devuan is that of Debian - 0.34-3. OpenRC latest is 0.38.x
So, If I manually install OpenRC 0.34-3, librc1 from Beowulf, will it be OK? Is there a way, I can manually download openRC from Beowulf repositories without adding beowulf to sources.list? Is the packages originates from Debian Buster?
Offline
I doubt that the beowulf version of openrc will work in ascii. If you look at my old instructions, you'll see that libfdisk1 and util-linux are needed, and those two packages haven't been devuanized in beowulf yet. I have no idea if the ascii versions of those libraries will work with the beowulf openrc.
The openrc package itself is unchanged from debian, so yes, you could download the deb from buster. The other way to get it would be to add beowulf to sources.list and also pin beowulf to a lower priority, so you'd have to explicitly request packages from beowulf if you wanted them. (see 'man apt_preferences' for info on pinning.)
For reference, obsolete instructions: https://dev1galaxy.org/viewtopic.php?pid=4443#p4443
I hope you made an installable live-iso of your system before you try this.
Offline
ChuangTzu wrote:openRC is working fine here on ASCII.
Did you choose openRC during the installation or converted to it?
Initially installed sysv, changed to openRC after install. It's a drop in replacement, just copy/paste what apt tells you to at the end, so that it fully stops/shuts down the old scripts and starts openRC.
Offline
OpenRC version is very old - 0.23.x in ASCII . Latest version available in Devuan is that of Debian - 0.34-3. OpenRC latest is 0.38.x
So, If I manually install OpenRC 0.34-3, librc1 from Beowulf, will it be OK? Is there a way, I can manually download openRC from Beowulf repositories without adding beowulf to sources.list? Is the packages originates from Debian Buster?
What feature is in .34-3 that is not in .23? In other words, why do you "need" the newer version?
Offline
Debuser2018 wrote:OpenRC version is very old - 0.23.x in ASCII . Latest version available in Devuan is that of Debian - 0.34-3. OpenRC latest is 0.38.x
So, If I manually install OpenRC 0.34-3, librc1 from Beowulf, will it be OK? Is there a way, I can manually download openRC from Beowulf repositories without adding beowulf to sources.list? Is the packages originates from Debian Buster?
What feature is in .34-3 that is not in .23? In other words, why do you "need" the newer version?
I just thought seeing the version number, it is really old. That's all. Never knew about Devuanisation of these packages aren't yet reached in Beowulf.
Offline
UPDATE: I followed https://dev1galaxy.org/viewtopic.php?pid=11114#p11114 and installed lightdm. Now, lightdm works after commenting out "session optional pam_systemd.so" and adding session "optional pam_elogind.so" in /etc/pam.d/lightdm-greeter . Then, I did a sudo telinit 1 and returned to runlevel 2 - lightdm worked! Restart, shutdown buttons now works! Thanks to @fred43 for the helpful HOWTO. IMHO, Some info about using elogind and pam, policykit for Gnome, Cinnamon, XFCE etc with lightdm and other greeters should be added in the main page.
To add user list to lightdm, you have to edit /usr/share/lightdm/lightdm.conf.d/01_debian.conf and change "greeter-hide-users=true" to "greeter-hide-users=false".
I also installed lightdm-gtk-greeter-settings and executed "lightdm-gtk-greeter-settings-pkexec" and this is how it looks now:
Last edited by Debuser2018 (2018-10-22 06:21:20)
Offline