From owner-freebsd-questions@freebsd.org Thu Jan 19 17:42:36 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 47716CB5C61 for ; Thu, 19 Jan 2017 17:42:36 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (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 354991EDE for ; Thu, 19 Jan 2017 17:42:36 +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 ; Thu, 19 Jan 2017 09:42:30 -0800 Subject: Re: Second attempt at FreeBSD-11.0-RELEASE-i386, Xorg, and Xfce graphical desktop To: freebsd-questions@freebsd.org 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> From: David Christensen Message-ID: <7abf2904-dd77-3181-9878-05b9196a9082@holgerdanske.com> Date: Thu, 19 Jan 2017 09:42:29 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; 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: Thu, 19 Jan 2017 17:42:36 -0000 On 01/19/17 06:53, Warren Block wrote: > It would be nice to solve this, then we can add it to the pkg-message. It would be nice to solve this so that X and Xfce worked better OOTB. At least one poster warned against mixing packages and ports. I've done all my work using packages alone. At this point, my recipe for building a FreeBSD/ X/ Xfce workstation includes: 1. Erase system drive. 2. Install FreeBSD-11.0-RELEASE-i386-memstick.img (finding the correct choices for my hardware and LAN took a few tries). 3. Update FreeBSD. toor@freebsd:/root # freebsd-update fetch toor@freebsd:/root # freebsd-update install 4. Install X.org: toor@freebsd:/root # pkg install xorg 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 6. Per handbook section 5.4.3, edit /boot/loader.conf: toor@freebsd:/root # diff /boot/loader.conf-20170114-1232 /boot/loader.conf 13a14 > kern.vty=vt 7. Install Xfce: toor@freebsd:/root # pkg install xfce (Based upon xfce package notes, the file I previously created for polkit based upon package installation notes was for Suspend, not for Shut Down and Restart. Forget it -- Shut Down and Restart can work without it.) 8. Per handbook section 5.7.3, create ~/.xinitrc so that 'startx' starts Xfce: dpchrist@freebsd:/usr/home/dpchrist $ cat .xinitrc exec /usr/local/bin/startxfce4 --with-ck-launch 9. Create D-Bus machine identifier: toor@freebsd:/root # dbus-uuidgen --ensure=/etc/machine-id 10. Enable Xfce Shut Down and Restart by starting dbus and hald at system boot: toor@freebsd:/root # diff /etc/rc.conf-20170114-1648 /etc/rc.conf 12a13,14 > dbus_enable="YES" > hald_enable="YES" 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 12. Add Xfce settings to silence xfce4-session warnings "No GPG agent found" and "SSH authentication agent is already running": Application Menu -> Settings -> Settings Editor: Click New button: Property /startup/ssh-agent/enabled Type: Boolean Value: TRUE Click Save button Click New button: Property: /startup/ssh-agent/type Type: String Value: ssh-agent Click Save button 13. Install xscreensaver to enable Panel -> Action Buttons -> Lock Screen and Application Menu -> Settings -> Screensaver. It would be good if somebody verified this recipe. It would be good if 'pkg install xorg' included steps 4-6. It would be good if 'pkg install xfce' included steps 7-13. I have also installed the following packages, and they seem to work OOTB: cvs tree vim-lite firefox vlc I have also updated the locate and makewhatis databases: toor@freebsd:/root # /etc/periodic/weekly/310.locate toor@freebsd:/root # makewhatis David