xfce4.10, GUI Reboot/Suspend
jmzgriffin at gmail.com
Wed Jan 22 13:13:57 UTC 2014
On 01/22/14 12:57, Polytropon wrote:
> On Wed, 22 Jan 2014 12:46:07 +0000, James Griffin wrote:
>> I've read a number of older posts found on the internet about using the
>> xfce4 menus to reboot and shutdown the system. [...] Can someone
>> using xfce4 on FreeBSD 10 explain how to do this, it shouldn't be so
>> difficult (should it?).
> I've been using XFCE 3 in the past and got those things working,
> even though probably different from what today's layered, inter-
> connected and library-driven concepts suggest. Here's my solution,
> maybe you can adapt it to your needs:
> THe user who should be allowed to perform shutdown and suspend
> has been placed in the "operator" and "wheel" group. The menu
> entries for the actions have been created to perform the required
> actions. For example
> xterm -class SHUTDOWN -fg black -bg red -e "shutdown -p now ; read DUMMY"
> was associated with the "Shutdown system" menu item, and for
> suspend, I think (because I can't check this at the moment)
> xterm -class SUSPEND -fg black -bg green -e "apm -z ; read DUMMY"
> was configured. As you can see, this has been in ye olden times
> of APM. :-)
> To repeat: In order to make this work, the user has to be a
> member of the "operator" group (for calling /sbin/shutdown)
> and the "wheel" group" (for calling /usr/sbin/apm and also
> /usr/sbin/zzz); the 2nd requirement could be omitted when
> those two binaries were chown'd to root:operator.
Ok, thanks for the information. I always add my user to operator and
wheel groups anyway, i'll work it out I guess. I just started using
xfce4 -- I've always used fvwm2 but just wanted something that doesn't
require so much fiddling with configuration files.
More information about the freebsd-questions