You are not logged in.

#1 2012-08-07 22:23:28

bwat47
Member
Registered: 2009-10-07
Posts: 638

Completely replacing consolekit with systemd?

I noticed on the systemd wiki it says its now possible to replace the now un-maintained consolekit's functionality with systemd, but I had some concerns before trying it, and was wondering if anyone has tried this yet.

1. I noticed the polkit-systemd package in the aur is marked out of date since june. Should I just build it myself with the abs?

2. GDM and Gnome-Session still seem to require consolekit to be installed, if I have a systemd enabled polkit will they still try and use consolekit, or do they just support both at runtime?

Offline

#2 2012-08-07 22:33:45

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: Completely replacing consolekit with systemd?

bwat47 wrote:

I noticed on the systemd wiki it says its now possible to replace the now un-maintained consolekit's functionality with systemd, but I had some concerns before trying it, and was wondering if anyone has tried this yet.

1. I noticed the polkit-systemd package in the aur is marked out of date since june. Should I just build it myself with the abs?

2. GDM and Gnome-Session still seem to require consolekit to be installed, if I have a systemd enabled polkit will they still try and use consolekit, or do they just support both at runtime?

I just put a polkit package with systemd support (and CK support, if everything works as intended) up here: <https://dev.archlinux.org/~tomegun/>.

