FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart?

David Christensen dpchrist at holgerdanske.com
Sat Dec 31 06:05:55 UTC 2016


On 12/30/16 06:48, Polytropon wrote:
> Or with system provided commands: add yourself to the
> required groups (wheel, operator),

Already done:

2016-12-30 21:58:34 dpchrist at t7400 ~
$ grep dpchrist /etc/group
wheel:*:0:root,dpchrist
operator:*:5:root,dpchrist
video:*:44:dpchrist
dpchrist:*:<redacted>:


> then add a menu entry
> for "System Shutdown" (shutdown -p now) and "System Reboot"
> (shutdown -r now);

How?


> You need DBus,

I believe I have it:

2016-12-30 21:59:33 dpchrist at t7400 ~
$ pkg info | grep dbus
dbus-1.8.20                    Message bus system for inter-application 
communication
dbus-glib-0.104                GLib bindings for the D-BUS messaging system


> PolicyKit

I believe I have it:

2016-12-30 21:51:54 toor at t7400 ~
# pkg info | grep policykit
policykit-0.9_10               Framework for controlling access to 
system-wide components
policykit-gnome-0.9.2_7        GNOME frontend to the PolicyKit framework


> and ConsoleKit installed, if I
> remember correctly,

I believe I have it:

2016-12-30 21:51:59 toor at t7400 ~
# pkg info | grep consolekit
consolekit-0.4.5_4             Framework for defining and tracking users


> and _maybe_ even HAL (but check that
> again with the current documentation).

I believe I have it:

2016-12-30 21:52:41 toor at t7400 ~
# pkg info | grep hal
hal-0.5.14_31                  Hardware Abstraction Layer for 
simplifying device access


> Those services must be running.

It looks like dbus is running:

2016-12-30 22:01:25 toor at t7400 ~
# ps -A | egrep -i 'dbus|policykit|consolekit|hal'
   763  -  I       0:00.00 /usr/local/bin/dbus-launch --sh-syntax 
--exit-with-se
   764  -  Is      0:00.21 /usr/local/bin/dbus-daemon --fork --print-pid 
4 --pri
   785  -  I       0:00.01 /usr/local/libexec/gvfs-hal-volume-monitor
74843  3  S+      0:00.00 egrep -i dbus|policykit|consolekit|hal


How do I start policykit, consolekit, and hal?


> Check if "startxfce4" requires some of
> the "--with-ck-something" options.

2016-12-30 21:57:26 dpchrist at t7400 ~
$ cat .xsession
#!/bin/sh
exec /usr/local/bin/startxfce4 --with-ck-launch


startxfce4 does not appear to have a man page or provide command-line 
help (?).


Where are startxfce4 options documented?


David




More information about the freebsd-questions mailing list