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

Tijl Coosemans tijl at FreeBSD.org
Mon Jan 2 11:41:48 UTC 2017


On Mon, 26 Dec 2016 20:02:52 -0800 David Christensen <dpchrist at holgerdanske.com> wrote:
> freebsd-questions:
> 
> I have a machine running FreeBSD 11.0 i386, XDM, and XFCE:
> 
> 2016-12-26 19:48:26 dpchrist at t7400 ~
> $ freebsd-version
> 11.0-RELEASE-p1
> 
> 2016-12-26 19:48:42 dpchrist at 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 at releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
> 
> 2016-12-26 19:48:44 dpchrist at t7400 ~
> $ pkg info xdm | grep -i version
> Version        : 1.1.11_6
> 
> 2016-12-26 19:48:51 dpchrist at 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 at t7400 ~
> $ cat .xinitrc
> exec /usr/local/bin/startxfce4 --with-ck-launch
> 
> 2016-12-26 19:53:46 dpchrist at 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?

It is explained when you install xfce4-session.  You show this message
again with "pkg info -D xfce4-session".


More information about the freebsd-questions mailing list