Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] NetworkManager problem after migrating to systemd

213 views
Skip to first unread message

João Matos

unread,
Oct 29, 2012, 10:50:02 AM10/29/12
to
Hi List.

I've heard here that systemd is faster the openrc, so I decided to try it. And indeed, it is :). I've spent many hours to make my system totaly functional again, but it totally worth it.

There is just one little problem remaining: NetworkManager starts, I can connect the internet, but my kde applet cant see it is started, so I can't manage my connections. It seems some people had similar problem, and were able to solve it, but the topics weren't clear enough for me. I also seems that there is something to to with pam or polkit.

The topics I'm talking about:

https://bbs.archlinux.org/viewtopic.php?id=144763

http://forums.gentoo.org/viewtopic-t-924004-start-0.html

Since we're talking about systemd, is it possible to it display something during de boot, as openrc did? I just got a black screen until kdm starts. I'll work on plymout, but I still think the informations r important.

Thank you,
--
João de Matos
Linux User #461527

Canek Peláez Valdés

unread,
Oct 29, 2012, 12:40:04 PM10/29/12
to
On Mon, Oct 29, 2012 at 8:43 AM, João Matos <jao...@gmail.com> wrote:
> Hi List.
>
> I've heard here that systemd is faster the openrc, so I decided to try it.
> And indeed, it is :). I've spent many hours to make my system totaly
> functional again, but it totally worth it.

Kudos.

> There is just one little problem remaining: NetworkManager starts, I can
> connect the internet, but my kde applet cant see it is started, so I can't
> manage my connections. It seems some people had similar problem, and were
> able to solve it, but the topics weren't clear enough for me. I also seems
> that there is something to to with pam or polkit.

You need to move everything to use systemd. If an ebuild has optional
dependencies on both systemd and consolekit, you need to set systemd,
and disable consolekit. At least that's the way it works now with
GNOME, and even some networkmanager versions needed to pick only one
between consolekit and systemd. For good measure, you should be able
to uninstall consolekit; it's deprecated, nobody is maintaining it,
and it relies on hacks to work. systemd's session tracking is much
more reliable and nicer.

In particular, the following packages should be using the systemd USE
flag, and not the consolekit one:

net-misc/networkmanager
sys-apps/accountsservice (don't know if KDE uses this)
sys-auth/pambase (<==== CRITICAL)
sys-auth/polkit (<==== CRITICAL)
sys-fs/udisks (optional, I think)
sys-power/upower (optional, I think)

It used to be that you could install systemd, check it out, and if you
didn't like it you just didn't used it (there was not even the need to
uninstall it). However, consolekit is for all practical purposes dead,
and systemd does that job better and with more features. So now you
need to decide at compile time which one you wanna use; you cannot mix
them.

> The topics I'm talking about:
>
> https://bbs.archlinux.org/viewtopic.php?id=144763
>
> http://forums.gentoo.org/viewtopic-t-924004-start-0.html
>
> Since we're talking about systemd, is it possible to it display something
> during de boot, as openrc did? I just got a black screen until kdm starts.
> I'll work on plymout, but I still think the informations r important.

Plymouth will just hide even more information; it looks really pretty,
though. I don't think you need to checkout anything at boot (I'm
pretty sure the problems are the ones I mentioned it), but to debug
systemd put this on your kernel command line: systemd.log_level=debug.
All the boot output gets logged into /var/log/boot.log; also, using
journalctl -b will give you all the output from the system from the
last time you rebooted.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

João Matos

unread,
Oct 29, 2012, 6:50:03 PM10/29/12
to
I found the solution a few hours ago here http://en.gentoo-wiki.com/wiki/Systemd#PAM_support:_su.2C_sudo.2C_screen... . Now everything is fine :)

About the packages you mentioned, you've ran 'equery uses pambase polkit udisks upower', and none of them has the userflag systemd. Anyway, systemd is globally set on my system, and it is good to know I can disable consolekit. I'll try it right now.

Canek Peláez Valdés

unread,
Oct 29, 2012, 7:10:02 PM10/29/12
to
On Mon, Oct 29, 2012 at 4:42 PM, João Matos <jao...@gmail.com> wrote:
> I found the solution a few hours ago here
> http://en.gentoo-wiki.com/wiki/Systemd#PAM_support:_su.2C_sudo.2C_screen...
> . Now everything is fine :)
>
> About the packages you mentioned, you've ran 'equery uses pambase polkit
> udisks upower', and none of them has the userflag systemd.

# equery uses pambase polkit udisks upower
[ : I - package is installed with flag ]
* Found these USE flags for sys-auth/pambase-20120417-r1:
[snip]
+ + systemd : Use pam_systemd module to register user sessions
in the systemd control group hierarchy.

