Trouble with Mageia Control Center

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Trouble with Mageia Control Center

Postby gerx » Feb 26th, '16, 15:55

Hi, I have problem with launching Mageia Control Center. When i try to launch from KDE icon I asked to enter the password but nothing happens. When i try to run mcc from console as user it writes:
"No protocol specified
Cannot be run in console mode."
Only can launch as root in console
gerx
 
Posts: 5
Joined: Feb 26th, '16, 15:46

Re: Trouble with Mageia Control Center

Postby boombaby » Feb 26th, '16, 18:24

See; now I didn't know you could do that!

When I typed mcc in terminal, it prompted for password, then I got the full-blown Mageia Control Centre GUI to work with. Amazing!

When I exited it, and was left back at the terminal, the following lines were after my command entry...

"/usr/sbin/drakmenustyle" is not executable [Menus] at /usr/libexec/drakconf line 831.
"/usr/sbin/drakbackup" is not executable [Backups] at /usr/libexec/drakconf line 831.
"/usr/sbin/tomoyo-gui" is not executable [Tomoyo Policy] at /usr/libexec/drakconf line 831.

Still got the MCC up though.

This is just FYI.
boombaby
 
Posts: 40
Joined: Dec 15th, '15, 11:18

Re: Trouble with Mageia Control Center

Postby doktor5000 » Feb 26th, '16, 19:34

@gerx: What Mageia version is that, and did you install updates yet? And please provide the output of the following commands, run as your regular user in a terminal:

Code: Select all
loginctl show-session $XDG_SESSION_ID
ps -ef|grep -v grep|grep -iE "polkit|policykit"
pkexec whoami     # you need to enter your root password when asked by the authentication dialog
echo $DISPLAY


and as root from:

Code: Select all
systemctl status polkit.service -a
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Trouble with Mageia Control Center

Postby gerx » Feb 29th, '16, 08:07

@doctor5000
Sorry for delay. Just updated but nothng new happened. I'm using Mageia 5.

And output of yours commands

Code: Select all
dima@linux:~$ loginctl show-session $XDG_SESSION_ID
Id=c1
Name=dima
Timestamp=Пн 2016-02-29 09:00:18 MSK
TimestampMonotonic=20929940
VTNr=1
Display=:0
Remote=no
Service=kdm-np
Scope=session-c1.scope
Leader=1139
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
dima@linux:~$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd   1838     1  0 09:00 ?        00:00:00 /usr/lib/polkit-1/polkitd --no-debug
dima      2577     1  0 09:01 ?        00:00:00 /usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1
dima@linux:~$ pkexec whoami
root
dima@linux:~$ echo $DISPLAY
:0
dima@linux:~$ sudo systemctl status polkit.service -a
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: active (running) since Пн 2016-02-29 09:00:31 MSK; 3min 36s ago
     Docs: man:polkit(8)
 Main PID: 1838 (polkitd)
   CGroup: /system.slice/polkit.service
           └─1838 /usr/lib/polkit-1/polkitd --no-debug

