can't log into X anymore ( polkit )

  • Open
  • quality assurance status badge
Details
3 participants
  • jbranso
  • Marius Bakke
  • Stefan Huchler
Owner
unassigned
Submitted by
Stefan Huchler
Severity
normal
S
S
Stefan Huchler wrote on 10 May 2020 18:37
(address . bug-guix@gnu.org)
87blmvhhl4.fsf@mail.de
shortly after installing X and making the first few changes setting the
root password and boom I can't login into X anymore.


My configuration:
/----------------------------------------------
(use-modules (gnu) (gnu system nss))
(use-service-modules desktop ssh)
(use-package-modules bootloaders certs ratpoison emacs-xyz
suckless wm xorg emacs web-browsers)

(operating-system
(host-name "XXX")
(timezone "Europe/Berlin")
(locale "en_US.utf8")

(keyboard-layout (keyboard-layout "us" "dvorak"))
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")))

(file-systems (append
(list (file-system
(device (file-system-label "guix-root"))
(mount-point "/")
(type "ext4"))
(file-system
(device (file-system-label "home"))
(mount-point "/home")
(type "ext4")))
%base-file-systems))

(users (cons (user-account
(name "XXX")
(comment "Me")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video")))
%base-user-accounts))

(packages (append (list
;; window managers
ratpoison i3-wm i3status dmenu
;; emacs-exwm
xterm
nss-certs
vimb
emacs)
%base-packages))

(services (cons* (service openssh-service-type
(openssh-configuration
(permit-root-login #t)))
;;(service xfce-desktop-service-type)
%desktop-services))

(name-service-switch %mdns-host-lookup-nss))

/----------------------------------------------

Authentication needed [...] intel-backlight-helper and a password prompt
that I can't hit on, and somethnig with polkit.

I think it propable had to do with me setting a root password. I unset
it with password -dl root and only passwd -d root, but both didn't fix
it.
S
S
Stefan Huchler wrote on 23 May 2020 01:16
(address . bug-guix@gnu.org)
87h7w7v9v1.fsf@mail.de
So, after nobody answered to my problem and a guix pull / reconfigure
did change nothing I replaced gdm with slim with following changes:

(use-modules (gnu)
(srfi srfi-1)
(gnu system nss))
(use-service-modules desktop ssh xorg)
(use-package-modules bootloaders certs ratpoison emacs-xyz
suckless wm xorg emacs web-browsers)

...

(services (cons* (service openssh-service-type
(openssh-configuration
(permit-root-login #t)))
(service slim-service-type)
(remove (lambda (service)
(eq? (service-kind service) gdm-service-type))
%desktop-services)))

and slim just works, it fixes the problem for me because I don't want to
run gdm on this low power machine anyway, but maybe somebody can
understand why slim runs and gdm not, I did not do much special I just
wanted to make my first guix install and got X running with the
light-desktop config with some minor unrelated changes like adding a few
packages and activate ssh. The only thing as I said was that I set a
password for root, but that seems also not to be such a untypical
step. So I wonder if that is a 32bit only problem else I would assume
many people would run into that. More or less the default installation
broke, sure not the graphical installation, with that I had problems
with grub, because if I remember correctly it assumed efi support.

It's strange to me that switching the display-manager fixes the problem
because that would imply that the gdm package is buggy, which again it's
in the default desktop-services variable.

But for me it's ok and maybe somebody else runs into that problem, then
maybe my bug report information helps.


Stefan Huchler <stefan.huchler@mail.de> writes:

Toggle quote (67 lines)
> shortly after installing X and making the first few changes setting the
> root password and boom I can't login into X anymore.
>
>
> My configuration:
> /----------------------------------------------
> (use-modules (gnu) (gnu system nss))
> (use-service-modules desktop ssh)
> (use-package-modules bootloaders certs ratpoison emacs-xyz
> suckless wm xorg emacs web-browsers)
>
> (operating-system
> (host-name "XXX")
> (timezone "Europe/Berlin")
> (locale "en_US.utf8")
>
> (keyboard-layout (keyboard-layout "us" "dvorak"))
>
> (bootloader (bootloader-configuration
> (bootloader grub-bootloader)
> (target "/dev/sda")))
>
> (file-systems (append
> (list (file-system
> (device (file-system-label "guix-root"))
> (mount-point "/")
> (type "ext4"))
> (file-system
> (device (file-system-label "home"))
> (mount-point "/home")
> (type "ext4")))
> %base-file-systems))
>
> (users (cons (user-account
> (name "XXX")
> (comment "Me")
> (group "users")
> (supplementary-groups '("wheel" "netdev"
> "audio" "video")))
> %base-user-accounts))
>
> (packages (append (list
> ;; window managers
> ratpoison i3-wm i3status dmenu
> ;; emacs-exwm
> xterm
> nss-certs
> vimb
> emacs)
> %base-packages))
>
> (services (cons* (service openssh-service-type
> (openssh-configuration
> (permit-root-login #t)))
> ;;(service xfce-desktop-service-type)
> %desktop-services))
>
> (name-service-switch %mdns-host-lookup-nss))
>
> /----------------------------------------------
>
> Authentication needed [...] intel-backlight-helper and a password prompt
> that I can't hit on, and somethnig with polkit.
>
> I think it propable had to do with me setting a root password. I unset
> it with password -dl root and only passwd -d root, but both didn't fix
> it.
M
M
Marius Bakke wrote on 23 May 2020 21:28
87eera78nh.fsf@devup.no
Stefan Huchler <stefan.huchler@mail.de> writes:

Toggle quote (3 lines)
> shortly after installing X and making the first few changes setting the
> root password and boom I can't login into X anymore.

[...]

Toggle quote (3 lines)
> Authentication needed [...] intel-backlight-helper and a password prompt
> that I can't hit on, and somethnig with polkit.

I've seen a similar failure when elogind or dbus failed to start.

Can you check the log files and see if there were problems with these
services when it failed? Or any other lines that could be interesting?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7JeXIACgkQoqBt8qM6
VPpwvAf9GrXDADTJ8YerEFw7Gu3YWyzmXAA8L147MZGEpR79a8F6p8A4zq2j1dzQ
vIZZz80Ol2hZq5zfrz/uplrZR7vi2QAru2q/wRNyPZv91WZ9jJqp0eUl3qqFF0+O
QlC+WA1+exFxTcvughszXlvwiUnkvmKEo1rOol9eYbp87IObIaOI3Uk76xSA8bJ9
XwIVJC65M4QEiDWsljJqohk+KBUrbTbyTlY6YQcJXZRgZL9QkIrfxi3wU74w1v+O
vmD+MrbqWM4rma4s+FyDSz2PiE7i+BHVj+WyellZ57+Rq0/uWHIczw+vN9f8C6Jo
f642tCAvb/FpcD6pFTB5lGUOMTl9Xw==
=+Nff
-----END PGP SIGNATURE-----

J
J
jbranso wrote on 23 Jan 2021 22:54
Re: can't log into X anymore ( polkit )
(address . 41178@debbugs.gnu.org)
476e30daaf9be4f8ca0760efb0abfcc3@dismail.de
Hello,

I personally run sway, and I won't run a login manager. Instead I just log into a virtual console.

Then I auto-start sway via this is my ~/.bashrc

if [ -z $DISPLAY ] && [ "$(tty)" == "/dev/tty1" ]; then exec sway fi

Maybe the above is supposed to go in my ~/.bash_profile
Attachment: file
J
J
jbranso wrote on 23 Jan 2021 23:04
Re: can't log into X anymore ( polkit )
(address . 41178@debbugs.gnu.org)
80506deaa8b577ccab99c4fb2193d531@dismail.de
Now that I think about it, it would be cool if I could figure out how to auto login to a virtual console.

Thanks,

P.S. I would set up encrypted /, so I would still enter in a password at boot.

P.P.S. Though it would be nice to only have to enter in this password once...
That might actually be possible since I use retroboot. :)
Attachment: file
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 41178@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 41178
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch