Second attempt at FreeBSD-11.0-RELEASE-i386, Xorg, and Xfce graphical desktop
David Christensen
dpchrist at holgerdanske.com
Thu Jan 19 17:52:25 UTC 2017
freebsd-questions:
Clarification -- I've added the command for step #13:
David
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 at freebsd:/root # freebsd-update fetch
toor at freebsd:/root # freebsd-update install
4. Install X.org:
toor at freebsd:/root # pkg install xorg
5. Based upon xorg package notes, create
/usr/local/etc/X11/xorg.conf.d/20-fonts.conf:
toor at 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 at freebsd:/root # diff /boot/loader.conf-20170114-1232 /boot/loader.conf
13a14
> kern.vty=vt
7. Install Xfce:
toor at 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 at freebsd:/usr/home/dpchrist $ cat .xinitrc
exec /usr/local/bin/startxfce4 --with-ck-launch
9. Create D-Bus machine identifier:
toor at freebsd:/root # dbus-uuidgen --ensure=/etc/machine-id
10. Enable Xfce Shut Down and Restart by starting dbus and hald at
system boot:
toor at 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 at 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.
toor at freebsd:/root # pkg install xscreesaver
More information about the freebsd-questions
mailing list