Hi. I have this machine "alexandria" onto which I installed Debian yesterday:
eben@alexandria:~$ cat /etc/debian_version
12.10
It has a video card and a keyboard, but to log in there I have to get
down on the floor, so I usually access it via ssh. Right now I'm trying
to use synaptic to install some software, but I get this when I try as me:
,--
| eben@alexandria:~$ synaptic-pkexec
| ==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ====
| Authentication is required to run the Synaptic Package Manager
| Authenticating as: root
| Password:
| polkit-agent-helper-1: error response to PolicyKit daemon:
| GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for
|cookie
| ==== AUTHENTICATION FAILED ====
| Error executing command as another user: Not authorized
|
| This incident has been reported.
| eben@alexandria:~$
'--
As root it's even shorter:
,--
| root@alexandria:~# synaptic
| Failed to initialize GTK.
|
| Probably you're running Synaptic on Wayland with root permission.
| Please restart your session without Wayland, or run Synaptic without
| root permission
| root@alexandria:~#
'--
xev works as not-root, so X clients in general work. So how do I get
around this? Installing not-Wayland is an option, but I probably should replace it with some WIMP interface so if I need it, it's there. Thanks.
Hi,
I believe you are using a terminal from another computer, and not using a remote X or Wayland client like VNC? (e.g. "I usually access it via ssh")
If so, please use apt to install software.
If you need to reboot to complete the installation
# systemctl reboot
to run synaptic you would need to do this on the computer itself, not remotely unless you are using a remote X or Wayland client like VNC.
to run synaptic you would need to do this on the computer itself,
not remotely unless you are using a remote X or Wayland client like
VNC.
So ssh is right out? That sucketh much. It's not all X clients that
don't work, so what's the determinant for not working? Those that use
root? GTK?
On Fri, 4 Apr 2025 17:00:09 -0400
Eben King <eben@gmx.us> wrote:
to run synaptic you would need to do this on the computer itself,
not remotely unless you are using a remote X or Wayland client like
VNC.
So ssh is right out? That sucketh much. It's not all X clients that
don't work, so what's the determinant for not working? Those that use
root? GTK?
Not necessarily. I routinely ssh into all my computers, to their root
and user accounts,
and then use GUI programs which display properly on
the machine from which I SSHed in. The trick is in setting up your
target computer's ~/.ssh/config correctly. E.g:
host dragon
Protocol 2
ForwardX11 yes
ForwardX11Trusted yes
Not necessarily. I routinely ssh into all my computers, to their
root and user accounts,
So you ssh-login as root, or do you login as a user then su to root?
Also it suspends the OS after a few minutes, so I
gotta find out where that's controlled.
xev works as not-root, so X clients in general work. So how do I get
around this? Installing not-Wayland is an option, but I probably should replace it with some WIMP interface so if I need it, it's there. Thanks.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 153:12:00 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,828 |