From owner-freebsd-questions@freebsd.org Thu Dec 29 04:46:45 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E80BC93362 for ; Thu, 29 Dec 2016 04:46:45 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from cyrus.watson.org (cyrus.watson.org [198.74.231.69]) by mx1.freebsd.org (Postfix) with ESMTP id 5B4751F8A for ; Thu, 29 Dec 2016 04:46:45 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [198.74.231.63]) by cyrus.watson.org (Postfix) with ESMTPS id F108246D30; Wed, 28 Dec 2016 23:46:43 -0500 (EST) Received: from fledge.watson.org (doug@localhost.watson.org [127.0.0.1]) by fledge.watson.org (8.15.2/8.15.2) with ESMTP id uBT4khsC062936; Wed, 28 Dec 2016 23:46:43 -0500 (EST) (envelope-from doug@fledge.watson.org) Received: from localhost (doug@localhost) by fledge.watson.org (8.15.2/8.15.2/Submit) with ESMTP id uBT4kgKc062932; Wed, 28 Dec 2016 23:46:43 -0500 (EST) (envelope-from doug@fledge.watson.org) Date: Wed, 28 Dec 2016 23:46:41 -0500 (EST) From: doug Reply-To: doug@safeport.com To: Bernt Hansson cc: David Christensen , freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart? In-Reply-To: <09d1385a-6356-b732-ddd4-ebd678c25419@bananmonarki.se> Message-ID: References: <2c0d9213-1adc-48b7-bdf6-a6b4a577d726@bananmonarki.se> <622bd615-48b9-031a-65d8-3c7daf663cb9@holgerdanske.com> <09d1385a-6356-b732-ddd4-ebd678c25419@bananmonarki.se> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (fledge.watson.org [127.0.0.1]); Wed, 28 Dec 2016 23:46:43 -0500 (EST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2016 04:46:45 -0000 On Wed, 28 Dec 2016, Bernt Hansson wrote: > > > On 2016-12-28 04:51, David Christensen wrote: >> On 12/27/16 18:22, Bernt Hansson wrote: >>> To be able to shutdown or reboot your system, you'll have to add a >>> .pkla file in /usr/local/etc/polkit-1/localauthority/50-local.d >>> directory. ... Source: https://forums.freebsd.org/threads/45643/ >> >> Any suggestions for getting shutdown and restart working in Xfce? > > You do have dbus_enable="YES" in /etc/rc.conf? Not sure if you need > hald_enable="YES" too. > >> How about XDM? > No idea about that. simply another way to handle logins. Been using XDM since FreeBSD 8 its only gotten easier. I have .xsession as: #!/bin/sh /usr/bin/ssh-agent /usr/local/bin/startxfce4 This allows easy access via ssh to other servers. The login screen looks better if you add 'xsetroot -solid grey' to /usr/local/lib/X11/xdm/Xsetup_0. All this can also be done with .xinitrc [but not by me :) ] I am running FBSD 10.3, xorg-7.7_2, xdm-1.1.11_6, xfce-4.12_1 with no xorg.conf file. This does nothing for activating restart or shutdown.