On Friday 19 April 2024 04:05:24 Dr. Nikolaus Klepp via tde-users wrote:
I just ran into polkit hell + network-manager - like
Bill. This is how to
get network-manager working for your user, so you do not need to run it as
root:
Check your permissions - if you get "yes" on all lines, you are good, but
then you won't have network-manager issues at all: $ nmcli gen permissions
If you don't get "yes on all lines, then create this file:
#/etc/polkit-1/rules.d/50-org.freedesktop.NetworkManager.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.NetworkManager.network-control")
return "yes";
});
Now check again - all lines should say "yes":
$ nmcli gen permissions
Now you can do bad stuff with network connections from all your systms
users, but as you most likely are the only system user it should be ok:
$ nmtui
Nik
Hi Nik!
At present my network is working just fine; although tdenetworkmanager does
sometimes crash, especially if I have gone offline then back online. Then it
crashes, must be restarted, and I must also restart a few other network
tools. It doesn't happen too often, seems to go in spurts.
A few days ago, I had a weird incident where the system froze, then shut down,
and restarted a new session (with tdenetworkmanager already started up), and
I thought that this was very odd, as it seems like I was deliberately
disconnected by somebody, maybe in an attempt to learn something about my
connection? Anyway, I just restarted all over, and things have running just
fine since then, so I will hope that it was only a glitch.
As for polkit-type stuff, I believe I said it before, but these seem to be my
problem children in relation to polkit:
polkit-agent-tde
xiccd
at-spi-bus-laun
agent
applet.py
xapp-sn-watcher
I have them marked not to be installed, and if I do catch them getting
installed, then I use apt-get or dpkg to purge them. When they are installed,
they seem always to run at the top of top, and hog a lot of cpu. When they
are purged from my system, it seems to run better overall, and certainly
doesn't miss these packages.
Your comments and solution will be filed away in my notes, however, as they
may prove to be useful at some point in the future.
Thanks Nik!
Bill