фев 29 09:00:30 linux.local polkitd[1838]: Started polkitd version 0.113
фев 29 09:00:31 linux.local polkitd[1838]: Loading rules from directory /etc/polkit-1/rules.d
фев 29 09:00:31 linux.local polkitd[1838]: Loading rules from directory /usr/share/polkit-1/rules.d
фев 29 09:00:31 linux.local polkitd[1838]: Finished loading, compiling and executing 3 rules
фев 29 09:00:31 linux.local polkitd[1838]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
фев 29 09:01:21 linux.local polkitd[1838]: Registered Authentication Agent for unix-session:c1 (system bus name :1.51 [/usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8)
фев 29 09:02:04 linux.local polkitd[1838]: Operator of unix-session:c1 successfully authenticated as unix-user:dima to gain TEMPORARY authorization for action org.mageia.drakconf.pkexec.run for unix-process:2770:9783 [/usr/bin/perl /usr/bin/drakconf] (owned by unix-user:dima)
фев 29 09:03:41 linux.local polkitd[1838]: Operator of unix-session:c1 successfully authenticated as unix-user:dima to gain ONE-SHOT autho
gerx
 
Posts: 5
Joined: Feb 26th, '16, 15:46

Re: Trouble with Mageia Control Center

Postby doktor5000 » Feb 29th, '16, 20:11

Looks all good. What happens if you run the following as normal user?
Code: Select all
/usr/bin/pkexec /usr/libexec/drakconf
/usr/bin/pkexec /usr/libexec/drakxconf
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Trouble with Mageia Control Center

Postby gerx » Mar 3rd, '16, 07:53

if I ran drakconf it writes again: "No protocol specified
Cannot be run in console mode."
If I ran drakxconf it asks password and opens simple wndow of mcc in console.
gerx
 
Posts: 5
Joined: Feb 26th, '16, 15:46

Re: Trouble with Mageia Control Center

Postby doktor5000 » Mar 3rd, '16, 16:28

Something seems broken about your X session. Did you maybe change your hostname recently and didn't do a reboot afterwards? Does it happen after a fresh boot, too?
And please show the output of the following commands run as regular user?

Code: Select all
xauth info
xauth list


And please copy&paste the complete command and it's output including the prompt, otherwise you may omit essential information.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Trouble with Mageia Control Center

Postby gerx » Mar 4th, '16, 07:40

Nope, i didn't change it. Maybe it connected somehow but my colleague had a problem with networks so he turned off firewall and changed iptables file
And the output of the commands
Code: Select all
dima@linux:~$[b]xauth info[/b]
Authority file:       /home/dima/.Xauthority
File new:             no
File locked:          no
Number of entries:    2
Changes honored:      yes
Changes made:         no
Current input:        (argv):1
dima@linux:~$ [b]xauth list[/b]
localhost.localdomain/unix:0  MIT-MAGIC-COOKIE-1  05eb4de7e31be5b2902884a2ea6ba407
localhost/unix:0  MIT-MAGIC-COOKIE-1  4c3b0ed4c3e4b7ae94168aa37e33c88f
gerx
 
Posts: 5
Joined: Feb 26th, '16, 15:46

activating mcc desktop icon

Postby gch3 » Mar 10th, '16, 21:09

Finally got updates working again. Had to wipe out mirror database and rebuild it using http instead of ftp. Works now but go figure why FTP won't work. Still have problem with MCC gui icon. No response when clicking on it but I can go into a terminal and type mcc and the graphical comes up and works. What do I need to check to fix this? Everything else works off the Desktop.
gch3
 
Posts: 70
Joined: Dec 25th, '13, 21:06

Re: activating mcc desktop icon

Postby doktor5000 » Mar 12th, '16, 15:38

What Mageia version is that, and did you install updates yet? And please provide the output of the following commands, run as your regular user in a terminal:
Code: Select all
loginctl show-session $XDG_SESSION_ID
ps -ef|grep -v grep|grep -iE "polkit|policykit"
pkexec whoami     # you need to enter your root password when asked by the authentication dialog
echo $DISPLAY

and as root from:
Code: Select all
systemctl status polkit.service -a
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: activating mcc desktop icon

Postby gch3 » Mar 13th, '16, 03:13

bash-4.3$ loginctl show-session $XDG_SESSION_ID
Code: Select all
Id=c1
Name=gch3
Timestamp=Sat 2016-03-12 18:17:13 EST
TimestampMonotonic=130267585
VTNr=1
Display=:0
Remote=no
Service=kdm
Scope=session-c1.scope
Leader=3513
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
bash-4.3$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd   2223     1  0 18:15 ?        00:00:00 /usr/lib/polkit-1/polkitd --no-debug
gch3      4727     1  0 18:17 ?        00:00:00 /usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1
bash-4.3$ pkexec whoami     # you need to enter your root password when asked by the authentication dialog
echo $DISPLAY



● polkit.service - Authorization Manager
Code: Select all
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: active (running) since Sat 2016-03-12 18:15:59 EST; 1h 54min ago
     Docs: man:polkit(8)
 Main PID: 2223 (polkitd)
   CGroup: /system.slice/polkit.service
           └─2223 /usr/lib/polkit-1/polkitd --no-debug

Mar 12 18:15:58 localhost polkitd[2223]: Started polkitd version 0.113
Mar 12 18:15:59 localhost polkitd[2223]: Loading rules from directory /etc/polkit-1/rules.d
Mar 12 18:15:59 localhost polkitd[2223]: Loading rules from directory /usr/share/polkit-1/rules.d
Mar 12 18:15:59 localhost polkitd[2223]: Finished loading, compiling and executing 3 rules
Mar 12 18:15:59 localhost polkitd[2223]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Mar 12 18:17:43 localhost polkitd[2223]: Registered Authentication Agent for unix-session:c1 (system bus name :1.44 [/usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)


Mageia 5 4.1.15 updates have all been installed.
gch3
 
Posts: 70
Joined: Dec 25th, '13, 21:06

Re: activating mcc desktop icon

Postby Ken-Bergen » Mar 13th, '16, 03:31

The " you need to enter your root password when asked by the authentication dialog" is just a comment so do
Code: Select all
pkexec whoami

then
Code: Select all
echo $DISPLAY
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: activating mcc desktop icon

Postby gch3 » Mar 13th, '16, 03:49

Code: Select all
[root@localhost gch3]# pkexec whoami
root
[root@localhost gch3]# echo $DISPLAY
:0
gch3
 
Posts: 70
Joined: Dec 25th, '13, 21:06

Re: Trouble with Mageia Control Center

Postby doktor5000 » Mar 13th, '16, 13:51

Merged your thread into an existing one for the same issue, in case you wonder.

Output looks fine so far, for now I've no idea why it doesn't start. I'll check if there's a bug for that already reported later.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Trouble with Mageia Control Center

Postby DiBosco » Mar 26th, '16, 02:26

Type this in the command line:

xhost +local:root

I honestly can't remember whether this has to be done as user or root. Try as user first and if that doesn't work, do it as root. That will fix it. I had exactly the same problem and it took a lot of Googling to find someone with a fix. I've since reinstalled due to completely different reasons and that will also solve it.

Sadly, you'll have to do it every time you reboot. I guess you might be able to run it as a startup script somehow.
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Trouble with Mageia Control Center

Postby gerx » Mar 28th, '16, 08:59

Thanks!
gerx
 
Posts: 5
Joined: Feb 26th, '16, 15:46

Re: Trouble with Mageia Control Center

Postby doktor5000 » May 9th, '16, 11:17

For what it's worth, I've mentioned this issue in the relevant bug report: https://bugs.mageia.org/show_bug.cgi?id=16764
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Trouble with Mageia Control Center

Postby mrigs » Oct 8th, '16, 23:40

DiBosco wrote:Type this in the command line:

xhost +local:root

I honestly can't remember whether this has to be done as user or root. Try as user first and if that doesn't work, do it as root. That will fix it. I had exactly the same problem and it took a lot of Googling to find someone with a fix. I've since reinstalled due to completely different reasons and that will also solve it.

Sadly, you'll have to do it every time you reboot. I guess you might be able to run it as a startup script somehow.


I have recently started facing the same issue. And this was resolved using this solution, running the command as a regular user. Thank you, DiBosco.
mrigs
Mageia on LG Gram 15
mrigs
 
Posts: 40
Joined: Jun 28th, '11, 03:25
Location: California, US


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest