From owner-freebsd-questions@freebsd.org Thu Jan 19 22:11:58 2017 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 6E758CB8AD7 for ; Thu, 19 Jan 2017 22:11:58 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48DF4156A for ; Thu, 19 Jan 2017 22:11:58 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0JMBukd081587 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 19 Jan 2017 15:11:56 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0JMBtql081584; Thu, 19 Jan 2017 15:11:56 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 19 Jan 2017 15:11:55 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: Re: Second attempt at FreeBSD-11.0-RELEASE-i386, Xorg, and Xfce graphical desktop In-Reply-To: Message-ID: References: <18a5de5c-bc3a-c2e8-32c1-ea0a12d446ac@holgerdanske.com> <20170116230336.2cc22d94@riseup.net> <45c5ea44-e0b4-2698-da8e-707c507eb086@holgerdanske.com> <20170118031855.48fbbe2c@riseup.net> <2d4edb680db8c48f2be352b074f2b968@mhoenicka.de> <7abf2904-dd77-3181-9878-05b9196a9082@holgerdanske.com> 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.6.2 (wonkity.com [127.0.0.1]); Thu, 19 Jan 2017 15:11:56 -0700 (MST) 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, 19 Jan 2017 22:11:58 -0000 On Thu, 19 Jan 2017, David Christensen wrote: > On 01/19/17 09:53, Warren Block wrote: >> On Thu, 19 Jan 2017, David Christensen wrote: >> >>> 1. Erase system drive. >> >> Not necessary, but does no harm. > > I take images of my system drives with dd | gzip. Zeroing the drives saves > space. Saves space how? Note that this should not be used with SSDs, it will really mess up their idea of used blocks. dd is not the greatest backup method anyway, I have written a little about that: http://www.wonkity.com/~wblock/docs/html/backup.html > BTW -- is there a ZFS equivalent of "zerofree"? Sorry, don't know. Not sure of the usefulness of that, assuming it writes zeros to unused space. >>> 5. Based upon xorg package notes, create >>> /usr/local/etc/X11/xorg.conf.d/20-fonts.conf: >>> >>> toor@freebsd:/root # cat /usr/local/etc/X11/xorg.conf.d/20-fonts.conf >>> # Recommended by xorg package: >>> Section "Files" >>> FontPath "/usr/local/share/fonts/dejavu/" >>> EndSection >>> >>> Section "Module" >>> Load "freetype" >>> EndSection >> >> This probably needs updates, but also probably does no harm. > > What updates? How? I don't know, would have to investigate the Handbook fonts section to see what is outdated. > If the information is obsolete, the handbook should be updated. The Handbook is valid for more than one major branch, though. > 7. Install Xfce: > > toor@freebsd:/root # pkg install xfce > > Ignore message: > > To be able to shutdown or reboot your system, you'll have to add .rules > files in /usr/local/etc/polkit-1/rules.d directory. Which looks > like this (replace PUTYOURGROUPHERE by your group): > > polkit.addRule(function (action, subject) { > if ((action.id == "org.freedesktop.consolekit.system.restart" || > action.id == "org.freedesktop.consolekit.system.stop") > && subject.isInGroup("PUTYOURGROUPHERE")) { > return polkit.Result.YES; > } > }); > > For those who have working suspend/resume: > > polkit.addRule(function (action, subject) { > if (action.id == "org.freedesktop.consolekit.system.suspend" > && subject.isInGroup("PUTYOURGROUPHERE")) { > return polkit.Result.YES; > } > }); > > > The message should be removed from the package. All I can say is it has worked for me, on multiple machines and releases. >>> 9. Create D-Bus machine identifier: >>> >>> toor@freebsd:/root # dbus-uuidgen --ensure=/etc/machine-id >> >> I have never done this and do not have that file. > > I'm using FreeBSD-11.0-RELEASE-i386-memstick.img and packages. > > > Xfce would not start without it. Really? That seems odd. >>> 11. Edit startx to silence xauth warning about missing serverauth: >>> >>> toor@freebsd:/usr/local/bin # diff startx-20170111-1934-orig startx >>> 182c182 >>> < xauth -q -f "$xserverauthfile" << EOF >>> --- >>>> touch $xserverauthfile; xauth -q -f "$xserverauthfile" << EOF >> >> I have never done this, either. > > I prefer zero warnings and zero errors. Understood. I just don't recall seeing that. >>> 12. Add Xfce settings to silence xfce4-session warnings "No GPG agent >>> found" and "SSH authentication agent is already running": >> >> Never did this, either. Might be due to xfce4-session trying to >> automatically start services that are already running. That is >> configurable. > > I prefer zero warnings and zero errors. Pretty certain I've never seen that.