Date: Thu, 19 Jan 2017 10:17:12 -0800 From: David Christensen <dpchrist@holgerdanske.com> To: freebsd-questions@freebsd.org Subject: Re: Second attempt at FreeBSD-11.0-RELEASE-i386, Xorg, and Xfce graphical desktop Message-ID: <b1e37878-3e02-11ad-7e7f-bb942b6dbd04@holgerdanske.com> In-Reply-To: <alpine.BSF.2.20.1701191047030.2795@wonkity.com> References: <18a5de5c-bc3a-c2e8-32c1-ea0a12d446ac@holgerdanske.com> <20170116230336.2cc22d94@riseup.net> <45c5ea44-e0b4-2698-da8e-707c507eb086@holgerdanske.com> <alpine.BSF.2.20.1701172256330.1046@wonkity.com> <20170118031855.48fbbe2c@riseup.net> <alpine.BSF.2.20.1701181757440.45317@wonkity.com> <2d4edb680db8c48f2be352b074f2b968@mhoenicka.de> <alpine.BSF.2.20.1701190750510.55707@wonkity.com> <7abf2904-dd77-3181-9878-05b9196a9082@holgerdanske.com> <alpine.BSF.2.20.1701191047030.2795@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. BTW -- is there a ZFS equivalent of "zerofree"? If and when I understand slices, partitions, boot loaders, etc., and how to serialize/ de-serialize unencrypted/ encrypted swap and ZFS file systems, I'll have another option. >> 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? >> 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 > > Should be the default for FreeBSD 10.x, but does no harm(TM). I'm using FreeBSD-11.0-RELEASE-i386-memstick.img and packages. If the information is obsolete, the handbook should be updated. >> 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.) > > This step is a little unclear. How about this: 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. >> 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. >> 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" > > It is possible to build the ports with hal disabled. I'm using FreeBSD-11.0-RELEASE-i386-memstick.img and packages. >> 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'm using FreeBSD-11.0-RELEASE-i386-memstick.img and packages. I prefer zero warnings and zero errors. >> 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'm using FreeBSD-11.0-RELEASE-i386-memstick.img and packages. I prefer zero warnings and zero errors. >> 13. Install xscreensaver to enable Panel -> Action Buttons -> Lock >> Screen and Application Menu -> Settings -> Screensaver. > > Optional, but okay. I expect screen saver/ locking to work OOTB. David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b1e37878-3e02-11ad-7e7f-bb942b6dbd04>