The officially official Devuan Forum!

You are not logged in.

#26 2018-09-16 22:12:18

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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

#27 2018-09-17 05:59:03

Debuser2018
Member
From: Muvattupuzha
Registered: 2018-01-24
Posts: 117  
Website

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

@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

#28 2018-09-18 14:27:38

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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

#29 2018-09-21 17:16:27

Debuser2018
Member
From: Muvattupuzha
Registered: 2018-01-24
Posts: 117  
Website

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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

#30 2018-09-21 17:59:45

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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

#31 2018-09-22 21:15:54

Debuser2018
Member
From: Muvattupuzha
Registered: 2018-01-24
Posts: 117  
Website

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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

#32 2018-09-23 00:04:08

HextorBRX
Member
Registered: 2017-08-20
Posts: 106  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

OpenRC is not recommended because it is does not have extensive testing on Devuan, yet.

Offline

#33 2018-09-23 00:05:32

golinux
Administrator
Registered: 2016-11-25
Posts: 3,137  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

Quite a few users have gotten openrc running just fine.  I am not one of them.  Still mostly on jessie.

Offline

#34 2018-09-23 02:19:11

ChuangTzu
Member
Registered: 2018-06-13
Posts: 148  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

openRC is working fine here on ASCII.

Offline

#35 2018-09-23 04:34:12

Debuser2018
Member
From: Muvattupuzha
Registered: 2018-01-24
Posts: 117  
Website

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

ChuangTzu wrote:

openRC is working fine here on ASCII.

Did you choose openRC during the installation or converted to it?

Offline

#36 2018-09-23 10:27:56

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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

#37 2018-09-23 12:49:30

Debuser2018
Member
From: Muvattupuzha
Registered: 2018-01-24
Posts: 117  
Website

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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

#38 2018-09-23 13:22:28

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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

#39 2018-09-23 14:45:16

ChuangTzu
Member
Registered: 2018-06-13
Posts: 148  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

Debuser2018 wrote:
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

#40 2018-09-23 14:47:36

ChuangTzu
Member
Registered: 2018-06-13
Posts: 148  

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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?

Offline

#41 2018-09-23 15:46:15

Debuser2018
Member
From: Muvattupuzha
Registered: 2018-01-24
Posts: 117  
Website

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

ChuangTzu wrote:
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

#42 2018-10-22 06:05:30

Debuser2018
Member
From: Muvattupuzha
Registered: 2018-01-24
Posts: 117  
Website

Re: [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning

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:
25HM5y.png

Last edited by Debuser2018 (2018-10-22 06:21:20)

Offline

Board footer