(That's clearly not all you need, but hope it helps a bit).

Offline

#3 2012-08-08 06:16:41

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: Completely replacing consolekit with systemd?

tomegun wrote:

I just put a polkit package with systemd support (and CK support, if everything works as intended) up here: <https://dev.archlinux.org/~tomegun/>.

(That's clearly not all you need, but hope it helps a bit).

Is there a plan to remove Console kit -make it optional for the systemd crowd- in the (not so distant) future ???

Offline

#4 2012-08-08 07:41:46

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Completely replacing consolekit with systemd?

bwat47 wrote:

2. GDM and Gnome-Session still seem to require consolekit to be installed, if I have a systemd enabled polkit will they still try and use consolekit, or do they just support both at runtime?

I think you should rebuild them without the ck dep...but i'm not sure. I'm waiting for ck removal too (hope with gnome3.6 ck will be completely removed from gnome, and then from every de).
@tomegun, is there a possibility that your polkit with systemd support will hit some repo?
Thanks!

Offline

#5 2012-08-10 23:24:53

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

Re: Completely replacing consolekit with systemd?

Hello,

i'm also interested in replacing console-kit. Is there a list of packages which have to be build with systemd support? And do i have to make changes to my pam config?

Regards,

Robert

Offline

#6 2012-08-10 23:42:56

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Completely replacing consolekit with systemd?

xfce4-session must also be altered, but there is no patch yet. As far as I know it uses consolekit only for shutdown and restart, so it is not too difficult.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2012-08-10 23:58:09

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: Completely replacing consolekit with systemd?

nierro wrote:

@tomegun, is there a possibility that your polkit with systemd support will hit some repo?

I committed it to SVN, but it depends on the maintainer (JGC), and on whether or not any problems crop up with it.

Offline

#8 2012-09-01 10:26:15

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: Completely replacing consolekit with systemd?

I just tested—you still have to recompile polkit, but the versions of gdm and gnome-session in the repos can be used with a ck-less systemd without having to recompile them.

So:

  • recompile polkit with systemd

  • remove consolekit with pacman -Rdd consolekit

  • restart

and everything should still work.

Offline

#9 2012-09-01 14:50:17

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Completely replacing consolekit with systemd?

I followed the steps Runiq layed out a couple days ago, and still can't mount anything.  I'm not sure where to start debugging; is the wiki incorrect on this?  tomegun, is your package different in any way other than "--enable-systemd" being added to the build section of the PKGBIULD?

Last edited by ANOKNUSA (2012-09-01 14:51:06)

Offline

#10 2012-09-01 16:07:23

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: Completely replacing consolekit with systemd?

installed tomegun's polkit and removed consolekit using Rdd as suggested by Runiq. Seems to be working fine, I can mount removable drivers, smb shares etc.. in nautilus and gdm works fine. However after doing this for some strange reason the gnome-shell networkmanager applet is showing the wired connection icon (computer screen) when I am connected to wireless instead of the wireless bars (otherwise the applet is working totally fine). Not sure if removing consolekit caused it or the polkit package, not a big deal though.

EDIT: I also can't access the advanced networking options in the gnome network settings now, its greyed out. Perhaps gnome still has some bugs with systemd only setup. I'll try again when gnome 3.6 comes out smile

Last edited by bwat47 (2012-09-01 16:10:02)

Offline

#11 2012-09-01 16:09:50

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: Completely replacing consolekit with systemd?

@bwat47: you need to recompile NetworkManager with systemd/logind support.

Offline

#12 2012-09-01 16:12:58

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: Completely replacing consolekit with systemd?

tomegun wrote:

@bwat47: you need to recompile NetworkManager with systemd/logind support.

Ugh, I wish these projects would support systemd as a runtime option rather than compile time!

Offline

#13 2012-09-01 16:16:25

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: Completely replacing consolekit with systemd?

bwat47 wrote:

installed tomegun's polkit and removed consolekit using Rdd as suggested by Runiq. Seems to be working fine, I can mount removable drivers, smb shares etc.. in nautilus and gdm works fine. However after doing this for some strange reason the gnome-shell networkmanager applet is showing the wired connection icon (computer screen) when I am connected to wireless instead of the wireless bars (otherwise the applet is working totally fine). Not sure if removing consolekit caused it or the polkit package, not a big deal though.

EDIT: I also can't access the advanced networking options in the gnome network settings now, its greyed out. Perhaps gnome still has some bugs with systemd only setup.

A clarification: I just recompiled polkit with ABS (version 0.105 vs. tomegun's 0.107). At first I also recompiled gdm and gnome-session, found that everything worked, and worked my way back to a minimal working version. I eventually ended up using the recompiled gdm and gnome-session packages, though; but that was mainly to get pacman to shut up about the unresolved consolekit dependency.

ANOKNUSA wrote:

still can't mount anything.  I'm not sure where to start debugging

How do you mount things? I'm using a custom Python script that runs udisks over dbus in the background, so I need a working udisks.service and a working dbus session bus (check for DBUS_SESSION_BUS_ADDRESS and, for good measure, see that loginctl shows an active session for your user).

Last edited by Runiq (2012-09-01 16:23:29)

Offline

#14 2012-09-03 11:42:40

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Completely replacing consolekit with systemd?

Using xfce 4.10...replaced polkit with tomegun's one, but i can't mount as user, it needs my password. Probably i should recompile xfce4-session with systemd support, while gnome for example, already has runtime systemd support, i guess.
But i was wondering: can you hibernate/suspend too from the user menu, without consolekit?
EDIT: well, I finally managed to get it working!
I enabled systemd support in repo's polkit, removed consolekit with "pacman -Rdd" and now i'm fine! I'm using this kind of service to start xfce4: https://wiki.archlinux.org/index.php/Sy … rvice_file ...and everything works! Wow, i'm really happy now big_smile
EDIT2:damn, everything works, but it asks me for root privileges to power off or reboot...any solution?
EDIT3: i found a solution: create a botton that run "sudo systemctl reboot" etc etc, after altering my /etc/sudoers not to ask for a password. It now works.
Btw, suddenly my notification area is no more used by applications: it is empty. If i open for example guayadeque, its icon is not shown there, but in the middle of the desktop! Sure, no kidding... any idea? smile
EDIT4 (last) : last problem seems gone, well don't know why, but it sounds good wink

Last edited by nierro (2012-09-03 18:34:48)

Offline

#15 2012-09-10 14:04:21

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: Completely replacing consolekit with systemd?

Tried compiling gnome-session, gdm, polkit, and networkmanager with --enable-systemd with ABS, again most things worked fine, but still had the exact same issues with networkmanager (showing wrong icon in gnome-shell, can't access advanced network options). Guess its just not meant to be yet sad

Last edited by bwat47 (2012-09-10 14:05:21)

Offline

#16 2012-09-10 19:21:10

Anaki
Member
Registered: 2008-05-14
Posts: 8

Re: Completely replacing consolekit with systemd?

On my Gentoo box I built my entire system with systemd support (without consolekit), to be able to use NetowrkManager i had to add pam_systemd.so
to /etc/pam.d/system-auth:


session required pam_systemd.so

Offline

#17 2012-09-28 00:52:06

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: Completely replacing consolekit with systemd?

I've done it! I was being stupid and using the wrong configure option when compiling networkmanager from the abs, even though it was right in front of my face. I needed to change --with-session-tracking=ck to --with-session-tracking=systemd. I also compiled gdm and gnome-session from abs, removing the consolekit dependency from both, and changing --with-systemd=no to yes in the gdm pkgbuild. I'm using the polkit from [testing] and everything works perfectly.

Does anyone know, when gnome 3.6 hits the repos will this still be necessary?

Offline

#18 2012-09-28 01:48:42

ratcheer
Member
Registered: 2011-10-09
Posts: 924

Re: Completely replacing consolekit with systemd?

bwat47 wrote:

Does anyone know, when gnome 3.6 hits the repos will this still be necessary?

This is not a direct answer, but I do know that networkmanager will be switched to default to using systemd in the near future.

Tim

Offline

#19 2012-09-28 02:19:44

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: Completely replacing consolekit with systemd?

ratcheer wrote:
bwat47 wrote:

Does anyone know, when gnome 3.6 hits the repos will this still be necessary?

This is not a direct answer, but I do know that networkmanager will be switched to default to using systemd in the near future.

Tim

Excellent smile Hopefully the gnome situation changes soon too smile.

Offline

Board footer

Powered by FluxBB