From owner-freebsd-questions@freebsd.org Tue Dec 27 04:13:12 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 D132BC8786F for ; Tue, 27 Dec 2016 04:13:12 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C152A13B5 for ; Tue, 27 Dec 2016 04:13:12 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Mon, 26 Dec 2016 20:02:52 -0800 To: freebsd-questions@freebsd.org From: David Christensen Subject: FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart? Message-ID: Date: Mon, 26 Dec 2016 20:02:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 27 Dec 2016 04:13:12 -0000 freebsd-questions: I have a machine running FreeBSD 11.0 i386, XDM, and XFCE: 2016-12-26 19:48:26 dpchrist@t7400 ~ $ freebsd-version 11.0-RELEASE-p1 2016-12-26 19:48:42 dpchrist@t7400 ~ $ uname -a FreeBSD t7400 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 03:40:55 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 2016-12-26 19:48:44 dpchrist@t7400 ~ $ pkg info xdm | grep -i version Version : 1.1.11_6 2016-12-26 19:48:51 dpchrist@t7400 ~ $ pkg info xfce | grep -i version Version : 4.12_1 I installed Xorg per the handbook: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-install.html However, I was unable to figure out how to exit TWM -- left-clicking on desktop and choosing Exit caused the windows to go blank and mouse clicks to no longer do anything. I had to ssh in from another machine and kill the xinit process. I then installed XFCE per the Handbook: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html 2016-12-26 19:48:55 dpchrist@t7400 ~ $ cat .xinitrc exec /usr/local/bin/startxfce4 --with-ck-launch 2016-12-26 19:53:46 dpchrist@t7400 ~ $ cat .xsession #!/bin/sh exec /usr/local/bin/startxfce4 --with-ck-launch I was able to start Xfce via 'startx'. Choosing Mouse -> Log out brought me back to the shell. I then installed XDM per the Handbook: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-xdm.html After rebooting, XDM comes up, I can log in, XFCE works, and log out returns me to XDM. How do I enable GUI Shutdown and Restart capabilities in both XDM and XFCE? TIA, David