Questions tagged [dbus]
The dbus tag has no usage guidance.
66
questions
0
votes
0
answers
772
views
How to start dbus on Docker/Linux? Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
I am running puppeteer through Node.js in Docker and was getting this error after not doing anything with dbus:
puppeteer:browsers:launcher Launching /usr/bin/google-chrome --allow-pre-commit-input --...
1
vote
1
answer
38
views
Runing a command as user is not the same as logging as the user and running the command
I am trying to get a way to execute a script from a root session, but I am having some trouble with it. I'll lay out the issue:
I have a script that performs some tasks as the regular user 'kolterdyx',...
0
votes
0
answers
72
views
start non-root user systemd and systemd services via sudo without enable-linger
I'm like to be able to start a systemd session (e.g. systemd --user) for a given non-root user, and subsequently start a service (e.g. systemctl --user start SERVICE.service), all via a sudo -iu USER ...
0
votes
1
answer
43
views
How to get access to run a D-Bus method?
When I run this command to run the org.gnome.Shell.Introspect's GetWindows() method:
dbus-send --session \
--print-reply \
--dest=org.gnome.Shell.Introspect \
/org/gnome/...
0
votes
1
answer
78
views
Make `busctl` only output `data` (i.e. don't include `type`)
The context
The question
Additional information
The context
I know that busctl can be used to get the number of pages of the current document in a Zathura instance.
busctl --user get-property org....
0
votes
0
answers
356
views
Prevent kf.dbusaddons: DBus session bus not found. To circumvent this try the following command (with bash): export $(dbus-launch)
To launch GUI applications in kde (plasma) in Ubuntu Jammy I need to first manually do export $(dbus-launch) and then launch the app from this console
Otherwise it won't start (saying kf.dbusaddons: ...
1
vote
0
answers
537
views
I am not able to run 'dbus-launch' into Alpine Linux with Docker 23
This is something that worked correctly with Docker 20, but with the change to Docker 23 it keeps "thinking" infinitely and consuming CPU (i.e. freezes). I simply launch dbus in a Docker ...
0
votes
1
answer
2k
views
How to debug: Failed to connect to bus: No such file or directory (systemctl --user status)?
I am trying to run systemctl --user status from a user account in order to not run services from root.
The way I do it is as follows:
loginctl enable-linger $USER
export XDG_RUNTIME_DIR="/run/...
1
vote
1
answer
586
views
How to get the session dbus to use /run for its socket?
In an X11 session, my session dbus uses /run/user/1000/bus for its socket. When I launch a dbus session in ssh with dbus-launch it creates a socket in /tmp and it seems to be by design as /usr/share/...
0
votes
1
answer
67
views
How to silence output from "dbus-daemon" or "gio mount"
I want to mount a smb share in userspace using gio mount and a kerberos ticket. That works so far. But the dbus-daemon constantly writes out a message on stdout like
dbus-daemon[2305]: [session uid=...
1
vote
1
answer
1k
views
Running standalone window manager without a D-Bus session in Linux
Here is a prehistory for my question, if some more details are needed, the actual question is in the second paragraph.
So I have been using standalone window manager for a couple of months on ...
1
vote
1
answer
1k
views
DBus Send from shell
I need to send a method call with DBus from shell
when i send this code from shell :
dbus-send --print-reply --system --type=method_call \
--dest=vehicle.network.service /Diag \
vehicle.network....
2
votes
1
answer
325
views
Use playerctl in systemd-nspawn container
When I launch a web browser in a systemd-nspawn container, playerctl commands don't work to play and pause multimedia, though they work for browsers outside of the container. Is there an environment ...
1
vote
1
answer
2k
views
Apache2 not responding to port 80 IPv4 requests
Have encountered a strange problem where my apache2 daemon although supposedly listening according to netstat and lsof is not responding to requests. Here is what I have found so far.
Ensure port 80 ...
1
vote
1
answer
376
views
Running awesome-client (which uses dbus) from acpid
I set up a acpid rule to execute the following command, whenever I receive a specific acpi message:
awesome-client "activate_tabletmode()"
Where activate_tabletmode() is just some function ...
29
votes
8
answers
75k
views
systemctl --user Failed to connect to bus: No such file or directory Debian 9
When I run this commande in my Debian 9 VPS : systemctl --user I have this following error : Failed to connect to bus: No such file or directory
This error appear on all users except the user root.
I ...
3
votes
1
answer
17k
views
Connection reset by peer on systemctl as root
I've setup WSL 2 (Ubuntu) and I installed systemd (and systemd-sysv) there. After that, I ran:
sudo mkdir -p /run/dbus
sudo dbus-daemon --system
sudo daemonize /usr/bin/unshare --fork --pid --mount-...
0
votes
1
answer
221
views
Fedora30 upgrade: Cannot run KDE as a specific user
I've upgraded from Fedora 29 to Fedora 30.
Alghough root can use KDE normally, I fail to use it as a specific user. An almost black fullscreen window appears with a responsive mouse arrow in the ...
2
votes
1
answer
2k
views
Talk to Host machine's Dbus through Docker
I have my application that performs certain task with the help of NFS-Ganesha.
During this it talks to NFS-Ganesha through DBus.
But now I am planning to run NFS-Ganesha on Docker Container.
(My ...
0
votes
1
answer
879
views
Failed to get D-Bus connection: Opération non permise
I'm using a centos 7 OS,
I have removed /var/run/dbus/system_bus_socket after i accidently removed the /var/run folder.
Now when i'm trying to use systemctl command i'm getting the error mentioned ...
1
vote
1
answer
819
views
How do I get .service files for gnome-keyring?
My ultimate goal is to get gnome-keyring functioning as a credential storage for use by shell and python scripts on an RHEL 6 server. The admins installed package gnome-keyring-2.28.2-8.el6_3.x86_64, ...
4
votes
0
answers
79
views
dbus-monitoring loop exits automatically
I'm trying to execute a bash command on screen lock/unlock.
Following tutorials & StackExchange questions, I came up with the following code:
#!/bin/bash
while true; then #added to try to solve ...
2
votes
1
answer
2k
views
Unable to start dunst notification daemon for user
I did a clean arch install with only XDM and i3 to serve as login/window managers. I have also installed dunst package; and according to arch wiki nothing else is required for it to work.
However, ...
0
votes
1
answer
2k
views
xinit for correct start of awesome wm in Manjaro (xrdp)
Configuration:
Hyper-V virtual machine, Generation 1
Manjaro 18.00 with awesome WM
xrdp Server installed & running (https://wiki.archlinux.org/index.php/xrdp)
Connecting to this VM from a ...
0
votes
0
answers
220
views
systemd-stdio-bridge and D-Bus errors when trying to execute 'hostnamectl' remotely
Executing hostnamectl command to know host's chassis.
Want to write a proper script to run on a certain list of hosts, but having a problem when executing hostnamectl -H.
Note!
works as expected ...
6
votes
3
answers
4k
views
Use MPRIS/dbus media commands within Firefox on Linux
Back on Windows, I was able to play/pause youtube videos within firefox using the media buttons on my keyboard. On Linux I am really missing this ability.
Is there any way I can send MPRIS commands ...
1
vote
1
answer
743
views
map headset button in gnome3
How can I map in gnome3 the button from my bluetooth headset?
Gnome sees a AcceleratorActivated event when I press it:
$ dbus-monitor --monitor
signal time=1525078944.868498 sender=:1.17 -> ...
1
vote
0
answers
8k
views
Can't start services, probably policykit error
I can't restart services as root on CentOS.
Unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any ...
3
votes
0
answers
133
views
NFS /usr/share breaks Policykit beause of inotify support
I just tried moving some files including /usr/share to a NFS partition to save space when running many similar virtual machines. The configuration mostly works except when starting services
I think ...
4
votes
1
answer
3k
views
How to auto-rotate the screen using Yoga 900's accelerometer?
The Yoga 900 has an accelerometer which should allow auto-rotation behavior.
On installing
https://github.com/hadess/iio-sensor-proxy (Linux*, LightDM) it is possible to run monitor-sensor.
➜ ~ ...
1
vote
0
answers
392
views
lightdm set an wrong DBUS_SESSION_BUS_ADDRESS
I'm using archlinux and lightdm+lightdm-gtk-greeter+aweome as my work environment.
I found my DBUS_SESSION_BUS_SESSION is not properly setup, when I enabled lightdm as my login manager.This ...
1
vote
1
answer
1k
views
I want to inhibit the autostart of kwalletd5
I'm not able to find a way to disable the automatic start of kwalletd5 on Fedora 24 with XFCE4.
pstree displays:
fetchmail
firefox─┬─{BgHangManager}
├─{Cache I/O}
├─{Cache2 I/O}
...
0
votes
1
answer
280
views
How to bind a key to cycle profiles in roxterm?
I'd like to be able to switch profiles in roxterm, without having to access the menu each time.
How could this be done?
6
votes
0
answers
3k
views
systemctl debian 8 jessie: Failed to get D-Bus connection: Unknown error -1 [duplicate]
Unfortunately, in my Debian 8 jessie systemctl does not work at all.
Every systemctl command results in:
Failed to get D-Bus connection: Unknown error -1
systecmtl status udev
Failed to ...
0
votes
1
answer
109
views
Centos: there is no ~/.cache/upstart
I'm new with linux.As I know ~/.cache/upstart is folder where system processes log their stuff. But I can't find this folder in Centos. What I'm most curious about is that on Ubuntu this folder ...
2
votes
1
answer
5k
views
Getting error: "Error constructing proxy for org.gnome... Could not connect: Connection refused" when running gnome-terminal
I am getting the error: "Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Could not connect: Connection refused" when I try to run gnome-terminal. I am running CentOS 7. I ...
1
vote
1
answer
5k
views
Dbus: How can I monitor process?
I'm new with Dbus and I'm curious if there is any way to monitor process and see if this process receives any Dbus messages. (I'm working on some project and want to know if Xserver receives any Dbus ...
2
votes
1
answer
2k
views
Unable to switch to greeter
I'm using LightDM 1.16.5 along with the Awesome window manager on NixOS.
After logging in, I am unable to switch users without first logging out of my current session. The command dm-tool switch-to-...
6
votes
2
answers
8k
views
How to reliably attach to session DBUS over ssh?
I hardly had any success using a dbus-dependent tool over ssh (for example pactl -- pulseaudio command line interface -- that selects audio output).
I know how to manually export the session's DBUS ...
3
votes
0
answers
7k
views
DBus over Network (TCP)
I'm trying to communicate with a remote DBus (i.e. IP 10.100.20.101) from a host (i.e. IP 10.100.20.102) - X86_64 platform to ARM development board.
I've tried the solutions from here but it caused ...
11
votes
1
answer
5k
views
Ubuntu 15.04: suspend from console without sudo
For years I have been able to suspend my Ubuntu-based machine from regular account using
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop....
2
votes
1
answer
1k
views
How to update DBUS_SESSION_BUS_ADDRESS in tmux when that address changes?
I have noticed, that I can’t run steam in a tmux pane: it gave me error
Error: Unable to open a connection to X. Check your DISPLAY environment
variable and make sure that you have enabled X. If ...
0
votes
4
answers
1k
views
Trying to run Konsole from XMing (Windows) fails
Connecting from XMing latest running on a Windows 7 laptop to an Ubuntu 14.04 server running KDE.
I get the following error:
cpatti@hab: ~
$ konsole ...
1
vote
0
answers
355
views
Error in D-BUS session in Ubuntu
Hi I get the following error upon starting the xfce4-panel
Failed to connect to the D-BUS session bus: Failed to connect to socket
However Dbus is running as i checked it in HTOP
I get the error in ...
1
vote
1
answer
387
views
Is there a DBus command for adding a program start button to a KDE plasma panel?
There was a nice command in KDE3 that allowed my to add a program start button to a kicker panel programmatically:
dcop kicker $PANEL addNonKDEAppButton "$PROGRAM_NAME" "$PROGRAM_DESCRIPTION" "$...
1
vote
0
answers
653
views
Notifications don't show up (notify-send notify-osd)
Notifications via notify-send and notify-osd stopped working for me for no apparent reason.
notify-send does not display anything.
notify-osd displays this error:
** (notify-osd:30409): WARNING **: ...
6
votes
2
answers
4k
views
Use dconf (or comparable) to set configs for another user
On Ubuntu Desktop 13.10, I have a setup script which runs as root. It essentially configures the computer as necessary, but I need to set some things with dconf. The script runs in a Terminal window ...
0
votes
1
answer
107
views
monit fails to support dbus session
I am trying to use monit to monitor and automatically issues like crashes, memory leaks and cpu hotspinning.
For one application - one that uses DBus (serving and calling funcs) just will not start.
...
2
votes
0
answers
5k
views
Connection to dbus session failed
I am running Debian 6 with Gnome 2.30.2 (old, but it's the workstation I have to use). When I want to run dbus-monitor or any other dbus application from within tmux, I get an error:
$ dbus-monitor
...
7
votes
1
answer
2k
views
Where can I find a full list of wpa-* options for the interfaces file?
I'm looking for an exhaustive list of wpa-* options that can be used in the /etc/network/interfaces file.
The Debian wiki has a how-to-use page here: https://wiki.debian.org/WiFi/HowToUse, which ...