Goal: Xfce4 Desktop FreeBSD on a PC
Hardware: Intel Xeon E1246v3, 16GB Ram, 128GB SSD, NVidia GTX 660
I use vi to edit files, feel free to use another editor.
I. Installation
I.1.) Installation Media
I'am using Ventoy which is very handy to have multiple Installation Images on one memorystick. I downloaded the "amd64-disc1.iso"-Filetype and copied it to my Ventoy Stick. The Gigabyte Mainboard boot selection key is F12 most of other pc's have F8. Booting my Stick in UEFI mode and select the FreeBSD iso in the Ventoy menu then.
I.2) Basic Install (data example in my case)
Complete as shell script to run after the above. Login as root and
current version: 2025-12-31
Optional:
Make boot a bit faster with:
sh freeBSD_fasterboot.sh
Install update check with:
sh freeBSD_updatecheck.sh
if you want to install a xfce skel (for new added user):
sh _xfce4skel.sh
if you installed on a Lenovo x260 you may execute:
sh x260.sh
if you installed on a Lenovo e531 you may execute:
sh e531.sh
if you have problems with the console (ctrl+alt+F[1..8]):
sh brokenConsole.sh
This will do the following stuff , if you dont want to do it manually .....
I.3)
I.4) XOrg Setup
Here we are it's booted in console mode :D We could start work but since we want a Graphical Userinterface we need to set it up. A good starting point is the FreeBSD Handbook Chapter 5. The X Window System
sudo sysrc kld_list+=nvidia-modesetnvidia-modesetI.5) Desktop Environments
Now we look at the handbook for Desktop Environments.
sudo pkg install xfce lightdm lightdm-gtk-greetersudo sysrc dbus_enable="YES"sudo sysrc lightdm_enable="YES"II.) Add the beef
II.1) Firefox, sudo and xfce Whisker Menu and plank..
II.2) Sound
II.3) Make your xfce4 nicer:
II.4) WIFI
Good setup HowTo can be found at Networking Basics: WiFi and Bluetooth