* Found these USE flags for sys-auth/polkit-0.107-r1:
[snip]
+ + systemd : Use sys-apps/systemd instead of
sys-auth/consolekit for session tracking

* Found these USE flags for sys-fs/udisks-2.0.0:
[snip]
+ + systemd : Support sys-apps/systemd's logind

* Found these USE flags for sys-power/upower-0.9.18:
[snip]
+ + systemd : Use sys-apps/systemd for hibernate and suspend

Depends on the versions ;)

> Anyway, systemd
> is globally set on my system, and it is good to know I can disable
> consolekit. I'll try it right now.

The problem with ck is that it will make some things fail subtlety. I
did uninstall it, and everything has been working great (including the
awesome app-admin/system-config-printer-gnome).

João Matos

unread,
Oct 30, 2012, 5:50:01 PM10/30/12
to


2012/10/29 Canek Peláez Valdés <can...@gmail.com>

On Mon, Oct 29, 2012 at 4:42 PM, João Matos <jao...@gmail.com> wrote:
> I found the solution a few hours ago here
> http://en.gentoo-wiki.com/wiki/Systemd#PAM_support:_su.2C_sudo.2C_screen...
> . Now everything is fine :)
>
> About the packages you mentioned, you've ran 'equery uses pambase polkit
> udisks upower', and none of them has the userflag systemd.

# equery uses pambase polkit udisks upower
[        : I - package is installed with flag     ]
 * Found these USE flags for sys-auth/pambase-20120417-r1:
[snip]
 + + systemd       :  Use pam_systemd module to register user sessions
in the systemd control group hierarchy.

 * Found these USE flags for sys-auth/polkit-0.107-r1:
[snip]
 + + systemd       : Use sys-apps/systemd instead of
sys-auth/consolekit for session tracking

 * Found these USE flags for sys-fs/udisks-2.0.0:
[snip]
 + + systemd       : Support sys-apps/systemd's logind

 * Found these USE flags for sys-power/upower-0.9.18:
[snip]
 + + systemd       : Use sys-apps/systemd for hibernate and suspend

Depends on the versions ;)

yep. I've used ~amd64 for about 5 years, but last year I decided to use amd64. Maybe systemd suport is better in more recent packages.

Well, I've just find out a new little problem: PulseAudio. I've found nothing about systemd+pulseaudio on google, what means that it is too easy to some one carry about writing about it, or nobody tried it yet. Does anyone knows how to start it? Maybe writing a pulseaudio.service or something like that.

> Anyway, systemd
> is globally set on my system, and it is good to know I can disable
> consolekit. I'll try it right now.

The problem with ck is that it will make some things fail subtlety. I
did uninstall it, and everything has been working great (including the
awesome app-admin/system-config-printer-gnome).

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


--
João de Matos
Linux User #461527
Graduando em Engenharia de Computação 2005.1
UEFS - Universidade Estadual de Feira de Santana

Canek Peláez Valdés

unread,
Oct 30, 2012, 6:40:02 PM10/30/12
to
Indeed it is. I don't run ~amd64, BTW; I just keyword some things (the
kernel, systemd+udev, and GNOME, basically).

> Well, I've just find out a new little problem: PulseAudio. I've found
> nothing about systemd+pulseaudio on google, what means that it is too easy
> to some one carry about writing about it, or nobody tried it yet. Does
> anyone knows how to start it? Maybe writing a pulseaudio.service or
> something like that.

Both projects have the same author: Lennart Poettering. There is
usually nothing to be done so they work together; in GNOME, PulseAudio
is started automatically by the session manager, I suppose it should
be something similar in KDE-land. Actually, since PA is a user (not a
system) service, the init system you use doesn't matter.

João Matos

unread,
Oct 30, 2012, 7:00:01 PM10/30/12
to


2012/10/30 Canek Peláez Valdés <can...@gmail.com>

The past week I've changed my whole system (get rid of genkernel, installed systemd...). It's been difficult to find out how to solve some problem that appear, because I have to guess what originated it. But I think I have a progress with that one: revdep-rebuild found a problem with pulseaudio (and some others), I still get an error while I compile it, but I'm working on it.

I was thinking It should be a service, since it was on my rc default level. But it seems it is not encouraged anymore. Thank you anyway.

Canek Peláez Valdés

unread,
Oct 30, 2012, 7:00:02 PM10/30/12
to
System wide mode was introduced in 0.9.3 six years ago. Since then it
hasn't been recommended for normal usage, just for some embedded
systems and other situations where the notion of "user" doesn't make
sense:

http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide
0 new messages