You are not logged in.
I'm trying to run etherape in an up to date arch linux with sudo, but I always get a warning at startup like this
Client failed to connect to the D-BUS daemon:
Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Client failed to connect to the D-BUS daemon:
.......
d at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Client failed to connect to the D-BUS daemon:
Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
loginctl shows I do have a dbus session, but obviously that doesn't seem to matter when I run etherape via sudo.
After experimentation I found that if I run
sudo dbus-run-session etherape
then the warnings go away. Is this the right way to run etherape or is there some other way that makes use of my user session?
Last edited by replabrobin (2017-01-01 22:52:57)
Offline
More or less, you could carry over the dbus env, but that would mix user and root dbus (security risk) - eg. gksu should do that for you.
You should however figure why you want to run this as UID0 and then figure how to avoid that (some access error because your user isn't in a relevant group or some specific file permissions are too strict.
Offline
If I run etherape directly I get a different warning eg
Error opening eno1 : eno1: You don't have permission to capture on that device (socket: Operation not permitted)
- perhaps you need to be root?
so perhaps I need to be in a special group or something,
Offline
D'OHH.
And it seems to access the network device in the GUI process ...
This could work (just replace dumpcap with etherape)
http://packetlife.net/blog/2010/mar/19/ … root-user/
Offline
That seems to work for me. Thanks & happy new year
Offline