FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart?
freebsd at edvax.de
Fri Dec 30 14:48:55 UTC 2016
On Fri, 30 Dec 2016 12:38:55 +0100, Bernt Hansson wrote:
> On 2016-12-30 05:32, David Christensen wrote:
> > On 12/27/16 23:01, Bernt Hansson wrote:
> >> You do have dbus_enable="YES" in /etc/rc.conf? Not sure if you need
> >> hald_enable="YES" too.
> > Thanks for the reply.
> > 2016-12-29 19:28:58 toor at t7400 ~
> > # cat /etc/rc.conf
> > hostname="t7400"
> > ifconfig_bfe0="DHCP"
> > sshd_enable="YES"
> > ntpd_enable="YES"
> > powerd_enable="YES"
> > # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
> > dumpdev="AUTO"
> > zfs_enable="YES"
> > 2016-12-29 19:29:04 toor at t7400 ~
> > # ll /etc/rc.conf.d
> > total 9
> > drwxr-xr-x 2 root wheel 2 2016/09/28 20:41:10 ./
> > drwxr-xr-x 25 root wheel 113 2016/12/27 19:20:28 ../
> > Apparently, dbus is not enabled. Add a file:
> > 2016-12-29 19:29:17 toor at t7400 ~
> > # echo 'dbus_enable="YES"' > /etc/rc.conf.d/dbus.conf
> > shutdown -p, boot, login, Xfce mouse -> Log Out -> Shut Down and ->
> > Restart are still greyed out.
> Dbus is installed? Think it comes with xfce but not sure.
> If it does not work you have to work some magic with devd i think.
Or with system provided commands: add yourself to the
required groups (wheel, operator), then add a menu entry
for "System Shutdown" (shutdown -p now) and "System Reboot"
(shutdown -r now); now you can select them from the menu,
add a key combination, or even make a desktop shortcut
which you can give an inviting name, like "My files". :-)
You can also add it as an icon to one of the bars, like
for example in Gnome.
You need DBus, PolicyKit and ConsoleKit installed, if I
remember correctly, and _maybe_ even HAL (but check that
again with the current documentation). Those services
must be running. Check if "startxfce4" requires some of
the "--with-ck-something" options.
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions